From d6f59a120519e84403dc4ebbc85e73c868fae37b Mon Sep 17 00:00:00 2001 From: water_xu Date: Wed, 4 Sep 2024 16:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E5=B7=A5=E7=A8=8B=20-=20?= =?UTF-8?q?=E9=87=8D=E7=82=B9=E5=B7=A5=E7=A8=8B=E5=BC=BA=E5=88=B6=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../outsourced/components/list.vue | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/views/keyprojects/outsourced/components/list.vue b/src/views/keyprojects/outsourced/components/list.vue index aa848f7..b751390 100644 --- a/src/views/keyprojects/outsourced/components/list.vue +++ b/src/views/keyprojects/outsourced/components/list.vue @@ -368,6 +368,7 @@ @@ -423,6 +424,7 @@ export default { cfList:[],// 待处罚 fkList:[],// 待反馈处罚 aiList:[],// AI报警 + selectOID: '', defaultProps: { value: 'id', children: 'nodes', @@ -672,9 +674,28 @@ export default { this.cfList = data.cfList // 待处罚 this.fkList = data.fkList // 待反馈的处罚 this.aiList = data.aiList // 关联的AI报警 + this.selectOID = id }).catch((e) => { }) }, + // 全部删除接口 + forceDelete(){ + if (!this.selectOID) { + this.$message('请勿重复点击', { + confirmButtonText: '确定', + type: 'warning' + }) + } + requestFN( + '/outsourced/forceDelete', + {OUTSOURCED_ID: this.selectOID} + ).then((data) => { + this.dialogPreDeleteShow = false + this.selectOID = '' + }).catch((e) => { + this.selectOID = '' + }) + }, getUnitsList() { requestFN( '/units/listAll',