Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Muse
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
罗超
Muse
Commits
e0df0994
Commit
e0df0994
authored
Nov 28, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
3ee15d67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
98 additions
and
56 deletions
+98
-56
salesGuestList.vue
src/components/viitto/salesGuestList.vue
+98
-56
No files found.
src/components/viitto/salesGuestList.vue
View file @
e0df0994
...
...
@@ -289,66 +289,104 @@ export default {
console
.
log
(
r
,
'rrrrr'
);
if
(
r
.
data
.
resultCode
==
1
){
this
.
dataList
=
r
.
data
.
data
;
let
data
=
r
.
data
.
data
;
if
(
this
.
dataList
&&
this
.
dataList
.
length
>
0
){
this
.
getCompany
(
this
.
dataList
);
this
.
dataList
.
forEach
(
x
=>
{
if
(
x
.
OutBranchName
==
'成都印象'
&&
x
.
MonthStr
<=
12
){
this
.
cdList
.
push
(
x
.
PreferPrice
);
this
.
cdGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'昆明印象'
&&
x
.
MonthStr
<=
12
){
this
.
kmList
.
push
(
x
.
PreferPrice
);
this
.
kmGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'西安印象'
&&
x
.
MonthStr
<=
12
){
this
.
xaList
.
push
(
x
.
PreferPrice
);
this
.
xaGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'武汉印象'
&&
x
.
MonthStr
<=
12
){
this
.
whList
.
push
(
x
.
PreferPrice
);
this
.
whGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'西宁印象'
&&
x
.
MonthStr
<=
12
){
this
.
nnList
.
push
(
x
.
PreferPrice
);
this
.
xnGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'贵阳印象'
&&
x
.
MonthStr
<=
12
){
this
.
gyList
.
push
(
x
.
PreferPrice
);
this
.
gyGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'南昌印象'
&&
x
.
MonthStr
<=
12
){
this
.
ncList
.
push
(
x
.
PreferPrice
);
this
.
ncGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'合肥印象'
&&
x
.
MonthStr
<=
12
){
this
.
hfList
.
push
(
x
.
PreferPrice
);
this
.
hfGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'长沙印象'
&&
x
.
MonthStr
<=
12
){
this
.
csList
.
push
(
x
.
PreferPrice
);
this
.
csGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'厦门印象'
&&
x
.
MonthStr
<=
12
){
this
.
xmList
.
push
(
x
.
PreferPrice
);
this
.
xmGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'南京印象'
&&
x
.
MonthStr
<=
12
){
this
.
njList
.
push
(
x
.
PreferPrice
);
this
.
njGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'重庆印象'
&&
x
.
MonthStr
<=
12
){
this
.
cqList
.
push
(
x
.
PreferPrice
);
this
.
cqGuest
.
push
(
x
.
GuestNum
);
}
if
(
x
.
OutBranchName
==
'入境印象'
&&
x
.
MonthStr
<=
12
){
this
.
rjList
.
push
(
x
.
PreferPrice
);
this
.
rjGuest
.
push
(
x
.
GuestNum
);
}
// this.dataList.forEach(x=>{
// if(x.OutBranchName=='成都印象'&&x.MonthStr
<=
12
){
// this.cdList.push(x.PreferPrice);
// this.cdGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='昆明印象'&&x.MonthStr
<=
12
){
// this.kmList.push(x.PreferPrice);
// this.kmGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='西安印象'&&x.MonthStr
<=
12
){
// this.xaList.push(x.PreferPrice);
// this.xaGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='武汉印象'&&x.MonthStr
<=
12
){
// this.whList.push(x.PreferPrice);
// this.whGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='西宁印象'&&x.MonthStr
<=
12
){
// this.nnList.push(x.PreferPrice);
// this.xnGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='贵阳印象'&&x.MonthStr
<=
12
){
// this.gyList.push(x.PreferPrice);
// this.gyGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='南昌印象'&&x.MonthStr
<=
12
){
// this.ncList.push(x.PreferPrice);
// this.ncGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='合肥印象'&&x.MonthStr
<=
12
){
// this.hfList.push(x.PreferPrice);
// this.hfGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='长沙印象'&&x.MonthStr
<=
12
){
// this.csList.push(x.PreferPrice);
// this.csGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='厦门印象'&&x.MonthStr
<=
12
){
// this.xmList.push(x.PreferPrice);
// this.xmGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='南京印象'&&x.MonthStr
<=
12
){
// this.njList.push(x.PreferPrice);
// this.njGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='重庆印象'&&x.MonthStr
<=
12
){
// this.cqList.push(x.PreferPrice);
// this.cqGuest.push(x.GuestNum);
// }
// if(x.OutBranchName=='入境印象'&&x.MonthStr
<=
12
){
// this.rjList.push(x.PreferPrice);
// this.rjGuest.push(x.GuestNum);
// }
// })
let
tempArr
=
[];
let
bb
=
[];
setTimeout
(()
=>
{
data
.
forEach
((
x
,
index
)
=>
{
this
.
companyList
.
forEach
(
y
=>
{
y
.
list
=
[];
if
(
y
.
OutBranchName
==
x
.
OutBranchName
){
console
.
log
(
y
,
'xxxx'
);
y
.
list
.
push
(
x
);
}
})
})
console
.
log
(
this
.
companyList
,
'bbbbbbbbbbbbb'
);
},
2000
)
// for (let i = 0; i
<
data
.
length
;
i
++
)
{
// if (tempArr.indexOf(data[i].OutBranchName) === -1) {
// bb.push({
// name: data[i].OutBranchName,
// List: [data[i]]
// });
// tempArr.push(data[i].MonthStr);
// } else {
// for (let j = 0; j
<
bb
.
length
;
j
++
)
{
// if (bb[j].OutBranchName == data[i].OutBranchName) {
// bb[j].List.push(data[i]);
// break;
// }
// }
// }
// }
this
.
companyList
.
forEach
(
item
=>
{
// let obj={
// name:item.OutBranchName.replace('印象',''),
// type:'bar',
// data:that.kmList
// };
})
}
this
.
init
();
console
.
log
(
this
.
cdList
,
'cdllist'
);
console
.
log
(
this
.
whGuest
,
'this.whGuestwhGuestwhGuest'
);
}
})
},
...
...
@@ -393,6 +431,7 @@ export default {
}
}
}
console
.
log
(
this
.
companyList
,
'company'
);
},
getName
(
item
){
return
item
.
replace
(
'印象'
,
''
);
...
...
@@ -432,6 +471,10 @@ export default {
title
:
{
color
:
"#2C3343"
},
legend
:
{
data
:
that
.
companyList
},
grid
:
{
left
:
'4%'
,
//距离左边的距离
right
:
'6%'
,
//距离右边的距离
...
...
@@ -604,7 +647,6 @@ export default {
smooth
:
true
,
showSymbol
:
false
,
data
:
that
.
cdGuest
//data:[50,60, 100, 150, 200, 250,300, 350, 355, 356, 400, 401]
},
{
...
...
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