webpackJsonp([20],{K0rJ:function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=a("319J"),e=a("P9l9"),s=a("PEkr"),o={name:"pluginManage",components:{navBread:n.a,selectEnv:s.a},data:function(){return{navPath:[{name:"插件管理",path:""}],search:"",list:[],showdialog:!1,pluginType:0,pluginId:"",loading:!1}},methods:{getList:function(){var t=this,i=this,a={search:this.search};this.loading=!0,Object(e.a)("/gateway-manage/plugin/list",a).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}},mounted:function(){this.getList()}},l={render:function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:t.navPath}})],1),t._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("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(" "),a("div",{directives:[{name:"loadingh",rawName:"v-loadingh",value:t.loading,expression:"loading"}],staticClass:"list-content"},t._l(t.list,function(i,n){return a("div",{key:n,staticClass:"list-item"},[a("div",{staticClass:"item-top"},[a("span",{staticClass:"icon-content"},[0===i.pluginType?a("i",{staticClass:"iconfont iconahas"}):t._e(),t._v(" "),1===i.pluginType?a("i",{staticClass:"iconfont iconkaifangpingtai"}):t._e()]),t._v(" "),a("div",{staticClass:"item-info"},[a("h3",[t._v("插件名称")]),t._v(" "),a("p",[t._v(t._s(i.pluginName))])])]),t._v(" "),a("div",{staticClass:"item-bottom"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.goEnvList(i)}}},[t._v("选择环境进入"),a("i",{staticClass:"iconfont iconjiantou-zuo"})])],1)])}))],1)]),t._v(" "),t.showdialog?a("selectEnv",{attrs:{pluginId:t.pluginId,pluginType:t.pluginType},on:{closeDialog:t.closeDialog}}):t._e()],1)},staticRenderFns:[]};var c=a("VU/8")(o,l,!1,function(t){a("jbD3")},"data-v-2e0e7926",null);i.default=c.exports},jbD3:function(t,i){}});