1 |
- import{_ as b,__tla as j}from"./Dialog-948825d3.js";import{d as z,r as a,o as U,k as D,w as t,i as s,a as u,R as f,l as v,d7 as P,s as R,E as q,p as A,_ as B,__tla as F}from"./index-66208f93.js";import{g as G,__tla as H}from"./index-c62bc128.js";let y,I=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return H}catch{}})()]).then(async()=>{y=B(z({__name:"OwerSelect",emits:["confirmOwerSelect"],setup(J,{expose:h,emit:w}){const r=a(!1),x=a("\u9009\u62E9"),c=a(!1),k=a(""),V=a(["\u5F85\u9009\u62E9","\u5DF2\u9009\u62E9"]),O=a({key:"id",label:"nickname"}),S=w,o=a([]),l=a([]),g=a([]);h({open:async(n,e)=>{if(r.value=!0,k.value=n,e){c.value=!0;try{e.forEach(i=>{l.value.push(i.id)})}finally{c.value=!1}}g.value=[],o.value=await G()}});const d=()=>{const n=a([]);o.value.forEach(e=>{l.value.indexOf(e.id)>-1&&n.value.push(e)}),S("confirmOwerSelect",n),r.value=!1,l.value=[]};return(n,e)=>{const i=P,m=R,p=q,C=A,E=b;return U(),D(E,{title:u(x),modelValue:u(r),"onUpdate:modelValue":e[1]||(e[1]=_=>f(r)?r.value=_:null),width:"600px"},{default:t(()=>[s(i,{modelValue:u(l),"onUpdate:modelValue":e[0]||(e[0]=_=>f(l)?l.value=_:null),data:u(o),titles:u(V),props:u(O),"right-default-checked":[1]},null,8,["modelValue","data","titles","props"]),s(C,{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-business/src/views/crm/contact/OwerSelect.vue"]])});export{I as __tla,y as default};
|