Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
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 bb7e4f38
authored
Aug 22, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.1.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v2.1.0
2 parents
14ec1a5d
deb79a83
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
src/views/operational/components/Analyse.vue
src/views/operational/components/UserTab.vue
src/views/operational/components/options.js
src/views/operational/components/Analyse.vue
View file @
bb7e4f3
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-08-
16 15:31:56
* @LastEditTime: 2023-08-
22 14:55:43
* @FilePath: \dj-data-view\src\views\user\analyse.vue
* @FilePath: \dj-data-view\src\views\user\analyse.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
<
template
>
<
template
>
<div
class=
"analyse"
>
<div
class=
"analyse"
>
<div
class=
"title title-icon"
>
<div
class=
"title title-icon"
>
<
span
class=
"icon"
></span
>
<
!--
<span
class=
"icon"
></span>
--
>
<div
class=
"title-h3"
>
客户价值分析
</div>
<div
class=
"title-h3"
>
客户价值分析
</div>
<div
class=
"go"
@
click=
"goAnalyse"
>
<div
class=
"go"
@
click=
"goAnalyse"
>
<img
src=
"@/assets/images/go.png"
/>
<img
src=
"@/assets/images/go.png"
/>
...
@@ -75,10 +75,10 @@ export default {
...
@@ -75,10 +75,10 @@ export default {
}
}
.title-h3
{
.title-h3
{
width
:
10px
;
width
:
10px
;
margin
:
4px
4px
;
//
margin
:
4px
4px
;
//
height
:
10.98vh
;
//
height
:
10.98vh
;
font-size
:
10px
;
font-size
:
10px
;
background-image
:
linear-gradient
(
9
0deg
,
#003F57
0%
,
#111056
54%
,
#071735
100%
);
background-image
:
linear-gradient
(
18
0deg
,
#003F57
0%
,
#111056
54%
,
#071735
100%
);
}
}
.go
{
.go
{
width
:
12px
;
width
:
12px
;
...
...
src/views/operational/components/UserTab.vue
View file @
bb7e4f3
...
@@ -105,6 +105,8 @@ export default {
...
@@ -105,6 +105,8 @@ export default {
},
},
async
created
()
{
async
created
()
{
await
this
.
getoverview
()
await
this
.
getoverview
()
},
mounted
()
{
this
.
getTrend
(
'total'
,
'用户数'
)
this
.
getTrend
(
'total'
,
'用户数'
)
},
},
methods
:
{
methods
:
{
...
@@ -121,7 +123,7 @@ export default {
...
@@ -121,7 +123,7 @@ export default {
},
},
getTrend
(
queryItem
,
name
)
{
getTrend
(
queryItem
,
name
)
{
const
selectIndex
=
TEXT_VIEW
.
findIndex
(
item
=>
item
.
text
===
name
)
const
selectIndex
=
TEXT_VIEW
.
findIndex
(
item
=>
item
.
name
===
name
)
if
(
selectIndex
>
2
)
return
if
(
selectIndex
>
2
)
return
this
.
selectIndex
=
selectIndex
this
.
selectIndex
=
selectIndex
const
params
=
{
req
:
{
queryItem
}}
const
params
=
{
req
:
{
queryItem
}}
...
...
src/views/operational/components/options.js
View file @
bb7e4f3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:46:24
* @Date: 2022-10-25 10:46:24
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 1
4:08:00
* @LastEditTime: 2023-08-22 1
5:40:41
* @FilePath: \dj-data-view\src\components\barOptions.js
* @FilePath: \dj-data-view\src\components\barOptions.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -218,7 +218,7 @@ function getLineOptions(obj) {
...
@@ -218,7 +218,7 @@ function getLineOptions(obj) {
borderWidth
:
0
,
borderWidth
:
0
,
padding
:
0
,
padding
:
0
,
formatter
:
function
(
item
)
{
formatter
:
function
(
item
)
{
return
`<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="color: #FFFFFF">
${
name
}
:
${
item
[
0
].
value
}
</div></div>`
return
`<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="color: #FFFFFF">
${
name
}
:
${
utils
.
numAddSymbol
(
item
[
0
].
value
)
}
</div></div>`
}
}
},
},
xAxis
:
{
xAxis
:
{
...
@@ -320,7 +320,7 @@ function lineAndBarOptions(list) {
...
@@ -320,7 +320,7 @@ function lineAndBarOptions(list) {
// },
// },
formatter
:
function
(
item
)
{
formatter
:
function
(
item
)
{
const
items
=
list
[
item
[
0
].
dataIndex
]
const
items
=
list
[
item
[
0
].
dataIndex
]
return
`<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:
${
item
[
0
].
value
}
<br>当月新增:
${
item
[
1
].
value
}
<br>上月总门店数:
${
items
.
yesterdaytotalNum
}
<br>上月月新增:
${
items
.
yesterdayincreNum
}
</div></div>`
return
`<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:
${
utils
.
numAddSymbol
(
item
[
0
].
value
)}
<br>当月新增:
${
utils
.
numAddSymbol
(
item
[
1
].
value
)}
<br>上月总门店数:
${
utils
.
numAddSymbol
(
items
.
yesterdaytotalNum
)}
<br>上月月新增:
${
utils
.
numAddSymbol
(
items
.
yesterdayincreNum
)
}
</div></div>`
}
}
},
},
xAxis
:
[
xAxis
:
[
...
...
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