25개 이상의 토픽을 선택하실 수 없습니다. 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.2dc5e03a.js";import{d as S,C as q,B as F,r as g,J as R,c as o,e as y,G as D,i as t,g as O,h as l,j as u,f as T,F as G,t as b,k as J,q as U}from"./index.66d3f9b1.js";const z={class:"flex justify-center"},A=S({name:"leaveDialog"}),K=Object.assign(A,{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=q(F.userStore).userInfo,{proxy:C}=U(),n=s,m=x,f=g(),r=g({}),k={postscript:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BF7\u5047\u539F\u56E0",trigger:"blur"}]},I=async i=>{!i||await i.validate(async e=>{e&&(await j({...r.value,type:3,expertId:n.data.expertId||w.value.userId,meetingId:n.data.meetingId}),C.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),m("close",!0))})};return R(()=>n.visible,async i=>{i?console.log(n.data):(f.value.resetFields(),r.value={})}),(i,e)=>{var _;const c=o("el-form-item"),p=o("el-col"),V=o("el-input"),B=o("el-row"),N=o("el-form"),v=o("el-button"),$=o("el-dialog");return y(),D($,{"model-value":s.visible,title:n.title||`\u586B\u5199\u8BF7\u5047\u539F\u56E0-${(_=s.data)==null?void 0:_.meetingName}`,width:"600px","destroy-on-close":"",onClose:e[3]||(e[3]=d=>m("close"))},{footer:t(()=>[O("div",z,[l(v,{class:"ml-22",type:"primary",onClick:e[1]||(e[1]=d=>I(f.value))},{default:t(()=>e[4]||(e[4]=[u(" \u63D0\u4EA4 ")])),_:1}),l(v,{onClick:e[2]||(e[2]=d=>m("close"))},{default:t(()=>e[5]||(e[5]=[u(" \u5173\u95ED ")])),_:1})])]),default:t(()=>[l(N,{ref_key:"formRef",ref:f,model:r.value,rules:k,"label-width":"auto","label-suffix":":"},{default:t(()=>[l(B,null,{default:t(()=>{var d;return[(d=s.data)!=null&&d.connecter?(y(),T(G,{key:0},[l(p,{span:24},{default:t(()=>[l(c,{label:"\u8054\u7CFB\u4EBA"},{default:t(()=>{var a;return[u(b((a=s.data)==null?void 0:a.connecter),1)]}),_:1})]),_:1}),l(p,{span:24},{default:t(()=>[l(c,{label:"\u8054\u7CFB\u65B9\u5F0F"},{default:t(()=>{var a;return[u(b((a=s.data)==null?void 0:a.contact),1)]}),_:1})]),_:1})],64)):J("",!0),l(p,{span:24},{default:t(()=>[l(c,{label:"\u8BF7\u5047\u539F\u56E0",prop:"postscript"},{default:t(()=>[l(V,{modelValue:r.value.postscript,"onUpdate:modelValue":e[0]||(e[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{K as default};