Commit fd1aaba1 by 王志慧

Merge branch 'dev_v1.0.0' of http://192.168.3.233:8090/gh/data-view into dev_v1.0.0

2 parents 29488ba8 3d1be4e6
......@@ -3,12 +3,16 @@
* @version: 1.0.0
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-06-17 18:23:27
* @LastEditors: huyue
* @LastEditTime: 2022-06-28 15:12:48
*/
import wwbenchApi from './wwbenchApi'
import customer from './customer'
export {
wwbenchApi,
customer
}
\ No newline at end of file
const modulesFiles = require.context('./modules', true, /\.js$/)
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
const value = modulesFiles(modulePath)
console.log(moduleName)
modules[moduleName] = value.default
return modules
}, {})
console.log(modules)
export default modules
/*
* @Description: 获取品牌销售相关信息
* @Author: huyue
* @Date: 2022-06-28 14:58:30
* @LastEditors: huyue
* @LastEditTime: 2022-06-28 16:28:23
*/
import Request from '../request'
const request = new Request()
const getSales = params => {
return request.get('brand/sale', params)
}
export default {
getSales
}
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 15:05:21
* @LastEditors: huyue
* @LastEditTime: 2022-06-27 18:30:09
* @LastEditTime: 2022-06-28 16:26:00
-->
<template>
<div class="flow-box">
......@@ -73,8 +73,26 @@ export default {
},
mounted() {
this.getChart()
this.init()
},
methods: {
init() {
const params = {
req: {
corporateGroupName: '集团1',
queryItem: 'infosource',
queryTime: '2022-06-23',
queryType: 0
}
}
this.api.sales.getSales(params).then(res => {
console.log(res)
if (res.code === '0') {
const { data: data } = res
console.log(JSON.parse(data.data[0].typeNum))
}
})
},
getChart() {
var chartDom = document.getElementById('flow')
var myChart = echarts.init(chartDom)
......@@ -147,14 +165,14 @@ export default {
padding: 0 8px 1vh;
box-sizing: border-box;
.flow-left {
padding-bottom: 1vh;
padding-bottom: 0.9vh;
width: 50%;
}
.flow-right {
flex: 1;
color: #fff;
font-size: 10px;
padding: 1vh 8px 1vh 20px;
padding: 1vh 0 0.9vh 20px;
.ranking-title {
display: flex;
width: 100%;
......@@ -168,7 +186,7 @@ export default {
width: 50%;
text-align: center;
background-color: #353535;
line-height: 20px;
line-height: 2.4vh;
}
}
.ranking-content {
......@@ -178,8 +196,8 @@ export default {
display: flex;
width: 100%;
align-items: center;
line-height: 2.2vh;
height: 2.2vh;
line-height: 2.1vh;
height: 2.1vh;
.ranking-name {
width: calc(100% - 33% - 28px);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!