update bug修复
This commit is contained in:
@@ -268,7 +268,7 @@ const initProjectStorageSpaceStatisticsFun = async () => {
|
||||
if (res && res.code === 200) {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
xData.push(res.data[i]?.nodeName);
|
||||
datas.push(res.data[i]?.totalSize);
|
||||
datas.push(Number(res.data[i]?.totalSize));
|
||||
beforeData.push(
|
||||
res.data[i]?.BEFORE && Number(res.data[i]?.BEFORE) !== 0 ? res.data[i]?.BEFORE : 0
|
||||
);
|
||||
@@ -358,6 +358,7 @@ const initProjectStorageSpaceStatisticsFun = async () => {
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
name: '单位:GB',
|
||||
minInterval: 0.01,
|
||||
},
|
||||
dataZoom: xData.length > 3 ? [] : null,
|
||||
series: seriesData,
|
||||
@@ -388,7 +389,7 @@ const initStatisticsOfSubjectStorageSpaceFun = async () => {
|
||||
if (res && res.code === 200) {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
xData.push(res.data[i]?.nodeName);
|
||||
datas.push(res.data[i]?.totalSize);
|
||||
datas.push(Number(res.data[i]?.totalSize));
|
||||
beforeData.push(
|
||||
res.data[i]?.BEFORE && Number(res.data[i]?.BEFORE) !== 0 ? res.data[i]?.BEFORE : 0
|
||||
);
|
||||
@@ -480,6 +481,7 @@ const initStatisticsOfSubjectStorageSpaceFun = async () => {
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
name: '单位:GB',
|
||||
minInterval: 0.01,
|
||||
},
|
||||
dataZoom: xData.length > 4 ? [] : null,
|
||||
series: seriesData,
|
||||
@@ -509,7 +511,7 @@ const initUserStorageSpaceStatisticsFun = async () => {
|
||||
if (res && res.code === 200 && userStorageSpaceStatisticsFormData.userIds.length) {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
xData.push(res.data[i].userName);
|
||||
datas.push(res.data[i].totalFileSize);
|
||||
datas.push(Number(res.data[i].totalFileSize));
|
||||
beforeData.push(
|
||||
res.data[i]?.BEFORE && Number(res.data[i]?.BEFORE) !== 0 ? res.data[i]?.BEFORE : 0
|
||||
);
|
||||
@@ -603,6 +605,7 @@ const initUserStorageSpaceStatisticsFun = async () => {
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
name: '单位:GB',
|
||||
minInterval: 0.01,
|
||||
},
|
||||
dataZoom: xData.length > 2 ? [] : null,
|
||||
series: seriesData,
|
||||
|
||||
Reference in New Issue
Block a user