From 2eef72a6692e02d76e5b9d563c325f3244191d20 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Wed, 22 May 2024 09:33:04 +0800 Subject: [PATCH] =?UTF-8?q?WMS=20=E8=BF=87=E6=BB=A4=E6=8E=89=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionRecord/index.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/qms/inspectionRecord/index.vue b/src/views/qms/inspectionRecord/index.vue index 6c5d8dd2a..daf0f6ec9 100644 --- a/src/views/qms/inspectionRecord/index.vue +++ b/src/views/qms/inspectionRecord/index.vue @@ -73,10 +73,20 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' const routeName = ref() routeName.value = route.name const tableColumns = ref(InspectionRecordMain.allSchemas.tableColumns) - + if(routeName.value=='InspectRecordMain'){ + tableColumns.value = tableColumns.value.filter(item=>{ + return item.label!='操作' + }) + } // 字段设置 更新主列表字段 const updataTableColumns = (val) => { - tableColumns.value = val + if(routeName.value=='InspectRecordMain'){ + tableColumns.value = val.filter(item=>{ + return item.label!='操作' + }) + }else{ + tableColumns.value = val + } }