Commit d9b443a0 authored by zhengke's avatar zhengke

修改

parent bafd70bb
...@@ -287,7 +287,8 @@ ...@@ -287,7 +287,8 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" <button class="hollowFixedBtn"
@click="resetForm('addMsg'),outerVisible = false">{{$t('pub.cancelBtn')}}</button> &nbsp; @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> </div>
</el-dialog> </el-dialog>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading" <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"
...@@ -455,7 +456,9 @@ ...@@ -455,7 +456,9 @@
pattern: this.$commonUtils.Regex.el_isInteger, pattern: this.$commonUtils.Regex.el_isInteger,
message: "请输入入住人数" message: "请输入入住人数"
}] }]
} },
isDisable: false,
comBtnText:'保存',
}; };
}, },
methods: { methods: {
...@@ -572,17 +575,19 @@ ...@@ -572,17 +575,19 @@
}, err => {}) }, err => {})
}, },
saveInfo() { saveInfo() {
this.HotelProductTypeList.forEach(item => { this.HotelProductTypeList.forEach(item => {
if (this.addMsg.HotelProductType == item.Id) { if (this.addMsg.HotelProductType == item.Id) {
this.addMsg.Name = item.Name this.addMsg.Name = item.Name
} }
}) })
this.isDisable=true
this.comBtnText='保存中'
this.apipost( this.apipost(
"dict_post_HotelProduct_Set", "dict_post_HotelProduct_Set",
this.addMsg, this.addMsg,
res => { res => {
this.isDisable=false;
this.comBtnText='保存'
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tips(this.$t('tips.saveYes'), "success"); this.tips(this.$t('tips.saveYes'), "success");
this.initData(); 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