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

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> </el-table>
<div slot="footer" class="dialog-footer"> <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> <el-button @click="dialogPreDeleteShow = false"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -423,6 +424,7 @@ export default {
cfList:[],// cfList:[],//
fkList:[],// fkList:[],//
aiList:[],// AI aiList:[],// AI
selectOID: '',
defaultProps: { defaultProps: {
value: 'id', value: 'id',
children: 'nodes', children: 'nodes',
@ -672,9 +674,28 @@ export default {
this.cfList = data.cfList // this.cfList = data.cfList //
this.fkList = data.fkList // this.fkList = data.fkList //
this.aiList = data.aiList // AI this.aiList = data.aiList // AI
this.selectOID = id
}).catch((e) => { }).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() { getUnitsList() {
requestFN( requestFN(
'/units/listAll', '/units/listAll',