From 8ff0a5a88c5028c3ad8dbe961684e2c445191a6e Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 30 Dec 2024 16:38:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E4=BF=AE=E5=B7=A5=E5=8D=95=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deviceinspectionjob/deviceInspectionMain.data.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts b/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts index 765e18b..dac00fc 100644 --- a/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts +++ b/src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts @@ -490,7 +490,12 @@ export const DeviceInspectionDetail = useCrudSchemas(reactive([ filterable: true, }, formatter: (_: Recordable, __: TableColumn, cellValue) => { - const cellValueList = cellValue?.split(','); + let cellValueList = [] + if (cellValue.includes(',')) { + cellValueList = cellValue?.split(','); + } else { + cellValueList = [cellValue] + } return userListAll .filter(item => cellValueList.includes(item.id.toString())) .map(item => item.nickname)