大屏问题修复

This commit is contained in:
binbin_pan 2024-05-20 15:39:56 +08:00
parent 22601a7274
commit c77594bf9b
2 changed files with 25 additions and 5 deletions

View File

@ -32,7 +32,7 @@ const options:any = {
text: '施工单位自有设备详情',
margin: 50,
style: {
color: "#0099FF",
color: "#66E0FF",
},
align: 'left',
x: 0,
@ -48,13 +48,27 @@ const options:any = {
}
}
},
legend: {
itemStyle: {
color: '#f0f0f0',
},
itemHoverStyle: {
color: '#66E0FF',
},
itemHiddenStyle: {
color: '#999',
},
},
series: [{
name: '设备数量',
data:props.list
data:props.list
}],
accessibility:{
enabled: false
}
},
credits: {
enabled: false
},
}

View File

@ -376,7 +376,7 @@ const barComPropsHorizontal = reactive({
return fromatStr
}
})
const pie3DList = reactive({
const pie3DList: any = reactive({
list: [
//
// ['Chrome', 1],
@ -442,7 +442,13 @@ const iniTapiMaDevInfoCompanyList = async () => {
]
resultList.push(item)
})
pie3DList.list = resultList
if (resultList.length > 0) {
pie3DList.list = resultList
} else {
pie3DList.list = [
['暂无数据', 0]
]
}
// console.log("pie3DList", pie3DList.list)
} catch (error) {
console.log(error)