Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 строки
2.4KB

  1. import{g as y}from"./uploadAction.544df052.js";import{d as F,D as S,r as m,L as b,c as l,e as x,I as k,i as r,h as f,j as _,g as n,k as L,x as O}from"./index.121be81f.js";import{p as R}from"./index.c4a348b4.js";const V=n("div",null,[n("p",null,"\u6839\u636E\u300A\u6D59\u6C5F\u7701\u7535\u5B50\u653F\u52A1\u91CD\u5927\u5E94\u7528\u9879\u76EE\u8054\u5BA1\u300B\u8981\u6C42\uFF0C\u63D0\u4EA4\u9884\u5BA1\u540E\uFF1A"),n("p",null,"1\u3001\u5E02\u7EA7\u5927\u4E8E1000\u4E07\u5143\u7684\u91CD\u5927\u9879\u76EE\u5C06\u7531\u7701\u7EA7\u6570\u6539\u7275\u5934\u90E8\u95E8\u53CA\u4E1A\u52A1\u4E3B\u7BA1\u5355\u4F4D\u8FDB\u884C\u8054\u5BA1"),n("p",null,"2\u3001\u533A\u53BF\u7533\u62A5\u9879\u76EE\u5C06\u7531\u5E02\u7EA7\u6570\u6539\u7275\u5934\u90E8\u95E8\u53CA\u4E1A\u52A1\u4E3B\u7BA1\u5355\u4F4D\u8FDB\u884C\u8054\u5BA1\uFF0C\u5927\u4E8E500\u4E07\u5143\u7684\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u540E\u4F1A\u63D0\u4EA4\u7701\u91CC\u8FDB\u884C\u5907\u6848\u3002")],-1);const N=F({name:"approvalDialog"}),Q=Object.assign(N,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(p,{emit:g}){const{proxy:v}=O(),B=S.dictStore.uploadUrl,s=p,u=g,a=m(!1),i=m({higherLineSuperOrgReviewComments:[]}),D={higherLineSuperOrgReviewComments:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},h=m(),w=async t=>{if(!t){d();return}t.validate(async e=>{e&&d()})},d=async()=>{var t,e;a.value=!0;try{await R({projectInfo:{...i.value,higherLineSuperOrgReviewComments:((e=(t=i.value)==null?void 0:t.higherLineSuperOrgReviewComments)==null?void 0:e.length)&&JSON.stringify(y(i.value.higherLineSuperOrgReviewComments))||void 0,id:s.data.id}}),v.$message.success("\u53D1\u8D77\u6210\u529F\uFF01"),a.value=!1,u("close",!0)}catch{a.value=!1}};return b(()=>s.visible,async t=>{t?console.log("props.data",s.data):i.value={higherLineSuperOrgReviewComments:[]}}),(t,e)=>{const c=l("el-button"),$=l("el-upload"),j=l("el-form-item"),T=l("el-form"),C=l("el-dialog");return x(),k(C,{"model-value":p.visible,title:"\u9884\u5BA1\u7533\u62A5",width:"600px","destroy-on-close":"",onClose:e[3]||(e[3]=o=>u("close"))},{footer:r(()=>[f(c,{type:"primary",loading:a.value,onClick:e[1]||(e[1]=o=>w(h.value))},{default:r(()=>[_(" \u63D0\u4EA4 ")]),_:1},8,["loading"]),f(c,{onClick:e[2]||(e[2]=o=>u("close"))},{default:r(()=>[_(" \u5173\u95ED ")]),_:1})]),default:r(()=>[V,L("",!0)]),_:1},8,["model-value"])}}});export{Q as default};