Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / todoDon.70413899.js
import{_ as K,r as d,aa as O,ae as A,C as J,e as p,D as Q,o as r,c as f,m as R,F as y,h as e,l as v,w as o,f as u,G as k,H as V,L as W,p as _,z as b,K as T,ab as B,n as X,v as Y,E as Z}from"./index.82404a61.js";import{m as ee}from"./waterloggedArea.273b7f92.js";import te from"./tableDalgo.85d0c1ee.js";import"./rules.4ab3a271.js";const ae={class:"water-analysis-page"},oe=["onClick"],le={class:"dialog-footer"},ne={__name:"todoDon",props:["params"],setup(F,{expose:M}){const{params:g}=F,{proxy:z}=Y();z.useDict("fund_source","unit_list");let l=d(!1),D=d(1);const j=d([{value:"\u5185\u6D9D\u70B9",key:"stName"},{value:"\u6E0D\u6C34\u5F00\u59CB\u65F6\u95F4",key:"startTime"},{value:"\u6E0D\u6C34\u7ED3\u675F\u65F6\u95F4",key:"endTime"},{value:"\u6E0D\u6C34\u65F6\u957F/h",key:"durationTime"},{value:"\u6700\u5C0F\u6C34\u6DF1",key:"minLevel"},{value:"\u6700\u5927\u6E0D\u6C34\u6DF1\u5EA6",key:"maxLevel"}]),w=d(),n=d({pageNum:1,pageSize:10,title:"",year:g.year});let E=O({tableData:[],tableDateTwo:"",tableLoading:!0}),{date:se,tableData:S,tableDateTwo:ie,tableLoading:x}=A(E);M({search:s=>{c(s)}});let C=d({});const c=async s=>{let{data:a,total:m}=await ee(s);S.value=a,n.value.totals=m,x.value=!1};function P(){l.value=!1,c(g)}function U(){w.value.submit()}function $(s){return Z.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${s.name}\uFF1F`).then(()=>window.open(s.url),()=>!1)}return J(()=>{c(g)}),(s,a)=>{const m=p("el-table-column"),L=p("el-tag"),I=p("el-table"),q=p("pagination"),h=p("el-button"),G=p("el-dialog"),H=Q("loading");return r(),f(k,null,[R("div",ae,[y((r(),v(I,{key:e(D),data:e(S),stripe:"","max-height":"500"},{default:o(()=>[u(m,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(r(!0),f(k,null,V(e(j),t=>(r(),v(m,{label:t.value,align:"center",prop:t.key,"show-overflow-tooltip":""},W({_:2},[t.key=="projectStatus"?{name:"default",fn:o(({row:i})=>[u(L,{round:"",type:i.projectStatus==1?"success":"error"},{default:o(()=>[_(b(i.projectStatus==1?"\u5DF2\u5B8C\u5DE5":"\u672A\u5B8C\u5DE5"),1)]),_:2},1032,["type"])]),key:"0"}:void 0,t.key=="loggingRemoveStatus"?{name:"default",fn:o(({row:i})=>[u(L,{round:"",type:i.loggingRemoveStatus==1?"success":"error"},{default:o(()=>[_(b(i.loggingRemoveStatus==1?"\u5DF2\u6D88\u9664":"\u672A\u6D88\u9664"),1)]),_:2},1032,["type"])]),key:"1"}:void 0,t.key=="targetPercent"?{name:"default",fn:o(({row:i})=>[(r(!0),f(k,null,V(i.fileSaveRequestList,N=>(r(),f("span",{onClick:ue=>$(N),style:{color:"#30dc7f"}},b(N.name),9,oe))),256))]),key:"2"}:void 0]),1032,["label","prop"]))),256))]),_:1},8,["data"])),[[H,e(x)]])]),y(u(q,{total:e(n).totals,page:e(n).pageNum,"onUpdate:page":a[0]||(a[0]=t=>e(n).pageNum=t),limit:e(n).pageSize,"onUpdate:limit":a[1]||(a[1]=t=>e(n).pageSize=t),onPagination:a[2]||(a[2]=t=>c(e(n)))},null,8,["total","page","limit"]),[[T,e(n).totals>0]]),u(G,{modelValue:e(l),"onUpdate:modelValue":a[4]||(a[4]=t=>B(l)?l.value=t:l=t),title:"\u6E0D\u6C34\u70B9\u5B8C\u5DE5\u8BB0\u5F55"+e(n).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:o(()=>[R("div",le,[y(u(h,{onClick:U,type:"primary"},{default:o(()=>[_("\u4FDD\u5B58")]),_:1},512),[[T,e(C).type=="2"]]),u(h,{onClick:a[3]||(a[3]=t=>B(l)?l.value=!1:l=!1)},{default:o(()=>[_("\u5173\u95ED")]),_:1})])]),default:o(()=>[e(l)?(r(),v(te,{ref_key:"tableDalgoRef",ref:w,onOnModalClose:P,typeList:e(C),key:e(D)},null,8,["typeList"])):X("",!0)]),_:1},8,["modelValue","title"])],64)}}},fe=K(ne,[["__scopeId","data-v-ca6de43f"]]);export{fe as default};