Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / module.5bc237f1.js
import{h as G,i as O}from"./waterloggedArea.273b7f92.js";import{_ as q,r as m,am as J,aa as K,ae as Q,C as W,e as c,D as X,o as r,c as f,m as Z,F as ee,h as n,l as y,w as a,f as s,G as b,H as S,L as ae,n as te,z as V,p as _,ab as le,v as oe,E as ne}from"./index.82404a61.js";const se={class:"water-analysis-page"},ie=["onClick"],re=["onClick"],ce={__name:"module",props:["params"],setup(F,{expose:N,emit:T}){const{params:v}=F,{proxy:C}=oe();C.useDict("fund_source","unit_list");let L=m(1);const d=m(!1),B=m([{value:"\u8003\u6838\u5E74\u4EFD",key:"examineYear"},{value:"\u6D88\u9664\u4E2A\u6570",key:"removeNum"},{value:"\u603B\u6570",key:"totalNum"},{value:"\u6D88\u9664\u6BD4\u4F8B%",key:"actualPercent"},{value:"\u76EE\u6807%",key:"targetPercent"},{value:"\u8FBE\u6807\u60C5\u51B5",key:"reachStandard"},{value:"\u4F50\u8BC1\u6750\u6599",key:"fileList"}]),E=m({Authorization:"Bearer "+J()}),i=m({pageNum:1,pageSize:10,title:"",fileList:[]});let $=K({tableData:"",tableDateTwo:"",tableLoading:!0}),{date:de,tableData:w,tableDateTwo:ue,tableLoading:x}=Q($);N({search:e=>{g(e),L.value++}});const z=(e,t,u)=>{T("searchClick",{data:e,type:1})},g=async e=>{let{code:t,data:u,monitorDynamicTableTitleList:k,total:p}=await G(e);w.value=u,i.value.totals=p,x.value=!1};function D(e){return ne.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${e.name}\uFF1F`).then(()=>window.open(e.url),()=>!1)}function P(e){d.value=!0,i.value=e}function M(){let e=[];i.value.fileList.forEach(t=>{t.hasOwnProperty("response")?(t.response.data.refType="water_logging",e.push(t.response.data)):e.push(t)}),i.value.fileList=e,O({...i.value,...v}).then(()=>{C.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),d.value=!1,getDataList()})}function R(){g(v),d.value=!1}return W(()=>{g(v)}),(e,t)=>{const u=c("el-table-column"),k=c("el-tag"),p=c("el-button"),H=c("el-table"),I=c("el-upload"),U=c("el-form-item"),Y=c("el-form"),j=c("el-dialog"),A=X("loading");return r(),f(b,null,[Z("div",se,[ee((r(),y(H,{key:n(L),data:n(w),stripe:"","max-height":"500"},{default:a(()=>[s(u,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(r(!0),f(b,null,S(n(B),l=>(r(),y(u,{label:l.value,align:"center",prop:l.key,"show-overflow-tooltip":""},ae({_:2},[l.key=="fileList"?{name:"default",fn:a(({row:o})=>[o!=null&&o.id?(r(),f("span",{key:0,style:{color:"#108ee9",cursor:"pointer"},onClick:h=>P(o)},"\u6587\u4EF6\u4E0A\u4F20",8,ie)):te("",!0),(r(!0),f(b,null,S(o.fileList,h=>(r(),f("p",{onClick:_e=>D(h),style:{color:"#108ee9",cursor:"pointer"}},V(h.name),9,re))),256))]),key:"0"}:void 0,l.key=="reachStandard"?{name:"default",fn:a(({row:o})=>[o.reachStandard==""?(r(),y(k,{key:0,type:"warning"},{default:a(()=>[_("\u672A\u586B\u62A5")]),_:1})):(r(),y(k,{key:1,type:o.reachStandard===1?"success":"error"},{default:a(()=>[_(V(o.reachStandard===1?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"]))]),key:"1"}:void 0]),1032,["label","prop"]))),256)),s(u,{fixed:"right",label:"\u64CD\u4F5C",width:"250",align:"center"},{default:a(({row:l})=>[s(p,{link:"",type:"primary",icon:"View",onClick:o=>z(l)},{default:a(()=>[_("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[A,n(x)]])]),s(j,{modelValue:n(d),"onUpdate:modelValue":t[1]||(t[1]=l=>le(d)?d.value=l:null),title:n(i).examineYear+"\u5E74\u6750\u6599\u4E0A\u4F20","modal-append-to-body":!1,"close-on-click-modal":!1,width:"30%"},{footer:a(()=>[s(p,{onClick:M,type:"primary"},{default:a(()=>[_("\u4FDD\u5B58")]),_:1}),s(p,{onClick:R},{default:a(()=>[_("\u5173\u95ED")]),_:1})]),default:a(()=>[s(Y,{"label-width":"auto",rules:e.projectEstimateRules,inline:"",ref:"ruleForm",model:n(i)},{default:a(()=>[s(U,{label:"\u6587\u4EF6\u4E0A\u4F20:",prop:"fileList"},{default:a(()=>[s(I,{"file-list":n(i).fileList,"onUpdate:file-list":t[0]||(t[0]=l=>n(i).fileList=l),class:"upload-demo",action:"/prod-api/system/upload",headers:n(E),multiple:"","on-preview":D},{default:a(()=>[s(p,{size:"mini",type:"primary"},{default:a(()=>[_("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","headers"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["modelValue","title"])],64)}}},ye=q(ce,[["__scopeId","data-v-fb1e7b4a"]]);export{ye as default};