|
@@ -440,7 +440,7 @@
|
|
|
</el-form>
|
|
|
<div slot="footer">
|
|
|
<el-button @click="dialogChose">取 消</el-button>
|
|
|
- <el-button type="primary" @click="confirmSubmit()">确 定</el-button>
|
|
|
+ <el-button :loading="loadingFlag" type="primary" @click="confirmSubmit()">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
@@ -648,7 +648,6 @@ export default {
|
|
|
this.houseTypeOption = []
|
|
|
this.dialogVisible = true
|
|
|
this.dialogTitle = '编辑房间'
|
|
|
- this.loadingFlag = true
|
|
|
},
|
|
|
handleView: function(val) {
|
|
|
this.isView = true
|
|
@@ -671,24 +670,17 @@ export default {
|
|
|
},
|
|
|
|
|
|
confirmSubmit: function() {
|
|
|
+ const _this = this
|
|
|
this.$refs.houseForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
+ _this.loadingFlag = true
|
|
|
const ids = this.houseForm.findids
|
|
|
if (ids != null && ids != [] && ids != '') {
|
|
|
this.houseForm.groupId = ids[0]
|
|
|
this.houseForm.discId = ids[1]
|
|
|
this.houseForm.buildId = ids[2]
|
|
|
}
|
|
|
- // let houseTypePicture = ''
|
|
|
- // this.fileList.forEach(v => {
|
|
|
- // if (houseTypePicture) {
|
|
|
- // houseTypePicture = houseTypePicture + ',' + v.id
|
|
|
- // } else {
|
|
|
- // houseTypePicture = v.id
|
|
|
- // }
|
|
|
- // })
|
|
|
const extraData = {
|
|
|
- // houseTypePicture: houseTypePicture
|
|
|
}
|
|
|
const postData = Object.assign({}, this.houseForm, extraData)
|
|
|
this.baseRequest(this.urlStr, postData).then((res) => {
|
|
@@ -700,6 +692,7 @@ export default {
|
|
|
message: '提交成功',
|
|
|
type: 'success'
|
|
|
})
|
|
|
+ _this.loadingFlag = false
|
|
|
}).catch(() => {
|
|
|
})
|
|
|
}
|
|
@@ -797,7 +790,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- _this.loadingFlag = false
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
}
|