Commit 5d65ceaa by damodmg

更新

parent 0f0710c5
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.b085e20a35c57e1213bc3a83a6ab8b19.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.b964b1ecb29cf21135da.js></script><script type=text/javascript src=./static/js/vendor.adc34c81686691b8a2e7.js></script><script type=text/javascript src=./static/js/app.eb7a92daf8e200957259.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.dd0477545cd4ef648b40cf868785f9c2.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.4f989a9a3f2abc58ddbf.js></script><script type=text/javascript src=./static/js/vendor.adc34c81686691b8a2e7.js></script><script type=text/javascript src=./static/js/app.eb7a92daf8e200957259.js></script></body></html>
\ No newline at end of file \ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=a(a.s=o[u]);return i};var r={},t={23:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,a.nc&&o.setAttribute("nonce",a.nc),o.src=a.p+"static/js/"+e+"."+{0:"90184a99cbf200fc5420",1:"490562478be660678b4c",2:"aba954d032af31777ca2",3:"891b203d9fe7a8561dfd",4:"677ac6301dcc95308532",5:"326fb42830c68b115dac",6:"50a6310de36898e2dd70",7:"a1935be11e77d5f2c5b4",8:"8121d39547813d60ebc0",9:"b3deccff7d55a154a299",10:"0fa1f876e10fcdf5c8bc",11:"722834da6c9a43c2cd06",12:"67847cd5371b700c9f72",13:"28aedb2f2a8862416b38",14:"87bbee3da6a929830283",15:"2854ebb8d89f105b01a8",16:"ed20f73ba065fa5cfb56",17:"7654e050c5e95259b1af",18:"37321ffca9347a60b988",19:"76545794ef370769a689",20:"1e2a9dda654bf5adc16a"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=a(a.s=o[u]);return i};var r={},t={23:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,a.nc&&o.setAttribute("nonce",a.nc),o.src=a.p+"static/js/"+e+"."+{0:"90184a99cbf200fc5420",1:"490562478be660678b4c",2:"aba954d032af31777ca2",3:"891b203d9fe7a8561dfd",4:"677ac6301dcc95308532",5:"326fb42830c68b115dac",6:"945d51d12fdc8f895077",7:"a1935be11e77d5f2c5b4",8:"8121d39547813d60ebc0",9:"b3deccff7d55a154a299",10:"0fa1f876e10fcdf5c8bc",11:"722834da6c9a43c2cd06",12:"67847cd5371b700c9f72",13:"28aedb2f2a8862416b38",14:"87bbee3da6a929830283",15:"2854ebb8d89f105b01a8",16:"ed20f73ba065fa5cfb56",17:"7654e050c5e95259b1af",18:"37321ffca9347a60b988",19:"76545794ef370769a689",20:"1e2a9dda654bf5adc16a"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
</div> </div>
</div> </div>
<el-tab-pane label="白名单接口" name="first" v-loading="loading"> <el-tab-pane label="白名单接口" name="first" v-loading="loading">
<whiteList :tableData="tableData" @getList="getList"></whiteList> <whiteList v-if="activeName === 'first'" :tableData="tableData" @getList="getList"></whiteList>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="能力接口" name="second" v-loading="loading"> <el-tab-pane label="能力接口" name="second" v-loading="loading">
<capacityList :tableData="tableData" @getList="getList"></capacityList> <capacityList v-if="activeName === 'second'" :tableData="tableData" @getList="getList"></capacityList>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="错误码配置" name="third" v-loading="loading"> <el-tab-pane label="错误码配置" name="third" v-loading="loading">
<errorCodeList :tableData="tableData" @getList="getList"></errorCodeList> <errorCodeList v-if="activeName === 'third'" :tableData="tableData" @getList="getList"></errorCodeList>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div style="text-align:right;margin-top:20px;" v-if="total !== 0"> <div style="text-align:right;margin-top:20px;" v-if="total !== 0">
...@@ -121,8 +121,12 @@ export default { ...@@ -121,8 +121,12 @@ export default {
this.showdialog = false; this.showdialog = false;
}, },
getSearchList() { getSearchList() {
if(this.activeName === 'first'||this.activeName === 'second') {
this.currentPage = 1 this.currentPage = 1
this.getGroupList()
this.getList() this.getList()
}
}, },
// 分页 // 分页
handleSizeChange(size) { handleSizeChange(size) {
...@@ -220,7 +224,7 @@ export default { ...@@ -220,7 +224,7 @@ export default {
//获取项目列表 //获取项目列表
getProjectList() { getProjectList() {
var that = this; var that = this;
getRequest('/plugin/interface/tree') getRequest('/gateway-manage//plugin/interface/tree',{})
.then(res => { .then(res => {
if (res.data.code == '0000') { if (res.data.code == '0000') {
if (res.data.result) { if (res.data.result) {
...@@ -246,7 +250,7 @@ export default { ...@@ -246,7 +250,7 @@ export default {
type:0, type:0,
id:this.projectId id:this.projectId
} }
getRequest('/plugin/interface/tree', params) getRequest('/gateway-manage//plugin/interface/tree', params)
.then(res => { .then(res => {
if (res.data.code == '0000') { if (res.data.code == '0000') {
if (res.data.result) { if (res.data.result) {
...@@ -290,12 +294,14 @@ export default { ...@@ -290,12 +294,14 @@ export default {
$route(to, from) { $route(to, from) {
this.pluginId = this.$route.query.pluginId this.pluginId = this.$route.query.pluginId
this.sceneCode = this.$route.query.sceneCode this.sceneCode = this.$route.query.sceneCode
this.getProjectList();
this.getList() this.getList()
} }
}, },
created() { created() {
this.pluginId = this.$route.query.pluginId this.pluginId = this.$route.query.pluginId
this.sceneCode = this.$route.query.sceneCode this.sceneCode = this.$route.query.sceneCode
this.getProjectList();
this.getList() this.getList()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment