重点工程 - 重点工程强制结束相关功能

hyx_2024-9-29_tongbu
water_xu 2024-09-04 16:21:08 +08:00
parent 82300f3b95
commit d6f59a1205
1 changed files with 21 additions and 0 deletions

View File

@ -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',