Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
3.5KB

  1. import{E as M}from"./index-29b4120c.js";import{E as P,a as _,r as b,$ as j,b as o,c as R,d as B,f as e,h as a,e as n,i as w,t as F,F as L,k as S}from"./index-dd5fae99.js";import{l as z}from"./projectStore-30136ff6.js";import{h as D}from"./moment-a9aaa855.js";const G=["onClick"],U={class:"flex justify-between items-center mb-16"},A=S({name:"safeOperationControl"}),Z=Object.assign(A,{setup(I){const{statusOptions:p}=P.dictStore.globalDicts||{},i=_({projectName:void 0}),m=b(),g=b(0),N=_([{label:"序号",type:"index",width:"80"},{label:"项目名称",key:"projectName",prop:"projectName"},{label:"申报单位",key:"buildOrg",prop:"buildOrg"},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName",width:"100"},{label:"预算年度",key:"projectYear",prop:"projectYear",width:"80"},{label:"项目状态",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:"操作",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:"等保",ms:"未完成"},{aqxm:"密评",ms:"未完成"}],column:[{label:"序号",type:"index",width:"60"},{label:"安全项目",key:"aqxm",prop:"aqxm"},{label:"描述",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"),k=o("el-row"),$=o("el-form"),x=o("el-card"),h=o("table-list"),q=o("Refresh"),E=o("el-icon"),H=o("el-dialog");return R(),B(L,null,[e(k,null,{default:a(()=>[e(r,{style:{"padding-right":"16px"},span:4},{default:a(()=>[e(M,{onGetTree:T})]),_:1}),e(r,{span:20},{default:a(()=>[n("div",null,[e(x,{class:"search mb-16"},{default:a(()=>[e($,{"label-suffix":":",model:i,size:"small"},{default:a(()=>[e(k,{gutter:16},{default:a(()=>[e(r,{span:8},{default:a(()=>[e(d,{label:"项目名称"},{default:a(()=>[e(c,{modelValue:i.projectName,"onUpdate:modelValue":t[0]||(t[0]=f=>i.projectName=f),placeholder:"请输入"},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("查询")])),_:1}),e(y,{onClick:Y},{default:a(()=>t[3]||(t[3]=[w("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(x,null,{header:a(()=>t[4]||(t[4]=[n("div",{class:"flex justify-between items-center"},[n("span",null,"项目列表")],-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:J=>V(f.row)},"安全分析",8,G)]),_:1},8,["column","data","total"])]),_:1})])]),_:1})]),_:1}),e(H,{"model-value":s.visible,title:"安全分析",width:"60%",onClose:t[1]||(t[1]=f=>s.visible=!1)},{default:a(()=>[n("p",U,[n("span",null,"检测时间:"+F(s.date),1),n("a",{class:"flex items-center",onClick:O},[e(E,null,{default:a(()=>[e(q)]),_:1}),t[5]||(t[5]=n("span",null,"查询检测",-1))])]),e(h,{data:s.data,column:s.column,pagination:!1},null,8,["data","column"])]),_:1},8,["model-value"])],64)}}});export{Z as default};