修改bug

This commit is contained in:
‘937886381’
2024-06-28 14:41:50 +08:00
parent 83b9867c2a
commit 2ab541d4c1
7 changed files with 45 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-06-20 16:13:36
* @LastEditTime: 2024-06-27 09:51:43
* @LastEditTime: 2024-06-28 14:34:13
* @LastEditors: zhp
* @Description:
-->
@@ -36,7 +36,7 @@ export default {
color: [],
// color: ["#8EF0AB", "#63BDFF", "#288AFF"],
grid: {
left: 20,
left: '12%',
right: 0,
bottom: 31,
top: 30,
@@ -51,7 +51,7 @@ export default {
},
},
formatter: function (params) {
console.log('params', params.data)
// console.log('params', params.data)
var res = `<span style='color:rgba(0,0,0,0.8)'>${params[0].axisValueLabel}</span>`;
for (var i = 0, l = params.length; i < l; i++) {
res +=
@@ -172,10 +172,14 @@ export default {
},
},
// gridLeft(val) {
// console.log(val)
// },
gridLeft(val) {
if (val === false) {
this.option.grid.left = '12%'
} else {
this.option.grid.left = -80
}
this.canvasReset()
},
type() {
this.canvasReset();
},
@@ -201,7 +205,7 @@ export default {
getMes() {
console.log(this.gridLeft)
if (this.gridLeft === false) {
this.option.grid.left = 20
this.option.grid.left = '12%'
} else {
this.option.grid.left = -80
}

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-06-20 16:13:52
* @LastEditTime: 2024-06-28 10:57:16
* @LastEditTime: 2024-06-28 13:45:53
* @LastEditors: zhp
* @Description:
-->
@@ -51,7 +51,7 @@ export default {
},
},
formatter: function (params) {
console.log('params', params);
// console.log('params', params);
var res = `<span style='color:rgba(0,0,0,0.8)'>${params[0].axisValueLabel}</span>`;
for (var i = 0, l = params.length; i < l; i++) {
res +=

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-06-21 09:05:14
* @LastEditTime: 2024-06-28 10:59:06
* @LastEditTime: 2024-06-28 13:46:00
* @LastEditors: zhp
* @Description:
-->
@@ -55,7 +55,7 @@ export default {
let arr = []
var res = ``;
// for (var i = 0, l = params.length; i < l; i++) {
console.log()
// console.log()
if (params[0].axisValue === 'FTO投入' || params[0].axisValue === '芯片产量' || params[0].axisValue === '标准组件产量') {
res +=
`<span style='display:inline-block;margin-right:4px;width:10px;height:10px;background-color:${params[0].color}'></span>` +