2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{I as T,y as R,w as U,D as I,C as M,L as z,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as Z,b as ee,c as oe}from"./edit.vue_vue_type_script_setup_true_name_supervisionSpecialOperationPersonnelEdit_lang.339d6830.js";import"./lodash.1d82ee7c.js";import{d as y,s as te,r as D,a0 as ae,ai as le,o as u,c as ie,V as e,M as t,O as f,u as s,L as d,S as ne,a as B,k as se,T as c,n as k}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.36fc80fc.js";import"./supervision_participating_units_qualifications.93c14ce5.js";import"./index.a7758114.js";import"./index.9492d03b.js";const re=c("\u67E5\u8BE2"),ue=c("\u91CD\u7F6E"),pe=c(" \u65B0\u589E "),me=c(" \u5220\u9664 "),de={class:"mt-4"},ce=c(" \u7F16\u8F91 "),_e=c(" \u5220\u9664 "),fe={class:"flex justify-end mt-4"},ve=y({name:"supervisionSpecialOperationPersonnelLists"}),io=y({...ve,setup(we){const v=te(),w=D(!1),n=ae({project_id:"",name:"",company_id:"",create_user:""}),F=D([]),V=i=>{F.value=i.map(({id:o})=>o)},{dictData:g}=X(""),{pager:_,getLists:b,resetParams:x,resetPage:S}=W({fetchFun:Z,params:n}),A=async()=>{var i;w.value=!0,await k(),(i=v.value)==null||i.open("add")},P=async i=>{var p,r;let o=await ee({id:i.id});w.value=!0,await k(),(p=v.value)==null||p.open("edit"),(r=v.value)==null||r.setFormData(o)},h=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oe({id:i}),b()};return b(),(i,o)=>{const p=T,r=R,m=U,$=I,C=M,L=Q,a=z,j=G,q=J,E=le("perms"),N=H;return u(),ie("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:n,inline:""},{default:t(()=>[e(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_id"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:n.project_id,"onUpdate:modelValue":o[0]||(o[0]=l=>n.project_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u59D3\u540D",prop:"name"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:n.name,"onUpdate:modelValue":o[1]||(o[1]=l=>n.name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u521B\u5EFA\u4EBA",prop:"create_user"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:n.create_user,"onUpdate:modelValue":o[2]||(o[2]=l=>n.create_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(m,{type:"primary",onClick:s(S)},{default:t(()=>[re]),_:1},8,["onClick"]),e(m,{onClick:s(x)},{default:t(()=>[ue]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((u(),d(C,{class:"!border-none",shadow:"never"},{default:t(()=>[f((u(),d(m,{type:"primary",onClick:A},{icon:t(()=>[e(L,{name:"el-icon-Plus"})]),default:t(()=>[pe]),_:1})),[[E,["supervision_qualification_review.supervision_special_operation_personnel/add"]]]),f((u(),d(m,{disabled:!F.value.length,onClick:o[3]||(o[3]=l=>h(F.value))},{default:t(()=>[me]),_:1},8,["disabled"])),[[E,["supervision_qualification_review.supervision_special_operation_personnel/delete"]]]),B("div",de,[e(j,{data:s(_).lists,onSelectionChange:V},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(a,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"company_name","show-overflow-tooltip":""}),e(a,{label:"\u5DE5\u79CD",prop:"work_type","show-overflow-tooltip":""}),e(a,{label:"\u8EAB\u4EFD\u8BC1",prop:"id_card","show-overflow-tooltip":""}),e(a,{label:"\u8D44\u683C\u6709\u6548\u671F",prop:"validity_period","show-overflow-tooltip":""}),e(a,{label:"\u8FDB\u573A\u65F6\u95F4",prop:"enter_time","show-overflow-tooltip":""}),e(a,{label:"\u79BB\u573A\u65F6\u95F4",prop:"leave_time","show-overflow-tooltip":""}),e(a,{label:"\u72B6\u6001",prop:"status_text","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u521B\u5EFA\u4EBA",prop:"create_user_name","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((u(),d(m,{type:"primary",link:"",onClick:O=>P(l)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[E,["supervision_qualification_review.supervision_special_operation_personnel/edit"]]]),f((u(),d(m,{type:"danger",link:"",onClick:O=>h(l.id)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[E,["supervision_qualification_review.supervision_special_operation_personnel/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",fe,[e(q,{modelValue:s(_),"onUpdate:modelValue":o[4]||(o[4]=l=>se(_)?_.value=l:null),onChange:s(b)},null,8,["modelValue","onChange"])])]),_:1})),[[N,s(_).loading]]),w.value?(u(),d(Y,{key:0,ref_key:"editRef",ref:v,"dict-data":s(g),onSuccess:s(b),onClose:o[5]||(o[5]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{io as default};
|