OwerSelect-779763c9.js 1.6 KB

1
  1. import{_ as z,__tla as D}from"./Dialog-4c2de357.js";import{d as E,r as e,o as U,C as b,A as t,f as s,a as u,a2 as p,D as v,cO as A,J as H,H as J,K,_ as P,__tla as q}from"./index-286756b9.js";import{g as B,__tla as F}from"./index-c725f8b2.js";let y,G=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return F}catch{}})()]).then(async()=>{y=P(E({__name:"OwerSelect",emits:["confirmOwerSelect"],setup(I,{expose:h,emit:w}){const r=e(!1),x=e("\u9009\u62E9"),_=e(!1),O=e(""),V=e(["\u5F85\u9009\u62E9","\u5DF2\u9009\u62E9"]),k=e({key:"id",label:"nickname"}),S=w,o=e([]),l=e([]),C=e([]);h({open:async(n,a)=>{if(r.value=!0,O.value=n,a){_.value=!0;try{a.forEach(i=>{l.value.push(i.id)})}finally{_.value=!1}}C.value=[],o.value=await B()}});const d=()=>{const n=e([]);o.value.forEach(a=>{l.value.indexOf(a.id)>-1&&n.value.push(a)}),S("confirmOwerSelect",n),r.value=!1,l.value=[]};return(n,a)=>{const i=A,m=H,f=J,g=K,j=z;return U(),b(j,{title:u(x),modelValue:u(r),"onUpdate:modelValue":a[1]||(a[1]=c=>p(r)?r.value=c:null),width:"600px"},{default:t(()=>[s(i,{modelValue:u(l),"onUpdate:modelValue":a[0]||(a[0]=c=>p(l)?l.value=c:null),data:u(o),titles:u(V),props:u(k),"right-default-checked":[1]},null,8,["modelValue","data","titles","props"]),s(g,{justify:"end"},{default:t(()=>[s(f,{span:4},{default:t(()=>[s(m,{type:"primary",onClick:d},{default:t(()=>[v("\u786E\u8BA4")]),_:1})]),_:1}),s(f,{span:4},{default:t(()=>[s(m,{type:"primary",onClick:d},{default:t(()=>[v("\u53D6\u6D88")]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/contact/OwerSelect.vue"]])});export{G as __tla,y as default};