Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
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
华国豪
CRM
Commits
ea641c19
Commit
ea641c19
authored
Sep 08, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6cdf8762
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
36 deletions
+43
-36
DrainageRankingStatistics.vue
src/views/workstatistics/DrainageRankingStatistics.vue
+43
-36
No files found.
src/views/workstatistics/DrainageRankingStatistics.vue
View file @
ea641c19
...
@@ -23,34 +23,44 @@
...
@@ -23,34 +23,44 @@
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<div
style=
"padding: 0 0;background: #ffffff;"
>
<div
style=
"padding: 0 0
30px 0
;background: #ffffff;"
>
<el-table
<el-table
v-loading=
"loading"
:data=
"dataList"
:data=
"dataList"
style=
"width: 100%"
style=
"width: 100%"
border
border
:span-method=
"objectSpanMethod"
>
:span-method=
"objectSpanMethod"
>
<el-table-column
width=
"150"
fixed
prop=
"EmpName"
label=
"姓名"
></el-table-column>
<el-table-column
width=
"150"
fixed
prop=
"EmpName"
label=
"姓名"
></el-table-column>
<el-table-column
width=
"100"
prop=
"ranking"
label=
"排名"
>
<el-table-column
width=
"100"
prop=
"RankName"
label=
"排名"
></el-table-column>
<template
slot=
"header"
slot-scope=
"scope"
>
排名
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ranking
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"i.Name"
align=
"center"
v-for=
"i in PlatformTypeList"
>
<el-table-column
:label=
"i.Name"
align=
"center"
v-for=
"i in PlatformTypeList"
>
<el-table-column
<el-table-column
v-for=
"item in ModuleTypeList
"
v-for=
"(item,index) in ModuleTypeList"
:key=
"index
"
prop=
"province"
prop=
"province"
:label=
"item.Name"
:label=
"item.Name"
width=
"80"
>
width=
"80"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<template
v-for=
"items in scope.row.xhs"
>
<template
v-if=
"i.Name=='小红书'"
>
<template
v-if=
"item.Name==items.name"
>
<span
v-for=
"(itemOne,indexs) in scope.row.oneArr"
:key=
"indexs"
>
{{
items
.
num
}}
<template
v-if=
"index==indexs"
>
{{
itemOne
>
0
?
itemOne
:
''
}}
</
template
>
</
template
>
</span>
</template>
<
template
v-if=
"i.Name=='微博'"
>
<span
v-for=
"(itemOne,indexs) in scope.row.twoArr"
:key=
"indexs"
>
<template
v-if=
"index==indexs"
>
{{
itemOne
>
0
?
itemOne
:
''
}}
</
template
>
</
template
>
</span>
</template>
<
template
v-if=
"i.Name=='抖音'"
>
<span
v-for=
"(itemOne,indexs) in scope.row.threeArr"
:key=
"indexs"
>
<template
v-if=
"index==indexs"
>
{{
itemOne
>
0
?
itemOne
:
''
}}
</
template
>
</span>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
</el-table-column>
</el-table-column>
...
@@ -84,7 +94,7 @@
...
@@ -84,7 +94,7 @@
</template>
</template>
</el-table-column>
</el-table-column>
</el-table-column> -->
</el-table-column> -->
<el-table-column
fixed=
"right"
prop=
"
hj
"
label=
"合计"
></el-table-column>
<el-table-column
fixed=
"right"
prop=
"
TotalNum
"
label=
"合计"
></el-table-column>
</el-table>
</el-table>
</div>
</div>
...
@@ -313,28 +323,25 @@
...
@@ -313,28 +323,25 @@
(
res
)
=>
{
(
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
data
){
if
(
res
.
data
.
data
){
if
(
res
.
data
.
data
){
console
.
log
(
res
.
data
.
data
)
let
allList
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
data
))
let
List
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
data
))
let
RankList
=
[]
for
(
let
j
=
0
;
j
<
List
.
length
;
j
++
){
let
list
=
[]
List
[
j
].
oneArr
=
[]
for
(
let
i
=
0
;
i
<
allList
.
length
;
i
++
){
List
[
j
].
twoArr
=
[]
allList
[
i
].
ranking
List
[
j
].
threeArr
=
[]
let
j
=
0
for
(
let
i
=
0
;
i
<
List
[
j
].
NumList
.
length
;
i
++
){
for
(
j
;
j
<
allList
[
i
].
RankList
.
length
;
j
++
){
if
(
i
<
5
){
allList
[
i
].
ranking
=
j
List
[
j
].
oneArr
.
push
(
List
[
j
].
NumList
[
i
])
list
.
push
(
allList
[
i
])
}
if
(
i
>
4
&&
i
<
10
){
List
[
j
].
twoArr
.
push
(
List
[
j
].
NumList
[
i
])
}
if
(
i
>
9
&&
i
<
15
){
List
[
j
].
threeArr
.
push
(
List
[
j
].
NumList
[
i
])
}
}
}
}
// allList.forEach(item => {
// item.ranking = ''
// for(let i=0;i
<
2
;
i
++
){
// item.ranking = i+1
// }
// list.push(item)
// });
this
.
dataList
=
list
console
.
log
(
this
.
dataList
)
}
}
this
.
dataList
=
List
}
}
},
},
(
e
)
=>
{
(
e
)
=>
{
...
...
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