按钮loading-手机端-未符合项整改流程

This commit is contained in:
zyn
2023-11-07 10:21:58 +08:00
parent 40447d9848
commit 8fd6abfae9
@@ -92,8 +92,8 @@
show-back
show-transfer
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:transferLoading="turnLoading"
:saveLoading="isSubmit"
:isSubmitBack="isSubmit"
@transfer="handleTurnTo"
@save="handleSave"
@submit="handleSubmit"
@@ -250,7 +250,7 @@ export default {
},
// 保存按钮
handleSave() {
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
@@ -259,11 +259,10 @@ export default {
commentInfo: this.commentInfo
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
this.saveLoading = false
}).finally(() => {
this.isSubmit = false
})
},
//驳回按钮
@@ -294,6 +293,7 @@ export default {
passFlag: '1',
commentText: this.commentInfo
}
this.isSubmit = true
const params = new FormData();
params.set('json', JSON.stringify(json))
params.set('userId', this.$store.getters.userInfo.account)
@@ -305,8 +305,7 @@ export default {
this.$router.go(-2)
// this.$router.push("/processCenter");
}
this.isSubmit = false
}).catch(e => {
}).finally(() => {
this.isSubmit = false
})
}
@@ -358,7 +357,7 @@ export default {
// this.$router.push("/processCenter");
}
this.isSubmit = false
}).catch(e => {
}).finally(() => {
this.isSubmit = false
})
},
@@ -366,6 +365,7 @@ export default {
drawerCheck (data) {
if (this.drawerTitle === '转办处理人') {
this.turnLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.taskIds, // 任务id
assignee: data[0].id, // 被委托人
@@ -381,6 +381,8 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
} else {
if (data.length > 0) {