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