You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
3.1KB

  1. var L=Object.defineProperty;var x=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(l,o,e)=>o in l?L(l,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[o]=e,j=(l,o)=>{for(var e in o||(o={}))N.call(o,e)&&w(l,e,o[e]);if(x)for(var e of x(o))U.call(o,e)&&w(l,e,o[e]);return l};var g=(l,o,e)=>new Promise((v,m)=>{var _=s=>{try{d(e.next(s))}catch(n){m(n)}},r=s=>{try{d(e.throw(s))}catch(n){m(n)}},d=s=>s.done?v(s.value):Promise.resolve(s.value).then(_,r);d((e=e.apply(l,o)).next())});import{_ as B,d as S,D as V,r as h,L as $,c as u,e as q,I as z,j as a,i as p,k as F,u as f,g as I,x as O}from"./index.eb58a47a.js";import{j as P,h as E,i as J,b as M,f as K,g as T}from"./uploadAction.1eae5e63.js";import{u as A}from"./inquirySheetManage.1e7aa01f.js";const G=I("div",{class:"el-upload__tip"},"\u652F\u6301.png\u3001.jpg\u3001.jpeg\u3001.pdf\u3001.zip\u3001.rar",-1),H=S({name:"upLoadReplayDialog"}),Q=Object.assign(H,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(l,{emit:o}){const e=V.dictStore.uploadUrl,{proxy:v}=O(),m=l,_=o,r=h({replyForm:[]}),d=h(),s=n=>g(this,null,function*(){!n||(yield n.validate(t=>g(this,null,function*(){var c,y;if(t){const b={formId:(c=m.data)==null?void 0:c.id,replyForm:((y=r.value.replyForm)==null?void 0:y.length)&&JSON.stringify(T(r.value.replyForm))||void 0};yield A(j({},b)),v.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),_("close",!0)}})))});return $(()=>m.visible,n=>g(this,null,function*(){n&&(r.value.replyForm=[])})),(n,t)=>{const c=u("el-button"),y=u("el-upload"),b=u("el-form-item"),k=u("el-col"),C=u("el-row"),D=u("el-form"),R=u("el-dialog");return q(),z(R,{"model-value":l.visible,title:"\u4E0A\u4F20\u56DE\u590D\u5355",width:"600px","destroy-on-close":"",onClose:t[3]||(t[3]=i=>_("close"))},{footer:a(()=>[p(c,{type:"primary",onClick:t[1]||(t[1]=i=>s(d.value))},{default:a(()=>[F(" \u63D0\u4EA4 ")]),_:1}),p(c,{onClick:t[2]||(t[2]=i=>_("close"))},{default:a(()=>[F(" \u5173\u95ED ")]),_:1})]),default:a(()=>[p(D,{ref_key:"formRef",ref:d,model:r.value,"label-width":"120px","label-suffix":":"},{default:a(()=>[p(C,null,{default:a(()=>[p(k,{span:24},{default:a(()=>[p(b,{label:"\u56DE\u590D\u5355",prop:"replyForm",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u6587\u4EF6",trigger:"blur"}]},{default:a(()=>[p(y,{"file-list":r.value.replyForm,"onUpdate:fileList":t[0]||(t[0]=i=>r.value.replyForm=i),class:"w-full",action:f(e),limit:1,"on-exceed":f(P),"on-success":i=>f(E)(i,r.value.replyForm,!0),"on-error":f(J),"on-preview":f(M),"before-upload":i=>f(K)(i,{types:["pdf","png","jpeg","jpg","zip","rar"]}),accept:".pdf,.png,.jpeg,.zip,.rar"},{tip:a(()=>[G]),default:a(()=>[p(c,{type:"primary"},{default:a(()=>[F("\u4E0A\u4F20\u9644\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-exceed","on-success","on-error","on-preview","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}}),ee=B(Q,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/inquirySheetManage/componets/upLoadReplayDialog.vue"]]);export{ee as default};