From 2018e4925aa6da6fc7640bbab2419a93dad18369 Mon Sep 17 00:00:00 2001 From: yejiaxing <591141169@qq.com> Date: Sun, 4 Feb 2024 13:36:29 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/item/itemApplyMain/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/eam/item/itemApplyMain/index.vue b/src/views/eam/item/itemApplyMain/index.vue index 8a9a020..a5f2695 100644 --- a/src/views/eam/item/itemApplyMain/index.vue +++ b/src/views/eam/item/itemApplyMain/index.vue @@ -148,7 +148,7 @@ // 根据状态返回该按钮是否显示 const isShowMainButton = (row, val) => { - if (val.indexOf(row.status) > -1) { + if (val.indexOf(row.available) > -1) { return false } else { return true @@ -158,6 +158,7 @@ // 列表-操作按钮 const butttondata = (row) => { return [ + defaultButtons.mainListOrderCloBtn({ hide: isShowMainButton(row, ['0']) }), // 关闭 defaultButtons.mainListEditBtn(null), // 编辑 defaultButtons.mainListDeleteBtn(null), // 删除 ] @@ -282,4 +283,4 @@ getList() importTemplateData.templateUrl = await ItemApplyMainApi.importTemplate() }) - \ No newline at end of file +