首页异常日志,接口日志两个界面,补充展示接口名称字段

This commit is contained in:
username 2024-09-10 13:42:46 +08:00
parent ee50442c66
commit 5f22a374d9
7 changed files with 112 additions and 2 deletions

View File

@ -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: '源数据',

View File

@ -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) {

View File

@ -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)
})

View File

@ -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: '源数据',

View File

@ -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) {

View File

@ -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)
})

View File

@ -40,7 +40,7 @@ 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`,
@ -48,6 +48,7 @@ module.exports = {
// 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]: "",