调整基站接口

This commit is contained in:
lai
2024-01-31 16:17:03 +08:00
parent 73e6eb5ab5
commit 641e6ecde4
5 changed files with 28 additions and 67 deletions

View File

@@ -98,7 +98,7 @@ function initPicture() {
if (resArr[0].status === 'fulfilled') {
testArr = completeData(resArr[0].value.data, wantArr);
testArr.map((item: any) => {
item.name = t('views.index.' + item.name) + ':' + item.value;
item.name = t('views.index.' + item.name) + ': ' + item.value;
pieArr.push(item);
});
}
@@ -178,20 +178,16 @@ function initPicture() {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)',
// color: function (params: any) {
// console.log(params);
// // 设置每个数据项的颜色
// var colorList = {
// '#FFAE57',
// '#FF7853',
// '#EA5151',
// '#CC3F57',
// '#9A2555',
// }
// ;
// return colorList[params.dataIndex];
// },
color: function (colors: any) {
var colorList = [
'#FFAE57',
'#FF7853',
'#EA5151',
'#CC3F57',
'#CC0000',
];
return colorList[colors.dataIndex];
},
},
},
//柱状

View File

@@ -112,7 +112,7 @@ function initPicture() {
value: [upValue, downValue],
};
var color = ['rgba(230, 234, 101', 'rgba(92, 123, 217'];
var color = ['rgba(7,217,162', 'rgba(92, 123, 217'];
var lineY: any = [];
for (var i = 0; i < charts.names.length; i++) {
@@ -133,7 +133,7 @@ function initPicture() {
},
{
offset: 1,
color: color[x] + ', 0)',
color: color[x] + ', 0.5)',
},
]),
shadowColor: 'rgba(0, 0, 0, 0.1)',

View File

@@ -104,7 +104,9 @@ onMounted(() => {
pageSize: '20',
}),
listBase5G({
neType: ['AMF', '001'],
//
neType: 'AMF',
neId: '001',
id: '',
pageNum: 1,
/**每页条数 */