Commit bb7e4f38 by 匡雅琴

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
......@@ -2,14 +2,14 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="analyse">
<div class="title title-icon">
<span class="icon"></span>
<!-- <span class="icon"></span> -->
<div class="title-h3">客户价值分析</div>
<div class="go" @click="goAnalyse">
<img src="@/assets/images/go.png" />
......@@ -75,10 +75,10 @@ export default {
}
.title-h3 {
width: 10px;
margin: 4px 4px;
// margin: 4px 4px;
// height:10.98vh;
font-size: 10px;
background-image: linear-gradient(90deg, #003F57 0%, #111056 54%, #071735 100%);
background-image: linear-gradient(180deg, #003F57 0%, #111056 54%, #071735 100%);
}
.go {
width: 12px;
......
......@@ -105,6 +105,8 @@ export default {
},
async created() {
await this.getoverview()
},
mounted() {
this.getTrend('total', '用户数')
},
methods: {
......@@ -121,7 +123,7 @@ export default {
},
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
this.selectIndex = selectIndex
const params = { req: { queryItem }}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:46:24
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 14:08:00
* @LastEditTime: 2023-08-22 15:40:41
* @FilePath: \dj-data-view\src\components\barOptions.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -218,7 +218,7 @@ function getLineOptions(obj) {
borderWidth: 0,
padding: 0,
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: {
......@@ -320,7 +320,7 @@ function lineAndBarOptions(list) {
// },
formatter: function(item) {
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: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!