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 @@ ...@@ -3,12 +3,16 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: huyue
* @LastEditTime: 2021-06-17 18:23:27 * @LastEditTime: 2022-06-28 15:12:48
*/ */
import wwbenchApi from './wwbenchApi'
import customer from './customer'
export {
wwbenchApi,
customer
}
\ No newline at end of file \ 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 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-23 15:05:21 * @Date: 2022-06-23 15:05:21
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-06-27 18:30:09 * @LastEditTime: 2022-06-28 16:26:00
--> -->
<template> <template>
<div class="flow-box"> <div class="flow-box">
...@@ -73,8 +73,26 @@ export default { ...@@ -73,8 +73,26 @@ export default {
}, },
mounted() { mounted() {
this.getChart() this.getChart()
this.init()
}, },
methods: { 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() { getChart() {
var chartDom = document.getElementById('flow') var chartDom = document.getElementById('flow')
var myChart = echarts.init(chartDom) var myChart = echarts.init(chartDom)
...@@ -147,14 +165,14 @@ export default { ...@@ -147,14 +165,14 @@ export default {
padding: 0 8px 1vh; padding: 0 8px 1vh;
box-sizing: border-box; box-sizing: border-box;
.flow-left { .flow-left {
padding-bottom: 1vh; padding-bottom: 0.9vh;
width: 50%; width: 50%;
} }
.flow-right { .flow-right {
flex: 1; flex: 1;
color: #fff; color: #fff;
font-size: 10px; font-size: 10px;
padding: 1vh 8px 1vh 20px; padding: 1vh 0 0.9vh 20px;
.ranking-title { .ranking-title {
display: flex; display: flex;
width: 100%; width: 100%;
...@@ -168,7 +186,7 @@ export default { ...@@ -168,7 +186,7 @@ export default {
width: 50%; width: 50%;
text-align: center; text-align: center;
background-color: #353535; background-color: #353535;
line-height: 20px; line-height: 2.4vh;
} }
} }
.ranking-content { .ranking-content {
...@@ -178,8 +196,8 @@ export default { ...@@ -178,8 +196,8 @@ export default {
display: flex; display: flex;
width: 100%; width: 100%;
align-items: center; align-items: center;
line-height: 2.2vh; line-height: 2.1vh;
height: 2.2vh; height: 2.1vh;
.ranking-name { .ranking-name {
width: calc(100% - 33% - 28px); 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!