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
2.4KB

  1. import{l as j}from"./expertReview.d913012a.js";import{d as S,G as D,D as F,r as g,L as R,c as o,e as y,I as h,i as e,g as q,h as t,j as u,f as O,F as T,t as b,k as G,x as L}from"./index.32e76bb0.js";const U={class:"flex justify-center"},z=S({name:"leaveDialog"}),H=Object.assign(z,{props:{visible:{type:Boolean,default:!1,required:!0},data:{type:Object,default:void 0},title:{type:String,default:void 0}},emits:["close"],setup(s,{emit:x}){const w=D(F.userStore).userInfo,{proxy:I}=L(),n=s,c=x,m=g(),r=g({}),k={postscript:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BF7\u5047\u539F\u56E0",trigger:"blur"}]},C=async i=>{!i||await i.validate(async l=>{l&&(await j({...r.value,type:3,expertId:n.data.expertId||w.value.userId,meetingId:n.data.meetingId}),I.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),c("close",!0))})};return R(()=>n.visible,async i=>{i?console.log(n.data):(m.value.resetFields(),r.value={})}),(i,l)=>{var v;const f=o("el-form-item"),p=o("el-col"),V=o("el-input"),B=o("el-row"),N=o("el-form"),_=o("el-button"),$=o("el-dialog");return y(),h($,{"model-value":s.visible,title:n.title||`\u586B\u5199\u8BF7\u5047\u539F\u56E0-${(v=s.data)==null?void 0:v.meetingName}`,width:"600px","destroy-on-close":"",onClose:l[3]||(l[3]=d=>c("close"))},{footer:e(()=>[q("div",U,[t(_,{class:"ml-22",type:"primary",onClick:l[1]||(l[1]=d=>C(m.value))},{default:e(()=>[u(" \u63D0\u4EA4 ")]),_:1}),t(_,{onClick:l[2]||(l[2]=d=>c("close"))},{default:e(()=>[u(" \u5173\u95ED ")]),_:1})])]),default:e(()=>[t(N,{ref_key:"formRef",ref:m,model:r.value,rules:k,"label-width":"auto","label-suffix":":"},{default:e(()=>[t(B,null,{default:e(()=>{var d;return[(d=s.data)!=null&&d.connecter?(y(),O(T,{key:0},[t(p,{span:24},{default:e(()=>[t(f,{label:"\u8054\u7CFB\u4EBA"},{default:e(()=>{var a;return[u(b((a=s.data)==null?void 0:a.connecter),1)]}),_:1})]),_:1}),t(p,{span:24},{default:e(()=>[t(f,{label:"\u8054\u7CFB\u65B9\u5F0F"},{default:e(()=>{var a;return[u(b((a=s.data)==null?void 0:a.contact),1)]}),_:1})]),_:1})],64)):G("",!0),t(p,{span:24},{default:e(()=>[t(f,{label:"\u8BF7\u5047\u539F\u56E0",prop:"postscript"},{default:e(()=>[t(V,{modelValue:r.value.postscript,"onUpdate:modelValue":l[0]||(l[0]=a=>r.value.postscript=a),maxlength:"200",placeholder:"\u8BF7\u8F93\u5165","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]}),_:1})]),_:1},8,["model"])]),_:1},8,["model-value","title"])}}});export{H as default};