【修改】监控流程
This commit is contained in:
@@ -160,18 +160,18 @@ export default {
|
|||||||
// 有idde
|
// 有idde
|
||||||
console.log(this.value)
|
console.log(this.value)
|
||||||
debugger
|
debugger
|
||||||
let idsList=this.checkIds.filter(item=>{
|
var idsList=this.checkIds.filter(item=>{
|
||||||
if(item.id && item.id !=''){
|
if(item.id && item.id !=''){
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let reportList=this.checkIds.filter(item=>{
|
var reportList=this.checkIds.filter(item=>{
|
||||||
if(!item.id ){
|
if(!item.id ){
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let newValue=[]
|
var newValue=[]
|
||||||
if(idsList.length>0){
|
if(idsList.length>0){
|
||||||
idsList=idsList.map(item=>{
|
idsList=idsList.map(item=>{
|
||||||
return item.id
|
return item.id
|
||||||
@@ -186,6 +186,11 @@ export default {
|
|||||||
reportids.indexOf(item.reportId)==-1
|
reportids.indexOf(item.reportId)==-1
|
||||||
)
|
)
|
||||||
this.$emit('updateTable', newValue,reportids)
|
this.$emit('updateTable', newValue,reportids)
|
||||||
|
}else{
|
||||||
|
newValue=this.value.filter(item =>
|
||||||
|
idsList.indexOf(item.id)==-1
|
||||||
|
)
|
||||||
|
this.$emit('updateTable', newValue,idsList)
|
||||||
}
|
}
|
||||||
// })
|
// })
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -299,7 +299,12 @@ export default {
|
|||||||
// 真删除接口
|
// 真删除接口
|
||||||
delDatas(){
|
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) {
|
handleCheck(name) {
|
||||||
@@ -431,23 +436,37 @@ export default {
|
|||||||
// 调用流程数据
|
// 调用流程数据
|
||||||
console.log("发送数据")
|
console.log("发送数据")
|
||||||
// 处理表格数据
|
// 处理表格数据
|
||||||
this.organizeData()
|
|
||||||
//如果不是第一次
|
//如果不是第一次
|
||||||
if (this.initShow) {
|
if (this.initShow) {
|
||||||
this.JuggleSub(this.taskId).then(res=>{
|
this.JuggleSub(this.taskId).then(res=>{
|
||||||
if(res){
|
if(res){
|
||||||
if(this.delData){
|
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