【修改】监控流程
This commit is contained in:
@@ -179,15 +179,15 @@ export default {
|
||||
reportList=reportList.map(item=>{
|
||||
return item.reportId
|
||||
})
|
||||
this.$api.permissionProcess.deletReport({ids:idsList}).then(()=>{
|
||||
// this.$api.permissionProcess.deletReport({ids:idsList}).then(()=>{
|
||||
if(reportList.length>0){
|
||||
let reportids= row.map(item=>item.reportId)
|
||||
newValue=this.value.filter(item =>
|
||||
reportids.indexOf(item.reportId)==-1
|
||||
)
|
||||
this.$emit('updateTable', newValue)
|
||||
this.$emit('updateTable', newValue,reportids)
|
||||
}
|
||||
})
|
||||
// })
|
||||
}else{
|
||||
if(reportList.length>0){
|
||||
reportList=reportList.map(item=>{
|
||||
@@ -195,7 +195,7 @@ export default {
|
||||
})
|
||||
newValue=this.value.filter(item => reportList.indexOf(item.reportId)==-1
|
||||
)
|
||||
this.$emit('updateTable', newValue)
|
||||
this.$emit('updateTable', newValue,[])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,14 +214,14 @@ export default {
|
||||
}).then(() => {
|
||||
if (this.$route.query.taskDefinitionKey == 'aid4' ){
|
||||
if(row.id && row.id !=''){
|
||||
this.$api.permissionProcess.deletReport({ids:[row.id]}).then(()=>{
|
||||
this.$emit('updateTable',this.value.filter(item => item.id !== row.id))
|
||||
})
|
||||
// this.$api.permissionProcess.deletReport({ids:[row.id]}).then(()=>{
|
||||
this.$emit('updateTable',this.value.filter(item => item.id !== row.id),[row.id])
|
||||
// })
|
||||
}else{
|
||||
this.$emit('updateTable', this.value.filter(item => item.reportId !== row.reportId))
|
||||
this.$emit('updateTable', this.value.filter(item => item.reportId !== row.reportId),[])
|
||||
}
|
||||
}else{
|
||||
this.$emit('updateTable', this.value.filter(item => item.reportId !== row.reportId))
|
||||
this.$emit('updateTable', this.value.filter(item => item.reportId !== row.reportId),[])
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user