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