diff --git a/src/modules/system/views/exception/SysExceptionListView.api.ts b/src/modules/system/views/exception/SysExceptionListView.api.ts index 935cfab83..2e277e9bc 100644 --- a/src/modules/system/views/exception/SysExceptionListView.api.ts +++ b/src/modules/system/views/exception/SysExceptionListView.api.ts @@ -3,6 +3,7 @@ import { ApiServiceEnum, defHttp } from '@/utils/http/axios'; enum Api { list = 'sys/exception/list', getById = 'sys/exception/getById', + markResolved = 'sys/exception/markResolved', } export const listApi = (params) => { @@ -20,3 +21,11 @@ export const getById = (id) => { data: id, }); }; + +export const markResolvedApi = (data) => { + return defHttp.post({ + service: ApiServiceEnum.SMART_SYSTEM, + url: Api.markResolved, + data, + }); +}; diff --git a/src/modules/system/views/exception/SysExceptionListView.config.ts b/src/modules/system/views/exception/SysExceptionListView.config.ts index 969feb231..ce0ec2b6c 100644 --- a/src/modules/system/views/exception/SysExceptionListView.config.ts +++ b/src/modules/system/views/exception/SysExceptionListView.config.ts @@ -37,7 +37,7 @@ export const getTableColumns = (): SmartColumn[] => { width: 200, }, { - field: 'operateBy', + field: 'operationBy', title: '{system.views.exception.title.operateUser}', width: 120, }, @@ -76,6 +76,9 @@ export const getTableColumns = (): SmartColumn[] => { field: 'resolvedUserId', title: '{system.views.exception.title.resolvedUserId}', width: 120, + formatter({ row }) { + return row.resolvedUser?.fullName; + }, }, { field: 'resolvedTime', diff --git a/src/modules/system/views/exception/SysExceptionListView.vue b/src/modules/system/views/exception/SysExceptionListView.vue index 247cef71c..f8f7075ab 100644 --- a/src/modules/system/views/exception/SysExceptionListView.vue +++ b/src/modules/system/views/exception/SysExceptionListView.vue @@ -9,7 +9,7 @@ -