From 265283cc35aa1acf698515bf7d4112699358c99e Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Tue, 28 Nov 2023 10:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/defaultButtons.ts | 4 ++-- src/views/detection/records/records.data.ts | 4 ++-- .../recordsDetails/recordsDetails.data.ts | 24 +++++++++---------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 6034d1b..57b4d95 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -10,8 +10,8 @@ export function defaultBatchDeletionBtn(option:any) { label: '批量删除', name: 'batch', hide: false, - type: 'warning', - icon: 'ep:upload', + type: 'danger', + icon: 'ep:delete', color: '', hasPermi: '' }) diff --git a/src/views/detection/records/records.data.ts b/src/views/detection/records/records.data.ts index 6793673..b984d84 100644 --- a/src/views/detection/records/records.data.ts +++ b/src/views/detection/records/records.data.ts @@ -31,7 +31,7 @@ export const Records = useCrudSchemas(reactive([ componentProps: { filterable:true, optionsAlias: { - labelField: 'name', + labelField: 'code', valueField: 'code' } } @@ -48,7 +48,7 @@ export const Records = useCrudSchemas(reactive([ componentProps: { filterable:true, optionsAlias: { - labelField: 'name', + labelField: 'code', valueField: 'code' } } diff --git a/src/views/detection/recordsDetails/recordsDetails.data.ts b/src/views/detection/recordsDetails/recordsDetails.data.ts index 77e4567..970b4c4 100644 --- a/src/views/detection/recordsDetails/recordsDetails.data.ts +++ b/src/views/detection/recordsDetails/recordsDetails.data.ts @@ -46,18 +46,18 @@ export const RecordsDetails = useCrudSchemas(reactive([ field: 'contents', isSearch: true, isTable:true, - search: { - show: true, - component: 'Select', - api: () => getlsit(), - componentProps: { - filterable:true, - optionsAlias: { - labelField: 'contents', - valueField: 'contents' - } - } - }, + // search: { + // show: true, + // component: 'Select', + // api: () => getlsit(), + // componentProps: { + // filterable:true, + // optionsAlias: { + // labelField: 'contents', + // valueField: 'contents' + // } + // } + // }, }, { label: '检测方法',