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
269b909b
Commit
269b909b
authored
Mar 11, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3d8128d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
47 deletions
+62
-47
GnHotelInfo.vue
src/components/Hotel/GnHotelInfo.vue
+53
-39
leaderManagement.vue
src/components/LeaderManagement/leaderManagement.vue
+9
-8
No files found.
src/components/Hotel/GnHotelInfo.vue
View file @
269b909b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
.Gnhotel_Right
{
.Gnhotel_Right
{
float
:
left
;
float
:
left
;
width
:
600px
;
width
:
600px
;
}
}
.InnerHotelDiv
{
.InnerHotelDiv
{
...
@@ -29,16 +29,18 @@
...
@@ -29,16 +29,18 @@
.InnerHoImgDiv
{
.InnerHoImgDiv
{
width
:
100px
;
width
:
100px
;
height
:
100px
;
height
:
100px
;
margin
:
0
5px
5px
0
;
margin
:
0
5px
5px
0
;
}
}
.InnerHoImgDiv
img
{
.InnerHoImgDiv
img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
.changInfo
.el-form-item__error
{
left
:
0
;
.changInfo
.el-form-item__error
{
left
:
0
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"flexOne changInfo"
>
<div
class=
"flexOne changInfo"
>
...
@@ -58,6 +60,13 @@
...
@@ -58,6 +60,13 @@
<el-input
type=
"text"
v-model=
"addMsg.HotelRealName"
maxlength=
"100"
class=
"w300"
<el-input
type=
"text"
v-model=
"addMsg.HotelRealName"
maxlength=
"100"
class=
"w300"
placeholder=
"请填写酒店名称:xx酒店"
></el-input>
placeholder=
"请填写酒店名称:xx酒店"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"供应商"
>
<el-select
v-model=
"addMsg.HSupplierId"
class=
'multiple_input w300'
multiple
placeholder=
"请选择供应商"
>
<el-option
v-for=
"item in dropdownObj.SupplierList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_openplatform')"
>
<el-form-item
:label=
"$t('hotel.hotel_openplatform')"
>
<el-select
v-model=
"chooseObj.openplatString"
class=
'multiple_input w300'
multiple
<el-select
v-model=
"chooseObj.openplatString"
class=
'multiple_input w300'
multiple
placeholder=
"请选择开放平台"
>
placeholder=
"请选择开放平台"
>
...
@@ -85,7 +94,7 @@
...
@@ -85,7 +94,7 @@
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_city')"
>
<el-form-item
:label=
"$t('hotel.hotel_city')"
>
<el-select
placeholder=
"请选择所属城市"
filterable
class=
'multiple_input w300'
v-model=
"addMsg.City"
<el-select
placeholder=
"请选择所属城市"
filterable
class=
'multiple_input w300'
v-model=
"addMsg.City"
@
change=
"GetSubAreaList(addMsg.City,3)"
>
@
change=
"GetSubAreaList(addMsg.City,3)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
v-for=
"childItem in dropdownObj.CityList"
:key=
"childItem.ID"
:label=
"childItem.Name"
<el-option
v-for=
"childItem in dropdownObj.CityList"
:key=
"childItem.ID"
:label=
"childItem.Name"
:value=
"childItem.ID"
>
:value=
"childItem.ID"
>
...
@@ -102,7 +111,8 @@
...
@@ -102,7 +111,8 @@
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_detailinfo')"
>
<el-form-item
:label=
"$t('hotel.hotel_detailinfo')"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.Address"
size=
"small"
placeholder=
"例如:四川省成都市锦江区阳光新业中心"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.Address"
size=
"small"
placeholder=
"例如:四川省成都市锦江区阳光新业中心"
>
<el-button
slot=
"append"
@
click=
"getMapShow"
>
地图
</el-button>
<el-button
slot=
"append"
@
click=
"getMapShow"
>
地图
</el-button>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -120,7 +130,8 @@
...
@@ -120,7 +130,8 @@
</div>
</div>
</div>
</div>
<el-form-item
label=
"地址说明"
>
<el-form-item
label=
"地址说明"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.AddressDes"
size=
"small"
placeholder=
"例如:距离XX2公里,步行大约需要10分钟."
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.AddressDes"
size=
"small"
placeholder=
"例如:距离XX2公里,步行大约需要10分钟."
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签"
>
<el-form-item
label=
"标签"
>
...
@@ -164,7 +175,8 @@
...
@@ -164,7 +175,8 @@
<el-input
placeholder=
"2017年装修"
class=
"w300"
v-model=
"addMsg.HotelInfo.DecorationTime"
></el-input>
<el-input
placeholder=
"2017年装修"
class=
"w300"
v-model=
"addMsg.HotelInfo.DecorationTime"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"房间数量"
>
<el-form-item
label=
"房间数量"
>
<el-input
placeholder=
"房间数量"
class=
"w300"
@
keyup
.
native=
"checkInteger(addMsg,'RoomNumber')"
v-model=
"addMsg.RoomNumber"
></el-input>
<el-input
placeholder=
"房间数量"
class=
"w300"
@
keyup
.
native=
"checkInteger(addMsg,'RoomNumber')"
v-model=
"addMsg.RoomNumber"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"联系方式"
>
<el-form-item
label=
"联系方式"
>
<el-input
placeholder=
"联系方式"
class=
"w300"
v-model=
"addMsg.Tel"
></el-input>
<el-input
placeholder=
"联系方式"
class=
"w300"
v-model=
"addMsg.Tel"
></el-input>
...
@@ -218,10 +230,10 @@
...
@@ -218,10 +230,10 @@
<el-button
type=
"primary"
@
click=
"addTraffic()"
title=
"添加交通"
style=
"float:right;margin:-53px 165px 50px 0"
<el-button
type=
"primary"
@
click=
"addTraffic()"
title=
"添加交通"
style=
"float:right;margin:-53px 165px 50px 0"
icon=
"el-icon-plus"
circle
></el-button>
icon=
"el-icon-plus"
circle
></el-button>
<div
style=
"margin-top:60px;"
>
<div
style=
"margin-top:60px;"
>
<div
v-for=
"(item,index) in addMsg.TrafficInfo"
:key=
"index"
style=
"position:relative;margin-bottom:20px;"
>
<div
v-for=
"(item,index) in addMsg.TrafficInfo"
:key=
"index"
style=
"position:relative;margin-bottom:20px;"
>
<el-form-item
label=
"地点名称"
>
<el-form-item
label=
"地点名称"
>
<el-input
type=
"text"
v-model=
"item.TTitle"
class=
"w400"
<el-input
type=
"text"
v-model=
"item.TTitle"
class=
"w400"
placeholder=
"比如:牛王庙地铁站"
>
placeholder=
"比如:牛王庙地铁站"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"地点介绍"
>
<el-form-item
label=
"地点介绍"
>
...
@@ -248,8 +260,9 @@
...
@@ -248,8 +260,9 @@
</el-dialog>
</el-dialog>
<div
class=
"btn-list"
>
<div
class=
"btn-list"
>
<span
class=
"common-lefttit"
></span>
<span
class=
"common-lefttit"
></span>
<button
@
click=
"submitForm('addMsg')"
style=
"width:80px;"
:class=
"{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
<button
@
click=
"submitForm('addMsg')"
style=
"width:80px;"
:disabled=
'isDisable'
>
{{comBtnText}}
</button>
:class=
"{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
:disabled=
'isDisable'
>
{{comBtnText}}
</button>
<button
class=
"cancel-Btn"
@
click=
"goUrl('GnHotelManagement')"
>
{{$t('pub.cancelBtn')}}
</button>
<button
class=
"cancel-Btn"
@
click=
"goUrl('GnHotelManagement')"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
</div>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
...
@@ -264,13 +277,12 @@
...
@@ -264,13 +277,12 @@
export
default
{
export
default
{
data
()
{
data
()
{
let
validateStar
=
(
rule
,
value
,
callback
)
=>
{
let
validateStar
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
Star
==
0
)
{
if
(
this
.
addMsg
.
Star
==
0
)
{
return
callback
(
new
Error
(
'请选择星级'
));
return
callback
(
new
Error
(
'请选择星级'
));
}
else
{
}
else
{
callback
();
callback
();
}
}
}
}
return
{
return
{
imageOptions
:
{
imageOptions
:
{
navbar
:
false
,
navbar
:
false
,
...
@@ -350,10 +362,10 @@
...
@@ -350,10 +362,10 @@
IsSelfBook
:
""
,
IsSelfBook
:
""
,
IsUseDinner
:
"0"
,
IsUseDinner
:
"0"
,
UseDinnerType
:
""
,
UseDinnerType
:
""
,
Country
:
2
,
Country
:
0
,
Province
:
261
,
Province
:
0
,
City
:
5571
,
City
:
0
,
District
:
5572
,
District
:
0
,
//是否预约
//是否预约
AppointmentStyle
:
0
,
AppointmentStyle
:
0
,
//支付方式
//支付方式
...
@@ -379,10 +391,11 @@
...
@@ -379,10 +391,11 @@
DecorationTime
:
""
,
//装修时间
DecorationTime
:
""
,
//装修时间
Into
:
""
,
//酒店介绍
Into
:
""
,
//酒店介绍
},
},
AddressDes
:
''
//地址说明
AddressDes
:
''
,
//地址说明
HSupplierId
:
0
,
//供应商编号
},
},
isDisable
:
false
,
isDisable
:
false
,
comBtnText
:
'保存'
,
comBtnText
:
'保存'
,
//酒店图片
//酒店图片
HotelImgArr
:
[],
HotelImgArr
:
[],
//酒店标签列表
//酒店标签列表
...
@@ -408,6 +421,7 @@
...
@@ -408,6 +421,7 @@
isShowHotelImg
:
false
,
isShowHotelImg
:
false
,
checkedRoom
:
[],
checkedRoom
:
[],
HotelActive
:
1
,
//
HotelActive
:
1
,
//
};
};
},
},
components
:
{
components
:
{
...
@@ -416,6 +430,8 @@
...
@@ -416,6 +430,8 @@
comImgList
:
comImgList
comImgList
:
comImgList
},
},
methods
:
{
methods
:
{
//获取酒店供应商
//获取子组件新增分类和图片
//获取子组件新增分类和图片
getHotelImg
(
data
)
{
getHotelImg
(
data
)
{
this
.
addMsg
.
InnerHotelImaList
=
data
;
this
.
addMsg
.
InnerHotelImaList
=
data
;
...
@@ -478,17 +494,17 @@
...
@@ -478,17 +494,17 @@
inited
(
viewer
)
{
inited
(
viewer
)
{
this
.
$viewer
=
viewer
this
.
$viewer
=
viewer
},
},
showImg
(
src
){
showImg
(
src
)
{
src
=
src
.
indexOf
(
'http'
)
!=
-
1
?
src
:
this
.
domainManager
().
ViittoFileUrl
+
src
;
src
=
src
.
indexOf
(
'http'
)
!=
-
1
?
src
:
this
.
domainManager
().
ViittoFileUrl
+
src
;
let
isExsit
=
false
let
isExsit
=
false
this
.
images
.
forEach
(
x
=>
{
this
.
images
.
forEach
(
x
=>
{
if
(
x
==
src
)
if
(
x
==
src
)
isExsit
=
true
isExsit
=
true
})
})
if
(
!
isExsit
)
{
if
(
!
isExsit
)
{
this
.
images
.
push
(
src
)
this
.
images
.
push
(
src
)
}
else
{
}
else
{
this
.
$viewer
.
view
(
this
.
images
.
indexOf
(
src
))
this
.
$viewer
.
view
(
this
.
images
.
indexOf
(
src
))
}
}
},
},
//保存酒店信息
//保存酒店信息
...
@@ -690,8 +706,8 @@
...
@@ -690,8 +706,8 @@
if
(
isClear
!=
1
)
{
if
(
isClear
!=
1
)
{
this
.
addMsg
.
City
=
0
;
this
.
addMsg
.
City
=
0
;
}
}
}
else
if
(
type
==
3
)
{
}
else
if
(
type
==
3
)
{
if
(
isClear
!=
1
)
{
if
(
isClear
!=
1
)
{
this
.
addMsg
.
District
=
0
;
this
.
addMsg
.
District
=
0
;
}
}
}
}
...
@@ -701,7 +717,7 @@
...
@@ -701,7 +717,7 @@
this
.
dropdownObj
.
ProvinceList
=
res
.
data
.
data
;
this
.
dropdownObj
.
ProvinceList
=
res
.
data
.
data
;
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
this
.
dropdownObj
.
CityList
=
res
.
data
.
data
;
this
.
dropdownObj
.
CityList
=
res
.
data
.
data
;
}
else
if
(
type
==
3
)
{
}
else
if
(
type
==
3
)
{
this
.
dropdownObj
.
DistrictList
=
res
.
data
.
data
;
this
.
dropdownObj
.
DistrictList
=
res
.
data
.
data
;
}
}
});
});
...
@@ -747,22 +763,20 @@
...
@@ -747,22 +763,20 @@
},
},
mounted
()
{
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
//有权限操作的部门
this
.
IsHaveAuth
=
1
;
if
(
userInfo
.
RB_Department_Id
==
240
||
userInfo
.
RB_Department_Id
==
1
||
userInfo
.
RB_Department_Id
==
3
||
userInfo
.
RB_Branch_id
==
49
)
{
this
.
IsHaveAuth
=
1
;
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
)
{
this
.
hotelID
=
this
.
$route
.
query
.
id
;
this
.
hotelID
=
this
.
$route
.
query
.
id
;
}
}
this
.
getHotelConfig
();
this
.
getHotelConfig
();
this
.
initStarAndPlatform
();
//初始化星级和开放平台
this
.
initStarAndPlatform
();
//初始化星级和开放平台
this
.
getSuplier
();
//初始化供应商
this
.
getSuplier
();
//初始化供应商
this
.
GetSubAreaList
(
this
.
addMsg
.
Country
,
1
,
1
);
this
.
GetSubAreaList
(
this
.
addMsg
.
Country
,
1
,
1
);
if
(
this
.
addMsg
.
Province
>
0
)
{
if
(
this
.
addMsg
.
Province
>
0
)
{
this
.
GetSubAreaList
(
this
.
addMsg
.
Province
,
2
,
1
);
this
.
GetSubAreaList
(
this
.
addMsg
.
Province
,
2
,
1
);
}
}
if
(
this
.
addMsg
.
City
>
0
)
{
if
(
this
.
addMsg
.
City
>
0
)
{
this
.
GetSubAreaList
(
this
.
addMsg
.
City
,
3
,
1
);
this
.
GetSubAreaList
(
this
.
addMsg
.
City
,
3
,
1
);
}
}
if
(
this
.
hotelID
>
0
)
{
if
(
this
.
hotelID
>
0
)
{
...
...
src/components/LeaderManagement/leaderManagement.vue
View file @
269b909b
...
@@ -1039,21 +1039,22 @@
...
@@ -1039,21 +1039,22 @@
},
},
//添加
//添加
addGroupGuide
()
{
addGroupGuide
()
{
var
that
=
this
;
this
.
apipost
(
this
.
apipost
(
"leader_post_Set"
,
"leader_post_Set"
,
th
is
.
addMsg
,
th
at
.
addMsg
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
th
is
.
success
(
this
.
$t
(
'tips.saveYes'
));
th
at
.
Success
(
that
.
$t
(
'tips.saveYes'
));
th
is
.
getList
();
th
at
.
getList
();
th
is
.
outerVisible
=
false
;
th
at
.
outerVisible
=
false
;
th
is
.
initAddMsg
();
th
at
.
initAddMsg
();
if
(
res
.
data
.
data
.
PassWord
)
{
if
(
res
.
data
.
data
.
PassWord
)
{
th
is
.
regMsgVisible
=
true
;
th
at
.
regMsgVisible
=
true
;
th
is
.
regMsg
=
res
.
data
.
data
;
th
at
.
regMsg
=
res
.
data
.
data
;
}
}
}
else
{
}
else
{
th
is
.
Error
(
res
.
data
.
message
);
th
at
.
Error
(
res
.
data
.
message
);
}
}
},
},
err
=>
{}
err
=>
{}
...
...
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