Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / tableDalgo.85d0c1ee.js
import{b as $,c as z,d as q}from"./waterloggedArea.273b7f92.js";import{_ as A,r as p,am as I,C as G,e as r,o as d,c as g,m as O,f as a,w as s,h as o,G as j,H as V,l as L,p as _,z as R,ab as J,v as K,E as Q}from"./index.82404a61.js";import{p as W}from"./rules.4ab3a271.js";const X={class:"water-analysis-page"},Z={class:"top"},ee={__name:"tableDalgo",props:["typeList"],setup(v,{expose:Y,emit:m}){const{typeList:c}=v,{proxy:f}=K(),M=p({Authorization:"Bearer "+I()});Y({submit:D,closed:F,resetFiled:S});const y=p([]);let t=p({});const u=p([]);function k(n){return Q.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${n.name}\uFF1F`).then(()=>window.open(n.url),()=>!1)}function D(){f.$refs.ruleForm.validate(n=>{n&&(t.value.fileSaveRequestList=[],u.value.forEach(e=>{e.hasOwnProperty("response")?(e.response.data.refType="waterlogging_engineering",e.response.data.refField="waterlogging_engineeringNode",t.value.fileSaveRequestList.push(e.response.data)):t.value.fileSaveRequestList.push(e)}),c.type==4?$(t.value).then(({code:e})=>{e==200&&m("onModalClose")}):z(t.value).then(({code:e})=>{e==200&&m("onModalClose")}))})}function N(){u.value=c.fileList1,t.value=c,cons,f.$refs.ruleForm.resetFields(),T()}function S(){f.$refs.ruleForm.resetFields(),u.value=[]}function F(){m("onModalClose")}async function T(){let{data:n}=await q();y.value=n}function x({stCode:n,loggingRemoveStatus:e}){t.value.stCode=n,t.value.loggingRemoveStatus=e||0}function B({projectNo:n,projectStatus:e}){t.value.projectNo=n,t.value.projectStatus=e}return G(()=>{N()}),(n,e)=>{const w=r("el-option"),b=r("el-select"),i=r("el-form-item"),h=r("el-tag"),C=r("el-date-picker"),E=r("el-button"),H=r("el-upload"),U=r("el-input"),P=r("el-form");return d(),g("div",X,[O("div",Z,[a(P,{"label-width":"auto",rules:o(W),inline:"",ref:"ruleForm",model:o(t),disabled:v.typeList.type==1},{default:s(()=>[a(i,{label:"\u5185\u6D9D\u70B9:",style:{width:"45%"},prop:"stCode"},{default:s(()=>[a(b,{"value-key":"stCode",onChange:x,clearable:"",modelValue:o(t).stCode,"onUpdate:modelValue":e[0]||(e[0]=l=>o(t).stCode=l),class:"m-2",placeholder:"\u8BF7\u9009\u62E9\u5185\u6D9D\u70B9",size:"mini",style:{width:"100%"}},{default:s(()=>[(d(!0),g(j,null,V(o(t).loggingList,l=>(d(),L(w,{key:l.stCode,label:l.stName,value:l.stCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"\u5173\u8054\u9879\u76EE:",style:{width:"45%"},prop:"projectNo"},{default:s(()=>[a(b,{clearable:"",modelValue:o(t).projectNo,"onUpdate:modelValue":e[1]||(e[1]=l=>o(t).projectNo=l),class:"m-2",placeholder:"\u8BF7\u9009\u62E9\u5173\u8054\u9879\u76EE",size:"mini",style:{width:"100%"},onChange:e[2]||(e[2]=l=>B(n.item)),"value-key":"projectNo"},{default:s(()=>[(d(!0),g(j,null,V(o(y),l=>(d(),L(w,{key:l.projectNo,label:l.projectName,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"\u5185\u6D9D\u70B9\u72B6\u6001:",style:{width:"45%"},prop:"loggingRemoveStatus"},{default:s(()=>[a(h,{round:"",type:o(t).loggingRemoveStatus==0?"error":"success"},{default:s(()=>[_(R(o(t).loggingRemoveStatus==0?"\u672A\u6D88\u9664":"\u5DF2\u6D88\u9664"),1)]),_:1},8,["type"])]),_:1}),a(i,{label:"\u9879\u76EE\u72B6\u6001:",style:{width:"45%"},prop:"projectStatus"},{default:s(()=>[a(h,{round:"",type:o(t).projectStatus==0?"error":"success"},{default:s(()=>[_(R(o(t).projectStatus==0?"\u672A\u5B8C\u5DE5":"\u5DF2\u5B8C\u5DE5"),1)]),_:1},8,["type"])]),_:1}),a(i,{label:"\u5185\u6D9D\u70B9\u6D88\u9664\u65F6\u95F4:",style:{width:"45%"},prop:"loggingRemoveTime"},{default:s(()=>[a(C,{style:{width:"100%"},modelValue:o(t).loggingRemoveTime,"onUpdate:modelValue":e[3]||(e[3]=l=>o(t).loggingRemoveTime=l),type:"date",placeholder:"\u8BF7\u9009\u62E9\u5185\u6D9D\u70B9\u6D88\u9664\u65F6\u95F4",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),a(i,{label:"\u9879\u76EE\u5B8C\u5DE5\u65F6\u95F4:",style:{width:"45%"},prop:"projectCompleteTime"},{default:s(()=>[a(C,{style:{width:"100%"},modelValue:o(t).projectCompleteTime,"onUpdate:modelValue":e[4]||(e[4]=l=>o(t).projectCompleteTime=l),type:"date",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE\u5B8C\u5DE5\u65F6\u95F4",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),a(i,{label:"\u9644\u4EF6:",style:{width:"93%"}},{default:s(()=>[a(H,{"file-list":o(u),"onUpdate:file-list":e[5]||(e[5]=l=>J(u)?u.value=l:null),class:"upload-demo",style:{width:"100%"},action:"/prod-api/system/upload",headers:o(M),multiple:"","on-preview":k,"before-remove":n.beforeRemove},{default:s(()=>[a(E,{type:"primary"},{default:s(()=>[_("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","headers","before-remove"])]),_:1}),a(i,{label:"\u5907\u6CE8",prop:"remark",style:{width:"95%"}},{default:s(()=>[a(U,{modelValue:o(t).remark,"onUpdate:modelValue":e[6]||(e[6]=l=>o(t).remark=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["rules","model","disabled"])])])}}},ae=A(ee,[["__scopeId","data-v-4591a9c7"]]);export{ae as default};