panhui há 4 anos atrás
pai
commit
d151229203

+ 1 - 1
src/main/data-center-admin/src/views/Admin.vue

@@ -233,7 +233,7 @@ export default {
         getMenus() {
             let menus = [
                 { active: false, name: '数据可视化', path: '/chart1', icon: 'fas fa-globe-asia' },
-                { active: false, name: '数据输出', path: '/chart2', icon: 'fas fa-chart-line' },
+                { active: false, name: '描述性统计', path: '/chart2', icon: 'fas fa-chart-line' },
                 { active: false, name: '数据分析', path: '/chart3', icon: 'fas fa-chart-area' },
                 {
                     active: false,

+ 10 - 9
src/main/data-center/src/views/ChartScreen.vue

@@ -7,7 +7,7 @@
             </el-select>
         </div>
         <el-row>
-            <el-col :span="6" :lg="6" :md="8" :sm="12" :key="index" v-for="(item, index) in chartTitles">
+            <el-col :span="12" :key="index" v-for="(item, index) in chartTitles">
                 <card icon="shuju_icon_qiyeshuliang" :title="item">
                     <div class="chart" :ref="`chartItem${index + 1}`"></div>
                 </card>
@@ -177,6 +177,7 @@ export default {
             let yAxis = [];
             let series = [];
             let legend = {
+                top: 10,
                 data: [],
             };
             let yaxis = [
@@ -189,13 +190,13 @@ export default {
             let xAxis = {
                 data: labels,
                 boundaryGap: true,
-                axisLabel: {
-                    rotate: -60,
-                    margin: 5,
-                    formatter: (value) => {
-                        return value.replace(/市/, '');
-                    },
-                },
+                // axisLabel: {
+                //     rotate: -60,
+                //     margin: 5,
+                //     formatter: (value) => {
+                //         return value.replace(/市/, '');
+                //     },
+                // },
             };
 
             info.forEach((item) => {
@@ -269,7 +270,7 @@ export default {
             myChart.setOption({
                 legend,
                 grid: {
-                    top: 50,
+                    top: 60,
                     bottom: 35,
                     right: yaxis.length > 1 ? 90 : 30,
                 },