Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / todoDon.67d2472d.js
import{_ as Q,r as f,aa as W,ae as X,C as Y,e as _,D as ee,o as d,c as y,m as E,F as x,h as n,l as D,w as o,f as r,G as C,H as B,L as te,p as c,z as v,K as $,ab as z,n as ae,v as le,E as ne}from"./index.82404a61.js";import{a as oe,d as se}from"./prevention.b5b1f2ff.js";import{F as ie}from"./tenderReview.d767f761.js";import de from"./tableDalgo.2303e887.js";import"./rules.4ab3a271.js";const re={class:"water-analysis-page"},ue=["onClick"],ce={class:"dialog-footer"},pe={__name:"todoDon",props:["params"],setup(R,{expose:U}){const{params:F}=R,{proxy:T}=le();T.useDict("fund_source","unit_list");let s=f(!1),h=f(1);const L=f([]);f("");const S=f(),i=f({pageNum:1,pageSize:10,title:""});let j=W({tableData:"",tableDateTwo:"",tableLoading:!0}),{tableData:w,tableLoading:M}=X(j);const V=l=>{k(l),h.value++};U({search:V});let b=f({});const I=(l,a,u)=>{i.value.title=u,a==1||a==2?(b.value={...F,data:l,type:a,monitorDynamicTableTitleList:L.value,iSstandardFlag:O(l.realMB,l.targetMB)},ie({refId:l.performanceEvaluateId,refType:"CSFHBZ"}).then(({data:g})=>{b.value.fileList1=g,s.value=!0})):a==3&&T.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664?").then(async()=>{G(l.performanceEvaluateId),getTableData()}).catch(()=>{})},G=async l=>{await oe(l),V(p)},k=async l=>{let{code:a,data:u,monitorDynamicTableTitleList:g,total:m}=await se(l);w.value=u,i.value.totals=m,L.value=g,M.value=!1};function H(){s.value=!1,k(F)}function P(){S.value.submit()}function K(l){return ne.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${l.name}\uFF1F`).then(()=>window.open(l.url),()=>!1)}function O(l,a){return l*1-a*1>0}return Y(()=>{k(F)}),(l,a)=>{const u=_("el-table-column"),g=_("el-tag"),m=_("el-button"),Z=_("el-table"),q=_("pagination"),A=_("el-dialog"),J=ee("loading");return d(),y(C,null,[E("div",re,[x((d(),D(Z,{key:n(h),data:n(w),stripe:"","max-height":"500"},{default:o(()=>[r(u,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(d(!0),y(C,null,B(n(L),e=>(d(),D(u,{label:e.value,align:"center",prop:e.key,"show-overflow-tooltip":""},te({default:o(()=>[(d(!0),y(C,null,B(e.titleGroup,t=>(d(),D(u,{label:t.value,prop:t.key,align:"center",width:"200"},null,8,["label","prop"]))),256))]),_:2},[e.key=="standardFlag"?{name:"default",fn:o(({row:t})=>[r(g,{round:"",type:t.standardFlag===""?"warning":t.standardFlag===1?"success":"error"},{default:o(()=>[c(v(t.standardFlag===""?"\u672A\u586B\u62A5":t.standardFlag===1?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"])]),key:"0"}:void 0,e.key=="attachFileList"?{name:"default",fn:o(({row:t})=>[(d(!0),y(C,null,B(t==null?void 0:t.attachFileList,N=>(d(),y("span",{style:{color:"#108ee9"},onClick:fe=>K(N)},v(N.name),9,ue))),256))]),key:"1"}:void 0,e.key=="year"?{name:"default",fn:o(({row:t})=>[c(v(t.year),1)]),key:"2"}:void 0,e.key=="updateBy"?{name:"default",fn:o(({row:t})=>[c(v(t.updateBy),1)]),key:"3"}:void 0,e.key=="updateTime"?{name:"default",fn:o(({row:t})=>[c(v(t.updateTime),1)]),key:"4"}:void 0]),1032,["label","prop"]))),256)),r(u,{fixed:"right",label:"\u64CD\u4F5C",width:"250",align:"center"},{default:o(({row:e})=>[r(m,{link:"",type:"primary",icon:"View",onClick:t=>I(e,1,"\u8BE6\u60C5")},{default:o(()=>[c("\u8BE6\u60C5")]),_:2},1032,["onClick"]),r(m,{link:"",icon:"Edit",type:"warning",onClick:t=>I(e,2,"\u4FEE\u6539")},{default:o(()=>[c("\u4FEE\u6539")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[J,n(M)]])]),x(r(q,{total:n(i).totals,page:n(i).pageNum,"onUpdate:page":a[0]||(a[0]=e=>n(i).pageNum=e),limit:n(i).pageSize,"onUpdate:limit":a[1]||(a[1]=e=>n(i).pageSize=e),onPagination:a[2]||(a[2]=e=>k(n(i)))},null,8,["total","page","limit"]),[[$,n(i).totals>0]]),r(A,{modelValue:n(s),"onUpdate:modelValue":a[4]||(a[4]=e=>z(s)?s.value=e:s=e),title:"\u5185\u6D9D\u9632\u6CBB\u6807\u51C6"+n(i).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:o(()=>[E("div",ce,[x(r(m,{onClick:P,type:"primary"},{default:o(()=>[c("\u4FDD\u5B58")]),_:1},512),[[$,n(b).type=="2"]]),r(m,{onClick:a[3]||(a[3]=e=>z(s)?s.value=!1:s=!1)},{default:o(()=>[c("\u5173\u95ED")]),_:1})])]),default:o(()=>[n(s)?(d(),D(de,{ref_key:"tableDalgoRef",ref:S,onOnModalClose:H,typeList:n(b),key:n(h)},null,8,["typeList"])):ae("",!0)]),_:1},8,["modelValue","title"])],64)}}},be=Q(pe,[["__scopeId","data-v-cbf75e94"]]);export{be as default};