diff --git a/lms/nladmin-ui/src/views/monitor/interfaceLog/index.vue b/lms/nladmin-ui/src/views/monitor/interfaceLog/index.vue index a1bb93a5b..ec5890bbb 100644 --- a/lms/nladmin-ui/src/views/monitor/interfaceLog/index.vue +++ b/lms/nladmin-ui/src/views/monitor/interfaceLog/index.vue @@ -27,16 +27,17 @@ {{ props.row.params }} + + {{ props.row.return_result }} + - + + - - - - + + + + + +
+
@@ -69,6 +78,12 @@ export default { return CRUD({ title: '日志', url: 'api/interfaceLog' }) }, mixins: [presenter()], + data() { + return { + errorInfo: '', + dialog: false + } + }, created() { this.crud.optShow = { add: false, @@ -96,6 +111,12 @@ export default { }) }).catch(() => { }) + }, + info(log_id) { + this.dialog = true + crudInterfaceLog.getErrDetail(log_id).then(res => { + this.errorInfo = res.exception + }) } } } @@ -105,15 +126,18 @@ export default { .demo-table-expand { font-size: 0; } + .demo-table-expand label { width: 70px; color: #99a9bf; } + .demo-table-expand .el-form-item { margin-right: 0; margin-bottom: 0; width: 100%; } + .demo-table-expand .el-form-item__content { font-size: 12px; } diff --git a/lms/nladmin-ui/src/views/monitor/interfaceLog/interfaceLog.js b/lms/nladmin-ui/src/views/monitor/interfaceLog/interfaceLog.js index fed5509dc..c2849e6d5 100644 --- a/lms/nladmin-ui/src/views/monitor/interfaceLog/interfaceLog.js +++ b/lms/nladmin-ui/src/views/monitor/interfaceLog/interfaceLog.js @@ -7,16 +7,26 @@ export function add(data) { data }) } + export function delLogs() { return request({ url: 'api/interfaceLog/delLogs', method: 'delete' }) } + +export function getErrDetail(id) { + return request({ + url: 'api/interfaceLog/error/' + id, + method: 'get' + }) +} + export function getLogTypeList() { return request({ url: 'api/interfaceLog/logTypeList', method: 'get' }) } -export default { add, delLogs, getLogTypeList } + +export default { add, delLogs, getLogTypeList, getErrDetail } diff --git a/lms/nladmin-ui/src/views/monitor/interfaceLog/search.vue b/lms/nladmin-ui/src/views/monitor/interfaceLog/search.vue index e1eb1fadf..13c9cc81e 100644 --- a/lms/nladmin-ui/src/views/monitor/interfaceLog/search.vue +++ b/lms/nladmin-ui/src/views/monitor/interfaceLog/search.vue @@ -8,18 +8,27 @@ style="width: 200px;" class="filter-item" /> - + @@ -31,19 +40,46 @@ import { header } from '@crud/crud' import rrOperation from '@crud/RR.operation' import DateRangePicker from '@/components/DateRangePicker' -import { getLogTypeList } from '@/views/monitor/interfaceLog/interfaceLog' +import crudClassstandard from '@/views/wms/basedata/master/class/classstandard' + export default { components: { rrOperation, DateRangePicker }, mixins: [header()], data() { return { - logTypeList: [] + logTypeList: [], + TypeList: [ + { 'label': 'INFO', 'value': 'INFO' }, + { 'label': 'ERROR', 'value': 'ERROR' } + ], + sects: [] } }, created() { - getLogTypeList().then(res => { - this.logTypeList = res + const param = { + class_code: 'interface_type' + } + crudClassstandard.getCasClass(param).then(res => { + const data = res.content + this.sects = data }) + }, + methods: { + sectQueryChange(val) { + if (val.length === 1) { + this.query.log_dtl_info = val[0] + this.query.method = '' + } + if (val.length === 0) { + this.query.log_dtl_info = '' + this.query.method = '' + } + if (val.length === 2) { + this.query.log_dtl_info = val[0] + this.query.method = val[1] + } + this.crud.toQuery() + } } } diff --git a/lms/nladmin-ui/src/views/wms/basedata/master/class/classstandard.js b/lms/nladmin-ui/src/views/wms/basedata/master/class/classstandard.js index 0c216de38..ee30283ac 100644 --- a/lms/nladmin-ui/src/views/wms/basedata/master/class/classstandard.js +++ b/lms/nladmin-ui/src/views/wms/basedata/master/class/classstandard.js @@ -48,6 +48,7 @@ export function getClassType(params) { params }) } + export function queryClassById(params) { return request({ url: 'api/Classstandard/queryClassById', @@ -55,6 +56,7 @@ export function queryClassById(params) { params }) } + // 传入分类标识和级别 export function getType(params) { return request({ @@ -79,4 +81,24 @@ export function getClassName() { }) } -export default { add, edit, del, getClass, getClassSuperior, getClassType, getClassTable, getType, queryClassById, getClassName } +export function getCasClass(data) { + return request({ + url: 'api/Classstandard/getCasClass', + method: 'post', + data + }) +} + +export default { + add, + edit, + del, + getClass, + getClassSuperior, + getClassType, + getClassTable, + getType, + queryClassById, + getClassName, + getCasClass +}