const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/bind.DjKv4fCW.js","static/js/null.DpF5FJvH.js","static/js/yb_admin_plugin.DNFUAscl.js","static/js/@vue.Da0bZ210.js","static/js/element-plus.DC208N5p.js","static/js/lodash-es.DVGGNlzX.js","static/js/@vueuse.BhH-hw9p.js","static/js/@element-plus.pQhr8KT1.js","static/js/async-validator.9PlIezaS.js","static/js/@popperjs.C5az9QE8.js","static/js/@ctrl.C4Rzlq_k.js","static/js/dayjs.BLMYetss.js","static/js/memoize-one.BdPwpGay.js","static/js/normalize-wheel-es.BQoi3Ox2.js","static/js/@floating-ui.DCXYYTka.js","static/js/pinia.Tngw-S_5.js","static/js/vue-i18n.C7BagGww.js","static/js/@intlify.TnaUIxGf.js","static/js/vue-router.DaVMGKLh.js","static/js/echarts.Dms41JYJ.js","static/js/tslib.BDyQ-Jie.js","static/js/zrender.BueMfJu3.js","static/js/moment.C5S46NFB.js","static/css/yb_admin_plugin.CsqSsPAs.css","static/css/setMessage.-OnVcP14.css"])))=>i.map(i=>d[i]);
import{_ as y,a as v}from"./yb_admin_plugin.DNFUAscl.js";import{d as l,g as x,i as D,a as B}from"./null.DpF5FJvH.js";import{aZ as o,a_ as L,aL as i,u as C,I as c,bJ as e,bL as m,s as d,H as _,bb as h,v as u}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 I={name:"Wxapp",title:"绑定应用列表",props:{edit:{type:Object,default:()=>({id:0})},fun:{type:Object,default:null}},data(){return{errorImg:B,nullImg:D,querys:{id:this.edit.id},theader:[{label:"应用名称",prop:"name",align:"center",show:!0},{label:"图标",prop:"",align:"center",show:!0},{label:"客户名称",prop:"user_name",align:"center",show:!0},{label:"产品名称",prop:"addons_name",align:"center",show:!0},{label:"到期时间",prop:"end_time",align:"center",show:!0},{label:"绑定时间",prop:"create_time",align:"center",width:160,show:!0},{label:"操作",align:"center",prop:"",show:!0}],apiList:x,apiDelete:l}},methods:{handleBind(){this.$baseDialog(v(()=>import("./bind.DjKv4fCW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),{gzh_id:this.edit.id,type:2}).className("dialog_reply_message").then(t=>{this.$refs.appListBox.fetchData(),this.fun.fetchData()}).show()},handleDel(t){this.$baseConfirm("确定要删除当前项吗？","提示").then(g=>{l(t.id).then(f=>{this.$baseMessage("删除成功"),this.$refs.appListBox.fetchData(),this.fun.fetchData()})})}}},k={class:"userManagement-container"},N={class:"image-slot"},q=["src"];function E(t,g,f,V,r,a){const n=o("el-button"),b=o("el-image"),w=o("CommonListBox"),p=L("permissions");return i(),C("div",k,[c(w,{ref:"appListBox","api-list":r.apiList,theader:r.theader,"show-choose":!1,querys:r.querys},{tool:e(()=>[m((i(),d(n,{type:"primary",onClick:a.handleBind},{default:e(()=>[_(h(t.translateI18n("绑定应用")),1)]),_:1},8,["onClick"])),[[p,"yb_system/gzh/wxapp/add"]])]),图标:e(s=>[c(b,{src:s.data.icon||r.nullImg,"preview-src-list":[s.data.icon][0]?[s.data.icon]:[],"preview-teleported":""},{error:e(()=>[u("div",N,[u("img",{src:r.errorImg},null,8,q)])]),_:1},8,["src","preview-src-list"])]),操作:e(s=>[m((i(),d(n,{type:"text",onClick:z=>a.handleDel(s.data)},{default:e(()=>[_(h(t.translateI18n("删除")),1)]),_:1},8,["onClick"])),[[p,"yb_system/gzh/wxapp/del"]])]),_:1},8,["api-list","theader","querys"])])}const re=y(I,[["render",E]]);export{re as default};
