重点工程 - 重点工程强制结束相关功能
parent
82300f3b95
commit
d6f59a1205
|
@ -368,6 +368,7 @@
|
|||
</el-table>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="forceDelete" type="danger" icon="el-icon-delete">强制删除并结束</el-button>
|
||||
<el-button @click="dialogPreDeleteShow = false">关 闭</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue