diff --git a/src/views/blog/AmountChartView.vue b/src/views/blog/AmountChartView.vue
index da7a00e..287cad0 100644
--- a/src/views/blog/AmountChartView.vue
+++ b/src/views/blog/AmountChartView.vue
@@ -1,31 +1,39 @@
-
-
- 近一周
- 近一月
- 近一年
-
-
-
-
-
- 近一周
- 近一月
- 近一年
-
-
-
-
-
+
+
+
+ 近一周
+ 近一月
+ 近一年
+
+
+
+
+
+
+
+ 近一周
+ 近一月
+ 近一年
+
+
+
+
+
+
+
+
+
+
@@ -356,10 +364,10 @@ const updateLineChart = () => {
const updateLinesChart = () => {
if (lineschart.value) {
createEcharts(lineschart, linesChartOptions[selectedLinesPeriod.value]);
- console.log(`output->`,selectedLinesPeriod.value)
- if(selectedLinesPeriod.value==="thisyear"){
+ console.log(`output->`, selectedLinesPeriod.value)
+ if (selectedLinesPeriod.value === "thisyear") {
fetchLinesAndUpdateChart(0, linesChartOptions.thisyear)
- }else{
+ } else {
fetchLinesAndUpdateChart(1, linesChartOptions.thisyear)
}
}
@@ -367,7 +375,7 @@ const updateLinesChart = () => {
const updatePieChart = () => {
if (piechart.value) {
createEcharts(piechart, pieChartOptions[selectedPiePeriod.value]);
- if(selectedPiePeriod.value){
+ if (selectedPiePeriod.value) {
fetchPieAndUpdateChart(pieChartOptions[selectedPiePeriod.value], selectedPiePeriod.value);
}
}
@@ -388,7 +396,7 @@ const updatePieChartData = (pieData: any, chartOptions: any) => {
const updateBarChartData = (barData: any) => {
barChartOptions.dataset.source = barData;
}
-const fetchLineAndUpdateChart = async (chartOptions: any, datetype:any="nighweek" ) => {
+const fetchLineAndUpdateChart = async (chartOptions: any, datetype: any = "nighweek") => {
const response = await get(`/disburses/line/${datetype}`);
const data = response.data.data;
const createDates = data.map((item: any) => item.create_date);
@@ -396,7 +404,7 @@ const fetchLineAndUpdateChart = async (chartOptions: any, datetype:any="nighweek
updateLineChartData(createDates, totalDisbursePrices, chartOptions);
createEcharts(linechart, chartOptions);
}
-const fetchPieAndUpdateChart = async (chartOptions: any, datetype:any="nighweek") => {
+const fetchPieAndUpdateChart = async (chartOptions: any, datetype: any = "nighweek") => {
const response = await get(`/disburses/pie/${datetype}`);
const data = response.data.data;
updatePieChartData(data, chartOptions);
@@ -454,16 +462,15 @@ onMounted(() => {
.charts {
display: flex;
flex-direction: column;
+ width: 45%;
+ margin: 0 24px ;
+}
+.charts>*{
+ margin-bottom: 24px;
}
-
.echart {
width: calc(45vw);
height: calc(45vw*2/5);
margin: 24px 0 48px 0;
}
-
-.charts {
- width: 45%;
- margin: 24px;
-}
diff --git a/src/views/blog/DiaryContentView.vue b/src/views/blog/DiaryContentView.vue
deleted file mode 100644
index 9038221..0000000
--- a/src/views/blog/DiaryContentView.vue
+++ /dev/null
@@ -1,143 +0,0 @@
-
-
-
-
-
- 操作系统的安装
-
-
-
-
-
- {{ mainStatistic.mainDate }}
-
-
-
-
-
- {{ mainStatistic.mainWatchCount }}
-
-
-
-
-
- 字数≈{{ mainStatistic.mainWordCount }}字
-
-
-
-
-
- 阅读时长≈{{ mainStatistic.mainReadCount }}分
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/blog/imagemanage/OtherImgView.vue b/src/views/blog/imagemanage/OtherImgView.vue
index 0b5f538..6d434dc 100644
--- a/src/views/blog/imagemanage/OtherImgView.vue
+++ b/src/views/blog/imagemanage/OtherImgView.vue
@@ -47,7 +47,7 @@ onMounted(() => {