解决团队页统计图暂无数据鬼畜的问题

main
wuyize 2022-07-14 23:38:16 +08:00
parent 7003e8761c
commit adfa2a0af5
2 changed files with 6 additions and 4 deletions

View File

@ -58,11 +58,11 @@ export default {
// //
let isAllZero = this.dataList.every(item => { let isAllZero = this.dataList.every(item => {
// console.log(item,"item") // console.log(item,"item")
return item.value == 0 return item.value === 0
}) })
console.log(isAllZero, "isAllZero") console.log(isAllZero, "isAllZero")
let option = null let option = null
if (isAllZero == true) { if (isAllZero === true) {
// for (let i = 0; i < this.dataList.length; i++) { // for (let i = 0; i < this.dataList.length; i++) {
// this.dataList[i].name = this.dataList[i].name + "" + this.dataList[i].value + "" // this.dataList[i].name = this.dataList[i].name + "" + this.dataList[i].value + ""
// } // }
@ -96,6 +96,7 @@ export default {
formatter: '项目暂无进度' formatter: '项目暂无进度'
}, },
emphasis: { emphasis: {
disabled: true,
label: { label: {
show: false, show: false,
fontSize: '40', fontSize: '40',

View File

@ -58,11 +58,11 @@ export default {
// //
let isAllZero = this.dataList.every(item => { let isAllZero = this.dataList.every(item => {
// console.log(item,"item") // console.log(item,"item")
return item.value == 0 return item.value === 0
}) })
console.log(isAllZero, "isAllZero") console.log(isAllZero, "isAllZero")
let option = null let option = null
if (isAllZero == true) { if (isAllZero === true) {
// for (let i = 0; i < this.dataList.length; i++) { // for (let i = 0; i < this.dataList.length; i++) {
// this.dataList[i].name = this.dataList[i].name + " " + this.dataList[i].value + "" // this.dataList[i].name = this.dataList[i].name + " " + this.dataList[i].value + ""
// } // }
@ -96,6 +96,7 @@ export default {
formatter: '项目暂无进度' formatter: '项目暂无进度'
}, },
emphasis: { emphasis: {
disabled: true,
label: { label: {
show: false, show: false,
fontSize: '40', fontSize: '40',