按钮loading-手机端-标准调研流程
This commit is contained in:
@@ -166,6 +166,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.account, // 委托人
|
||||
@@ -182,6 +184,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -238,6 +243,7 @@
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -245,16 +251,17 @@
|
||||
commentText2: this.commentText2,
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$refs['qbkwForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.commentText = this.commentText2
|
||||
json.responUserList = this.form.responUserList
|
||||
@@ -271,6 +278,7 @@
|
||||
// this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
return this.$message.warning('请完善基础信息')
|
||||
|
||||
@@ -94,7 +94,8 @@
|
||||
<ProcessFooter
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-back
|
||||
@back="handleSubmitNo"
|
||||
@@ -189,6 +190,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.account, // 委托人
|
||||
@@ -205,6 +207,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -103,7 +103,8 @@
|
||||
approval
|
||||
@back="handleSubmitNo"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -200,6 +201,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.account, // 委托人
|
||||
@@ -216,6 +218,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -94,7 +94,8 @@
|
||||
approval
|
||||
@back="handleSubmitNo"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -158,6 +159,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.account, // 委托人
|
||||
@@ -174,6 +176,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -94,7 +94,8 @@
|
||||
approval
|
||||
@back="handleSubmitNo"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -158,6 +159,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.account, // 委托人
|
||||
@@ -174,6 +176,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -119,7 +119,8 @@
|
||||
approval
|
||||
@back="handleSubmitNo"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -185,6 +186,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.account, // 委托人
|
||||
@@ -201,6 +203,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
Reference in New Issue
Block a user