From 8f85eda47053aa190ab6b68ef4bea894efd98c15 Mon Sep 17 00:00:00 2001
From: xiaowen <372193233@qq.com>
Date: Thu, 23 Dec 2021 16:38:10 +0800
Subject: [PATCH] cxw-010203
---
src/request/index.js | 4 ++--
src/views/Index/barometer/index.vue | 6 ++++--
src/views/Index/salesRank/index.vue | 5 +++--
src/views/Index/salesRank/opt.js | 10 +++++-----
src/views/Index/spreadTheSound/index.vue | 5 +++--
src/views/Index/spreadTheSound/opt.js | 4 ++--
src/views/Index/tailInsight/index.vue | 5 +++--
src/views/Index/tailInsight/opt.js | 4 ++--
8 files changed, 24 insertions(+), 19 deletions(-)
diff --git a/src/request/index.js b/src/request/index.js
index 3934c58..b97ed80 100644
--- a/src/request/index.js
+++ b/src/request/index.js
@@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-13 09:28:02
- * @LastEditTime: 2021-12-10 14:02:12
+ * @LastEditTime: 2021-12-23 16:21:07
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/request/index.js
@@ -24,7 +24,7 @@ function filterRequestData(obj) {
//创建axios的实例
const httpService = axios.create({
baseURL: 'http://cloud.sws010.com',// TODO:具体的配置可以根据项目情况而来
- timeout: 5000
+ // timeout: 5000
})
//axios的拦截--request
diff --git a/src/views/Index/barometer/index.vue b/src/views/Index/barometer/index.vue
index f74c285..ce666e8 100644
--- a/src/views/Index/barometer/index.vue
+++ b/src/views/Index/barometer/index.vue
@@ -1,7 +1,7 @@
@@ -55,6 +55,7 @@ export default {
arr.push(ele);
});
this.pdata = arr;
+ this.handlerData(arr);
this.load = false;
});
},
@@ -68,6 +69,7 @@ export default {
arr.push(ele);
});
this.pdata = arr;
+ this.handlerData(arr);
this.load = false;
});
},
diff --git a/src/views/Index/salesRank/index.vue b/src/views/Index/salesRank/index.vue
index a3c1570..277399c 100644
--- a/src/views/Index/salesRank/index.vue
+++ b/src/views/Index/salesRank/index.vue
@@ -1,7 +1,7 @@
{{item.key}}
@@ -91,6 +91,7 @@ export default {
getCheZhuBrandCount0528(this.form).then((res) => {
let data = res.data;
this.pdata = data;
+ this.handlerPage(data);
this.load = false;
});
},
diff --git a/src/views/Index/salesRank/opt.js b/src/views/Index/salesRank/opt.js
index e08dbac..a84ec44 100644
--- a/src/views/Index/salesRank/opt.js
+++ b/src/views/Index/salesRank/opt.js
@@ -2,7 +2,7 @@
/*
* @Author: your name
* @Date: 2021-10-08 19:24:08
- * @LastEditTime: 2021-10-29 15:54:46
+ * @LastEditTime: 2021-12-23 16:30:58
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Index/salesRank/opt.js
@@ -39,9 +39,9 @@ export default function createOpt(dx, ds) {
},
xAxis: {
type: "category",
- axisLabel :{
- interval:0,
- },
+ // axisLabel :{
+ // interval:0,
+ // },
axisTick: {
show: false,
},
@@ -79,7 +79,7 @@ export default function createOpt(dx, ds) {
name: "2001",
data: ds,
type: "bar",
- barWidth: 24,
+ barWidth: 18,
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
diff --git a/src/views/Index/spreadTheSound/index.vue b/src/views/Index/spreadTheSound/index.vue
index 1cc3362..b49b6df 100644
--- a/src/views/Index/spreadTheSound/index.vue
+++ b/src/views/Index/spreadTheSound/index.vue
@@ -1,7 +1,7 @@
@@ -63,6 +63,7 @@ export default {
getHomeBrandSourceType0528(obj).then((res) => {
let data = res.data;
this.pdata = data;
+ this.handlerData(data);
this.load = false;
});
},
diff --git a/src/views/Index/spreadTheSound/opt.js b/src/views/Index/spreadTheSound/opt.js
index 390dc62..8819b5e 100644
--- a/src/views/Index/spreadTheSound/opt.js
+++ b/src/views/Index/spreadTheSound/opt.js
@@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-09 11:01:19
- * @LastEditTime: 2021-12-16 14:38:53
+ * @LastEditTime: 2021-12-23 16:37:35
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Index/spreadTheSound/opt.js
@@ -25,7 +25,7 @@ function createData(ds = []) {
name: arr1[j].key,
type: 'bar',
stack: 'total',
- barWidth: 22,
+ barWidth: 18,
barGap: "-100%",
emphasis: {
focus: 'series'
diff --git a/src/views/Index/tailInsight/index.vue b/src/views/Index/tailInsight/index.vue
index e14466a..d830730 100644
--- a/src/views/Index/tailInsight/index.vue
+++ b/src/views/Index/tailInsight/index.vue
@@ -1,7 +1,7 @@
@@ -65,6 +65,7 @@ export default {
getWeiYiCountHome0528(obj).then((res) => {
let data = res.data;
this.pdata = data;
+ this.handlerData(data);
this.load = false;
});
},
diff --git a/src/views/Index/tailInsight/opt.js b/src/views/Index/tailInsight/opt.js
index f947373..54b008c 100644
--- a/src/views/Index/tailInsight/opt.js
+++ b/src/views/Index/tailInsight/opt.js
@@ -3,7 +3,7 @@
/*
* @Author: your name
* @Date: 2021-10-09 12:38:34
- * @LastEditTime: 2021-11-08 10:59:48
+ * @LastEditTime: 2021-12-23 16:33:57
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Index/tailInsight/opt.js
@@ -67,7 +67,7 @@ export default function createOpt(dy=[],ds=[]) {
series: [
{
type: 'bar',
- barWidth: 20,
+ barWidth: 10,
data: ds,
itemStyle: {
normal: {