| | |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="record.sealStatus === 'SEALED'"> |
| | | <a-popconfirm title='确定启封吗?' @confirm='() => handleUnseal(record.id)'> |
| | | <a>启封</a> |
| | | </a-popconfirm> |
| | | <a-divider type='vertical' /> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </template> |
| | | <template v-if="record.sealStatus === 'COMPLETE'|| record.sealStatus === 'WAIT_UNSEALING_AUDIT' "> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </template> |
| | | </span> |
| | |
| | | list: '/eam/eamEquipmentSealUp/list', |
| | | delete: '/eam/eamEquipmentSealUp/delete', |
| | | deleteBatch: '/eam/eamEquipmentSealUp/deleteBatch', |
| | | submit: '/eam/eamEquipmentSealUp/submit' |
| | | submit: '/eam/eamEquipmentSealUp/submit', |
| | | unseal: '/eam/eamEquipmentSealUp/unseal' |
| | | } |
| | | } |
| | | }, |
| | |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | handleUnseal(id) { |
| | | if (!this.url.unseal) { |
| | | this.$message.error('请设置url.submit属性!') |
| | | return |
| | | } |
| | | let that = this |
| | | getAction(that.url.unseal, { id: id }).then((res) => { |
| | | if (res.success) { |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(1) |
| | | // that.$message.success(res.message); |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |