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
e2a737e4
Commit
e2a737e4
authored
Feb 19, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
‘尊敬的用户,行程特色“1”切换为行程特色“2”将会清空行程特色“1”里面的所有内容,您确定切换吗?’
parent
9370d876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
13 deletions
+52
-13
TravelFeature.vue
...nts/newTravelmanager/TravelGroupControl/TravelFeature.vue
+50
-11
travelFeature3.vue
...lmanager/TravelGroupControl/TravelTemp/travelFeature3.vue
+2
-2
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelFeature.vue
View file @
e2a737e4
...
@@ -447,18 +447,57 @@
...
@@ -447,18 +447,57 @@
},
},
//切换tab事件
//切换tab事件
clickFeature
(
item
)
{
clickFeature
(
item
)
{
if
(
item
.
TypeState
===
5
)
{
let
state
=
this
.
FeatureData
.
FeatureType
this
.
$message
.
warning
(
'尊敬的用户,行程特色"1"暂时无法直接切换为行程特色"2"!'
)
if
(
state
===
4
&&
item
.
TypeState
===
5
)
{
this
.
$confirm
(
'尊敬的用户,行程特色“1”切换为行程特色“2”将会清空行程特色“1”里面的所有内容,您确定切换吗?'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'已切换!'
});
this
.
TypeArray
.
forEach
(
x
=>
{
if
(
x
.
TypeState
==
item
.
TypeState
)
{
x
.
isShow
=
true
;
this
.
ckTitle
=
x
.
ckTitle
;
this
.
FeatureData
.
FeatureType
=
item
.
TypeState
;
}
else
{
x
.
isShow
=
false
;
}
});
this
.
FeatureData
.
FeatureHtmlJson
=
null
this
.
FeatureData
.
FeatureHtmlJsonDelete
=
null
this
.
FeatureData
.
switch4or5
=
true
this
.
$forceUpdate
()
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
});
this
.
TypeArray
.
forEach
(
x
=>
{
if
(
x
.
TypeState
==
4
)
{
x
.
isShow
=
true
;
this
.
ckTitle
=
x
.
ckTitle
;
}
else
{
x
.
isShow
=
false
;
}
});
this
.
FeatureData
.
FeatureType
=
state
;
});
// this.$message.warning('尊敬的用户,行程特色"1"暂时无法直接切换为行程特色"2"!')
}
else
{
this
.
TypeArray
.
forEach
(
x
=>
{
if
(
x
.
TypeState
==
item
.
TypeState
)
{
x
.
isShow
=
true
;
this
.
ckTitle
=
x
.
ckTitle
;
this
.
FeatureData
.
FeatureType
=
item
.
TypeState
;
}
else
{
x
.
isShow
=
false
;
}
});
}
}
this
.
TypeArray
.
forEach
(
x
=>
{
if
(
x
.
TypeState
==
item
.
TypeState
)
{
x
.
isShow
=
true
;
this
.
ckTitle
=
x
.
ckTitle
;
this
.
FeatureData
.
FeatureType
=
item
.
TypeState
;
}
else
{
x
.
isShow
=
false
;
}
});
this
.
initFileList
();
this
.
initFileList
();
},
},
//点击折叠
//点击折叠
...
...
src/components/newTravelmanager/TravelGroupControl/TravelTemp/travelFeature3.vue
View file @
e2a737e4
...
@@ -1353,8 +1353,8 @@
...
@@ -1353,8 +1353,8 @@
let
dataList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
FeatureData
));
let
dataList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
FeatureData
));
let
deleteDataList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
FeatureData
.
FeatureHtmlJsonDelete
));
let
deleteDataList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
FeatureData
.
FeatureHtmlJsonDelete
));
this
.
deleteArray
=
deleteDataList
===
""
?
this
.
deleteArray
:
deleteDataList
;
this
.
deleteArray
=
deleteDataList
===
""
?
this
.
deleteArray
:
deleteDataList
;
console
.
log
(
"dataList"
,
dataList
)
console
.
log
(
"dataList"
,
dataList
,
!
this
.
$route
.
query
.
configId
,
dataList
.
switch4or5
)
if
(
!
this
.
$route
.
query
.
configId
){
if
(
!
this
.
$route
.
query
.
configId
||
(
this
.
$route
.
query
.
configId
&&
dataList
.
switch4or5
)
){
for
(
let
i
=
0
;
i
<
dataList
.
DayList
.
length
;
i
++
)
{
//组装数据
for
(
let
i
=
0
;
i
<
dataList
.
DayList
.
length
;
i
++
)
{
//组装数据
let
restaurantObj
=
travelFeatureTwo
.
DinnerInit
(
i
,
dataList
.
DayList
)
// 餐饮
let
restaurantObj
=
travelFeatureTwo
.
DinnerInit
(
i
,
dataList
.
DayList
)
// 餐饮
let
hotelObj
=
travelFeatureTwo
.
HotelInit
(
i
,
dataList
.
DayList
)
// 酒店
let
hotelObj
=
travelFeatureTwo
.
HotelInit
(
i
,
dataList
.
DayList
)
// 酒店
...
...
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