-
+
-
+ :color="colors[index-1]"
+ :eStyle="{ height: '6.6rem' }">
@@ -21,15 +20,19 @@
\ No newline at end of file
diff --git a/src/views/ThemeBoard/CoreTransformUser/opt.js b/src/views/ThemeBoard/CoreTransformUser/opt.js
new file mode 100644
index 0000000..e04ccd0
--- /dev/null
+++ b/src/views/ThemeBoard/CoreTransformUser/opt.js
@@ -0,0 +1,80 @@
+/*
+ * @Author: your name
+ * @Date: 2021-10-12 14:33:51
+ * @LastEditTime: 2021-10-29 19:20:12
+ * @LastEditors: Please set LastEditors
+ * @Description: In User Settings Edit
+ * @FilePath: /data-show/src/views/BrandInsight/weiboKol/opt.js
+ */
+import * as echarts from "echarts";
+function createData(ds=[], colors=[]) {
+ let arr = [];
+ for(let i = 0; i < ds.length; i++) {
+ let ele = ds[i];
+ if(ele.value*1 > 0) {
+ let obj = { value: ele.value*1, name: ele.key, itemStyle: {
+ color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{
+ //给颜色设置渐变色 前面4个参数,给第一个设置1,第四个设置0 ,就是水平渐变
+ //给第一个设置0,第四个设置1,就是垂直渐变
+ offset: 0,
+ color: 'black'
+ }, {
+ offset: 1,
+ color: colors[i]
+ }])
+ }};
+ arr.push(obj)
+ }
+ }
+ return arr;
+}
+export default function createOpt(ds = [], colors= []) {
+ const data = createData(ds, colors)
+ return {
+ series: [
+ {
+ name: 'Access From0',
+ type: 'pie',
+ radius: ['62%', '74%'],
+ avoidLabelOverlap: false,
+ label: {
+ show: false,
+ position: 'center',
+ lineHeight: 30
+ },
+ emphasis: {
+ label: {
+ show: true,
+ fontSize: '20',
+ color: "#ffff",
+ fontWeight: 'bold',
+ formatter: function (p) {
+ return `${p.data.name}\n${p.percent}%\n${p.data.value}`
+ }
+ }
+ },
+ labelLine: {
+ show: false
+ },
+ data: data,
+
+ },
+ {
+ name: 'Access From1',
+ type: 'pie',
+ radius: ['79%', '86%'],
+ avoidLabelOverlap: false,
+ label: {
+ show: false,
+ position: 'center'
+ },
+ labelLine: {
+ show: false
+ },
+ center: ['50%', '50%'],//边框位置
+ data: data,
+
+ }
+ ]
+ }
+}
diff --git a/src/views/ThemeBoard/EventTransform/index.vue b/src/views/ThemeBoard/EventTransform/index.vue
index 6e15ca6..b404138 100644
--- a/src/views/ThemeBoard/EventTransform/index.vue
+++ b/src/views/ThemeBoard/EventTransform/index.vue
@@ -1,21 +1,229 @@
-
+
+
+
+
+
+
+
新车上市
+
状态:事件发生
+
2021-06-01 11:26
+
+
+
+
![]()
+
+
+
{{item._source.title|doStr(30)}}
+
{{item._source.source}}
+
{{item._source.sourcetime}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/ThemeBoard/ThemeSource/index.vue b/src/views/ThemeBoard/ThemeSource/index.vue
index a1fe689..4d718e2 100644
--- a/src/views/ThemeBoard/ThemeSource/index.vue
+++ b/src/views/ThemeBoard/ThemeSource/index.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/views/ThemeBoard/ThemeSource/opt.js b/src/views/ThemeBoard/ThemeSource/opt.js
index 782b448..ac0b953 100644
--- a/src/views/ThemeBoard/ThemeSource/opt.js
+++ b/src/views/ThemeBoard/ThemeSource/opt.js
@@ -37,7 +37,7 @@ export default function createOpt(ds = [], color = []) {
{
name: 'Access From0',
type: 'pie',
- radius: ['65%', '80%'],
+ radius: ['62%', '74%'],
avoidLabelOverlap: false,
label: {
show: false,
@@ -63,7 +63,7 @@ export default function createOpt(ds = [], color = []) {
{
name: 'Access From1',
type: 'pie',
- radius: ['86%', '94%'],
+ radius: ['79%', '86%'],
avoidLabelOverlap: false,
label: {
show: false,
diff --git a/src/views/ThemeBoard/TransformMethod/index.vue b/src/views/ThemeBoard/TransformMethod/index.vue
index 7b181d5..c965328 100644
--- a/src/views/ThemeBoard/TransformMethod/index.vue
+++ b/src/views/ThemeBoard/TransformMethod/index.vue
@@ -1,5 +1,5 @@
-
+
@@ -10,21 +10,21 @@
最大层级
- 111
+ {{ countObj.sum }}
微博覆盖人数
- 222
+ {{ countObj.volume|formatMoney(0,'',',') }}
总转发人数
- 333
+ {{ countObj.total }}
@@ -33,11 +33,80 @@