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