engineering/public/admin/assets/index.e9f253b5.js
2024-02-27 10:28:16 +08:00

2 lines
7.3 KiB
JavaScript

import{I as N,y as T,w as R,D as I,C as O,L as z,M as G,N as H}from"./element-plus.517d4382.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as K,a as Q}from"./index.8b1962e9.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.b5854a9e.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_supervisionSafetyManagementPersonnelEdit_lang.585f95ca.js";import"./lodash.1d82ee7c.js";import{d as B,s as oe,r as C,a0 as te,ai as ae,o as r,c as le,V as e,M as a,O as f,u as s,L as _,S as ue,a as y,k as ie,T as d,n as g}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";const ne=d("\u67E5\u8BE2"),se=d("\u91CD\u7F6E"),re=d(" \u65B0\u589E "),pe=d(" \u5220\u9664 "),me={class:"mt-4"},_e=d(" \u7F16\u8F91 "),de=d(" \u5220\u9664 "),ce={class:"flex mt-4 justify-end"},fe=B({name:"supervisionSafetyManagementPersonnelLists"}),oo=B({...fe,setup(we){const w=oe(),v=C(!1),u=te({project_id:"",name:"",company_id:"",qualification_name_one:"",qualification_name_two:""}),F=C([]),V=i=>{F.value=i.map(({id:t})=>t)},{dictData:k}=X(""),{pager:c,getLists:D,resetParams:q,resetPage:x}=W({fetchFun:Z,params:u}),S=async()=>{var i;v.value=!0,await g(),(i=w.value)==null||i.open("add")},A=async i=>{var t,n;v.value=!0,await g(),(t=w.value)==null||t.open("edit"),(n=w.value)==null||n.setFormData(i)},h=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:i}),D()};return D(),(i,t)=>{const n=N,p=T,m=R,P=I,E=O,j=Q,o=z,$=G,L=J,b=ae("perms"),U=H;return r(),le("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(P,{class:"mb-[-16px]",model:u,inline:""},{default:a(()=>[e(p,{label:"\u9879\u76EEid",prop:"project_id"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:u.project_id,"onUpdate:modelValue":t[0]||(t[0]=l=>u.project_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EEid"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u59D3\u540D",prop:"name"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:u.name,"onUpdate:modelValue":t[1]||(t[1]=l=>u.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"company_id"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:u.company_id,"onUpdate:modelValue":t[2]||(t[2]=l=>u.company_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8D44\u8D28\u540D\u79F01",prop:"qualification_name_one"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:u.qualification_name_one,"onUpdate:modelValue":t[3]||(t[3]=l=>u.qualification_name_one=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u540D\u79F01"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8D44\u8D28\u540D\u79F02",prop:"qualification_name_two"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:u.qualification_name_two,"onUpdate:modelValue":t[4]||(t[4]=l=>u.qualification_name_two=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u540D\u79F02"},null,8,["modelValue"])]),_:1}),e(p,null,{default:a(()=>[e(m,{type:"primary",onClick:s(x)},{default:a(()=>[ne]),_:1},8,["onClick"]),e(m,{onClick:s(q)},{default:a(()=>[se]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),_(E,{class:"!border-none",shadow:"never"},{default:a(()=>[f((r(),_(m,{type:"primary",onClick:S},{icon:a(()=>[e(j,{name:"el-icon-Plus"})]),default:a(()=>[re]),_:1})),[[b,["supervision_qualification_review.supervision_safety_management_personnel/add"]]]),f((r(),_(m,{disabled:!F.value.length,onClick:t[5]||(t[5]=l=>h(F.value))},{default:a(()=>[pe]),_:1},8,["disabled"])),[[b,["supervision_qualification_review.supervision_safety_management_personnel/delete"]]]),y("div",me,[e($,{data:s(c).lists,onSelectionChange:V},{default:a(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u9879\u76EEid",prop:"project_id","show-overflow-tooltip":""}),e(o,{label:"\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(o,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"company_id","show-overflow-tooltip":""}),e(o,{label:"\u8EAB\u4EFD\u8BC1",prop:"id_card","show-overflow-tooltip":""}),e(o,{label:"\u6280\u672F\u804C\u79F0",prop:"technical_title","show-overflow-tooltip":""}),e(o,{label:"\u5C97\u4F4D",prop:"job","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u540D\u79F01",prop:"qualification_name_one","show-overflow-tooltip":""}),e(o,{label:"\u8BA4\u8BC1\u673A\u67841",prop:"certification_body_one","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u7F16\u53F71",prop:"qualification_number_one","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u8BC1\u65E5\u671F1",prop:"get_date_one","show-overflow-tooltip":""}),e(o,{label:"\u6709\u6548\u65E5\u671F1",prop:"effective_date_one","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D281\u72B6\u6001 0-\u6709\u6548 1-\u65E0\u6548",prop:"qualification_one_status","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u540D\u79F02",prop:"qualification_name_two","show-overflow-tooltip":""}),e(o,{label:"\u8BA4\u8BC1\u673A\u67842",prop:"certification_body_two","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D28\u7F16\u53F72",prop:"qualification_number_two","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u8BC1\u65E5\u671F2",prop:"get_date_two","show-overflow-tooltip":""}),e(o,{label:"\u6709\u6548\u65E5\u671F2",prop:"effective_date_two","show-overflow-tooltip":""}),e(o,{label:"\u8D44\u8D282\u72B6\u6001 0-\u6709\u6548 1-\u65E0\u6548",prop:"qualification_two_status","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(o,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""}),e(o,{label:"\u521B\u5EFA\u4EBA",prop:"create_user","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[f((r(),_(m,{type:"primary",link:"",onClick:M=>A(l)},{default:a(()=>[_e]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_safety_management_personnel/edit"]]]),f((r(),_(m,{type:"danger",link:"",onClick:M=>h(l.id)},{default:a(()=>[de]),_:2},1032,["onClick"])),[[b,["supervision_qualification_review.supervision_safety_management_personnel/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",ce,[e(L,{modelValue:s(c),"onUpdate:modelValue":t[6]||(t[6]=l=>ie(c)?c.value=l:null),onChange:s(D)},null,8,["modelValue","onChange"])])]),_:1})),[[U,s(c).loading]]),v.value?(r(),_(Y,{key:0,ref_key:"editRef",ref:w,"dict-data":s(k),onSuccess:s(D),onClose:t[7]||(t[7]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{oo as default};