首页异常日志,接口日志两个界面,查询列表接口名称方法,后端接口改为关联表方式。

This commit is contained in:
username 2024-09-18 10:57:27 +08:00
parent 38ed4ff43f
commit 0fa4dd4a79
5 changed files with 37 additions and 37 deletions

View File

@ -39,9 +39,9 @@
"-": "^0.0.1",
"@babel/parser": "^7.7.4",
"@riophae/vue-treeselect": "0.4.0",
"axios": "^0.24.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^1.0.2",
"axios": "^0.24.0",
"babel-polyfill": "^6.26.0",
"clipboard": "2.0.8",
"crypto-js": "^4.1.1",

View File

@ -11,7 +11,7 @@ const tableColumnData = [
},
{
label: '接口名称',
prop: 'apiName',
prop: 'receiveApiName',
tooltip: true,
},
{

View File

@ -211,23 +211,23 @@ export default {
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',"未配置该接口");
}
})
// 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) {

View File

@ -11,7 +11,7 @@ const tableColumnData = [
},
{
label: '接口名称',
prop: 'apiName',
prop: 'receiveApiName',
tooltip: true,
},
{

View File

@ -221,23 +221,23 @@ export default {
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',"未配置该接口");
}
})
// 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',"");
// }
//
// })