webpackJsonp([6],{"1NcI":function(t,i){},OFvK:function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={data:function(){return{list:[],page:0,size:0,total:0,loading:!0,installLoading:!1,installTip:"安装"}},components:{userinfo:a("FOXq").a},created:function(){this.getList(1)},methods:{getList:function(t){var i=this;i.get_json(i.$store.state.api+"Plugin/mine/domain/"+document.domain+"/page/"+t,function(t){i.list=t.data,i.page=t.page,i.size=t.size,i.total=t.total,i.loading=!1})},pageFn:function(t){this.loading=!0,this.getList(t),this.gotop()},app:function(t,i,a){20==i?this.jump_href(a):this.jump_router("/app/detail/"+t)},install:function(t){event.stopPropagation();var i=this;console.log(this.$refs),i.$refs[t][0].$el.innerText="安装中",i.$refs[t][0].disabled=!0,i.get_json(i.$store.state.api+"Plugin/"+t+"/install/domain/"+document.domain,function(t){i.$message.success("安装成功！")})},uninstall:function(t){event.stopPropagation();var i=this;i.$confirm("您确定要卸载该应用吗？卸载后数据将全部会被清空！应用文件将被删除！","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){i.put_json(i.$store.state.api+"Plugin/"+t,{},function(t){i.$message.success("卸载成功！"),i.getList(i.page)})})}}},n={render:function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"main"},[a("div",{staticClass:"panel wizard-type1"},[a("div",{staticClass:"panel-heading bk-bg-primary"},[a("div",{staticClass:"list-articles"},[a("button",{staticClass:"btn btn-default release",attrs:{type:"button"}},[t._v("模板")]),t._v(" "),a("div",{staticClass:"pull-right"},[a("userinfo")],1)])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"applist"},[a("div",{staticClass:"report-data"},[a("div",{staticClass:"row"},t._l(t.list,function(i){return a("div",{staticClass:"col-sm-3"},[a("div",{staticClass:"item bs",on:{click:function(a){t.app(i.pluginId,i.status,i.plugin.path)}}},[a("div",{staticClass:"img pull-left ri-1"},[a("img",{attrs:{alt:"",src:i.plugin.fullpathThumbnail}})]),t._v(" "),a("div",{staticClass:"info pull-right text-right"},[a("span",[t._v(t._s(i.plugin.name))])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("p",[20==i.status?a("el-button",{staticClass:"uninstall pull-right",attrs:{type:"danger",size:"mini"},on:{click:function(a){t.uninstall(i.pluginId)}}},[t._v("卸载")]):10==i.status?a("el-button",{ref:i.pluginId,refInFor:!0,staticClass:"pull-right",attrs:{type:"success",size:"mini",loading:t.installLoading},on:{click:function(a){t.install(i.pluginId)}}},[t._v("安装")]):t._e(),t._v(" "),a("span",[t._v(t._s(i.plugin.description))])],1)])])})),t._v(" "),a("br"),t._v(" "),0!=t.total?a("el-pagination",{attrs:{background:"",layout:"total , prev, pager, next","current-page":t.page,"page-size":t.size,total:t.total},on:{"update:currentPage":function(i){t.page=i},"current-change":t.pageFn}}):t._e()],1)])])])},staticRenderFns:[]};var e=a("VU/8")(s,n,!1,function(t){a("1NcI")},"data-v-0bfa5734",null);i.default=e.exports}});