log_detail
This commit is contained in:
parent
2c2e1f6732
commit
ef18fb08c5
1 changed files with 17 additions and 6 deletions
|
|
@ -149,7 +149,7 @@ export class ReportController extends Controller {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get("detail")
|
@Get("logsDetail")
|
||||||
async reportDetail(
|
async reportDetail(
|
||||||
@Query() id?: string,
|
@Query() id?: string,
|
||||||
) {
|
) {
|
||||||
|
|
@ -188,14 +188,25 @@ export class ReportController extends Controller {
|
||||||
responseDescription: source.responseDescription,
|
responseDescription: source.responseDescription,
|
||||||
input: source.input,
|
input: source.input,
|
||||||
output: source.output,
|
output: source.output,
|
||||||
sequence: source.sequence
|
sequence: source.sequence ? source.sequence : [{
|
||||||
|
action:"-",
|
||||||
|
status:"-",
|
||||||
|
description:"-",
|
||||||
|
request:{
|
||||||
|
method:"-",
|
||||||
|
url:"-",
|
||||||
|
response:"-",
|
||||||
|
},
|
||||||
|
}],
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
return ({
|
const data = lists.length === 1 ? lists[0] : lists;
|
||||||
|
|
||||||
|
return {
|
||||||
template: "logs_detail",
|
template: "logs_detail",
|
||||||
reportName: "xlsx-report",
|
reportName: "docx-report",
|
||||||
data: lists,
|
data: data,
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue