Commit d9b443a0 authored by zhengke's avatar zhengke

修改

parent bafd70bb
......@@ -287,7 +287,8 @@
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn"
@click="resetForm('addMsg'),outerVisible = false">{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
<button type="primary" @click="submitForm('addMsg')" :class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
:disabled='isDisable'>{{comBtnText}}</button>
</div>
</el-dialog>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"
......@@ -455,7 +456,9 @@
pattern: this.$commonUtils.Regex.el_isInteger,
message: "请输入入住人数"
}]
}
},
isDisable: false,
comBtnText:'保存',
};
},
methods: {
......@@ -572,17 +575,19 @@
}, err => {})
},
saveInfo() {
this.HotelProductTypeList.forEach(item => {
if (this.addMsg.HotelProductType == item.Id) {
this.addMsg.Name = item.Name
}
})
this.isDisable=true
this.comBtnText='保存中'
this.apipost(
"dict_post_HotelProduct_Set",
this.addMsg,
res => {
this.isDisable=false;
this.comBtnText='保存'
if (res.data.resultCode == 1) {
this.tips(this.$t('tips.saveYes'), "success");
this.initData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment