catch
This commit is contained in:
@@ -196,7 +196,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
},
|
},
|
||||||
// 生成模板
|
// 生成模板
|
||||||
addTempHandle (id) {
|
addTempHandle (id) {
|
||||||
|
|||||||
@@ -154,7 +154,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -320,7 +320,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,7 +193,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
deleteHandle (id) {
|
deleteHandle (id) {
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,36 +167,39 @@
|
|||||||
}
|
}
|
||||||
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({
|
||||||
url: this.$http.adornUrl(`/flw/instance/getCompleteHiTaskInstance/${this.procInsId}`),
|
url: this.$http.adornUrl(`/flw/instance/getCompleteHiTaskInstance/${this.procInsId}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dialogActiveVisible = true
|
this.dialogActiveVisible = true
|
||||||
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}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},claimHandle(id){
|
},
|
||||||
|
claimHandle(id){
|
||||||
this.$confirm('确定要拾取当前的任务吗?', '提示', {
|
this.$confirm('确定要拾取当前的任务吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
@@ -211,35 +214,24 @@
|
|||||||
this.getDataList();
|
this.getDataList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {})
|
||||||
this.$message({
|
},
|
||||||
type: 'info',
|
unclaimHandle(id){
|
||||||
message: '已取消删除'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
},unclaimHandle(id){
|
|
||||||
this.$confirm('确定要归还当前的任务吗?', '提示', {
|
this.$confirm('确定要归还当前的任务吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
|
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
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(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,79 +161,71 @@
|
|||||||
}
|
}
|
||||||
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({
|
||||||
url: this.$http.adornUrl(`/flw/instance/getHiTaskInstance/${this.procInsId}`),
|
url: this.$http.adornUrl(`/flw/instance/getHiTaskInstance/${this.procInsId}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dialogActiveVisible = true
|
this.dialogActiveVisible = true
|
||||||
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}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},claimHandle(id){
|
},
|
||||||
|
claimHandle(id){
|
||||||
this.$confirm('确定要拾取当前的任务吗?', '提示', {
|
this.$confirm('确定要拾取当前的任务吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/flw/instance/claimTask/${id}`),
|
url: this.$http.adornUrl(`/flw/instance/claimTask/${id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {})
|
||||||
this.$message({
|
},
|
||||||
type: 'info',
|
unclaimHandle(id){
|
||||||
message: '已取消删除'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
},unclaimHandle(id){
|
|
||||||
this.$confirm('确定要归还当前的任务吗?', '提示', {
|
this.$confirm('确定要归还当前的任务吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
|
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
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(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,26 +171,29 @@
|
|||||||
}
|
}
|
||||||
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}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},claimHandle(id){
|
},
|
||||||
|
claimHandle(id){
|
||||||
this.$confirm('确定要拾取当前的任务吗?', '提示', {
|
this.$confirm('确定要拾取当前的任务吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
@@ -205,35 +208,24 @@
|
|||||||
this.getDataList();
|
this.getDataList();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {})
|
||||||
this.$message({
|
},
|
||||||
type: 'info',
|
unclaimHandle(id){
|
||||||
message: '已取消删除'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
},unclaimHandle(id){
|
|
||||||
this.$confirm('确定要归还当前的任务吗?', '提示', {
|
this.$confirm('确定要归还当前的任务吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
|
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
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(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,7 +179,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,7 +239,7 @@
|
|||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user