|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-11-22 17:00:48
|
|
* @Date: 2021-11-22 17:00:48
|
|
- * @LastEditTime: 2022-01-05 15:39:43
|
|
|
|
|
|
+ * @LastEditTime: 2022-01-06 10:16:20
|
|
* @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: \hyyfScreen\src\views\Production\board\IndicatorOneChart.vue
|
|
* @FilePath: \hyyfScreen\src\views\Production\board\IndicatorOneChart.vue
|
|
@@ -23,6 +23,10 @@ export default {
|
|
type: Object,
|
|
type: Object,
|
|
required: true,
|
|
required: true,
|
|
},
|
|
},
|
|
|
|
+ percent: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ required: true,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -31,7 +35,6 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
- console.log(123);
|
|
|
|
let color1 = "rgba(0, 255, 0, 0.7)";
|
|
let color1 = "rgba(0, 255, 0, 0.7)";
|
|
let color2 = "rgba(64, 218, 26, 0.5)";
|
|
let color2 = "rgba(64, 218, 26, 0.5)";
|
|
let color3 = "rgba(88, 165, 69, 0.3)";
|
|
let color3 = "rgba(88, 165, 69, 0.3)";
|
|
@@ -85,6 +88,11 @@ export default {
|
|
width: 1,
|
|
width: 1,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ axisLabel: {
|
|
|
|
+ show: true,
|
|
|
|
+ interval: "auto",
|
|
|
|
+ formatter: "{value}" + (this.percent ? "%" : ""),
|
|
|
|
+ },
|
|
},
|
|
},
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|