Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
c54811c3
Commit
c54811c3
authored
May 21, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
55c95d51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
25 deletions
+39
-25
GnHotelInfo.vue
src/components/Hotel/GnHotelInfo.vue
+21
-25
HotelProductManage.vue
src/components/Hotel/HotelProductManage.vue
+18
-0
No files found.
src/components/Hotel/GnHotelInfo.vue
View file @
c54811c3
<
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
:
[{
HotelReal
Name
:
[{
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'
,
//默认选中基础资料
...
...
src/components/Hotel/HotelProductManage.vue
View file @
c54811c3
...
...
@@ -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
:
[{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment