diff --git a/src/views/material/cost/component/applyDetail.vue b/src/views/material/cost/component/applyDetail.vue index 092d1703..c299c4b5 100644 --- a/src/views/material/cost/component/applyDetail.vue +++ b/src/views/material/cost/component/applyDetail.vue @@ -675,7 +675,7 @@ export default { this.$modal .confirm('是否确认提交?') .then(() => { - this.loading = true + const loading = this.$loading() let params = { agreementIds: Array.isArray(this.rowData) ? this.rowData.map(item => item.agreementId) : [], totalCostAll: this.costAll, @@ -689,7 +689,7 @@ export default { console.log('2222222222222', params) submitCosts(params).then(response => { - this.loading = false + loading.close() this.$message({ type: 'success', message: '提交成功'