var Y=Object.defineProperty;var A=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var S=(i,l,e)=>l in i?Y(i,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[l]=e,C=(i,l)=>{for(var e in l||(l={}))H.call(l,e)&&S(i,e,l[e]);if(A)for(var e of A(l))J.call(l,e)&&S(i,e,l[e]);return i};var G=(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 q,d as Q,H as W,b as D,r as y,a5 as M,o as X,f as d,g as O,h as Z,l as t,m as o,k as P,K as ee,j as ae,i as m,p as T,G as te}from"./index.9fabe127.js";import{E as le}from"./index.36bc1d2a.js";import oe from"./editPersonInfoDialog.eea53571.js";import se from"./editSupplierDialog.1e91c395.js";import ie from"./detailDialog.480be961.js";import{l as ne}from"./securityPersonnelControl.01f3486c.js";import{g as R,a as re}from"./getIsShowRegionTree.465969ff.js";import"./uploadAction.3a8ed42d.js";import"./index.15f81060.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=D({projectName:void 0}),c=y(),_=y(2),k=D([{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,N;return[M("span",{class:["dot mr-4",`bg-${(u=l[a.status])==null?void 0:u.color}`]}),M("span",{class:`text-${(n=l[a.status])==null?void 0:n.color}`},a.status&&((h=l[a.stage])==null?void 0:h.name)+"-"+((N=l[a.status])==null?void 0:N.name))]}},{label:"\u64CD\u4F5C",slot:"action",width:"380",fixed:"right"}]),E=y([{}]),s=(...u)=>G(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=D({visible:!1,data:void 0}),U=a=>{b.visible=!0,b.data=a},$=a=>{a&&s(),b.visible=!1},g=D({visible:!1,data:void 0}),B=a=>{g.visible=!0,g.data=a},L=a=>{a&&s(),g.visible=!1},v=D({visible:!1,data:void 0}),z=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"),N=d("el-form-item"),j=d("el-button"),x=d("el-row"),F=d("el-form"),w=d("el-card"),K=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(w,{class:"search mb-16"},{default:o(()=>[t(F,{"label-suffix":":",model:e,size:"small"},{default:o(()=>[t(x,{gutter:16},{default:o(()=>[t(n,{span:8},{default:o(()=>[t(N,{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(N,{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(w,null,{header:o(()=>[de]),default:o(()=>[t(K,{ref_key:"tableListRef",ref:c,column:k,data:E.value,total:_.value,onGetTableData:s},{action:o(({scope:p})=>[m("a",{onClick:I=>U(p.row)},"\u586B\u5199\u9879\u76EE\u5B89\u5168\u8D1F\u8D23\u4EBA\u4FE1\u606F",8,ce),m("a",{onClick:I=>B(p.row)},"\u586B\u5199\u4F9B\u5E94\u5546\u5B89\u5168\u4FE1\u606F",8,ue),m("a",{onClick:I=>z(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:L},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=q(_e,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectSafetyRiskMonitor/securityPersonnelControl/index.vue"]]);export{ye as default};
