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