1 |
- import{_ as E,__tla as z}from"./Dialog-71bebaff.js";import{d as C,r as e,o as P,x as U,w as t,g as s,a as u,P as f,n as v,dd as b,D as q,E as A,j as B,_ as F,__tla as G}from"./index-b362e1d5.js";import{g as H,__tla as I}from"./index-93c6401e.js";let y,J=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{y=F(C({__name:"OwerSelect",emits:["confirmOwerSelect"],setup(K,{expose:h,emit:w}){const r=e(!1),x=e("\u9009\u62E9"),c=e(!1),V=e(""),k=e(["\u5F85\u9009\u62E9","\u5DF2\u9009\u62E9"]),O=e({key:"id",label:"nickname"}),S=w,o=e([]),l=e([]),g=e([]);h({open:async(n,a)=>{if(r.value=!0,V.value=n,a){c.value=!0;try{a.forEach(i=>{l.value.push(i.id)})}finally{c.value=!1}}g.value=[],o.value=await H()}});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=b,m=q,p=A,j=B,D=E;return P(),U(D,{title:u(x),modelValue:u(r),"onUpdate:modelValue":a[1]||(a[1]=_=>f(r)?r.value=_:null),width:"600px"},{default:t(()=>[s(i,{modelValue:u(l),"onUpdate:modelValue":a[0]||(a[0]=_=>f(l)?l.value=_:null),data:u(o),titles:u(k),props:u(O),"right-default-checked":[1]},null,8,["modelValue","data","titles","props"]),s(j,{justify:"end"},{default:t(()=>[s(p,{span:4},{default:t(()=>[s(m,{type:"primary",onClick:d},{default:t(()=>[v("\u786E\u8BA4")]),_:1})]),_:1}),s(p,{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{J as __tla,y as default};
|