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.7KB

  1. import{E as R}from"./index.bd895a1b.js";import{d as $,D as B,b as f,r as b,a0 as j,c as l,e as E,f as F,h as e,i as t,g as n,j as D,t as L,F as S}from"./index.ce13ff81.js";import{l as z}from"./projectStore.1d256069.js";import{h as w}from"./moment.40bc58bf.js";const G=n("div",{class:"flex justify-between items-center"},[n("span",null,"\u9879\u76EE\u5217\u8868")],-1),U=["onClick"],A={class:"flex justify-between items-center mb-16"},I=n("span",null,"\u67E5\u8BE2\u68C0\u6D4B",-1),J=$({name:"safeOperationControl"}),te=Object.assign(J,{setup(K){const{statusOptions:d}=B.dictStore.globalDicts||{},c=f({projectName:void 0}),i=b(),g=b(0),N=f([{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:a=>{var o,r,u,m;return[j("span",{class:["dot mr-4",`bg-${(o=d[a.status])==null?void 0:o.color}`]}),j("span",{class:`text-${(r=d[a.status])==null?void 0:r.color}`},a.status&&((u=d[a.stage])==null?void 0:u.name)+"-"+((m=d[a.status])==null?void 0:m.name))]}},{label:"\u64CD\u4F5C",slot:"action",width:"100",fixed:"right"}]),h=b([]),p=async(a=i.value.pageParams)=>{const o=await z({...a,...c});h.value=o.data.records,g.value=o.data.total},C=()=>{p()},Y=()=>{c.projectName=void 0,i.value.pageParams.pageNumber=1,i.value.pageParams.pageSize=10,p()},T=a=>{c.regionCode=a.regionLevel===3?a.regionCode:void 0,i.value.pageParams.pageNumber=1,p()},s=f({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=a=>{s.visible=!0,s.date=w(new Date).format("YYYY-MM-DD HH:mm:ss")},O=()=>{s.date=w(new Date).format("YYYY-MM-DD HH:mm:ss")};return(a,o)=>{const r=l("el-col"),u=l("el-input"),m=l("el-form-item"),v=l("el-button"),y=l("el-row"),q=l("el-form"),x=l("el-card"),k=l("table-list"),H=l("Refresh"),M=l("el-icon"),P=l("el-dialog");return E(),F(S,null,[e(y,null,{default:t(()=>[e(r,{style:{"padding-right":"16px"},span:4},{default:t(()=>[e(R,{onGetTree:T})]),_:1}),e(r,{span:20},{default:t(()=>[n("div",null,[e(x,{class:"search mb-16"},{default:t(()=>[e(q,{"label-suffix":":",model:c,size:"small"},{default:t(()=>[e(y,{gutter:16},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(m,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[e(u,{modelValue:c.projectName,"onUpdate:modelValue":o[0]||(o[0]=_=>c.projectName=_),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:16},{default:t(()=>[e(m,{class:"btn"},{default:t(()=>[e(v,{type:"primary",onClick:C},{default:t(()=>[D("\u67E5\u8BE2")]),_:1}),e(v,{onClick:Y},{default:t(()=>[D("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(x,null,{header:t(()=>[G]),default:t(()=>[e(k,{ref_key:"tableListRef",ref:i,column:N,data:h.value,total:g.value,onGetTableData:p},{action:t(({scope:_})=>[n("a",{onClick:Q=>V(_.row)},"\u5B89\u5168\u5206\u6790",8,U)]),_:1},8,["column","data","total"])]),_:1})])]),_:1})]),_:1}),e(P,{"model-value":s.visible,title:"\u5B89\u5168\u5206\u6790",width:"60%",onClose:o[1]||(o[1]=_=>s.visible=!1)},{default:t(()=>[n("p",A,[n("span",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A"+L(s.date),1),n("a",{class:"flex items-center",onClick:O},[e(M,null,{default:t(()=>[e(H)]),_:1}),I])]),e(k,{data:s.data,column:s.column,pagination:!1},null,8,["data","column"])]),_:1},8,["model-value"])],64)}}});export{te as default};