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
1b7c3b76
Commit
1b7c3b76
authored
May 17, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
cabc6fc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
30 deletions
+43
-30
GnHotelInfo.vue
src/components/Hotel/GnHotelInfo.vue
+43
-30
No files found.
src/components/Hotel/GnHotelInfo.vue
View file @
1b7c3b76
...
...
@@ -6,6 +6,10 @@
font-size
:
20px
;
}
.changInfo
.el-textarea__inner
{
height
:
auto
;
}
</
style
>
<
template
>
<div
class=
"flexOne changInfo"
>
...
...
@@ -76,12 +80,12 @@
</div>
</div>
<el-form-item
label=
"标签"
>
<el-tag
:key=
"tag"
v-for=
"(tag,index) in TagsList"
style=
"margin-right:5px;"
closable
:disable-transitions=
"false"
@
close=
"handleClose(tag,index)"
>
<el-tag
:key=
"tag"
v-for=
"(tag,index) in TagsList"
style=
"margin-right:5px;"
closable
:disable-transitions=
"false"
@
close=
"handleClose(tag,index)"
>
{{
tag
}}
</el-tag>
<el-input
class=
"input-new-tag w80"
v-if=
"inputVisible"
v-model=
"inputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
>
<el-input
class=
"input-new-tag w80"
v-if=
"inputVisible"
v-model=
"inputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
>
</el-input>
<el-button
v-else
class=
"button-new-tag"
size=
"small"
@
click=
"showInput"
>
+ 新增标签
</el-button>
...
...
@@ -141,13 +145,22 @@
<el-input
placeholder=
"联系方式"
></el-input>
</el-col>
</el-row>
<el-input
type=
"textarea"
:rows=
"9"
></el-input>
<el-input
type=
"textarea"
v-model=
"textarea"
:rows=
"9"
></el-input>
</
template
>
<
template
v-if=
"activeName==3"
>
<el-form-item
label=
"设施服务"
>
<el-select
multiple
:placeholder=
"$t('pub.pleaseSel')"
filterable
class=
'multiple_input w300'
v-model=
"serviceCked"
>
<el-option
v-for=
"subitem in serviceList"
:key=
"subitem.ID"
:label=
"subitem.Name"
:value=
"subitem.ID"
>
</el-option>
</el-select>
</el-form-item>
</
template
>
<
template
v-if=
"activeName==4"
>
<button
class=
"save-Btn"
style=
"float:right;"
@
click=
"addTraffic()"
>
新增交通
</button>
<div
v-for=
"(item,index) in addMsg.TrafficInfo"
:key=
"index"
>
<el-input
type=
"text"
v-model=
"item.TTitle"
class=
"w400"
style=
"margin-bottom:10px;"
placeholder=
"大标题"
></el-input>
<el-input
type=
"text"
v-model=
"item.TSubTitle"
class=
"w400"
placeholder=
"小标题"
></el-input>
</div>
</
template
>
</div>
</el-form>
...
...
@@ -175,6 +188,7 @@
export
default
{
data
()
{
return
{
textarea
:
''
,
imageOptions
:
{
navbar
:
false
,
title
:
false
...
...
@@ -283,6 +297,7 @@
DriverGuideIsRebate
:
0
,
ProductType
:
1
,
//国内酒店
Tags
:
''
,
//标签
TrafficInfo
:[],
//交通数据
},
TagsList
:
[],
DiscountList
:
{
...
...
@@ -317,8 +332,8 @@
activeName
:
'1'
,
//默认选中基础资料
isShowMap
:
false
,
inputVisible
:
false
,
inputValue
:
''
inputValue
:
''
,
serviceCked
:[],
};
},
components
:
{
...
...
@@ -326,6 +341,14 @@
DMCchooseImg
:
DMCchooseImg
},
methods
:
{
//新增交通
addTraffic
(){
let
obj
=
{
TTitle
:
''
,
//大标题
TSubTitle
:
''
//子标题
}
this
.
addMsg
.
TrafficInfo
.
push
(
obj
);
},
showInput
()
{
this
.
inputVisible
=
true
;
this
.
$nextTick
(
_
=>
{
...
...
@@ -431,7 +454,7 @@
}
else
{
this
.
addMsg
.
IsSelfBook
=
0
;
}
this
.
addMsg
.
FacilityServices
=
`
${
JSON
.
stringify
(
this
.
serviceList
)}
`
;
this
.
addMsg
.
FacilityServices
=
this
.
serviceCked
.
toString
()
;
this
.
addMsg
.
HotelPolicy
=
`
${
JSON
.
stringify
(
this
.
GetPolicy
)}
`
;
this
.
addMsg
.
OpenPlatform
=
this
.
openplatString
.
toString
();
this
.
addMsg
.
UseDinnerType
=
this
.
UseDinnerString
.
toString
();
...
...
@@ -480,16 +503,15 @@
},
inithotelService
()
{
//初始化酒店服务
let
msg
=
{
Key
:
"SK_HOTEL_SERVICE"
};
this
.
apipost
(
"dict_post_GetList"
,
msg
,
res
=>
{
this
.
apipost
(
"hotel_post_GetHotelConfigService"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempArray
=
res
.
data
.
data
;
tempArray
.
forEach
(
item
=>
{
item
.
checked
=
[];
});
this
.
serviceList
=
tempArray
;
let
tempData
=
res
.
data
.
data
;
this
.
serviceList
=
[];
tempData
.
forEach
(
x
=>
{
x
.
SubList
.
forEach
(
y
=>
{
this
.
serviceList
.
push
(
y
);
})
})
}
});
},
...
...
@@ -574,17 +596,8 @@
}
if
(
_self
.
addMsg
.
FacilityServices
!=
""
)
{
var
itemArray
=
JSON
.
parse
(
_self
.
addMsg
.
FacilityServices
);
_self
.
serviceList
.
forEach
(
item
=>
{
var
isFind
=
false
;
for
(
var
i
=
0
;
i
<
itemArray
.
length
;
i
++
)
{
if
(
item
.
ID
==
itemArray
[
i
].
ID
&&
itemArray
[
i
].
hasOwnProperty
(
"checked"
)
)
{
item
.
checked
=
itemArray
[
i
].
checked
;
break
;
}
}
itemArray
.
forEach
(
x
=>
{
_self
.
serviceCked
.
push
(
x
);
});
}
if
(
_self
.
addMsg
.
HotelPolicy
!=
""
)
{
...
...
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