大屏问题修复

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

View File

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