Commit fe11bcce authored by 黄奎's avatar 黄奎

页面修改

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