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