diff --git a/src/components/echartsCom/Pie3dCom.vue b/src/components/echartsCom/Pie3dCom.vue index 9b949e3..55c1613 100644 --- a/src/components/echartsCom/Pie3dCom.vue +++ b/src/components/echartsCom/Pie3dCom.vue @@ -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 + }, } diff --git a/src/views/screen/sharePlatform.vue b/src/views/screen/sharePlatform.vue index 6cc7be1..60afab8 100644 --- a/src/views/screen/sharePlatform.vue +++ b/src/views/screen/sharePlatform.vue @@ -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)