Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / completionstatus.a7e1253f.js
import{_ as de,M as pe,r as m,aa as me,ae as ce,am as fe,e as u,D as K,o as c,c as w,F as x,K as L,h as t,f as e,w as o,k as _e,G as U,H as q,l as S,p as f,ab as z,z as ve,m as be,v as ge,E as ye}from"./index.82404a61.js";import{p as he,a as Te,b as we,c as xe,F as ke}from"./ManagingPerformance.d78c089a.js";const Ve={class:"app-container"},Fe=["onClick","title"],Se={class:"dialog-footer"},Ce=pe({name:"completionstatus"}),De=Object.assign(Ce,{setup(Ne){const{proxy:_}=ge(),{examine_file_type:C,examine_type:I}=_.useDict("examine_file_type","examine_type");console.log(I,"examine_file_type");const T=m(!1),d=m(!1),k=m(!0),D=m(!0),N=m(0),V=m(""),M=m([]),v=m([]),r=me({publishTime:"",form:{},queryParams:{pageNum:1,pageSize:10,examineFileType:"",regulationName:"",examineType:"lfjcxjz",beginTime:void 0,endTime:void 0},rules:{regulationName:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236",trigger:"blur"}],publishTime:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",trigger:"blur"}]}}),{queryParams:i,form:n,rules:Q}=ce(r);function R(){n.value={regulationName:void 0,examineFileType:void 0,publishTime:void 0,fileSaveRequestList:[],examineType:"lfjcxjz"},_.resetForm("ruleForm"),v.value=[]}function H(){R(),T.value=!1,d.value=!0,V.value="\u65B0\u589E\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236"}function Y(){r.publishTime?(i.value.beginTime=r.publishTime[0],i.value.endTime=r.publishTime[1]):(i.value.beginTime="",i.value.endTime=""),i.value.pageNum=1,b()}function O(){r.publishTime=[],_.resetForm("queryRef"),Y()}const G=m({Authorization:"Bearer "+fe()});function $(s){return console.log(s),ye.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${s.name}\uFF1F`).then(()=>window.open(s.url),()=>!1)}const b=async()=>{D.value=!0,r.publishTime&&(i.value.beginTime=r.publishTime[0],i.value.endTime=r.publishTime[1]);const s=await he(i.value);M.value=s.data,N.value=s.total,D.value=!1};async function J(){_.$refs.ruleForm.validate(s=>{s&&(v.value.forEach(a=>{a.hasOwnProperty("response")?(a.response.data.refType="lfjcxjz",n.value.fileSaveRequestList.push(a.response.data)):n.value.fileSaveRequestList.push(a)}),n.value.id!=null?Te(n.value).then(()=>{console.log(n.value,"form.value"),_.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),d.value=!1,b()}):we(n.value).then(()=>{_.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),d.value=!1,b()}))})}function W(s){T.value=!1,d.value=!0,V.value="\u4FEE\u6539\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236",n.value={...s},n.value.fileSaveRequestList=[],v.value=s.fileList}function X(s){console.log(111),_.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F").then(async()=>{const a=await xe(s.id);(a==null?void 0:a.code)===200&&(_.$modal.msgSuccess("\u64CD\u4F5C\u6210\u529F\uFF01"),b())}).catch(()=>{})}function Z(s){V.value="\u67E5\u770B\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236",T.value=!0,d.value=!0,n.value={...s},v.value=[],n.value.fileSaveRequestList=[],ke({refId:s.id,refType:"lfjcxjz"}).then(a=>{console.log(a.data,"response.data"),a.data.forEach(F=>{v.value.push(F)})})}function ee(){d.value=!1,R(),b()}return b(),(s,a)=>{const F=u("el-input"),g=u("el-form-item"),j=u("el-option"),P=u("el-select"),B=u("el-date-picker"),p=u("el-button"),E=u("el-form"),le=u("el-col"),ae=u("right-toolbar"),A=u("el-row"),y=u("el-table-column"),te=u("dict-tag"),oe=u("el-table"),ne=u("pagination"),ie=u("el-upload"),se=u("el-dialog"),ue=K("hasPermi"),re=K("loading");return c(),w("div",Ve,[x(e(E,{model:t(i),ref:"queryRef",inline:!0},{default:o(()=>[e(g,{label:"\u540D\u79F0:",prop:"regulationName"},{default:o(()=>[e(F,{modelValue:t(i).regulationName,"onUpdate:modelValue":a[0]||(a[0]=l=>t(i).regulationName=l),placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57",clearable:"",onKeyup:_e(Y,["enter"]),style:{width:"240px"}},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236:",prop:"examineFileType"},{default:o(()=>[e(P,{clearable:"",modelValue:t(i).examineFileType,"onUpdate:modelValue":a[1]||(a[1]=l=>t(i).examineFileType=l),class:"m-2",placeholder:"\u8BF7\u9009\u62E9",size:"mini"},{default:o(()=>[(c(!0),w(U,null,q(t(C),l=>(c(),S(j,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,{label:"\u53D1\u5E03\u65F6\u95F4",prop:"publishTime"},{default:o(()=>[e(B,{style:{width:"240px"},format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",modelValue:t(r).publishTime,"onUpdate:modelValue":a[2]||(a[2]=l=>t(r).publishTime=l),type:"daterange","unlink-panels":"","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(g,null,{default:o(()=>[e(p,{type:"primary",icon:"Search",onClick:Y},{default:o(()=>[f("\u641C\u7D22")]),_:1}),e(p,{icon:"Refresh",onClick:O},{default:o(()=>[f("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[L,t(k)]]),e(A,{gutter:10,class:"mb8"},{default:o(()=>[e(le,{span:1.5},{default:o(()=>[x((c(),S(p,{type:"primary",plain:"",icon:"Plus",onClick:H},{default:o(()=>[f("\u65B0\u589E")]),_:1})),[[ue,["system:post:add"]]])]),_:1},8,["span"]),e(ae,{showSearch:t(k),"onUpdate:showSearch":a[3]||(a[3]=l=>z(k)?k.value=l:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),x((c(),S(oe,{data:t(M),stripe:"","max-height":600,border:""},{default:o(()=>[e(y,{type:"index",width:"55",label:"\u5E8F\u53F7",fixed:"left"}),e(y,{label:"\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236",prop:"regulationName"}),e(y,{label:"\u7C7B\u578B",prop:"examineFileType","show-overflow-tooltip":""},{default:o(({row:l})=>[e(te,{options:t(C),value:l.examineFileType},null,8,["options","value"])]),_:1}),e(y,{label:"\u53D1\u5E03\u65F6\u95F4",prop:"publishTime"}),e(y,{label:"\u4FEE\u6539\u65F6\u95F4",prop:"updateTime"}),e(y,{label:"\u4FEE\u6539\u4EBA",prop:"updateBy"}),e(y,{label:"\u9644\u4EF6",prop:"fileList","show-overflow-tooltip":""},{default:o(({row:l})=>[(c(!0),w(U,null,q(l.fileList,h=>(c(),w("span",{style:{color:"rgb(16, 142, 233)"},onClick:Ye=>$(h),key:h.id,title:h.name},ve(h.name),9,Fe))),128))]),_:1}),e(y,{label:"\u64CD\u4F5C","show-overflow-tooltip":"",width:"200",fixed:"right"},{default:o(({row:l})=>[e(p,{link:"",icon:"View",type:"primary",onClick:h=>Z(l,"view")},{default:o(()=>[f("\u8BE6\u60C5")]),_:2},1032,["onClick"]),e(p,{link:"",icon:"Edit",type:"warning",onClick:h=>W(l,"edit")},{default:o(()=>[f("\u4FEE\u6539")]),_:2},1032,["onClick"]),e(p,{type:"danger",link:"",onClick:h=>X(l)},{default:o(()=>[f("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[re,t(D)]]),x(e(ne,{total:t(N),page:t(i).pageNum,"onUpdate:page":a[4]||(a[4]=l=>t(i).pageNum=l),limit:t(i).pageSize,"onUpdate:limit":a[5]||(a[5]=l=>t(i).pageSize=l),onPagination:b},null,8,["total","page","limit"]),[[L,t(N)>0]]),e(se,{title:t(V),modelValue:t(d),"onUpdate:modelValue":a[10]||(a[10]=l=>z(d)?d.value=l:null),width:"70%","close-on-click-modal":!1},{footer:o(()=>[be("div",Se,[x(e(p,{type:"primary",onClick:J},{default:o(()=>[f("\u4FDD \u5B58")]),_:1},512),[[L,!t(T)]]),e(p,{onClick:ee},{default:o(()=>[f("\u5173\u95ED")]),_:1})])]),default:o(()=>[e(E,{ref:"ruleForm",model:t(n),rules:t(Q),"label-width":"auto",disabled:t(T)},{default:o(()=>[e(A,null,{default:o(()=>[e(g,{label:"\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236:",prop:"regulationName",style:{width:"45%"}},{default:o(()=>[e(F,{modelValue:t(n).regulationName,"onUpdate:modelValue":a[6]||(a[6]=l=>t(n).regulationName=l),placeholder:"\u8BF7\u8F93\u5165\u7ACB\u6CD5\u53CA\u957F\u6548\u673A\u5236",clearable:""},null,8,["modelValue"])]),_:1}),e(g,{label:"\u7C7B\u578B:",prop:"examineFileType",style:{width:"45%"}},{default:o(()=>[e(P,{clearable:"",modelValue:t(n).examineFileType,"onUpdate:modelValue":a[7]||(a[7]=l=>t(n).examineFileType=l),class:"m-2",placeholder:"\u8BF7\u9009\u62E9",size:"mini",style:{width:"100%"}},{default:o(()=>[(c(!0),w(U,null,q(t(C),l=>(c(),S(j,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,{label:"\u53D1\u5E03\u65F6\u95F4:",prop:"publishTime",style:{width:"45%"}},{default:o(()=>[e(B,{style:{width:"100%"},clearable:"",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",modelValue:t(n).publishTime,"onUpdate:modelValue":a[8]||(a[8]=l=>t(n).publishTime=l),type:"date",placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(g,{label:"\u9644\u4EF6:",style:{width:"93%"}},{default:o(()=>[e(ie,{"file-list":t(v),"onUpdate:file-list":a[9]||(a[9]=l=>z(v)?v.value=l:null),class:"upload-demo",action:"/prod-api/system/upload",headers:t(G),multiple:"","on-preview":$},{default:o(()=>[e(p,{type:"primary"},{default:o(()=>[f("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","headers"])]),_:1})]),_:1})]),_:1},8,["model","rules","disabled"])]),_:1},8,["title","modelValue"])])}}}),qe=de(De,[["__scopeId","data-v-339da846"]]);export{qe as default};