Commit 0593241f by 无尘

fix: 修改发布记录

parent 3a3285ca
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.c88e021ff435250594f279760e6f639d.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 type=text/javascript src=./static/js/manifest.1cead60d53a152b5ab85.js></script><script type=text/javascript src=./static/js/vendor.bb8c036d7dd62f4cb37a.js></script><script type=text/javascript src=./static/js/app.434c40aceca40251eccb.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.6028722cea063f2d61338ae10add5008.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 type=text/javascript src=./static/js/manifest.7fc9db4b9ac5e17b0d50.js></script><script type=text/javascript src=./static/js/vendor.bb8c036d7dd62f4cb37a.js></script><script type=text/javascript src=./static/js/app.434c40aceca40251eccb.js></script></body></html>
\ No newline at end of file
webpackJsonp([17],{OEJD:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("319J"),o=a("P9l9"),l=a("jvWE"),r=a("LlAa"),s={name:"releaseRecords",components:{navBread:n.a},data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(l.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},handleShow:function(t,e){this.$router.push("/")},getData:function(){var t=this,e={search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/gateway-manage/page-api-publish-record",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",4),this.getData()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;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("div",{staticClass:"search-wrap m-b-20"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入发布版本"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"发布版本","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"API名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.apiName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"版本号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.publishVersion)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"环境","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.env)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.describe)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleShow(e.$index,e.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),t.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])},staticRenderFns:[]};var c=a("VU/8")(s,i,!1,function(t){a("q/2M")},"data-v-64c4fafc",null);e.default=c.exports},"q/2M":function(t,e){}});
\ No newline at end of file
webpackJsonp([17],{"0VIv":function(t,e){},OEJD:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("319J"),o=a("P9l9"),l=a("jvWE"),r=a("LlAa"),s={name:"releaseRecords",components:{navBread:n.a},data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(l.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},handleShow:function(t,e){this.$router.push("/")},getData:function(){var t=this,e={search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/gateway-manage/page-api-publish-record",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",4)}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;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("div",{staticClass:"search-wrap m-b-20"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入发布版本"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"publishName",label:"发布版本","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"API名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.apiName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"版本号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.publishVersion)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"环境","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.env)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.describe)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleShow(e.$index,e.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),t.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])},staticRenderFns:[]};var c=a("VU/8")(s,i,!1,function(t){a("0VIv")},"data-v-1dfc132a",null);e.default=c.exports}});
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var f,i,u,d=0,b=[];d<r.length;d++)i=r[d],t[i]&&b.push(t[i][0]),t[i]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,a);b.length;)b.shift()();if(a)for(d=0;d<a.length;d++)u=c(c.s=a[d]);return u};var r={},t={21:0};function c(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,c),t.l=!0,t.exports}c.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,c){n=t[e]=[r,c]});n[2]=r;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,c.nc&&a.setAttribute("nonce",c.nc),a.src=c.p+"static/js/"+e+"."+{0:"8d33a005548cc91f2535",1:"0ebe3ead93207dc78a78",2:"4276e97f6501e4cdf1d8",3:"180c2784eea912423521",4:"77c4ceb58f50f80fa914",5:"e704f35bae2785ada05b",6:"03233da003452ba92dd2",7:"4cb82e13df0c0c5b4b13",8:"b7ed0abeb26ad276c2a5",9:"bd4ba95c34a584a7dc76",10:"638039a7b39908980436",11:"80fde13c3f372ead3f07",12:"3b9c756b15cf547445f5",13:"369e10e7c7f25760058c",14:"9825bb69e60b8030c230",15:"cb7b875c24b40e9cb6e0",16:"59c1113679bef2e96538",17:"d9a00e33c7fd8f7bc66c",18:"37321ffca9347a60b988"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,o.appendChild(a),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){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 o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=c(c.s=a[u]);return i};var r={},t={21:0};function c(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,c),t.l=!0,t.exports}c.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,c){n=t[e]=[r,c]});n[2]=r;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,c.nc&&a.setAttribute("nonce",c.nc),a.src=c.p+"static/js/"+e+"."+{0:"8d33a005548cc91f2535",1:"0ebe3ead93207dc78a78",2:"4276e97f6501e4cdf1d8",3:"9d8da2e9b9ec2f268553",4:"02c6dc9f42982976cf50",5:"e704f35bae2785ada05b",6:"03233da003452ba92dd2",7:"4cb82e13df0c0c5b4b13",8:"b7ed0abeb26ad276c2a5",9:"bd4ba95c34a584a7dc76",10:"638039a7b39908980436",11:"80fde13c3f372ead3f07",12:"3b9c756b15cf547445f5",13:"369e10e7c7f25760058c",14:"9825bb69e60b8030c230",15:"cb7b875c24b40e9cb6e0",16:"59c1113679bef2e96538",17:"d2f2a4494f313eb0f642",18:"37321ffca9347a60b988"}[e]+".js";var f=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=d,o.appendChild(a),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -10,10 +10,10 @@ import goHistory from '@/components/api/go-history.vue';
<el-table :data="tableData" style="width: 100%">
<el-table-column label="" show-overflow-tooltip>
<template slot-scope="scope">
<el-radio v-model="selectVersion" :label="scope.row.interfaceVersionId"></el-radio>
<el-radio v-model="selectVersion" :label="scope.row.publishRecordId"></el-radio>
</template>
</el-table-column>
<el-table-column prop="version" label="发布版本" show-overflow-tooltip> </el-table-column>
<el-table-column prop="publishRecordId" label="发布版本" show-overflow-tooltip> </el-table-column>
<el-table-column label="发布备注" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.remark }}
......@@ -182,7 +182,7 @@ export default {
pageNum: that.currentPage,
pageSize: that.pageSize,
sceneCode: that.apiData.sceneCode,
interfaceId: that.apiData.interfaceId
interfaceId: that.$route.query.interfaceId
};
getRequest('/gateway-manage/page-api-publish-record', para)
.then(res => {
......
......@@ -11,7 +11,7 @@
</div> -->
<div class="table-wrap">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="version" label="发布版本" show-overflow-tooltip> </el-table-column>
<el-table-column prop="publishRecordId" label="发布版本" show-overflow-tooltip> </el-table-column>
<el-table-column label="版本号" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.publishVersion }}
......@@ -153,7 +153,10 @@ export default {
/* 接收数据 */
mounted() {
const that = this;
that.$nextTick(() => {
that.getData();
});
that.$emit('showTab', 4);
}
};
......
......@@ -12,7 +12,7 @@
</div>
<div class="table-wrap">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="publishName" label="发布版本" show-overflow-tooltip> </el-table-column>
<el-table-column prop="publishRecordId" label="发布版本" show-overflow-tooltip> </el-table-column>
<el-table-column label="API名称" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.apiName }}
......@@ -164,6 +164,7 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', 4);
that.getData();
}
};
</script>
......
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