This commit is contained in:
2025-03-18 17:26:36 +08:00
parent 1c79e452d1
commit c9fd1b032c
12 changed files with 129 additions and 153 deletions

View File

@@ -171,26 +171,29 @@
}
this.dataListLoading = false
})
},approveHandle(id){
},
approveHandle(id){
this.id = id
this.dialogVisible = true
},showFlowHandle(procInsId){
this.dialogVisible = true
},
showFlowHandle(procInsId){
this.procInsId = procInsId
this.dialogActiveVisible = true
},submitFlowComplete(){
},
submitFlowComplete(){
// 做审批通过的操作
this.$http({
url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dialogVisible = false
this.getDataList();
}
})
},claimHandle(id){
url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dialogVisible = false
this.getDataList();
}
})
},
claimHandle(id){
this.$confirm('确定要拾取当前的任务吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@@ -205,35 +208,24 @@
this.getDataList();
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},unclaimHandle(id){
}).catch(() => {})
},
unclaimHandle(id){
this.$confirm('确定要归还当前的任务吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.getDataList();
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.getDataList();
}
})
}).catch(() => {})
},
// 每页数
sizeChangeHandle (val) {
@@ -278,7 +270,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}