import{b as d,c as _}from"./null.DpF5FJvH.js";import{_ as f}from"./yb_admin_plugin.DNFUAscl.js";import{aZ as r,aL as p,s as i,bJ as s,I as a,u as h,F as b,aX as g}from"./@vue.Da0bZ210.js";import"./element-plus.DC208N5p.js";import"./lodash-es.DVGGNlzX.js";import"./@vueuse.BhH-hw9p.js";import"./@element-plus.pQhr8KT1.js";import"./async-validator.9PlIezaS.js";import"./@popperjs.C5az9QE8.js";import"./@ctrl.C4Rzlq_k.js";import"./dayjs.BLMYetss.js";import"./memoize-one.BdPwpGay.js";import"./normalize-wheel-es.BQoi3Ox2.js";import"./@floating-ui.DCXYYTka.js";import"./pinia.Tngw-S_5.js";import"./vue-i18n.C7BagGww.js";import"./@intlify.TnaUIxGf.js";import"./vue-router.DaVMGKLh.js";import"./echarts.Dms41JYJ.js";import"./tslib.BDyQ-Jie.js";import"./zrender.BueMfJu3.js";import"./moment.C5S46NFB.js";const y={title:"绑定应用",name:"Bind",props:{gzh_id:{type:Number,default:0},type:{type:Number,default:1}},data(){return{applyList:[],form:{account_wxapp_ids:""},rules:{account_wxapp_ids:[{required:!0,message:"请选择应用",trigger:"blur"}]}}},created(){_({gzh_id:this.gzh_id,type:this.type}).then(e=>{this.applyList=e.data.list})},methods:{onSubmit(){this.$refs.form.validate(e=>{if(e)this.form.gzh_id=this.gzh_id,d(this.form).then(l=>{this.$baseMessage("保存成功"),this.callBack&&this.callBack()});else return!1})}}};function x(e,l,w,k,t,B){const m=r("el-option"),n=r("el-select"),c=r("el-form-item"),u=r("el-form");return p(),i(u,{ref:"form",model:t.form,rules:t.rules,"label-width":"80px",class:"demo-ruleForm"},{default:s(()=>[a(c,{label:e.translateI18n("选择应用"),prop:"account_wxapp_ids"},{default:s(()=>[a(n,{modelValue:t.form.account_wxapp_ids,"onUpdate:modelValue":l[0]||(l[0]=o=>t.form.account_wxapp_ids=o),multiple:"",placeholder:"请选择"},{default:s(()=>[(p(!0),h(b,null,g(t.applyList,o=>(p(),i(m,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])}const K=f(y,[["render",x]]);export{K as default};
