Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
3.9KB

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