cfofpp 5 maanden geleden
bovenliggende
commit
282f8ab2cb

+ 6 - 6
src/views/home/components/PointsRanking/index.vue

@@ -47,10 +47,10 @@
         <template slot-scope="scope">
           <img
             class="icon-box"
-            v-if="scope.$index < 3"
-            :src="iconMap[`no${scope.$index + 1}`]"
+            v-if="scope.row['rankNum'] < 4"
+            :src="iconMap[`no${scope.row['rankNum']}`]"
           />
-          <span v-else> {{ scope.$index + 1 }}</span>
+          <span v-else> {{ scope.row["rankNum"] }}</span>
         </template>
       </el-table-column>
       <el-table-column prop="teamName" label="队伍名称" align="center">
@@ -69,10 +69,10 @@
         <template slot-scope="scope">
           <img
             class="icon-box"
-            v-if="scope.$index < 3"
-            :src="iconMap[`no${scope.$index + 1}`]"
+            v-if="scope.row['rankNum'] < 4"
+            :src="iconMap[`no${scope.row['rankNum']}`]"
           />
-          <span v-else> {{ scope.$index + 1 }}</span>
+          <span v-else> {{ scope.row["rankNum"] }}</span>
         </template>
       </el-table-column>
       <el-table-column prop="companyName" label="单位" align="center">

+ 3 - 2
src/views/home/components/TargetSituation/index.vue

@@ -97,7 +97,7 @@ export default {
         pageNum: 1,
         pageSize: 10,
         reportDate: null,
-        month: new Date().getMonth() + 1,
+        month: `0${new Date().getMonth() + 1}`,
         reportYear: moment(new Date()).format("yyyy"),
       },
       zdlx: 1,
@@ -147,7 +147,7 @@ export default {
       if (e == "reportDate") {
         this.queryParams.reportYear = moment(new Date()).format("yyyy");
       } else {
-        this.queryParams.month = new Date().getMonth() + 1;
+        this.queryParams.month = `0${new Date().getMonth() + 1}`;
       }
       this.getList();
     },
@@ -278,6 +278,7 @@ export default {
             name: "目标值",
             type: "bar",
             data: targetData,
+            barMinHeight: 10,
             label: {
               show: true,
               position: "right",

+ 1 - 0
src/views/home/components/map/index.vue

@@ -89,6 +89,7 @@ export default {
           }
         });
       });
+      this.currentMap = "衡阳市";
       this.initMap();
     },
     back() {