Commit 686885e7 authored by 王晓倩's avatar 王晓倩

Merge remote-tracking branch 'origin/master'

parents 00f5c83e 9fd06c36
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:25:12 * @LastEditTime: 2022-04-28 13:34:42
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -79,6 +79,8 @@ export default { ...@@ -79,6 +79,8 @@ export default {
this.options = { this.options = {
color: colors, color: colors,
tooltip: { tooltip: {
// show:false,
formatter: "{a}: {c}(件)",
// trigger: "axis", // trigger: "axis",
// axisPointer: { // axisPointer: {
// type: "cross", // type: "cross",
...@@ -144,7 +146,7 @@ export default { ...@@ -144,7 +146,7 @@ export default {
], ],
series: [ series: [
{ {
name: "Evaporation", name: "隐患数量",
type: "bar", type: "bar",
data: this.charData[0], data: this.charData[0],
yAxisIndex: 0, yAxisIndex: 0,
...@@ -158,7 +160,7 @@ export default { ...@@ -158,7 +160,7 @@ export default {
barGap: "0%", barGap: "0%",
}, },
{ {
name: "Temperature", name: "已整改",
type: "bar", type: "bar",
data: this.charData[1], data: this.charData[1],
yAxisIndex: 0, yAxisIndex: 0,
...@@ -186,7 +188,6 @@ export default { ...@@ -186,7 +188,6 @@ export default {
font-size: 16px; font-size: 16px;
margin: 22px 0 11px 19px; margin: 22px 0 11px 19px;
font-weight: 600; font-weight: 600;
} }
.btn-wrapper { .btn-wrapper {
display: flex; display: flex;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:24:56 * @LastEditTime: 2022-04-28 13:35:16
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -74,6 +74,8 @@ export default { ...@@ -74,6 +74,8 @@ export default {
// axisPointer: { // axisPointer: {
// type: "cross", // type: "cross",
// }, // },
formatter: "{b}: {c}(个)",
}, },
grid: { grid: {
top: "30", top: "30",
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:25:10 * @LastEditTime: 2022-04-28 13:41:12
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -102,6 +102,14 @@ export default { ...@@ -102,6 +102,14 @@ export default {
rich[`dataIndex${index}`] = item; rich[`dataIndex${index}`] = item;
}); });
this.options = { this.options = {
tooltip: {
// show:false,
formatter: "{b}: {c}(件)",
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
series: { series: {
type: "pie", type: "pie",
radius: ["68%", "80%"], radius: ["68%", "80%"],
...@@ -113,6 +121,7 @@ export default { ...@@ -113,6 +121,7 @@ export default {
borderRadius: 10, borderRadius: 10,
borderColor: "#fff", borderColor: "#fff",
}, },
label: { label: {
alignTo: "edge", alignTo: "edge",
// formatter: "{name|{b}}\n{num|{c} 个}", // formatter: "{name|{b}}\n{num|{c} 个}",
...@@ -145,7 +154,6 @@ export default { ...@@ -145,7 +154,6 @@ export default {
font-size: 16px; font-size: 16px;
margin: 22px 0 11px 19px; margin: 22px 0 11px 19px;
font-weight: 600; font-weight: 600;
} }
.btn-wrapper { .btn-wrapper {
display: flex; display: flex;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:25:21 * @LastEditTime: 2022-04-28 13:40:47
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -52,13 +52,13 @@ export default { ...@@ -52,13 +52,13 @@ export default {
], ],
}; };
}, },
mounted() { mounted() {
this.bottomOptions(); this.bottomOptions();
}, },
methods: { methods: {
active(index){ active(index) {
return "active"+index return "active" + index;
}, },
btnClick(index) { btnClick(index) {
const ind = this.activeArr.indexOf(index); const ind = this.activeArr.indexOf(index);
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
this.options = { this.options = {
color: colors, color: colors,
tooltip: { tooltip: {
show:false, show: false,
// trigger: "axis", // trigger: "axis",
// axisPointer: { // axisPointer: {
// type: "cross", // type: "cross",
...@@ -94,6 +94,14 @@ export default { ...@@ -94,6 +94,14 @@ export default {
containLabel: true, containLabel: true,
}, },
toolbox: {}, toolbox: {},
tooltip: {
// show:false,
formatter: "{a}: {c}(起)",
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
legend: { legend: {
// data: ['Evaporation', 'Temperature'], // data: ['Evaporation', 'Temperature'],
// left: 'right' // left: 'right'
...@@ -242,6 +250,14 @@ export default { ...@@ -242,6 +250,14 @@ export default {
}, },
barWidth: 6, barWidth: 6,
barGap: "0%", barGap: "0%",
tooltip: {
// show:false,
formatter: "{a}: {c}(个)",
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
}, },
], ],
}; };
...@@ -275,15 +291,15 @@ export default { ...@@ -275,15 +291,15 @@ export default {
// background-color: red; // background-color: red;
// } // }
cursor: pointer; cursor: pointer;
&.active0:hover{ &.active0:hover {
background:#4e9de7 !important; background: #4e9de7 !important;
border-color:#4e9de7; border-color: #4e9de7;
color:#fff color: #fff;
} }
&.active1:hover{ &.active1:hover {
background:#f0cb6d !important; background: #f0cb6d !important;
border-color:#f0cb6d; border-color: #f0cb6d;
color:#fff color: #fff;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment