按钮loading-标准解读流程

This commit is contained in:
zyn
2023-11-06 13:23:09 +08:00
parent 81862e012a
commit 3587fc859e
7 changed files with 47 additions and 9 deletions
@@ -1056,6 +1056,7 @@ export default {
},
handleSave() {
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.userId)
@@ -1069,11 +1070,11 @@ export default {
sarType: this.sarType
}))
saveTaskFirst(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
handleSubmit() {
@@ -1129,6 +1130,7 @@ export default {
this.$message.warning('请选择责任人')
} else {
this.isSubmit = true
this.saveLoading = true
this.$http.post('lawss/activiti/startProcessRollBack', {
createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName,
@@ -1164,10 +1166,13 @@ export default {
}
this.$router.push('/processCenter')
}
this.isSubmit = false
this.saveLoading = false
})
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
this.saveLoading = false
}
})
}
@@ -332,6 +332,8 @@
this.drawerModal = true
},
checkedRole (data) {
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
@@ -346,6 +348,9 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 点击跳转标准详情
@@ -454,6 +459,7 @@
},
handleSave() {
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
@@ -464,10 +470,10 @@
standInData: this.sarType
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
}).catch(e => {
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
handleSubmit() {
@@ -483,6 +489,7 @@
this.$message.warning('请选择执行人')
} else {
this.isSubmit = true
this.saveLoading = true
var json = this.json
json.itemList = this.itemList
json.commentText = this.commentText2
@@ -496,6 +503,7 @@
this.$router.push('/processCenter')
}
this.isSubmit = false
this.saveLoading = false
})
}
} else {
@@ -714,6 +714,8 @@
this.drawerModal = true
},
checkedRole (data) {
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
@@ -728,6 +730,9 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 请求转换流程图
@@ -831,6 +836,7 @@
},
handleSave() {
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
@@ -844,7 +850,8 @@
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
}).catch(e => {
}).finally(() => {
this.isSubmit = false
this.saveLoading = false
})
},
@@ -918,6 +925,7 @@
this.$message.warning('请选择责任人')
} else {
this.isSubmit = true
this.saveLoading = true
var json = this.json
json.commentText = this.commentText3
json.itemList = this.itemList
@@ -932,6 +940,7 @@
this.$router.push('/processCenter')
}
this.isSubmit = false
this.saveLoading = false
})
}
} else {
@@ -256,7 +256,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:saveLoading="isSubmit"
:isSubmitBack="isSubmit"
@submit="handleSubmit"
show-back
@back="handleSubmitNo"
@@ -384,6 +385,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
@@ -398,6 +400,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 点击跳转标准详情
@@ -255,7 +255,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:saveLoading="isSubmit"
:isSubmitBack="isSubmit"
@submit="handleSubmit"
show-transfer
@transfer="handleTransfer"
@@ -381,6 +382,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
@@ -395,6 +397,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 点击跳转标准详情
@@ -258,7 +258,8 @@
<ProcessFooter v-if="false"
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:saveLoading="isSubmit"
:isSubmitBack="isSubmit"
@submit="handleSubmit"
show-transfer
@transfer="handleTransfer"
@@ -385,6 +386,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
@@ -399,6 +401,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 点击跳转标准详情
@@ -258,7 +258,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:saveLoading="isSubmit"
:isSubmitBack="isSubmit"
@submit="handleSubmit"
show-transfer
@transfer="handleTransfer"
@@ -384,6 +385,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
@@ -398,6 +400,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 点击跳转标准详情