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

2 строки
2.2KB

  1. import C from"./ruleFormCom.c8ba5663.js";import{r as V,c as v}from"./reviewMeeting.f4352c66.js";import{a4 as p,r as f,a5 as w,x as T,J as k,L as B,c as g,e as b,G as I,i as r,h as m,j as x,$ as E}from"./index.e8acbdf1.js";import N from"./avoidCom.d1f03e58.js";import"./expertStore.c69f1615.js";import"./addExpertDialog.6232620f.js";import"./index.a65c28e2.js";import"./unitManage.dc24f4ed.js";const P={__name:"RefillDialogCopy",props:p({detailData:Object,mettingDetail:Object},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:p(["refresh"],["update:modelValue"]),setup(n,{emit:R}){const u=f(),d=f(),i=f([{}]),s=w(n,"modelValue"),y=T();async function D(){u.value.handleParmas();const o={meetingId:y.query.id,avoidRule:d.value.getAvoidRule(),randomRules:u.value.handleParmas()},e=await V({meetingBasicInfo:{name:n.mettingDetail.meetingName,startTime:n.mettingDetail.startTime,endTime:n.mettingDetail.endTime},expertInviteRule:o}),t=o.randomRules.reduce((l,a)=>l+a.count,0);console.log(t),e.data.canInvite<t?E.confirm("\u5F53\u524D\u53EF\u9080\u8BF7\u4E13\u5BB6\u6570\u91CF\u4E0D\u8DB3\uFF0C\u662F\u5426\u7EE7\u7EED\u9080\u8BF7\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(async()=>{console.log("\u7EE7\u7EED"),await v(o),s.value=!1,c("refresh")}):(await v(o),s.value=!1,c("refresh"))}const c=R;return k(()=>s.value,(o,e)=>{if(o){const t=[];n.detailData.randomRules.forEach(l=>{let a={};l.formEditJson&&(a=JSON.parse(l.formEditJson)),t.push({...a,id:l.id})}),B(()=>{i.value=t,console.log(i),d.value.setNewData(n.detailData)})}}),(o,e)=>{const t=g("el-button"),l=g("el-dialog");return b(),I(l,{"model-value":s.value,title:"\u7EED\u62BD",width:"840px","destroy-on-close":"",onClose:e[2]||(e[2]=a=>s.value=!1)},{footer:r(()=>[m(t,{type:"primary",size:"small",onClick:D},{default:r(()=>e[3]||(e[3]=[x(" \u786E\u5B9A ")])),_:1}),m(t,{size:"small",onClick:e[1]||(e[1]=a=>s.value=!1)},{default:r(()=>e[4]||(e[4]=[x(" \u5173\u95ED ")])),_:1})]),default:r(()=>[m(C,{ref_key:"ruleFormComRef",ref:u,modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a)},null,8,["modelValue"]),m(N,{ref_key:"avoidConRef",ref:d},null,512)]),_:1},8,["model-value"])}}};export{P as default};