Commit fe11bcce authored by 黄奎's avatar 黄奎

页面修改

parent 28373878
......@@ -244,8 +244,14 @@
</el-input>
</el-form-item>
<el-form-item label="是否禁烟">
<el-switch v-model="addMsg.IsSmoking" :active-value="1" :inactive-value="0">
</el-switch>
<el-select placeholder="是否禁烟" class="w300" v-model="addMsg.IsSmoking">
<el-option :key="0" label="吸烟区" :value="0">
</el-option>
<el-option :key="1" label="禁烟" :value="1">
</el-option>
<el-option :key="2" label="部分禁烟" :value="2">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="是否有wifi">
<el-switch v-model="addMsg.IsWifi" :active-value="1" :inactive-value="0">
......@@ -287,7 +293,8 @@
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn"
@click="resetForm('addMsg'),outerVisible = false">{{$t('pub.cancelBtn')}}</button> &nbsp;
<button type="primary" @click="submitForm('addMsg')" :class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
<button type="primary" @click="submitForm('addMsg')"
:class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
:disabled='isDisable'>{{comBtnText}}</button>
</div>
</el-dialog>
......@@ -461,7 +468,7 @@
}]
},
isDisable: false,
comBtnText:'保存',
comBtnText: '保存',
};
},
methods: {
......@@ -578,7 +585,7 @@
}, err => {})
},
//删除房型
delRoomList(ID){
delRoomList(ID) {
var that = this;
that.Confirm(this.$t("tips.shifoushanchu"), function () {
var msg = {
......@@ -591,7 +598,7 @@
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.initData();
}else{
} else {
that.Error(res.data.message);
}
},
......@@ -605,14 +612,14 @@
this.addMsg.Name = item.Name
}
})
this.isDisable=true
this.comBtnText='保存中'
this.isDisable = true
this.comBtnText = '保存中'
this.apipost(
"dict_post_HotelProduct_Set",
this.addMsg,
res => {
this.isDisable=false;
this.comBtnText='保存'
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