diff --git a/src/views/apiLogs/configData.js b/src/views/apiLogs/configData.js index cb07101..3b1ecb3 100644 --- a/src/views/apiLogs/configData.js +++ b/src/views/apiLogs/configData.js @@ -9,6 +9,11 @@ const tableColumnData = [ prop: 'sendAppName', tooltip: true, }, + { + label: '接口名称', + prop: 'apiName', + tooltip: true, + }, { label: '源数据', prop: 'sourceData', @@ -204,6 +209,16 @@ const formRowShow = [ optionLabel: 'name', },] }, + { + elCol: [{ + label: '接口名称', + prop: 'apiName', + tag: 'elInput', + disabled: true, + type: 'text', + span: 12, + },] + }, { elCol: [{ label: '源数据', diff --git a/src/views/apiLogs/index.vue b/src/views/apiLogs/index.vue index 03c6ac6..9d1cddb 100644 --- a/src/views/apiLogs/index.vue +++ b/src/views/apiLogs/index.vue @@ -210,6 +210,24 @@ export default { this.tableData = res.attribute.list; this.$refs.baseLayout.setPageTotal(res.attribute.total); } + + this.tableData.forEach(async (item, index) => { + console.log(item.receiveCode) + + let res2 = await authApi( + "sysApplicationApiService", + "application", + "queryEntity", + "", + {"apiCode":item.receiveCode} + ); + if (res2.status == "200") { + this.$set(this.tableData[index],'apiName',res2.attribute[0].apiName); + }else{ + this.$set(this.tableData[index],'apiName',"未配置该接口"); + } + + }) }, // 分页变化 handlePageChange(val) { diff --git a/src/views/apiLogs/rightDialog.vue b/src/views/apiLogs/rightDialog.vue index 1949ae0..9b1757c 100644 --- a/src/views/apiLogs/rightDialog.vue +++ b/src/views/apiLogs/rightDialog.vue @@ -115,6 +115,19 @@ export default { params ) if (res.status == '200') { + let res2 = await authApi( + "sysApplicationApiService", + "application", + "queryEntity", + "", + {"apiCode":res.attribute.receiveCode} + ); + if (res2.status == '200') { + this.$set(res.attribute,'apiName',res2.attribute[0].apiName); + }else{ + this.$set(res.attribute,'apiName',"未配置该接口"); + } + this.$nextTick(() => { this.$refs.basicsForm.incomingParameters(res.attribute) }) diff --git a/src/views/apiLogsError/configData.js b/src/views/apiLogsError/configData.js index c257bbe..6652890 100644 --- a/src/views/apiLogsError/configData.js +++ b/src/views/apiLogsError/configData.js @@ -9,6 +9,11 @@ const tableColumnData = [ prop: 'sendAppName', tooltip: true, }, + { + label: '接口名称', + prop: 'apiName', + tooltip: true, + }, { label: '源数据', prop: 'sourceData', @@ -204,6 +209,17 @@ const formRowShow = [ optionLabel: 'name', },] }, + { + elCol: [{ + label: '接口名称', + prop: 'apiName', + tag: 'elInput', + disabled: true, + type: 'text', + span: 12, + },] + }, + { elCol: [{ label: '源数据', @@ -276,6 +292,18 @@ const HandleformRowShow = [ optionLabel: 'name', },] }, + { + elCol: [{ + label: '接口名称', + prop: 'apiName', + tag: 'elInput', + disabled: true, + type: 'text', + span: 12, + },] + }, + + { elCol: [{ label: '源数据', diff --git a/src/views/apiLogsError/index.vue b/src/views/apiLogsError/index.vue index 9fac959..7b43b5e 100644 --- a/src/views/apiLogsError/index.vue +++ b/src/views/apiLogsError/index.vue @@ -220,6 +220,27 @@ export default { this.tableData = res.attribute.list; this.$refs.baseLayout.setPageTotal(res.attribute.total); } + + this.tableData.forEach(async (item, index) => { + console.log(item.receiveCode) + + let res2 = await authApi( + "sysApplicationApiService", + "application", + "queryEntity", + "", + {"apiCode":item.receiveCode} + ); + if (res2.status == "200") { + this.$set(this.tableData[index],'apiName',res2.attribute[0].apiName); + }else{ + this.$set(this.tableData[index],'apiName',"未配置该接口"); + } + + }) + + + }, // 分页变化 handlePageChange(val) { diff --git a/src/views/apiLogsError/rightDialog.vue b/src/views/apiLogsError/rightDialog.vue index 294796d..4d0404e 100644 --- a/src/views/apiLogsError/rightDialog.vue +++ b/src/views/apiLogsError/rightDialog.vue @@ -148,14 +148,28 @@ export default { id: id, status: row.status } + let res = await authApi( 'sysMessageManageLogService', 'messageManage', 'thirdInterfacequeryEntity', '', params - ) + ); + if (res.status == '200') { + let res2 = await authApi( + "sysApplicationApiService", + "application", + "queryEntity", + "", + {"apiCode":res.attribute.receiveCode} + ); + if (res2.status == '200') { + this.$set(res.attribute,'apiName',res2.attribute[0].apiName); + }else{ + this.$set(res.attribute,'apiName',"未配置该接口"); + } this.$nextTick(() => { this.$refs.basicsForm.incomingParameters(res.attribute) }) diff --git a/vue.config.js b/vue.config.js index 21233aa..6476c09 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,14 +40,15 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `http://hzya.ufyct.com:9067/`, - // target: `http://ufidahz.com.cn:9067/`, + //target: `http://ufidahz.com.cn:9067/`, // target: `http://127.0.0.1:9081/`, // target: `http://192.168.2.78:9999`, // target: `http://192.168.2.85:9999`, // target: `http://192.168.2.78:8080`, - target: `http://192.168.2.78:9999`, + // target: `http://192.168.2.78:9999`, // target: `http://192.168.2.185:9999`, // target: `http://192.168.2.83:9999`, + target:'http://127.0.0.1:9999/', changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "",