webpackJsonp([19],{"8vKg":function(t,i){},K0rJ:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=n("319J"),e=n("P9l9"),s=n("PEkr"),o={name:"PluginManage",components:{navBread:a.a,selectEnv:s.a},data:function(){return{navPath:[{name:"插件管理",path:""}],search:"",list:[],showdialog:!1,pluginType:0,pluginId:"",loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var t=this,i=this,n={search:this.search};this.loading=!0,Object(e.a)("/gateway-manage/plugin/list",n).then(function(i){"0000"==i.data.code?(i.data.result?t.list=i.data.result:t.list=[],t.loading=!1):t.$message.error(i.data.message)}).catch(function(t){i.$message.error({duration:1e3,message:t.message})})},goEnvList:function(t){this.showdialog=!0,this.pluginId=t.pluginId,this.pluginType=t.pluginType},closeDialog:function(){this.showdialog=!1}},watch:{$route:{handler:function(t,i){},deep:!0}}},l={render:function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"api-body-content border-box"},[n("div",{staticClass:"common-nav"},[n("nav-bread",{attrs:{"nav-path":t.navPath}})],1),t._v(" "),n("div",{staticClass:"api-body-main common-body-main border-box"},[n("div",{staticClass:"api-main-content border-box"},[n("el-input",{staticClass:"w-320",attrs:{placeholder:"请输入插件名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(i){t.getList()}},nativeOn:{keyup:function(i){if(!("button"in i)&&t._k(i.keyCode,"enter",13,i.key,"Enter"))return null;t.getList()}},model:{value:t.search,callback:function(i){t.search=i},expression:"search"}}),t._v(" "),n("div",{directives:[{name:"loadingh",rawName:"v-loadingh",value:t.loading,expression:"loading"}],staticClass:"list-content"},t._l(t.list,function(i,a){return n("div",{key:a,staticClass:"list-item"},[n("div",{staticClass:"item-top"},[n("span",{staticClass:"icon-content"},[0===i.pluginType?n("i",{staticClass:"iconfont iconahas"}):t._e(),t._v(" "),1===i.pluginType?n("i",{staticClass:"iconfont iconkaifangpingtai"}):t._e()]),t._v(" "),n("div",{staticClass:"item-info"},[n("h3",[t._v("插件名称")]),t._v(" "),n("p",[t._v(t._s(i.pluginName))])])]),t._v(" "),n("div",{staticClass:"item-bottom"},[n("el-button",{attrs:{type:"text"},on:{click:function(n){t.goEnvList(i)}}},[t._v("\n              选择环境进入"),n("i",{staticClass:"iconfont iconjiantou-zuo"})])],1)])}))],1)]),t._v(" "),t.showdialog?n("select-env",{attrs:{"plugin-id":t.pluginId,"plugin-type":t.pluginType},on:{closeDialog:t.closeDialog}}):t._e()],1)},staticRenderFns:[]};var c=n("VU/8")(o,l,!1,function(t){n("8vKg")},"data-v-50e99d7b",null);i.default=c.exports}});