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

@@ -196,7 +196,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -189,7 +189,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -216,7 +216,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
}, },
// 生成模板 // 生成模板
addTempHandle (id) { addTempHandle (id) {

View File

@@ -154,7 +154,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -320,7 +320,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -193,7 +193,7 @@
}) })
} }
}) })
}) }).catch(() => {})
}, },
// 删除 // 删除
deleteHandle (id) { deleteHandle (id) {
@@ -223,7 +223,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -167,10 +167,12 @@
} }
this.dataListLoading = false this.dataListLoading = false
}) })
},approveHandle(id){ },
approveHandle(id){
this.id = id this.id = id
this.dialogVisible = true this.dialogVisible = true
},showFlowHandle(procInsId){ },
showFlowHandle(procInsId){
this.procInsId = procInsId this.procInsId = procInsId
// 通过流程实例id查询对应的流转记录 // 通过流程实例id查询对应的流转记录
this.$http({ this.$http({
@@ -183,7 +185,8 @@
this.hiTasks = data.data this.hiTasks = data.data
} }
}) })
},submitFlowComplete(){ },
submitFlowComplete(){
// 做审批通过的操作 // 做审批通过的操作
this.$http({ this.$http({
url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`), url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`),
@@ -195,8 +198,8 @@
this.getDataList(); this.getDataList();
} }
}) })
},claimHandle(id){ },
claimHandle(id){
this.$confirm('确定要拾取当前的任务吗?', '提示', { this.$confirm('确定要拾取当前的任务吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -211,15 +214,9 @@
this.getDataList(); this.getDataList();
} }
}) })
}).catch(() => { }).catch(() => {})
this.$message({ },
type: 'info', unclaimHandle(id){
message: '已取消删除'
});
});
},unclaimHandle(id){
this.$confirm('确定要归还当前的任务吗?', '提示', { this.$confirm('确定要归还当前的任务吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -234,12 +231,7 @@
this.getDataList(); this.getDataList();
} }
}) })
}).catch(() => { }).catch(() => {})
this.$message({
type: 'info',
message: '已取消删除'
});
});
}, },
// 每页数 // 每页数
sizeChangeHandle (val) { sizeChangeHandle (val) {
@@ -284,7 +276,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -161,10 +161,12 @@
} }
this.dataListLoading = false this.dataListLoading = false
}) })
},approveHandle(id){ },
approveHandle(id){
this.id = id this.id = id
this.dialogVisible = true this.dialogVisible = true
},showFlowHandle(procInsId){ },
showFlowHandle(procInsId){
this.procInsId = procInsId this.procInsId = procInsId
// 通过流程实例id查询对应的流转记录 // 通过流程实例id查询对应的流转记录
this.$http({ this.$http({
@@ -177,7 +179,8 @@
this.hiTasks = data.data this.hiTasks = data.data
} }
}) })
},submitFlowComplete(){ },
submitFlowComplete(){
// 做审批通过的操作 // 做审批通过的操作
this.$http({ this.$http({
url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`), url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`),
@@ -189,8 +192,8 @@
this.getDataList(); this.getDataList();
} }
}) })
},claimHandle(id){ },
claimHandle(id){
this.$confirm('确定要拾取当前的任务吗?', '提示', { this.$confirm('确定要拾取当前的任务吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -205,15 +208,9 @@
this.getDataList(); this.getDataList();
} }
}) })
}).catch(() => { }).catch(() => {})
this.$message({ },
type: 'info', unclaimHandle(id){
message: '已取消删除'
});
});
},unclaimHandle(id){
this.$confirm('确定要归还当前的任务吗?', '提示', { this.$confirm('确定要归还当前的任务吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -228,12 +225,7 @@
this.getDataList(); this.getDataList();
} }
}) })
}).catch(() => { }).catch(() => {})
this.$message({
type: 'info',
message: '已取消删除'
});
});
}, },
// 每页数 // 每页数
sizeChangeHandle (val) { sizeChangeHandle (val) {
@@ -278,7 +270,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -171,13 +171,16 @@
} }
this.dataListLoading = false this.dataListLoading = false
}) })
},approveHandle(id){ },
approveHandle(id){
this.id = id this.id = id
this.dialogVisible = true this.dialogVisible = true
},showFlowHandle(procInsId){ },
showFlowHandle(procInsId){
this.procInsId = procInsId this.procInsId = procInsId
this.dialogActiveVisible = true this.dialogActiveVisible = true
},submitFlowComplete(){ },
submitFlowComplete(){
// 做审批通过的操作 // 做审批通过的操作
this.$http({ this.$http({
url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`), url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`),
@@ -189,8 +192,8 @@
this.getDataList(); this.getDataList();
} }
}) })
},claimHandle(id){ },
claimHandle(id){
this.$confirm('确定要拾取当前的任务吗?', '提示', { this.$confirm('确定要拾取当前的任务吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -205,15 +208,9 @@
this.getDataList(); this.getDataList();
} }
}) })
}).catch(() => { }).catch(() => {})
this.$message({ },
type: 'info', unclaimHandle(id){
message: '已取消删除'
});
});
},unclaimHandle(id){
this.$confirm('确定要归还当前的任务吗?', '提示', { this.$confirm('确定要归还当前的任务吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -228,12 +225,7 @@
this.getDataList(); this.getDataList();
} }
}) })
}).catch(() => { }).catch(() => {})
this.$message({
type: 'info',
message: '已取消删除'
});
});
}, },
// 每页数 // 每页数
sizeChangeHandle (val) { sizeChangeHandle (val) {
@@ -278,7 +270,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -190,7 +190,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -179,7 +179,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }

View File

@@ -239,7 +239,7 @@
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}) }).catch(() => {})
} }
} }
} }