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
0b442076
Commit
0b442076
authored
May 05, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开团修改
parent
2f7cc8b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
58 deletions
+44
-58
tripUtils.js
src/assets/utils/tripUtils.js
+0
-1
TravelDaysTrip_Direct.vue
...elmanager/oldTravelGroupControl/TravelDaysTrip_Direct.vue
+42
-55
TravelManager5.vue
...newTravelmanager/oldTravelGroupControl/TravelManager5.vue
+2
-2
No files found.
src/assets/utils/tripUtils.js
View file @
0b442076
...
...
@@ -331,7 +331,6 @@ var tripUtils = {
//行程-【交通对象】
trafficObj
:
function
()
{
console
.
log
(
ViittoFileUrl
)
return
{
ID
:
0
,
ConfigId
:
0
,
...
...
src/components/newTravelmanager/oldTravelGroupControl/TravelDaysTrip_Direct.vue
View file @
0b442076
...
...
@@ -348,7 +348,7 @@ export default {
}
this
.
subConfig
.
DayList
.
length
=
this
.
subConfig
.
DayNum
;
}
console
.
log
(
"this.sub"
,
this
.
subConfig
);
},
//点击往后追加
...
...
@@ -697,43 +697,41 @@ export default {
var
FreedomList
=
[];
var
WarmTipList
=
[];
var
TitleList
=
[];
// this.subConfig.DayList.forEach((item, dayIndex) => {
// var rank = 1;
// if (item.dayArray != null && item.dayArray.length > 0) {
// item.dayArray.forEach(subItem => {
// subItem.childItem.Rank = rank;
// subItem.childItem.dayNum = item.dayNum;
// subItem.Type = subItem.Type.toString();
// switch (subItem.Type) {
// case this.$tripUtils.TypeKey.traffic:
// TrafficList.push(subItem.childItem);
// break;
// case this.$tripUtils.TypeKey.scenic:
// ScenicList.push(subItem.childItem);
// break;
// case this.$tripUtils.TypeKey.hotel:
// HotelList.push(subItem.childItem);
// break;
// case this.$tripUtils.TypeKey.dinner:
// DinnerList.push(subItem.childItem);
// break;
// case this.$tripUtils.TypeKey.freedom:
// FreedomList.push(subItem.childItem);
// break;
// case this.$tripUtils.TypeKey.warmtip:
// WarmTipList.push(subItem.childItem);
// break;
// case this.$tripUtils.TypeKey.title:
// TitleList.push(subItem.childItem);
// break;
// }
// rank++;
// });
// }
// });
this
.
subConfig
.
DayList
.
forEach
((
item
,
dayIndex
)
=>
{
})
this
.
subConfig
.
DayList
.
forEach
((
item
,
dayIndex
)
=>
{
var
rank
=
1
;
if
(
item
.
dayArray
!=
null
&&
item
.
dayArray
.
length
>
0
)
{
item
.
dayArray
.
forEach
(
subItem
=>
{
subItem
.
childItem
.
Rank
=
rank
;
subItem
.
childItem
.
dayNum
=
item
.
dayNum
;
subItem
.
Type
=
subItem
.
Type
.
toString
();
switch
(
subItem
.
Type
)
{
case
this
.
$tripUtils
.
TypeKey
.
traffic
:
TrafficList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
scenic
:
ScenicList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
hotel
:
HotelList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
dinner
:
DinnerList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
freedom
:
FreedomList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
warmtip
:
WarmTipList
.
push
(
subItem
.
childItem
);
break
;
case
this
.
$tripUtils
.
TypeKey
.
title
:
TitleList
.
push
(
subItem
.
childItem
);
break
;
}
rank
++
;
});
}
});
var
obj
=
{
RemoveChild
:
this
.
subConfig
.
RemoveChild
,
RemoveImg
:
this
.
subConfig
.
RemoveImg
,
...
...
@@ -758,9 +756,6 @@ export default {
//防止首次初始化数据失败
// this.emitData();
this
.
typeArrayList
.
push
(
this
.
$tripUtils
.
TypeArray
[
this
.
$tripUtils
.
TypeArray
.
length
-
1
]);
// this.getSameJourney();
console
.
log
(
this
.
subConfig
,
'subConfigOld'
);
},
created
()
{
if
(
this
.
isOpenGroup
==
undefined
)
{
...
...
@@ -772,10 +767,6 @@ export default {
getDayNum
()
{
return
this
.
subConfig
.
DayNum
;
},
//获取目的地
// getCountryId() {
// return this.subArray.CountryID;
// },
getDayList
()
{
return
this
.
subConfig
.
DayList
;
}
...
...
@@ -785,16 +776,12 @@ export default {
getDayNum
(
newValue
,
oldValue
)
{
this
.
createLineTrip
();
},
//监听目的地国家是否改变
// getCountryId(newValue, oldValue) {
// this.createLineTrip();
// },
// subConfig: {
// handler: function(newValue, oldValue) {
// this.emitData();
// },
// deep: true
// }
subConfig
:
{
handler
:
function
(
newValue
,
oldValue
)
{
this
.
emitData
();
},
deep
:
true
}
}
};
</
script
>
\ No newline at end of file
src/components/newTravelmanager/oldTravelGroupControl/TravelManager5.vue
View file @
0b442076
...
...
@@ -246,6 +246,7 @@
//行程回调
getDaysTrip
(
tripObj
)
{
this
.
PostDaysTrip
=
tripObj
;
console
.
log
(
"this.PostDaysTrip"
,
this
.
PostDaysTrip
);
},
/*获取行程特色内容对象*/
getFeature
(
featureObj
)
{
...
...
@@ -266,7 +267,6 @@
if
(
this
.
PostConfig
.
fileList
.
length
<=
5
)
{
this
.
PostConfig
.
fileList
.
push
(
fileObj
);
}
this
.
FeatureData
.
fileList
.
push
(
fileObj
);
}
},
...
...
@@ -301,7 +301,7 @@
basicData
.
RemoveChild
=
this
.
PostConfig
.
RemoveChild
;
basicData
.
TeamType
=
this
.
PostConfig
.
TeamType
;
basicData
.
DayNum
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
DayNum
!=
""
)
?
this
.
PostDaysTrip
.
DayNum
:
0
;
basicData
.
NightNum
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
NightNum
!=
""
)
?
this
.
PostDaysTrip
.
NightNum
:
0
;
basicData
.
StartCityId
=
(
this
.
PostDaysTrip
&&
this
.
PostDaysTrip
.
StartCityId
!=
""
)
?
this
.
PostDaysTrip
.
StartCityId
:
...
...
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