25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
3.8KB

  1. import{E as P}from"./index.108a55d4.js";import{d as R,B as $,b as _,r as b,Z as j,c as o,e as E,f as F,h as e,i as a,g as n,j as w,t as L,F as S}from"./index.a2494fc2.js";import{l as z}from"./projectStore.3d75a461.js";import{h as D}from"./moment.40bc58bf.js";const G=["onClick"],U={class:"flex justify-between items-center mb-16"},Z=R({name:"safeOperationControl"}),X=Object.assign(Z,{setup(A){const{statusOptions:p}=$.dictStore.globalDicts||{},i=_({projectName:void 0}),m=b(),g=b(0),N=_([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrg",prop:"buildOrg"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:"100"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"220",render:l=>{var t,r,c,d;return[j("span",{class:["dot mr-4",`bg-${(t=p[l.status])==null?void 0:t.color}`]}),j("span",{class:`text-${(r=p[l.status])==null?void 0:r.color}`},l.status&&((c=p[l.stage])==null?void 0:c.name)+"-"+((d=p[l.status])==null?void 0:d.name))]}},{label:"\u64CD\u4F5C",slot:"action",width:"100",fixed:"right"}]),v=b([]),u=async(l=m.value.pageParams)=>{const t=await z({...l,...i});v.value=t.data.records,g.value=t.data.total},C=()=>{u()},Y=()=>{i.projectName=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,u()},T=l=>{i.regionCode=l.regionLevel===3?l.regionCode:void 0,m.value.pageParams.pageNumber=1,u()},s=_({visible:!1,data:[{aqxm:"\u7B49\u4FDD",ms:"\u672A\u5B8C\u6210"},{aqxm:"\u5BC6\u8BC4",ms:"\u672A\u5B8C\u6210"}],column:[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u5B89\u5168\u9879\u76EE",key:"aqxm",prop:"aqxm"},{label:"\u63CF\u8FF0",key:"ms",prop:"ms"}]}),V=l=>{s.visible=!0,s.date=D(new Date).format("YYYY-MM-DD HH:mm:ss")},O=()=>{s.date=D(new Date).format("YYYY-MM-DD HH:mm:ss")};return(l,t)=>{const r=o("el-col"),c=o("el-input"),d=o("el-form-item"),y=o("el-button"),x=o("el-row"),q=o("el-form"),k=o("el-card"),h=o("table-list"),B=o("Refresh"),H=o("el-icon"),M=o("el-dialog");return E(),F(S,null,[e(x,null,{default:a(()=>[e(r,{style:{"padding-right":"16px"},span:4},{default:a(()=>[e(P,{onGetTree:T})]),_:1}),e(r,{span:20},{default:a(()=>[n("div",null,[e(k,{class:"search mb-16"},{default:a(()=>[e(q,{"label-suffix":":",model:i,size:"small"},{default:a(()=>[e(x,{gutter:16},{default:a(()=>[e(r,{span:8},{default:a(()=>[e(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(c,{modelValue:i.projectName,"onUpdate:modelValue":t[0]||(t[0]=f=>i.projectName=f),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:16},{default:a(()=>[e(d,{class:"btn"},{default:a(()=>[e(y,{type:"primary",onClick:C},{default:a(()=>t[2]||(t[2]=[w("\u67E5\u8BE2")])),_:1}),e(y,{onClick:Y},{default:a(()=>t[3]||(t[3]=[w("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,null,{header:a(()=>t[4]||(t[4]=[n("div",{class:"flex justify-between items-center"},[n("span",null,"\u9879\u76EE\u5217\u8868")],-1)])),default:a(()=>[e(h,{ref_key:"tableListRef",ref:m,column:N,data:v.value,total:g.value,onGetTableData:u},{action:a(({scope:f})=>[n("a",{onClick:I=>V(f.row)},"\u5B89\u5168\u5206\u6790",8,G)]),_:1},8,["column","data","total"])]),_:1})])]),_:1})]),_:1}),e(M,{"model-value":s.visible,title:"\u5B89\u5168\u5206\u6790",width:"60%",onClose:t[1]||(t[1]=f=>s.visible=!1)},{default:a(()=>[n("p",U,[n("span",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A"+L(s.date),1),n("a",{class:"flex items-center",onClick:O},[e(H,null,{default:a(()=>[e(B)]),_:1}),t[5]||(t[5]=n("span",null,"\u67E5\u8BE2\u68C0\u6D4B",-1))])]),e(h,{data:s.data,column:s.column,pagination:!1},null,8,["data","column"])]),_:1},8,["model-value"])],64)}}});export{X as default};