Commit c54811c3 authored by zhengke's avatar zhengke

修改

parent 55c95d51
<style>
@import "../../assets/css/DMC.css";
.jz_HotelName {
color: #111111;
font-size: 20px;
}
.changInfo .el-textarea__inner {
height: auto;
}
......@@ -41,12 +36,14 @@
width: 100%;
height: 100%;
}
.changInfo .el-form-item__error{
left:0;
}
</style>
<template>
<div class="flexOne changInfo">
<div class="resource-content clearfix" style="min-height:550px;">
<el-form :model="addMsg" :rules="rules" ref="addMsg">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="120px">
<el-tabs v-model="activeName">
<el-tab-pane label="基础资料" name="1"></el-tab-pane>
<el-tab-pane label="酒店信息" name="2"></el-tab-pane>
......@@ -57,7 +54,7 @@
<template v-if="activeName==1">
<div>
<div style="float:left;width:550px;">
<el-form-item :label="$t('ground.jiudianmingzi')">
<el-form-item :label="$t('ground.jiudianmingzi')" prop="HotelRealName">
<el-input type="text" v-model="addMsg.HotelRealName" maxlength="100" class="w300"
placeholder="请填写酒店名称:xx酒店"></el-input>
</el-form-item>
......@@ -69,7 +66,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_starlevel')">
<el-form-item :label="$t('hotel.hotel_starlevel')" prop="Star">
<el-select class="w300" v-model="addMsg.Star" placeholder="请选择酒店星级">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in dropdownObj.starslevel" :key="item.ID" :label="item.Name"
......@@ -99,7 +96,7 @@
<el-button slot="append" @click="getMapShow">地图</el-button>
</el-input>
</el-form-item>
<div class="toolOne">
<div class="toolOne" style="margin-left:63px;">
<span class="fanbili">地理位置</span>
<div class="RabateDiv clearfix">
<div class="RebateCount reOne">
......@@ -255,6 +252,14 @@
import comImgList from "../commonPage/comImgList.vue";
export default {
data() {
let validateStar = (rule, value, callback) => {
if (this.addMsg.Star ==0) {
return callback(new Error('请选择星级'));
} else {
callback();
}
}
return {
imageOptions: {
navbar: false,
......@@ -369,24 +374,15 @@
TagsList: [],
rules: {
//表单必填验证
Name: [{
HotelRealName: [{
required: true,
message: this.$t('ground.qingtianxiemc'),
trigger: "change"
message: '请输入酒店名称',
trigger: "blur"
}],
Address: [{
Star: [{
validator: validateStar,
required: true,
message: this.$t('ground.qingxuanzedz'),
trigger: "change"
}],
Descriptions: [{
required: true,
message: this.$t('ground.qingshuruwzms'),
trigger: "change"
}],
DieLine: [{
pattern: this.$commonUtils.Regex.el_isInteger,
message: this.$t('ground.qingshuruzqdsz')
trigger: 'change'
}]
},
activeName: '1', //默认选中基础资料
......
......@@ -234,6 +234,20 @@
<el-form-item :label="$t('hotel.hotel_produceDes')" prop="Description">
<el-input class="w300" type="textarea" v-model="addMsg.Description"></el-input>
</el-form-item>
<el-form-item label="房间大小">
<el-input class="w300" type="text" v-model="addMsg.RoomSize"></el-input>
</el-form-item>
<el-form-item label="楼层">
<el-input class="w300" type="text" @keyup.native="checkInteger(addMsg,'Floor')" v-model="addMsg.Floor"></el-input>
</el-form-item>
<el-form-item label="是否禁烟">
<el-switch v-model="addMsg.IsSmoking" :active-value="1" :inactive-value="0">
</el-switch>
</el-form-item>
<el-form-item label="是否有wifi">
<el-switch v-model="addMsg.IsWifi" :active-value="1" :inactive-value="0">
</el-switch>
</el-form-item>
<el-form-item label="是否有窗">
<el-switch v-model="addMsg.HasWindow" :active-value="1" :inactive-value="2">
</el-switch>
......@@ -383,6 +397,10 @@
IsCancel: 1, //'是否可免费取消(1-不可取消,2-可取消
CancelTime: '', //免费取消时间
RoomImage: [], //房型图
RoomSize:'', // 房间大小
Floor:'', //楼层
IsSmoking:0, //是否禁烟 1禁烟 0不禁
IsWifi:1 //是否有wifi 1有 0无
},
//早餐类型下拉
BreakfastList: [{
......
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