Merge branch 'abp' of https://gitee.com/ccnetcore/Yi into abp
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_APP_BASEAPI="/api-dev"
|
VITE_APP_BASEAPI="/api-dev"
|
||||||
#VITE_APP_URL="http://123.207.63.87:19001/api/app"
|
VITE_APP_URL="http://123.207.63.87:19001/api/app"
|
||||||
VITE_APP_URL="http://localhost:19001/api/app"
|
# VITE_APP_URL="http://localhost:19001/api/app"
|
||||||
VITE_APP_ENV_NAME = "dev"
|
VITE_APP_ENV_NAME = "dev"
|
||||||
@@ -140,11 +140,16 @@ onMounted(async () => {
|
|||||||
weekList.value = weekData;
|
weekList.value = weekData;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const weekXAxis = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"];
|
||||||
// 访问统计
|
// 访问统计
|
||||||
const statisOptions = computed(() => {
|
const statisOptions = computed(() => {
|
||||||
return {
|
return {
|
||||||
xAxis: {
|
xAxis: {
|
||||||
data: weekList.value.map((item) => item.creationTime),
|
data: weekList.value.map((item, index) => {
|
||||||
|
return weekXAxis.filter((v, vIndex) => {
|
||||||
|
return vIndex === index;
|
||||||
|
})[0];
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
series: {
|
series: {
|
||||||
data: weekList.value.map((item) => item.number),
|
data: weekList.value.map((item) => item.number),
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export const statisticsEcharts = {
|
|||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
show: false,
|
show: true,
|
||||||
type: "category",
|
type: "category",
|
||||||
data: [],
|
data: [],
|
||||||
axisLine: {
|
axisLine: {
|
||||||
|
|||||||
Reference in New Issue
Block a user