'fix'
This commit is contained in:
parent
7289f01132
commit
7694d65ef8
|
|
@ -107,7 +107,7 @@ watch(
|
||||||
// usageOption.series[2].lineStyle.color = 'rgba(139,175,227,1)';
|
// usageOption.series[2].lineStyle.color = 'rgba(139,175,227,1)';
|
||||||
}
|
}
|
||||||
theme = newVal;
|
theme = newVal;
|
||||||
console.log(datasetOption);
|
// console.log(datasetOption);
|
||||||
// usageChart.setOption(usageOption);
|
// usageChart.setOption(usageOption);
|
||||||
|
|
||||||
myChart.setOption(datasetOption);
|
myChart.setOption(datasetOption);
|
||||||
|
|
@ -140,7 +140,7 @@ let algorithmService = ref({});
|
||||||
let allCallService = ref({});
|
let allCallService = ref({});
|
||||||
let networkService = ref({});
|
let networkService = ref({});
|
||||||
const changeServe = (value) => {
|
const changeServe = (value) => {
|
||||||
console.log('🚀 ~ changeServe ~ value:', value);
|
// console.log('🚀 ~ changeServe ~ value:', value);
|
||||||
if (value === 'net') {
|
if (value === 'net') {
|
||||||
setBar(networkService);
|
setBar(networkService);
|
||||||
} else if (value === 'alg') {
|
} else if (value === 'alg') {
|
||||||
|
|
@ -150,8 +150,8 @@ const changeServe = (value) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let [startTime, endTime] = LAST_7_DAYS;
|
let [startTime, endTime] = LAST_7_DAYS;
|
||||||
console.log('🚀 ~ endTime:', endTime + ' 23:59:59');
|
// console.log('🚀 ~ endTime:', endTime + ' 23:59:59');
|
||||||
console.log('🚀 ~ startTime:', startTime + ' 00:00:00');
|
// console.log('🚀 ~ startTime:', startTime + ' 00:00:00');
|
||||||
// startTime = startTime +
|
// startTime = startTime +
|
||||||
startTime = startTime + ' 00:00:00';
|
startTime = startTime + ' 00:00:00';
|
||||||
endTime = endTime + ' 23:59:59';
|
endTime = endTime + ' 23:59:59';
|
||||||
|
|
@ -193,11 +193,9 @@ const setBar = (serve) => {
|
||||||
let yData = [];
|
let yData = [];
|
||||||
Object.keys(serve.value).forEach((item, index) => {
|
Object.keys(serve.value).forEach((item, index) => {
|
||||||
if (index < 7) {
|
if (index < 7) {
|
||||||
console.log(item, serve.value[item]);
|
|
||||||
Xdata.push(item);
|
Xdata.push(item);
|
||||||
yData.push(serve.value[item]);
|
yData.push(serve.value[item]);
|
||||||
datasetOption.xAxis.data = Xdata;
|
datasetOption.xAxis.data = Xdata;
|
||||||
console.log('🚀 ~ Object.keys ~ Xdata:', Xdata);
|
|
||||||
datasetOption.series[0].data = yData;
|
datasetOption.series[0].data = yData;
|
||||||
myChart.setOption(datasetOption);
|
myChart.setOption(datasetOption);
|
||||||
}
|
}
|
||||||
|
|
@ -266,7 +264,7 @@ const nameMap = {
|
||||||
OTHER: 'OTHER',
|
OTHER: 'OTHER',
|
||||||
};
|
};
|
||||||
const handleEchartData = (res) => {
|
const handleEchartData = (res) => {
|
||||||
console.log('🚀 ~ handleEchartData ~ res:', res);
|
// console.log('🚀 ~ handleEchartData ~ res:', res);
|
||||||
historyPeakAndRealTime.value = res.currentCount ? res.currentCount : {};
|
historyPeakAndRealTime.value = res.currentCount ? res.currentCount : {};
|
||||||
// if (!historyPeakAndRealTime.value) {
|
// if (!historyPeakAndRealTime.value) {
|
||||||
// hasUsageData.value = false;
|
// hasUsageData.value = false;
|
||||||
|
|
@ -308,7 +306,7 @@ const handleEchartData = (res) => {
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
usageChart.on('legendselectchanged', (params) => {
|
usageChart.on('legendselectchanged', (params) => {
|
||||||
console.log('图例变化', params);
|
// console.log('图例变化', params);
|
||||||
let arr = [];
|
let arr = [];
|
||||||
for (let [key, value] of Object.entries(params.selected)) {
|
for (let [key, value] of Object.entries(params.selected)) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
@ -344,7 +342,7 @@ const datasetOption = {
|
||||||
formatter(str) {
|
formatter(str) {
|
||||||
const contentLength = str.length;
|
const contentLength = str.length;
|
||||||
let result;
|
let result;
|
||||||
result = `${str.slice(0, contentLength / 2)}\n${str.slice(contentLength / 2)}`
|
result = `${str.slice(0, contentLength / 2)}\n${str.slice(contentLength / 2)}`;
|
||||||
// if (contentLength === 4) {
|
// if (contentLength === 4) {
|
||||||
// result = `${str.slice(0, 2)}\n${str.slice(2)}`;
|
// result = `${str.slice(0, 2)}\n${str.slice(2)}`;
|
||||||
// } else if (contentLength === 6) {
|
// } else if (contentLength === 6) {
|
||||||
|
|
@ -565,7 +563,6 @@ const renderEventChart = () => {
|
||||||
usageChart.setOption(usageOption);
|
usageChart.setOption(usageOption);
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
||||||
if (designStore.appThemeDetail.cssName == 'theme-blue') {
|
if (designStore.appThemeDetail.cssName == 'theme-blue') {
|
||||||
datasetOption.color = ['rgba(0,98,217,0.3)'];
|
datasetOption.color = ['rgba(0,98,217,0.3)'];
|
||||||
datasetOption.series[0].itemStyle.borderColor = 'rgba(0,98,217,1)';
|
datasetOption.series[0].itemStyle.borderColor = 'rgba(0,98,217,1)';
|
||||||
|
|
@ -605,7 +602,7 @@ onMounted(() => {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res2) => {
|
.then((res2) => {
|
||||||
console.log('🚀 ~ res:', res2);
|
// console.log('🚀 ~ res:', res2);
|
||||||
serveCall.value = res2;
|
serveCall.value = res2;
|
||||||
allCallService.value = res2.allCallService;
|
allCallService.value = res2.allCallService;
|
||||||
algorithmService.value = res2.algorithmService;
|
algorithmService.value = res2.algorithmService;
|
||||||
|
|
@ -621,7 +618,7 @@ onMounted(() => {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res3) => {
|
.then((res3) => {
|
||||||
console.log('🚀 ~ res3:', res3);
|
// console.log('🚀 ~ res3:', res3);
|
||||||
let data = res3.nums || [];
|
let data = res3.nums || [];
|
||||||
let arr = [];
|
let arr = [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
|
|
@ -663,7 +660,7 @@ onMounted(() => {
|
||||||
arr.push(obj);
|
arr.push(obj);
|
||||||
}
|
}
|
||||||
socialData.value = arr;
|
socialData.value = arr;
|
||||||
console.log('🚀 ~ data.forEach ~ socialData:', socialData);
|
// console.log('🚀 ~ data.forEach ~ socialData:', socialData);
|
||||||
// networkStatData[item.name] = item.count;
|
// networkStatData[item.name] = item.count;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
||||||
target: 'http://172.16.20.1:8091', // 线上测试
|
target: 'http://172.16.20.1:8091', // 线上测试
|
||||||
// target: 'http://localhost:12344', // wky测试
|
// target: 'http://localhost:12344', // wky测试
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/y4_sys/, ''),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user