(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-13a35980"],{"3d36":function(t,s,a){},"72c1":function(t,s,a){"use strict";a("3d36")},dd1e:function(t,s,a){"use strict";a.r(s);var e=a("9ab4"),i=a("b99a"),l=a("1b40"),n=a("bc3a"),c=a.n(n),r=a("d70b"),o=a("0613");let d=class extends l.e{constructor(){super(...arguments),this.menuList=[],this.isInstall=[]}install(t,s,a){this.isInstall[s]="下载中...",this.$forceUpdate(),c.a.get(r.a.baseURL+"/adminapi/plugin/downloadPlugin",{params:{plugin_id:t,download_url:a[0].download_url},headers:{Token:o.a.getters.token}}).then(t=>{null!=t&&1==t.data.code?(this.isInstall[s]="下载成功",this.$forceUpdate()):(this.isInstall[s]="下载失败",this.$forceUpdate())})}getModule(){Object(i.c)().then(t=>{this.menuList=t;for(var s=0;s<t.mylist.length;s++)this.isInstall[s]="下载"})}created(){this.getModule()}};d=Object(e.a)([l.a],d);var u=d,m=(a("72c1"),a("2877")),p=Object(m.a)(u,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"app-center"},[a("div",{staticClass:"ls-app ls-card m-b-16"},[a("div",{staticClass:"menu"},t._l(t.menuList.mylist,(function(s,e){return a("router-link",{key:e,staticClass:"flex menu-item",attrs:{tag:"div",to:""}},[a("el-image",{staticClass:"m-r-18 menu-icon",attrs:{src:s.image}}),a("div",{staticClass:"menu-info",staticStyle:{flex:"1"}},[a("div",{staticClass:"lg"},[t._v(" "+t._s(s.name)+" "),0==s.status?a("span",{staticClass:"is-open xs"},[t._v("即将开放")]):t._e()]),a("div",{staticClass:"muted m-t-4 line-2"},[t._v(" "+t._s(s.introduce)+" ")])]),0==s.is_download?a("div",{staticClass:"lg  ",staticStyle:{color:"green","margin-left":"10px"},on:{click:function(a){return t.install(s.id,e,s.versions)}}},[t._v(" "+t._s(t.isInstall[e])+" ")]):a("div",{staticClass:"lg  ",staticStyle:{color:"green","margin-left":"10px"}},[t._v(" 已下载 ")])],1)})),1)])])}),[],!1,null,"4156036e",null);s.default=p.exports}}]);