update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ref, unref } from 'vue';
|
||||
import * as echarts from 'echarts';
|
||||
import { emptyChart } from '/@/utils/utils.ts';
|
||||
|
||||
//服务详情数据弹窗参数
|
||||
export enum ServerDetailType {
|
||||
@@ -205,8 +206,24 @@ const radarChartsTheme = {
|
||||
* @param countList:数据项
|
||||
*/
|
||||
export const radarCharts = ({ indicator, countList, theme }) => {
|
||||
if (!countList?.length) {
|
||||
return emptyChart();
|
||||
}
|
||||
const { radarName, splitLine, axisName, areaStyle, lineStyle, itemStyle } = radarChartsTheme[theme] || radarChartsTheme.dark;
|
||||
return {
|
||||
noDataLoadingOption: {
|
||||
text: '暂无数据',
|
||||
effect: 'whirling',
|
||||
effectOption: {
|
||||
period: 3,
|
||||
radius: 10,
|
||||
frame: 3,
|
||||
},
|
||||
textStyle: {
|
||||
color: '#333',
|
||||
fontSize: 16,
|
||||
},
|
||||
},
|
||||
grid: {
|
||||
top: '1%',
|
||||
left: '5%',
|
||||
|
||||
@@ -120,6 +120,7 @@ export const mapIcon3 = new URL('/@/assets/img/mapIcon3.png', import.meta.url).h
|
||||
export const mapIcon4 = new URL('/@/assets/img/mapIcon4.png', import.meta.url).href;
|
||||
export const mapIcon5 = new URL('/@/assets/img/mapIcon5.png', import.meta.url).href;
|
||||
export const mapIcon6 = new URL('/@/assets/img/mapIcon6.png', import.meta.url).href;
|
||||
export const mapIcon7 = new URL('/@/assets/img/mapIcon7.png', import.meta.url).href;
|
||||
|
||||
export const legend1 = new URL('/@/assets/img/legend1.png', import.meta.url).href;
|
||||
export const legend2 = new URL('/@/assets/img/legend2.png', import.meta.url).href;
|
||||
|
||||
Reference in New Issue
Block a user