Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / todoDon.1a1132a9.js
import{_ as O,r as f,aa as Y,ae as Z,C as q,e as g,D as J,o as u,c as b,m as I,F as L,h as t,l as T,w as n,f as i,G as h,H as N,L as Q,p,z as C,K as E,n as W,ab as X,E as ee,v as te}from"./index.82404a61.js";import{a as ae,d as le}from"./naturalWaterArea.e895856c.js";import{F as oe}from"./tenderReview.d767f761.js";import ne from"./tableDalgo.6deed10d.js";import"./rules.4ab3a271.js";const se={class:"water-analysis-page"},ie=["onClick"],re={class:"dialog-footer"},de={__name:"todoDon",props:["params"],setup(M,{expose:B}){const{params:y}=M,{proxy:R}=te();let d=f(!1),D=f(1);const F=f([{value:"\u8003\u6838\u5E74\u5EA6",key:"year"},{value:"\u518D\u751F\u6C34\u603B\u91CF",key:"zssTotalCount"},{value:"\u518D\u751F\u6C34\u5229\u7528\u91CF/t",key:"zssUseCount"},{value:"\u518D\u751F\u6C34\u5229\u7528\u7387%",key:"zzsUseRate"},{value:"\u518D\u751F\u6C34\u76EE\u6807\u5229\u7528\u7387%",key:"itemTarget"},{value:"\u518D\u751F\u6C34\u76EE\u6807\u5229\u7528\u91CF/t",key:"zssTargetAreaCount"},{value:"\u8FBE\u6807\u60C5\u51B5",key:"standardFlag"},{value:"\u4F50\u8BC1\u6750\u6599",key:"attachFileList"}]),w=f(),s=f({pageNum:1,pageSize:10,title:""});let U=Y({tableData:"",tableDateTwo:"",tableLoading:!0}),{date:ce,tableData:x,tableDateTwo:ue,tableLoading:z}=Z(U);B({search:a=>{_(a),D.value++}});let v=f({});const S=(a,l,c)=>{console.log("row",a),s.value.title=c,l==1||l==2?(v.value={...y,data:a,type:l,monitorDynamicTableTitleList:F.value},oe({refId:a.id,refType:"ZSSLYL"}).then(({data:k})=>{v.value.fileList1=k,d.value=!0})):l==3&&R.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664?").then(async()=>{$(a.id),getTableData()}).catch(()=>{})},$=async a=>{await ae(a),_(y)},_=async a=>{let{code:l,data:c,monitorDynamicTableTitleList:k,total:m}=await le(a);x.value=c,s.value.totals=m,z.value=!1};function V(){d.value=!1,_(y)}function P(){w.value.submit()}function j(a){return ee.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${a.name}\uFF1F`).then(()=>window.open(a.url),()=>!1)}return q(()=>{_(y)}),(a,l)=>{const c=g("el-table-column"),k=g("el-tag"),m=g("el-button"),A=g("el-table"),G=g("pagination"),H=g("el-dialog"),K=J("loading");return u(),b(h,null,[I("div",se,[L((u(),T(A,{key:t(D),data:t(x),stripe:"","max-height":"500"},{default:n(()=>[i(c,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(u(!0),b(h,null,N(t(F),e=>(u(),T(c,{label:e.value,align:"center",prop:e.key,"show-overflow-tooltip":""},Q({_:2},[e.key=="standardFlag"?{name:"default",fn:n(({row:o})=>[i(k,{round:"",type:o.standardFlag===""?"warning":o.standardFlag==="1"?"success":"error"},{default:n(()=>[p(C(o.standardFlag===""?"\u672A\u586B\u62A5":o.standardFlag==="1"?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"])]),key:"0"}:void 0,e.key=="itemTarget"?{name:"default",fn:n(({row:o})=>{var r;return[p(C((r=o.itemDataTypePerformanceEvaluateItemList[0])==null?void 0:r.itemTarget),1)]}),key:"1"}:void 0,e.key=="zssTargetAreaCount"?{name:"default",fn:n(({row:o})=>{var r;return[p(C((((r=o.itemDataTypePerformanceEvaluateItemList[0])==null?void 0:r.itemTarget)*o.zssTotalCount/100||0).toFixed(2)),1)]}),key:"2"}:void 0,e.key=="attachFileList"?{name:"default",fn:n(({row:o})=>[(u(!0),b(h,null,N(o.attachFileList,r=>(u(),b("span",{onClick:me=>j(r),style:{color:"#108ee9"}},C(r.name),9,ie))),256))]),key:"3"}:void 0]),1032,["label","prop"]))),256)),i(c,{fixed:"right",label:"\u64CD\u4F5C",width:"250",align:"center"},{default:n(({row:e})=>[i(m,{link:"",type:"primary",icon:"View",onClick:o=>S(e,1,"\u8BE6\u60C5")},{default:n(()=>[p("\u8BE6\u60C5")]),_:2},1032,["onClick"]),i(m,{link:"",icon:"Edit",type:"warning",onClick:o=>S(e,2,"\u4FEE\u6539")},{default:n(()=>[p("\u4FEE\u6539")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[K,t(z)]])]),L(i(G,{total:t(s).totals,page:t(s).pageNum,"onUpdate:page":l[0]||(l[0]=e=>t(s).pageNum=e),limit:t(s).pageSize,"onUpdate:limit":l[1]||(l[1]=e=>t(s).pageSize=e),onPagination:l[2]||(l[2]=e=>_(t(s)))},null,8,["total","page","limit"]),[[E,t(s).totals>0]]),i(H,{modelValue:t(d),"onUpdate:modelValue":l[3]||(l[3]=e=>X(d)?d.value=e:d=e),title:"\u518D\u751F\u6C34\u5229\u7528\u7387"+t(s).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:n(()=>[I("div",re,[L(i(m,{onClick:P,type:"primary"},{default:n(()=>[p("\u4FDD\u5B58")]),_:1},512),[[E,t(v).type=="2"]]),i(m,{onClick:V},{default:n(()=>[p("\u5173\u95ED")]),_:1})])]),default:n(()=>[t(d)?(u(),T(ne,{ref_key:"tableDalgoRef",ref:w,onOnModalClose:V,typeList:t(v),key:t(D)},null,8,["typeList"])):W("",!0)]),_:1},8,["modelValue","title"])],64)}}},ke=O(de,[["__scopeId","data-v-53f6ad85"]]);export{ke as default};