diff --git a/src/views/keyprojects/outsourced/components/list.vue b/src/views/keyprojects/outsourced/components/list.vue index cac9113..169f1e2 100644 --- a/src/views/keyprojects/outsourced/components/list.vue +++ b/src/views/keyprojects/outsourced/components/list.vue @@ -159,7 +159,8 @@ 查看 开工审批 结束审批 - 强制结束 + 强制结束 + 查看关联 编辑 删除 @@ -326,7 +327,7 @@ @@ -383,6 +384,7 @@ export default { fkList:[],// 待反馈处罚 aiList:[],// AI报警 selectOID: '', + selectOSTATE:'', defaultProps: { value: 'id', children: 'nodes', @@ -620,11 +622,11 @@ export default { }).catch(() => { }) }, - handlePreForceDelete(id){ + handlePreForceDelete(row){ this.dialogPreDeleteShow = true requestFN( '/outsourced/preForceDelete', - { OUTSOURCED_ID: id } + { OUTSOURCED_ID: row.OUTSOURCED_ID } ).then((data) => { this.inspectList = data.inspectList // 待确认的安全环保检查 this.zgList = data.zgList // 需整改的隐患 @@ -632,12 +634,14 @@ export default { this.cfList = data.cfList // 待处罚 this.fkList = data.fkList // 待反馈的处罚 this.aiList = data.aiList // 关联的AI报警 - this.selectOID = id + this.selectOID = row.OUTSOURCED_ID + this.selectOSTATE = row.STATE }).catch((e) => { }) + }, // 全部删除接口 - forceDelete(){ + forceJie(){ if (!this.selectOID) { this.$message('请勿重复点击', { confirmButtonText: '确定', @@ -645,21 +649,23 @@ export default { }) } // --- - this.$confirm('确定要删除所有关联吗?', { + this.$confirm('确定要结束该重点工程吗?', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { requestFN( - '/outsourced/forceDelete', + '/outsourced/forceJie', {OUTSOURCED_ID: this.selectOID} ).then((data) => { this.dialogPreDeleteShow = false this.selectOID = '' + this.selectOSTATE = '' this.getList() this.$forceUpdate() }).catch((e) => { this.selectOID = '' + this.selectOSTATE = '' }) }).catch(() => {