From 8611a1ba1696e76cced04ff5d658ba138a05dafd Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期六, 19 八月 2023 14:37:32 +0800 Subject: [PATCH] 设备管理前端代码提交 截止 20230819 13:55 分 --- src/views/eam/EquipmentTransferList.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/eam/EquipmentTransferList.vue b/src/views/eam/EquipmentTransferList.vue index 4d3989b..a6ff9c2 100644 --- a/src/views/eam/EquipmentTransferList.vue +++ b/src/views/eam/EquipmentTransferList.vue @@ -107,14 +107,20 @@ slot='action' slot-scope='text, record' > - <a v-if="record.auditStatus === 'notSubmitted'" @click='handleEdit(record)'>缂栬緫</a> + <a v-if="record.auditStatus === 'notSubmitted'|| record.auditStatus === 'Rejected'" + @click='handleEdit(record)'>缂栬緫</a> <a v-if="record.auditStatus === 'pendingApproval'" @click='handleApprove(record)'>瀹℃壒</a> - - <a-divider v-if="record.auditStatus === 'notSubmitted'" type='vertical' /> - <a-dropdown v-if="record.auditStatus === 'notSubmitted'"> - <a class='ant-dropdown-link'>鏇村 <a-icon type='down' /></a> + <a-divider + v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected' || record.auditStatus === 'pendingApproval'" + type='vertical' + /> + <a-dropdown > + <a class='ant-dropdown-link'>鏇村 <a-icon type='down'/></a> <a-menu slot='overlay'> <a-menu-item> + <a @click='handleDetail(record)'>璇︽儏</a> + </a-menu-item> + <a-menu-item v-if="record.auditStatus === 'notSubmitted'||record.auditStatus === 'Rejected'"> <a-popconfirm title='纭畾鍒犻櫎鍚�?' @confirm='() => handleDelete(record.id)'> <a>鍒犻櫎</a> @@ -323,7 +329,7 @@ }, handleApprove: function(record) { - let reject, approval; + let reject, approval reject = this.url.reject approval = this.url.approval this.$refs.approvalModalForm.showModals(record, reject, approval) -- Gitblit v1.9.3