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 +