|
- import{E as B}from"./index.bd895a1b.js";import{d as F,D as L,b as f,r as v,a0 as I,o as z,c as o,e as P,f as Y,h as a,i as t,u as N,I as q,k as H,g as d,j as w,F as J}from"./index.ce13ff81.js";import K from"./editPersonInfoDialog.1acc061d.js";import Q from"./editSupplierDialog.86c2b40d.js";import W from"./detailDialog.4afbe1b9.js";import{l as X}from"./securityPersonnelControl.c045107d.js";import{g as D,a as Z}from"./getIsShowRegionTree.bdcc7268.js";import"./uploadAction.f62a56f0.js";import"./index.ffa50a44.js";const ee=d("div",{class:"flex justify-between items-center"},[d("span",null,"\u9879\u76EE\u5217\u8868")],-1),ae=["onClick"],te=["onClick"],le=["onClick"],oe=F({name:"securityPersonnelControl"}),fe=Object.assign(oe,{setup(se){const{statusOptions:b}=L.dictStore.globalDicts||{},i=f({projectName:void 0}),c=v(),h=v(2),A=f([{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:e=>{var l,n,g,_;return[I("span",{class:["dot mr-4",`bg-${(l=b[e.status])==null?void 0:l.color}`]}),I("span",{class:`text-${(n=b[e.status])==null?void 0:n.color}`},e.status&&((g=b[e.stage])==null?void 0:g.name)+"-"+((_=b[e.status])==null?void 0:_.name))]}},{label:"\u64CD\u4F5C",slot:"action",width:"380",fixed:"right"}]),E=v([{}]),s=async(e=c.value.pageParams)=>{const l=await X({...e,...i});E.value=l.data.records,h.value=l.data.total},j=()=>{s()},x=()=>{i.projectName=void 0,c.value.pageParams.pageNumber=1,c.value.pageParams.pageSize=10,s()},G=e=>{i.regionCode=e.regionLevel===3?e.regionCode:void 0,c.value.pageParams.pageNumber=1,s()},u=f({visible:!1,data:void 0}),S=e=>{u.visible=!0,u.data=e},M=e=>{e&&s(),u.visible=!1},m=f({visible:!1,data:void 0}),$=e=>{m.visible=!0,m.data=e},O=e=>{e&&s(),m.visible=!1},p=f({visible:!1,data:void 0}),T=e=>{p.visible=!0,p.data=e};return z(()=>{D(["SUPER_ADMIN","REGION_MANAGER"])||s()}),(e,l)=>{const n=o("el-col"),g=o("el-input"),_=o("el-form-item"),k=o("el-button"),C=o("el-row"),V=o("el-form"),R=o("el-card"),U=o("table-list");return P(),Y(J,null,[a(C,null,{default:t(()=>[N(D)(["SUPER_ADMIN","REGION_MANAGER"])?(P(),q(n,{key:0,style:{"padding-right":"16px"},span:4},{default:t(()=>[a(B,{params:N(Z)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:G},null,8,["params"])]),_:1})):H("",!0),a(n,{span:N(D)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:t(()=>[d("div",null,[a(R,{class:"search mb-16"},{default:t(()=>[a(V,{"label-suffix":":",model:i,size:"small"},{default:t(()=>[a(C,{gutter:16},{default:t(()=>[a(n,{span:8},{default:t(()=>[a(_,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(g,{modelValue:i.projectName,"onUpdate:modelValue":l[0]||(l[0]=r=>i.projectName=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(n,{span:16},{default:t(()=>[a(_,{class:"btn"},{default:t(()=>[a(k,{type:"primary",onClick:j},{default:t(()=>[w("\u67E5\u8BE2")]),_:1}),a(k,{onClick:x},{default:t(()=>[w("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(R,null,{header:t(()=>[ee]),default:t(()=>[a(U,{ref_key:"tableListRef",ref:c,column:A,data:E.value,total:h.value,onGetTableData:s},{action:t(({scope:r})=>[d("a",{onClick:y=>S(r.row)},"\u586B\u5199\u9879\u76EE\u5B89\u5168\u8D1F\u8D23\u4EBA\u4FE1\u606F",8,ae),d("a",{onClick:y=>$(r.row)},"\u586B\u5199\u4F9B\u5E94\u5546\u5B89\u5168\u4FE1\u606F",8,te),d("a",{onClick:y=>T(r.row)},"\u8BE6\u60C5",8,le)]),_:1},8,["column","data","total"])]),_:1})])]),_:1},8,["span"])]),_:1}),a(K,{visible:u.visible,data:u.data,onClose:M},null,8,["visible","data"]),a(Q,{visible:m.visible,data:m.data,onClose:O},null,8,["visible","data"]),a(W,{visible:p.visible,data:p.data,onClose:l[1]||(l[1]=r=>p.visible=!1)},null,8,["visible","data"])],64)}}});export{fe as default};
|