From 2e276c26c68cf4ee879c990ed0afd3e28a3888ae Mon Sep 17 00:00:00 2001 From: shizhongming Date: Fri, 16 Feb 2024 15:17:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B3=BB=E7=BB=9F=E6=A8=A1=E5=9D=97-?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF):=20=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exception/SysExceptionListView.api.ts | 9 +++ .../exception/SysExceptionListView.config.ts | 5 +- .../views/exception/SysExceptionListView.vue | 55 ++++++++++++++++++- .../system/views/exception/lang/en_US.ts | 11 +++- .../system/views/exception/lang/zh_CN.ts | 13 ++++- .../views/userGroup/UserGroupListView.vue | 1 + 6 files changed, 87 insertions(+), 7 deletions(-) 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 @@ -