Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit adb378d5
authored
Dec 09, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复Bug
1 parent
96ca9f12
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
18 deletions
src/views/afterSales/blocHome.vue
src/views/afterSales/introduct.vue
src/views/inSale/blocCon.vue
src/views/inSale/open.vue
src/views/inSale/ranking.vue
src/views/afterSales/blocHome.vue
View file @
adb378d
...
@@ -21,18 +21,23 @@
...
@@ -21,18 +21,23 @@
</div>
</div>
<div
class=
"tbale_wrap"
>
<div
class=
"tbale_wrap"
>
<el-table
:data=
"tableData"
height=
"350"
style=
"100%"
highlight-current-row
>
<el-table
:data=
"tableData"
height=
"350"
style=
"100%"
highlight-current-row
>
<el-table-column
prop=
"merchantName"
label=
"门店名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"merchantName"
label=
"门店名称"
width=
"300px"
align=
"center"
></el-table-column>
<el-table-column
prop=
"merchantName"
label=
"参与场次"
align=
"center"
></el-table-column>
<el-table-column
prop=
"count"
label=
"参与场次"
width=
"100px"
align=
"center"
></el-table-column>
<el-table-column
prop=
"merchantName"
label=
"总产值"
align=
"center"
></el-table-column>
<el-table-column
prop=
"total"
label=
"总产值"
width=
"500px"
>
<el-table-column
prop=
"merchantName"
label=
"平均单场产值"
align=
"center"
></el-table-column>
<!--
<el-table-column
label=
"总产值"
width=
"500"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
class=
"echat_wrap"
>
<div
class=
"echat_wrap"
>
<div
class=
"h19_title xtext"
>
{{
scope
.
row
.
divisionMoney
}}
</div>
<div
class=
"h19_title xtext"
>
¥
{{
scope
.
row
.
total
}}
</div>
<div
:style=
"
{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin">
</div>
<div
class=
"progress_wrap"
>
<div
:style=
"
{ width: (100 * scope.row.total) / custSortMax + '%' }" class="summary-progress-barin">
</div>
</div>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
-->
</el-table-column>
<el-table-column
label=
"平均单场产值"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
class=
"h19_title"
>
¥
{{
scope
.
row
.
perProduct
}}
</div>
</
template
>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
</div>
</div>
...
@@ -42,8 +47,28 @@
...
@@ -42,8 +47,28 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
tableData
:[]
tableData
:
[],
custSortMax
:
0
}
},
mounted
()
{
// 模拟数据
this
.
custSortMax
=
0
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
let
obj
=
{
merchantName
:
'门店'
+
i
,
count
:
i
+
10
,
total
:
Math
.
round
(
Math
.
random
()
*
10000
),
perProduct
:
Math
.
round
(
Math
.
random
()
*
6000
)
}
this
.
tableData
.
push
(
obj
)
}
}
this
.
tableData
.
forEach
(
item
=>
{
if
(
item
.
total
>=
this
.
custSortMax
)
{
this
.
custSortMax
=
item
.
total
}
})
}
}
}
}
</
script
>
</
script
>
...
@@ -110,5 +135,22 @@ export default {
...
@@ -110,5 +135,22 @@ export default {
}
}
}
}
}
}
.tbale_wrap
{
.echat_wrap
{
display
:
flex
;
align-items
:
center
;
.xtext
{
width
:
20%
;
}
.progress_wrap
{
width
:
65%
;
margin-left
:
10px
;
}
.summary-progress-barin
{
height
:
15px
;
background-color
:
#5850ff
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/afterSales/introduct.vue
View file @
adb378d
...
@@ -303,7 +303,7 @@ export default {
...
@@ -303,7 +303,7 @@ export default {
position
:
relative
;
position
:
relative
;
.table_icon
{
.table_icon
{
position
:
absolute
;
position
:
absolute
;
left
:
22
px
;
left
:
19
px
;
top
:
158px
;
top
:
158px
;
width
:
24px
;
width
:
24px
;
height
:
24px
;
height
:
24px
;
...
@@ -311,7 +311,7 @@ export default {
...
@@ -311,7 +311,7 @@ export default {
}
}
.pos1
{
.pos1
{
position
:
absolute
;
position
:
absolute
;
left
:
22
px
;
left
:
19
px
;
top
:
282px
;
top
:
282px
;
}
}
.tbale_one
{
.tbale_one
{
...
...
src/views/inSale/blocCon.vue
View file @
adb378d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<img
src=
"../../assets/scrm_bar_table_icon.png"
>
<img
src=
"../../assets/scrm_bar_table_icon.png"
>
</div>
</div>
<div
class=
"chart_wrapper"
>
<div
class=
"chart_wrapper"
>
<line-chart
ref=
"myline"
echartId=
"myline"
></line-chart>
<line-chart
:width=
"width"
ref=
"myline"
echartId=
"myline"
></line-chart>
</div>
</div>
<div
class=
"table-wrapper"
>
<div
class=
"table-wrapper"
>
<div
class=
"top_line flex_scb"
>
<div
class=
"top_line flex_scb"
>
...
@@ -43,6 +43,10 @@ export default {
...
@@ -43,6 +43,10 @@ export default {
show
:
{
show
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
width
:{
type
:
Number
,
default
:
400
}
}
},
},
data
()
{
data
()
{
...
...
src/views/inSale/open.vue
View file @
adb378d
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
</div>
</div>
</
template
>
</
template
>
<div
v-show=
"accountLevel != 4"
>
<div
v-show=
"accountLevel != 4"
>
<bloc-con
ref=
"mybloc"
:show=
"openRankFlag"
@
showRanking=
"toOpenRanking"
></bloc-con>
<bloc-con
ref=
"mybloc"
:
width=
"chartWidth"
:
show=
"openRankFlag"
@
showRanking=
"toOpenRanking"
></bloc-con>
</div>
</div>
</div>
</div>
<div
v-show=
"accountLevel != 4"
>
<div
v-show=
"accountLevel != 4"
>
...
...
src/views/inSale/ranking.vue
View file @
adb378d
...
@@ -27,7 +27,9 @@
...
@@ -27,7 +27,9 @@
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
class=
"echat_wrap"
>
<div
class=
"echat_wrap"
>
<div
class=
"h19_title xtext"
>
{{
scope
.
row
.
divisionMoney
}}
</div>
<div
class=
"h19_title xtext"
>
{{
scope
.
row
.
divisionMoney
}}
</div>
<div
:style=
"
{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin">
</div>
<div
class=
"progress_wrap"
>
<div
:style=
"
{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin">
</div>
</div>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -60,7 +62,7 @@ export default {
...
@@ -60,7 +62,7 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
product
:
Number
product
:
Number
},
},
created
()
{
created
()
{
this
.
today
=
utils
.
dateFormat
(
new
Date
())
this
.
today
=
utils
.
dateFormat
(
new
Date
())
...
@@ -160,14 +162,16 @@ export default {
...
@@ -160,14 +162,16 @@ export default {
.echat_wrap
{
.echat_wrap
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.xtext{
.xtext
{
width
:
20%
;
width
:
20%
;
}
}
.
summary-progress-barin
{
.
progress_wrap
{
margin-left
:
10px
;
margin-left
:
10px
;
width
:
65%
;
}
.summary-progress-barin
{
background-color
:
#5850ff
;
background-color
:
#5850ff
;
height
:
15px
;
height
:
15px
;
width
:
65%
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment