Commit c71ef9b5 by damodmg

更新

parent 1f48d8d8
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.43e58947ac6c5a614d19e7f0a628a4b9.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.57fb7d9088d07195aa4f.js></script><script type=text/javascript src=./static/js/vendor.adc34c81686691b8a2e7.js></script><script type=text/javascript src=./static/js/app.74c6c88a2be7752906ab.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.873502a9af57a3ba9f9567602a94e3bf.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.474553a19e86f95e8cbc.js></script><script type=text/javascript src=./static/js/vendor.adc34c81686691b8a2e7.js></script><script type=text/javascript src=./static/js/app.74c6c88a2be7752906ab.js></script></body></html>
\ No newline at end of file \ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(n,c,o){for(var f,d,i,u=0,b=[];u<n.length;u++)d=n[u],r[d]&&b.push(r[d][0]),r[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(a&&a(n,c,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=t(t.s=o[u]);return i};var n={},r={23:0};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var a=r[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var n=new Promise(function(n,t){a=r[e]=[n,t]});a[2]=n;var c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,t.nc&&o.setAttribute("nonce",t.nc),o.src=t.p+"static/js/"+e+"."+{0:"4b92c76418bc5f3deedc",1:"490562478be660678b4c",2:"aba954d032af31777ca2",3:"891b203d9fe7a8561dfd",4:"c0c622ffa245868a1144",5:"cf01ca2a300ce48d0136",6:"3a7d8f3f0ae953f0066e",7:"72018c98a73d270fcba1",8:"a8b7a10d61e4d3635473",9:"c24c52304f5a70a92406",10:"0c07d6047e301a0b0615",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 a=r[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),n},t.m=e,t.c=n,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]);
\ 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],a[d]&&b.push(a[d][0]),a[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=t(t.s=o[u]);return i};var r={},a={23:0};function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.e=function(e){var n=a[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=a[e]=[r,t]});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,t.nc&&o.setAttribute("nonce",t.nc),o.src=t.p+"static/js/"+e+"."+{0:"4b92c76418bc5f3deedc",1:"490562478be660678b4c",2:"aba954d032af31777ca2",3:"891b203d9fe7a8561dfd",4:"159c0432728bd407ebd3",5:"cf01ca2a300ce48d0136",6:"3a7d8f3f0ae953f0066e",7:"72018c98a73d270fcba1",8:"a8b7a10d61e4d3635473",9:"c24c52304f5a70a92406",10:"0c07d6047e301a0b0615",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=a[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),r},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -2,14 +2,20 @@ ...@@ -2,14 +2,20 @@
<el-dialog :title="alarmType === 1 ? '流控日志' : '熔断日志'" :visible.sync="dialogVisible" width="600px" @close="close"> <el-dialog :title="alarmType === 1 ? '流控日志' : '熔断日志'" :visible.sync="dialogVisible" width="600px" @close="close">
<div class="dialog-body"> <div class="dialog-body">
<el-table :data="tableData" style="width: 100%" class="dialog-table"> <el-table :data="tableData" style="width: 100%" class="dialog-table">
<el-table-column prop="rangeType" :label="alarmType === 1 ? '流控范围' : '熔断范围'"> <!-- <el-table-column prop="rangeType" :label="alarmType === 1 ? '流控范围' : '熔断范围'">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.rangeType === 0">项目</div> <div v-if="scope.row.rangeType === 0">项目</div>
<div v-if="scope.row.rangeType === 1">分组</div> <div v-if="scope.row.rangeType === 1">分组</div>
<div v-if="scope.row.rangeType === 2">接口</div> <div v-if="scope.row.rangeType === 2">接口</div>
</template> </template>
</el-table-column> -->
<el-table-column prop="alarmType" label="告警类型">
<template slot-scope="scope">
<div v-if="scope.row.alarmType === 1">流控告警</div>
<div v-if="scope.row.alarmType === 2">熔断告警</div>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="ruleContent" :label="alarmType === 1 ? '流控内容' : '熔断内容'"></el-table-column> <el-table-column prop="alarmContent" :label="alarmType === 1 ? '流控内容' : '熔断内容'"></el-table-column>
<el-table-column prop="updateTime" label="发生时间"> <el-table-column prop="updateTime" label="发生时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToYmd }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToYmd }}</div>
......
...@@ -2,16 +2,13 @@ ...@@ -2,16 +2,13 @@
<el-dialog title="日志" :visible.sync="dialogVisible" width="600px" @close="close"> <el-dialog title="日志" :visible.sync="dialogVisible" width="600px" @close="close">
<div class="dialog-body"> <div class="dialog-body">
<el-table :data="tableData" style="width: 100%" class="dialog-table"> <el-table :data="tableData" style="width: 100%" class="dialog-table">
<el-table-column prop="enableFlag" label="告警类型"> <el-table-column prop="alarmType" label="告警类型">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.enableFlag" @change="changeFlag(scope.row)"> </el-switch> <div v-if="scope.row.alarmType === 1">流控告警</div>
</template> <div v-if="scope.row.alarmType === 2">熔断告警</div>
</el-table-column>
<el-table-column prop="enableFlag" label="告警内容">
<template slot-scope="scope">
<el-switch v-model="scope.row.enableFlag" @change="changeFlag(scope.row)"> </el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="alarmContent" label="告警内容"> </el-table-column>
<el-table-column prop="updateTime" label="发生时间"> <el-table-column prop="updateTime" label="发生时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToYmd }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToYmd }}</div>
......
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
this.sceneCode = this.$route.query.sceneCode; this.sceneCode = this.$route.query.sceneCode;
this.getProjectList(); this.getProjectList();
this.getList(); this.getList();
this.getUpdateStatus(); // this.getUpdateStatus();
}, },
methods: { methods: {
/** /**
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
this.projectId= '' this.projectId= ''
this.groupId= '' this.groupId= ''
this.getList() this.getList()
this.getUpdateStatus(); // this.getUpdateStatus();
}, },
goEnvList() { goEnvList() {
this.showdialog = true; this.showdialog = true;
...@@ -220,6 +220,7 @@ export default { ...@@ -220,6 +220,7 @@ export default {
} }
} }
this.loading = false this.loading = false
this.getUpdateStatus();
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -340,7 +341,7 @@ export default { ...@@ -340,7 +341,7 @@ export default {
.then(res => { .then(res => {
if (res.data.code == '0000') { if (res.data.code == '0000') {
this.getList(); this.getList();
this.getUpdateStatus(); // this.getUpdateStatus();
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -389,7 +390,7 @@ export default { ...@@ -389,7 +390,7 @@ export default {
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.getList() this.getList()
this.getUpdateStatus() // this.getUpdateStatus()
// if(this.activeName === 'first') { // if(this.activeName === 'first') {
// this.$refs.fluItem.getUpdateStatus(this.sceneCode) // this.$refs.fluItem.getUpdateStatus(this.sceneCode)
// }else if(this.activeName === 'second'){ // }else if(this.activeName === 'second'){
......
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