import{aw as u,ax as i,ah as a,o as s,O as r,P as c,c as d,a8 as g,F as m,L as _,al as h}from"./vendor-vue.0022cd7b.js";import{H as f,_ as O}from"./index.02f2bb40.js";const G=u({id:"group-store",state:()=>({groupOptions:[]}),getters:{getGroupOptions:e=>e.groupOptions},actions:{setGroupOptions(e){this.groupOptions=e.map(t=>({...t,value:t.id,label:t.name}))},async updateGroupOptions(){const e=await f.getGroupList();e.code==0&&this.setGroupOptions(e.data.list)}}}),v={name:"SelectGroup",props:{showNotGroup:{type:Boolean,default:!1}},components:{},data(){return{}},computed:{...i(G,{groupOptions:"getGroupOptions"}),options(){return this.showNotGroup?[...this.groupOptions,{value:0,label:"\u672A\u5206\u7EC4"}]:this.groupOptions}},methods:{async getData(){}},created(){this.getData()}};function S(e,t,b,w,$,n){const p=a("el-option"),l=a("el-select");return s(),r(l,_(e.$attrs,h(e.$events),{placeholder:"\u5206\u7EC4"}),{default:c(()=>[(s(!0),d(m,null,g(n.options,o=>(s(),r(p,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},16)}const B=O(v,[["render",S]]);export{B as S,G as u};
