【修改】监控流程
This commit is contained in:
@@ -299,7 +299,12 @@ export default {
|
||||
// 真删除接口
|
||||
delDatas(){
|
||||
|
||||
this.$api.permissionProcess.deletReport({ids:this.delData}).then(()=>{})
|
||||
return new Promise((resolve,reject)=>{
|
||||
this.$api.permissionProcess.deletReport({ids:this.delData}).then(()=>{
|
||||
resolve()
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
handleCheck(name) {
|
||||
@@ -431,23 +436,37 @@ export default {
|
||||
// 调用流程数据
|
||||
console.log("发送数据")
|
||||
// 处理表格数据
|
||||
this.organizeData()
|
||||
|
||||
//如果不是第一次
|
||||
if (this.initShow) {
|
||||
this.JuggleSub(this.taskId).then(res=>{
|
||||
if(res){
|
||||
if(this.delData){
|
||||
this.delDatas()
|
||||
this.delDatas().then(()=>{
|
||||
this.organizeData()
|
||||
let dataJson = JSON.stringify(this.tableData)
|
||||
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
||||
this.completeProcess({
|
||||
dataJson,
|
||||
submitJson,
|
||||
taskId: this.taskId,
|
||||
userId: this.$store.getters.userInfo.usid,
|
||||
prcType: this.prcType
|
||||
})
|
||||
})
|
||||
}else{
|
||||
this.organizeData()
|
||||
let dataJson = JSON.stringify(this.tableData)
|
||||
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
||||
this.completeProcess({
|
||||
dataJson,
|
||||
submitJson,
|
||||
taskId: this.taskId,
|
||||
userId: this.$store.getters.userInfo.usid,
|
||||
prcType: this.prcType
|
||||
})
|
||||
}
|
||||
let dataJson = JSON.stringify(this.tableData)
|
||||
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
||||
this.completeProcess({
|
||||
dataJson,
|
||||
submitJson,
|
||||
taskId: this.taskId,
|
||||
userId: this.$store.getters.userInfo.usid,
|
||||
prcType: this.prcType
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user