From 6ee12c514819de56604c425c676ac15bb95db14b Mon Sep 17 00:00:00 2001 From: zhang_li Date: Wed, 28 May 2025 17:01:54 +0800 Subject: [PATCH] =?UTF-8?q?SBBJ-977=E8=AE=BE=E5=A4=87=E7=BB=B4=E6=8A=A4-?= =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=B7=A5=E5=8D=95=EF=BC=8C=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=8E=E6=98=8E=E7=BB=86=E5=BA=94=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E7=BC=96=E8=BE=91=E3=80=81=E5=88=A0=E9=99=A4=EF=BC=8C?= =?UTF-8?q?=E7=8E=B0=E8=83=BD=E7=BC=96=E8=BE=91=E3=80=81=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/device/devicemaintenancejob/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 496e7d8..8798fa9 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -106,6 +106,7 @@ :openFormCallBack="openFormCallBack" :buttonControllFunction="buttonControllFunction" @deleteDetail="getList" + :isShowAddBtn="isShowAddBtn" /> @@ -303,6 +304,7 @@ const selectedOptions = ref([]) const options = ref([]) const isTemporaryShow = ref(false) const DeviceMaintenanceDetailFilter = ref(cloneDeep(DeviceMaintenanceDetail)) +const isShowAddBtn = ref(false) // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { nextTick(() => { @@ -815,8 +817,10 @@ const detailRef = ref() const openDetail = async (row: any, titleName: any, titleValue: any) => { if(row.status == 'COMPLETED' || row.status == 'VERIFIED' || row.status == 'APPLYPASS' || row.status == 'APPROVEPASS'){ DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns.filter(item => item.field !== 'action'); + isShowAddBtn.value = false }else{ DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns; + isShowAddBtn.value = true } const userListAll = await UserApi.getSimpleUserList() const factoryList = await selectAllFactoryArea()