diff --git a/src/router/modules/control.js b/src/router/modules/control.js
index c39b1cd..f99b84e 100644
--- a/src/router/modules/control.js
+++ b/src/router/modules/control.js
@@ -1,5 +1,5 @@
/* Layout */
-import Layout from '../../views/layout/Layout'
+import SupLayout from '../../views/layout/SupLayout'
export const controlRouters = [
{
path: '/control',
@@ -14,7 +14,7 @@
},
{
path: '/supControl',
- component: Layout,
+ component: SupLayout,
redirect: '/supControlDetail',
name: 'SupControl',
alwaysShow: true,
diff --git a/src/router/modules/control.js b/src/router/modules/control.js
index c39b1cd..f99b84e 100644
--- a/src/router/modules/control.js
+++ b/src/router/modules/control.js
@@ -1,5 +1,5 @@
/* Layout */
-import Layout from '../../views/layout/Layout'
+import SupLayout from '../../views/layout/SupLayout'
export const controlRouters = [
{
path: '/control',
@@ -14,7 +14,7 @@
},
{
path: '/supControl',
- component: Layout,
+ component: SupLayout,
redirect: '/supControlDetail',
name: 'SupControl',
alwaysShow: true,
diff --git a/src/views/layout/SupLayout.vue b/src/views/layout/SupLayout.vue
new file mode 100644
index 0000000..5ada200
--- /dev/null
+++ b/src/views/layout/SupLayout.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
diff --git a/src/router/modules/control.js b/src/router/modules/control.js
index c39b1cd..f99b84e 100644
--- a/src/router/modules/control.js
+++ b/src/router/modules/control.js
@@ -1,5 +1,5 @@
/* Layout */
-import Layout from '../../views/layout/Layout'
+import SupLayout from '../../views/layout/SupLayout'
export const controlRouters = [
{
path: '/control',
@@ -14,7 +14,7 @@
},
{
path: '/supControl',
- component: Layout,
+ component: SupLayout,
redirect: '/supControlDetail',
name: 'SupControl',
alwaysShow: true,
diff --git a/src/views/layout/SupLayout.vue b/src/views/layout/SupLayout.vue
new file mode 100644
index 0000000..5ada200
--- /dev/null
+++ b/src/views/layout/SupLayout.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
diff --git a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
index 1b460e4..67c0751 100644
--- a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
+++ b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
@@ -16,23 +16,6 @@
}
}
},
- computed: {
- columnData() {
- const tmp = []
- this.list.forEach(item => {
- if (item.depId !== '') {
- const obj = {}
- obj.name = item.departName
- obj.type = 'bar'
- obj.data = []
- obj.data.push(item.currentCheckNum)
- obj.data.push(item.checkedNum)
- tmp.push(obj)
- }
- })
- return tmp
- }
- },
watch: {
list() {
this.initChart()
@@ -45,15 +28,14 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '各单位处置情况'
- },
- backgroundColor: '#ccc',
grid: {
- left: '30px'
+ left: '60px',
+ top: '10px'
},
legend: {
- left: '60%'
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
},
tooltip: {
trigger: 'axis',
@@ -65,17 +47,42 @@
{
type: 'category',
data: this.list[0],
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
axisLabel: {
- rotate: 90,
- fontSize: 10
+ // rotate: 90,
+ fontSize: 10,
+ color: '#fff'
}
}
],
xAxis: [
{
- type: 'value'
+ type: 'value',
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ axisLabel: {
+ fontSize: 10,
+ color: '#fff'
+ },
+ splitLine: {
+ show: false
+ }
}
],
+ color: [
+ '#19d4ae', '#ffb980', '#5ab1ef',
+ '#fa6e86', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: this.list[1]
})
}
@@ -88,7 +95,7 @@
/*text-align: center;*/
}
.chart-body{
- height: 240px;
+ min-height: 240px;
width: 90%;
margin-right: auto;
margin-left: auto;
diff --git a/src/router/modules/control.js b/src/router/modules/control.js
index c39b1cd..f99b84e 100644
--- a/src/router/modules/control.js
+++ b/src/router/modules/control.js
@@ -1,5 +1,5 @@
/* Layout */
-import Layout from '../../views/layout/Layout'
+import SupLayout from '../../views/layout/SupLayout'
export const controlRouters = [
{
path: '/control',
@@ -14,7 +14,7 @@
},
{
path: '/supControl',
- component: Layout,
+ component: SupLayout,
redirect: '/supControlDetail',
name: 'SupControl',
alwaysShow: true,
diff --git a/src/views/layout/SupLayout.vue b/src/views/layout/SupLayout.vue
new file mode 100644
index 0000000..5ada200
--- /dev/null
+++ b/src/views/layout/SupLayout.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
diff --git a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
index 1b460e4..67c0751 100644
--- a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
+++ b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
@@ -16,23 +16,6 @@
}
}
},
- computed: {
- columnData() {
- const tmp = []
- this.list.forEach(item => {
- if (item.depId !== '') {
- const obj = {}
- obj.name = item.departName
- obj.type = 'bar'
- obj.data = []
- obj.data.push(item.currentCheckNum)
- obj.data.push(item.checkedNum)
- tmp.push(obj)
- }
- })
- return tmp
- }
- },
watch: {
list() {
this.initChart()
@@ -45,15 +28,14 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '各单位处置情况'
- },
- backgroundColor: '#ccc',
grid: {
- left: '30px'
+ left: '60px',
+ top: '10px'
},
legend: {
- left: '60%'
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
},
tooltip: {
trigger: 'axis',
@@ -65,17 +47,42 @@
{
type: 'category',
data: this.list[0],
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
axisLabel: {
- rotate: 90,
- fontSize: 10
+ // rotate: 90,
+ fontSize: 10,
+ color: '#fff'
}
}
],
xAxis: [
{
- type: 'value'
+ type: 'value',
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ axisLabel: {
+ fontSize: 10,
+ color: '#fff'
+ },
+ splitLine: {
+ show: false
+ }
}
],
+ color: [
+ '#19d4ae', '#ffb980', '#5ab1ef',
+ '#fa6e86', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: this.list[1]
})
}
@@ -88,7 +95,7 @@
/*text-align: center;*/
}
.chart-body{
- height: 240px;
+ min-height: 240px;
width: 90%;
margin-right: auto;
margin-left: auto;
diff --git a/src/views/otherComment/highFreq/highFreqChart.vue b/src/views/otherComment/highFreq/highFreqChart.vue
index 3c62d66..5b146b1 100644
--- a/src/views/otherComment/highFreq/highFreqChart.vue
+++ b/src/views/otherComment/highFreq/highFreqChart.vue
@@ -43,22 +43,22 @@
tooltip: {
show: true
},
- // toolbox: {
- // show: true,
- // right: '20',
- // feature: {
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // color: [
- // '#19d4ae', '#5ab1ef', '#fa6e86',
- // '#ffb980', '#0067a6', '#c4b4e4',
- // '#d87a80', '#9cbbff', '#d9d0c7',
- // '#87a997', '#d49ea2', '#5b4947',
- // '#7ba3a8'
- // ],
+ toolbox: {
+ show: true,
+ right: '20',
+ feature: {
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
legend: {
orient: 'vertical',
right: 0,
diff --git a/src/router/modules/control.js b/src/router/modules/control.js
index c39b1cd..f99b84e 100644
--- a/src/router/modules/control.js
+++ b/src/router/modules/control.js
@@ -1,5 +1,5 @@
/* Layout */
-import Layout from '../../views/layout/Layout'
+import SupLayout from '../../views/layout/SupLayout'
export const controlRouters = [
{
path: '/control',
@@ -14,7 +14,7 @@
},
{
path: '/supControl',
- component: Layout,
+ component: SupLayout,
redirect: '/supControlDetail',
name: 'SupControl',
alwaysShow: true,
diff --git a/src/views/layout/SupLayout.vue b/src/views/layout/SupLayout.vue
new file mode 100644
index 0000000..5ada200
--- /dev/null
+++ b/src/views/layout/SupLayout.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
diff --git a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
index 1b460e4..67c0751 100644
--- a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
+++ b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
@@ -16,23 +16,6 @@
}
}
},
- computed: {
- columnData() {
- const tmp = []
- this.list.forEach(item => {
- if (item.depId !== '') {
- const obj = {}
- obj.name = item.departName
- obj.type = 'bar'
- obj.data = []
- obj.data.push(item.currentCheckNum)
- obj.data.push(item.checkedNum)
- tmp.push(obj)
- }
- })
- return tmp
- }
- },
watch: {
list() {
this.initChart()
@@ -45,15 +28,14 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '各单位处置情况'
- },
- backgroundColor: '#ccc',
grid: {
- left: '30px'
+ left: '60px',
+ top: '10px'
},
legend: {
- left: '60%'
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
},
tooltip: {
trigger: 'axis',
@@ -65,17 +47,42 @@
{
type: 'category',
data: this.list[0],
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
axisLabel: {
- rotate: 90,
- fontSize: 10
+ // rotate: 90,
+ fontSize: 10,
+ color: '#fff'
}
}
],
xAxis: [
{
- type: 'value'
+ type: 'value',
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ axisLabel: {
+ fontSize: 10,
+ color: '#fff'
+ },
+ splitLine: {
+ show: false
+ }
}
],
+ color: [
+ '#19d4ae', '#ffb980', '#5ab1ef',
+ '#fa6e86', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: this.list[1]
})
}
@@ -88,7 +95,7 @@
/*text-align: center;*/
}
.chart-body{
- height: 240px;
+ min-height: 240px;
width: 90%;
margin-right: auto;
margin-left: auto;
diff --git a/src/views/otherComment/highFreq/highFreqChart.vue b/src/views/otherComment/highFreq/highFreqChart.vue
index 3c62d66..5b146b1 100644
--- a/src/views/otherComment/highFreq/highFreqChart.vue
+++ b/src/views/otherComment/highFreq/highFreqChart.vue
@@ -43,22 +43,22 @@
tooltip: {
show: true
},
- // toolbox: {
- // show: true,
- // right: '20',
- // feature: {
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // color: [
- // '#19d4ae', '#5ab1ef', '#fa6e86',
- // '#ffb980', '#0067a6', '#c4b4e4',
- // '#d87a80', '#9cbbff', '#d9d0c7',
- // '#87a997', '#d49ea2', '#5b4947',
- // '#7ba3a8'
- // ],
+ toolbox: {
+ show: true,
+ right: '20',
+ feature: {
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
legend: {
orient: 'vertical',
right: 0,
diff --git a/src/views/otherComment/highFreq/highFreqChart4Sup.vue b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
index 72ff2a5..7d01f82 100644
--- a/src/views/otherComment/highFreq/highFreqChart4Sup.vue
+++ b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
@@ -40,22 +40,34 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '高发问题统计'
- },
- backgroundColor: '#ccc',
+ // backgroundColor: '#ccc',
tooltip: {
show: true
},
+ grid: {
+ bottom: 120
+ },
+ legend: {
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
+ },
toolbox: {
show: true,
right: '20',
feature: {
dataView: {
- show: true
+ show: false
}
}
},
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: [{
name: '高发问题',
type: 'pie',
@@ -64,7 +76,7 @@
show: false
},
tooltip: {
- formatter: '{b}
上报数: {d}%'
+ formatter: '{b}
上报数: {c} ({d}%)'
},
}]
})
@@ -75,11 +87,12 @@
diff --git a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
index 1b460e4..67c0751 100644
--- a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
+++ b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
@@ -16,23 +16,6 @@
}
}
},
- computed: {
- columnData() {
- const tmp = []
- this.list.forEach(item => {
- if (item.depId !== '') {
- const obj = {}
- obj.name = item.departName
- obj.type = 'bar'
- obj.data = []
- obj.data.push(item.currentCheckNum)
- obj.data.push(item.checkedNum)
- tmp.push(obj)
- }
- })
- return tmp
- }
- },
watch: {
list() {
this.initChart()
@@ -45,15 +28,14 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '各单位处置情况'
- },
- backgroundColor: '#ccc',
grid: {
- left: '30px'
+ left: '60px',
+ top: '10px'
},
legend: {
- left: '60%'
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
},
tooltip: {
trigger: 'axis',
@@ -65,17 +47,42 @@
{
type: 'category',
data: this.list[0],
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
axisLabel: {
- rotate: 90,
- fontSize: 10
+ // rotate: 90,
+ fontSize: 10,
+ color: '#fff'
}
}
],
xAxis: [
{
- type: 'value'
+ type: 'value',
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ axisLabel: {
+ fontSize: 10,
+ color: '#fff'
+ },
+ splitLine: {
+ show: false
+ }
}
],
+ color: [
+ '#19d4ae', '#ffb980', '#5ab1ef',
+ '#fa6e86', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: this.list[1]
})
}
@@ -88,7 +95,7 @@
/*text-align: center;*/
}
.chart-body{
- height: 240px;
+ min-height: 240px;
width: 90%;
margin-right: auto;
margin-left: auto;
diff --git a/src/views/otherComment/highFreq/highFreqChart.vue b/src/views/otherComment/highFreq/highFreqChart.vue
index 3c62d66..5b146b1 100644
--- a/src/views/otherComment/highFreq/highFreqChart.vue
+++ b/src/views/otherComment/highFreq/highFreqChart.vue
@@ -43,22 +43,22 @@
tooltip: {
show: true
},
- // toolbox: {
- // show: true,
- // right: '20',
- // feature: {
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // color: [
- // '#19d4ae', '#5ab1ef', '#fa6e86',
- // '#ffb980', '#0067a6', '#c4b4e4',
- // '#d87a80', '#9cbbff', '#d9d0c7',
- // '#87a997', '#d49ea2', '#5b4947',
- // '#7ba3a8'
- // ],
+ toolbox: {
+ show: true,
+ right: '20',
+ feature: {
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
legend: {
orient: 'vertical',
right: 0,
diff --git a/src/views/otherComment/highFreq/highFreqChart4Sup.vue b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
index 72ff2a5..7d01f82 100644
--- a/src/views/otherComment/highFreq/highFreqChart4Sup.vue
+++ b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
@@ -40,22 +40,34 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '高发问题统计'
- },
- backgroundColor: '#ccc',
+ // backgroundColor: '#ccc',
tooltip: {
show: true
},
+ grid: {
+ bottom: 120
+ },
+ legend: {
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
+ },
toolbox: {
show: true,
right: '20',
feature: {
dataView: {
- show: true
+ show: false
}
}
},
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: [{
name: '高发问题',
type: 'pie',
@@ -64,7 +76,7 @@
show: false
},
tooltip: {
- formatter: '{b}
上报数: {d}%'
+ formatter: '{b}
上报数: {c} ({d}%)'
},
}]
})
@@ -75,11 +87,12 @@
diff --git a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
index 1b460e4..67c0751 100644
--- a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
+++ b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
@@ -16,23 +16,6 @@
}
}
},
- computed: {
- columnData() {
- const tmp = []
- this.list.forEach(item => {
- if (item.depId !== '') {
- const obj = {}
- obj.name = item.departName
- obj.type = 'bar'
- obj.data = []
- obj.data.push(item.currentCheckNum)
- obj.data.push(item.checkedNum)
- tmp.push(obj)
- }
- })
- return tmp
- }
- },
watch: {
list() {
this.initChart()
@@ -45,15 +28,14 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '各单位处置情况'
- },
- backgroundColor: '#ccc',
grid: {
- left: '30px'
+ left: '60px',
+ top: '10px'
},
legend: {
- left: '60%'
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
},
tooltip: {
trigger: 'axis',
@@ -65,17 +47,42 @@
{
type: 'category',
data: this.list[0],
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
axisLabel: {
- rotate: 90,
- fontSize: 10
+ // rotate: 90,
+ fontSize: 10,
+ color: '#fff'
}
}
],
xAxis: [
{
- type: 'value'
+ type: 'value',
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ axisLabel: {
+ fontSize: 10,
+ color: '#fff'
+ },
+ splitLine: {
+ show: false
+ }
}
],
+ color: [
+ '#19d4ae', '#ffb980', '#5ab1ef',
+ '#fa6e86', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: this.list[1]
})
}
@@ -88,7 +95,7 @@
/*text-align: center;*/
}
.chart-body{
- height: 240px;
+ min-height: 240px;
width: 90%;
margin-right: auto;
margin-left: auto;
diff --git a/src/views/otherComment/highFreq/highFreqChart.vue b/src/views/otherComment/highFreq/highFreqChart.vue
index 3c62d66..5b146b1 100644
--- a/src/views/otherComment/highFreq/highFreqChart.vue
+++ b/src/views/otherComment/highFreq/highFreqChart.vue
@@ -43,22 +43,22 @@
tooltip: {
show: true
},
- // toolbox: {
- // show: true,
- // right: '20',
- // feature: {
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // color: [
- // '#19d4ae', '#5ab1ef', '#fa6e86',
- // '#ffb980', '#0067a6', '#c4b4e4',
- // '#d87a80', '#9cbbff', '#d9d0c7',
- // '#87a997', '#d49ea2', '#5b4947',
- // '#7ba3a8'
- // ],
+ toolbox: {
+ show: true,
+ right: '20',
+ feature: {
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
legend: {
orient: 'vertical',
right: 0,
diff --git a/src/views/otherComment/highFreq/highFreqChart4Sup.vue b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
index 72ff2a5..7d01f82 100644
--- a/src/views/otherComment/highFreq/highFreqChart4Sup.vue
+++ b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
@@ -40,22 +40,34 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '高发问题统计'
- },
- backgroundColor: '#ccc',
+ // backgroundColor: '#ccc',
tooltip: {
show: true
},
+ grid: {
+ bottom: 120
+ },
+ legend: {
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
+ },
toolbox: {
show: true,
right: '20',
feature: {
dataView: {
- show: true
+ show: false
}
}
},
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: [{
name: '高发问题',
type: 'pie',
@@ -64,7 +76,7 @@
show: false
},
tooltip: {
- formatter: '{b}
上报数: {d}%'
+ formatter: '{b}
上报数: {c} ({d}%)'
},
}]
})
@@ -75,11 +87,12 @@
diff --git a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
index 1b460e4..67c0751 100644
--- a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
+++ b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
@@ -16,23 +16,6 @@
}
}
},
- computed: {
- columnData() {
- const tmp = []
- this.list.forEach(item => {
- if (item.depId !== '') {
- const obj = {}
- obj.name = item.departName
- obj.type = 'bar'
- obj.data = []
- obj.data.push(item.currentCheckNum)
- obj.data.push(item.checkedNum)
- tmp.push(obj)
- }
- })
- return tmp
- }
- },
watch: {
list() {
this.initChart()
@@ -45,15 +28,14 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '各单位处置情况'
- },
- backgroundColor: '#ccc',
grid: {
- left: '30px'
+ left: '60px',
+ top: '10px'
},
legend: {
- left: '60%'
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
},
tooltip: {
trigger: 'axis',
@@ -65,17 +47,42 @@
{
type: 'category',
data: this.list[0],
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
axisLabel: {
- rotate: 90,
- fontSize: 10
+ // rotate: 90,
+ fontSize: 10,
+ color: '#fff'
}
}
],
xAxis: [
{
- type: 'value'
+ type: 'value',
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ axisLabel: {
+ fontSize: 10,
+ color: '#fff'
+ },
+ splitLine: {
+ show: false
+ }
}
],
+ color: [
+ '#19d4ae', '#ffb980', '#5ab1ef',
+ '#fa6e86', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: this.list[1]
})
}
@@ -88,7 +95,7 @@
/*text-align: center;*/
}
.chart-body{
- height: 240px;
+ min-height: 240px;
width: 90%;
margin-right: auto;
margin-left: auto;
diff --git a/src/views/otherComment/highFreq/highFreqChart.vue b/src/views/otherComment/highFreq/highFreqChart.vue
index 3c62d66..5b146b1 100644
--- a/src/views/otherComment/highFreq/highFreqChart.vue
+++ b/src/views/otherComment/highFreq/highFreqChart.vue
@@ -43,22 +43,22 @@
tooltip: {
show: true
},
- // toolbox: {
- // show: true,
- // right: '20',
- // feature: {
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // color: [
- // '#19d4ae', '#5ab1ef', '#fa6e86',
- // '#ffb980', '#0067a6', '#c4b4e4',
- // '#d87a80', '#9cbbff', '#d9d0c7',
- // '#87a997', '#d49ea2', '#5b4947',
- // '#7ba3a8'
- // ],
+ toolbox: {
+ show: true,
+ right: '20',
+ feature: {
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
legend: {
orient: 'vertical',
right: 0,
diff --git a/src/views/otherComment/highFreq/highFreqChart4Sup.vue b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
index 72ff2a5..7d01f82 100644
--- a/src/views/otherComment/highFreq/highFreqChart4Sup.vue
+++ b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
@@ -40,22 +40,34 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '高发问题统计'
- },
- backgroundColor: '#ccc',
+ // backgroundColor: '#ccc',
tooltip: {
show: true
},
+ grid: {
+ bottom: 120
+ },
+ legend: {
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
+ },
toolbox: {
show: true,
right: '20',
feature: {
dataView: {
- show: true
+ show: false
}
}
},
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: [{
name: '高发问题',
type: 'pie',
@@ -64,7 +76,7 @@
show: false
},
tooltip: {
- formatter: '{b}
上报数: {d}%'
+ formatter: '{b}
上报数: {c} ({d}%)'
},
}]
})
@@ -75,11 +87,12 @@
diff --git a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
index 1b460e4..67c0751 100644
--- a/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
+++ b/src/views/otherComment/deptHandle/deptHandleChart4Sup.vue
@@ -16,23 +16,6 @@
}
}
},
- computed: {
- columnData() {
- const tmp = []
- this.list.forEach(item => {
- if (item.depId !== '') {
- const obj = {}
- obj.name = item.departName
- obj.type = 'bar'
- obj.data = []
- obj.data.push(item.currentCheckNum)
- obj.data.push(item.checkedNum)
- tmp.push(obj)
- }
- })
- return tmp
- }
- },
watch: {
list() {
this.initChart()
@@ -45,15 +28,14 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '各单位处置情况'
- },
- backgroundColor: '#ccc',
grid: {
- left: '30px'
+ left: '60px',
+ top: '10px'
},
legend: {
- left: '60%'
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
},
tooltip: {
trigger: 'axis',
@@ -65,17 +47,42 @@
{
type: 'category',
data: this.list[0],
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
axisLabel: {
- rotate: 90,
- fontSize: 10
+ // rotate: 90,
+ fontSize: 10,
+ color: '#fff'
}
}
],
xAxis: [
{
- type: 'value'
+ type: 'value',
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ axisLabel: {
+ fontSize: 10,
+ color: '#fff'
+ },
+ splitLine: {
+ show: false
+ }
}
],
+ color: [
+ '#19d4ae', '#ffb980', '#5ab1ef',
+ '#fa6e86', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: this.list[1]
})
}
@@ -88,7 +95,7 @@
/*text-align: center;*/
}
.chart-body{
- height: 240px;
+ min-height: 240px;
width: 90%;
margin-right: auto;
margin-left: auto;
diff --git a/src/views/otherComment/highFreq/highFreqChart.vue b/src/views/otherComment/highFreq/highFreqChart.vue
index 3c62d66..5b146b1 100644
--- a/src/views/otherComment/highFreq/highFreqChart.vue
+++ b/src/views/otherComment/highFreq/highFreqChart.vue
@@ -43,22 +43,22 @@
tooltip: {
show: true
},
- // toolbox: {
- // show: true,
- // right: '20',
- // feature: {
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // color: [
- // '#19d4ae', '#5ab1ef', '#fa6e86',
- // '#ffb980', '#0067a6', '#c4b4e4',
- // '#d87a80', '#9cbbff', '#d9d0c7',
- // '#87a997', '#d49ea2', '#5b4947',
- // '#7ba3a8'
- // ],
+ toolbox: {
+ show: true,
+ right: '20',
+ feature: {
+ saveAsImage: {
+ show: true
+ }
+ }
+ },
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
legend: {
orient: 'vertical',
right: 0,
diff --git a/src/views/otherComment/highFreq/highFreqChart4Sup.vue b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
index 72ff2a5..7d01f82 100644
--- a/src/views/otherComment/highFreq/highFreqChart4Sup.vue
+++ b/src/views/otherComment/highFreq/highFreqChart4Sup.vue
@@ -40,22 +40,34 @@
initChart() {
this.chart = echarts.init(this.$refs.chart)
this.chart.setOption({
- title: {
- text: '高发问题统计'
- },
- backgroundColor: '#ccc',
+ // backgroundColor: '#ccc',
tooltip: {
show: true
},
+ grid: {
+ bottom: 120
+ },
+ legend: {
+ type: 'scroll',
+ bottom: 0,
+ backgroundColor: '#ccc'
+ },
toolbox: {
show: true,
right: '20',
feature: {
dataView: {
- show: true
+ show: false
}
}
},
+ color: [
+ '#19d4ae', '#5ab1ef', '#fa6e86',
+ '#ffb980', '#0067a6', '#c4b4e4',
+ '#d87a80', '#9cbbff', '#d9d0c7',
+ '#87a997', '#d49ea2', '#5b4947',
+ '#7ba3a8'
+ ],
series: [{
name: '高发问题',
type: 'pie',
@@ -64,7 +76,7 @@
show: false
},
tooltip: {
- formatter: '{b}
上报数: {d}%'
+ formatter: '{b}
上报数: {c} ({d}%)'
},
}]
})
@@ -75,11 +87,12 @@