|
@@ -356,8 +356,8 @@
|
|
|
</el-form>
|
|
|
<div slot="footer" style="text-align: right">
|
|
|
<el-button @click="cancel()">关 闭</el-button>
|
|
|
- <el-button v-if="!isView && buttonType === 'edit'" type="primary" @click="confirmSubmit()">暂 存</el-button>
|
|
|
- <el-button v-if="!isView && buttonType === 'sign'" type="primary" @click="confirmSubmit('signing')">签 约</el-button>
|
|
|
+ <el-button v-if="!isView && buttonType === 'edit'" type="primary" :loading="loading" @click="confirmSubmit()">暂 存</el-button>
|
|
|
+ <el-button v-if="!isView && buttonType === 'sign'" type="primary" :loading="loading" @click="confirmSubmit('signing')">签 约</el-button>
|
|
|
</div>
|
|
|
|
|
|
<!--房间查看-->
|
|
@@ -437,7 +437,8 @@ export default {
|
|
|
restaurants: [],
|
|
|
dialogHouseVisible: false,
|
|
|
dialogHouseTitle: '房间查看',
|
|
|
- buttonType: ''
|
|
|
+ buttonType: '',
|
|
|
+ loading: false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -539,7 +540,9 @@ export default {
|
|
|
extraData.contractStatus = 2
|
|
|
}
|
|
|
const postData = Object.assign({}, _this.form, extraData)
|
|
|
+ this.loading = true
|
|
|
this.baseRequest(soaUrl, postData).then(res => {
|
|
|
+ this.loading = false
|
|
|
if (res.data.code === 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
this.cancel()
|
|
@@ -547,6 +550,7 @@ export default {
|
|
|
this.$message.error(res.data.msg)
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
+ this.loading = false
|
|
|
this.$message.error(err)
|
|
|
})
|
|
|
})
|