From 1354982c6adced4dd3abdee7e4ca10dbae756f3b Mon Sep 17 00:00:00 2001 From: guoyuepeng <770272267@qq.com> Date: Wed, 4 Sep 2024 11:23:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=85=AB=E9=A1=B9=E4=BD=9C=E4=B8=9A=E5=BC=BA?= =?UTF-8?q?=E5=88=B6=E5=9B=9E=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/hotwork/hotwork/components/list.vue | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/src/views/hotwork/hotwork/components/list.vue b/src/views/hotwork/hotwork/components/list.vue index 1fe71dd..58dc09d 100644 --- a/src/views/hotwork/hotwork/components/list.vue +++ b/src/views/hotwork/hotwork/components/list.vue @@ -81,7 +81,8 @@ @@ -89,11 +90,12 @@ {{ row.examineUserName || row.examineDeptName }} - + @@ -184,7 +186,7 @@ export default { { id: '36', name: '安委会办公室待审批' }, { id: '37', name: '安全总监待审批' }, { id: '10', name: '延时监火' }, - { id: '11', name: '归档' }, + { id: '11', name: '归档' }, // 分成两部分 1.回档,2.强制回档 有字段表示 { id: '-1', name: '审核不通过' }, { id: '-2', name: '特级不通过' }, { id: '-3', name: '关闭归档' }, @@ -294,6 +296,7 @@ export default { this.$parent.HOTWORKAPPLICATION_ID = id this.$parent.HOTWORKAPPLICATION_TYPE = type }, + getDictTreeData() { return new Promise((resolve) => { requestFN( @@ -354,6 +357,35 @@ export default { }) }).catch(() => { }) + }, + forcedEnd(id, STATE) { // 强制结束 + this.$confirm('确定要强制结束吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.listLoading = true + requestFN( + '/hotworkapplication/forcedEnd', + { + HOTWORKAPPLICATION_ID: id, + STATE: STATE, + loginUserId: this.loginUserID + } + ).then(() => { + this.$message({ + message: '删除成功', + type: 'success' + }) + this.listLoading = false + this.varList = [] + this.listQuery.page = 1 + this.getList() + }).catch((e) => { + this.listLoading = false + }) + }).catch(() => { + }) } } }