var J=Object.defineProperty;var A=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var S=(i,l,e)=>l in i?J(i,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[l]=e,C=(i,l)=>{for(var e in l||(l={}))K.call(l,e)&&S(i,e,l[e]);if(A)for(var e of A(l))q.call(l,e)&&S(i,e,l[e]);return i};var M=(i,l,e)=>new Promise((c,_)=>{var k=r=>{try{s(e.next(r))}catch(f){_(f)}},E=r=>{try{s(e.throw(r))}catch(f){_(f)}},s=r=>r.done?c(r.value):Promise.resolve(r.value).then(k,E);s((e=e.apply(i,l)).next())});import{_ as H,d as Q,D as W,b as N,r as y,a3 as G,o as X,c as d,e as O,f as Z,i as t,j as o,u as P,I as ee,h as ae,g as m,k as T,F as te}from"./index.2939355b.js";import{E as le}from"./index.6a830147.js";import oe from"./editPersonInfoDialog.844d7af3.js";import se from"./editSupplierDialog.955c2b22.js";import ie from"./detailDialog.cfa5006e.js";import{l as ne}from"./securityPersonnelControl.8a6bd195.js";import{g as R,a as re}from"./getIsShowRegionTree.a60566b7.js";import"./uploadAction.f375b4f7.js";import"./index.744a6f8f.js";const de=m("div",{class:"flex justify-between items-center"},[m("span",null,"\u9879\u76EE\u5217\u8868")],-1),ce=["onClick"],ue=["onClick"],pe=["onClick"],me=Q({name:"securityPersonnelControl"}),_e=Object.assign(me,{setup(i){const{statusOptions:l}=W.dictStore.globalDicts||{},e=N({projectName:void 0}),c=y(),_=y(2),k=N([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"220",render:a=>{var u,n,h,D;return[G("span",{class:["dot mr-4",`bg-${(u=l[a.status])==null?void 0:u.color}`]}),G("span",{class:`text-${(n=l[a.status])==null?void 0:n.color}`},a.status&&((h=l[a.stage])==null?void 0:h.name)+"-"+((D=l[a.status])==null?void 0:D.name))]}},{label:"\u64CD\u4F5C",slot:"action",width:"380",fixed:"right"}]),E=y([{}]),s=(...u)=>M(this,[...u],function*(a=c.value.pageParams){const n=yield ne(C(C({},a),e));E.value=n.data.records,_.value=n.data.total}),r=()=>{s()},f=()=>{e.projectName=void 0,c.value.pageParams.pageNumber=1,c.value.pageParams.pageSize=10,s()},V=a=>{e.regionCode=a.regionLevel===3?a.regionCode:void 0,c.value.pageParams.pageNumber=1,s()},b=N({visible:!1,data:void 0}),U=a=>{b.visible=!0,b.data=a},$=a=>{a&&s(),b.visible=!1},g=N({visible:!1,data:void 0}),B=a=>{g.visible=!0,g.data=a},F=a=>{a&&s(),g.visible=!1},v=N({visible:!1,data:void 0}),L=a=>{v.visible=!0,v.data=a};return X(()=>{R(["SUPER_ADMIN","REGION_MANAGER"])||s()}),(a,u)=>{const n=d("el-col"),h=d("el-input"),D=d("el-form-item"),j=d("el-button"),x=d("el-row"),z=d("el-form"),I=d("el-card"),Y=d("table-list");return O(),Z(te,null,[t(x,null,{default:o(()=>[P(R)(["SUPER_ADMIN","REGION_MANAGER"])?(O(),ee(n,{key:0,style:{"padding-right":"16px"},span:4},{default:o(()=>[t(le,{params:P(re)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:V},null,8,["params"])]),_:1})):ae("v-if",!0),t(n,{span:P(R)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:o(()=>[m("div",null,[t(I,{class:"search mb-16"},{default:o(()=>[t(z,{"label-suffix":":",model:e,size:"small"},{default:o(()=>[t(x,{gutter:16},{default:o(()=>[t(n,{span:8},{default:o(()=>[t(D,{label:"\u9879\u76EE\u540D\u79F0"},{default:o(()=>[t(h,{modelValue:e.projectName,"onUpdate:modelValue":u[0]||(u[0]=p=>e.projectName=p),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:16},{default:o(()=>[t(D,{class:"btn"},{default:o(()=>[t(j,{type:"primary",onClick:r},{default:o(()=>[T("\u67E5\u8BE2")]),_:1}),t(j,{onClick:f},{default:o(()=>[T("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(I,null,{header:o(()=>[de]),default:o(()=>[t(Y,{ref_key:"tableListRef",ref:c,column:k,data:E.value,total:_.value,onGetTableData:s},{action:o(({scope:p})=>[m("a",{onClick:w=>U(p.row)},"\u586B\u5199\u9879\u76EE\u5B89\u5168\u8D1F\u8D23\u4EBA\u4FE1\u606F",8,ce),m("a",{onClick:w=>B(p.row)},"\u586B\u5199\u4F9B\u5E94\u5546\u5B89\u5168\u4FE1\u606F",8,ue),m("a",{onClick:w=>L(p.row)},"\u8BE6\u60C5",8,pe)]),_:1},8,["column","data","total"])]),_:1})])]),_:1},8,["span"])]),_:1}),t(oe,{visible:b.visible,data:b.data,onClose:$},null,8,["visible","data"]),t(se,{visible:g.visible,data:g.data,onClose:F},null,8,["visible","data"]),t(ie,{visible:v.visible,data:v.data,onClose:u[1]||(u[1]=p=>v.visible=!1)},null,8,["visible","data"])],64)}}}),ye=H(_e,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectSafetyRiskMonitor/securityPersonnelControl/index.vue"]]);export{ye as default};
