wuqing3 2 éve
szülő
commit
4fd05e87aa
2 módosított fájl, 4 hozzáadás és 3 törlés
  1. 2 1
      package.json
  2. 2 2
      src/views/vote/module/voteChart.vue

+ 2 - 1
package.json

@@ -21,7 +21,8 @@
     "vue-amap": "^0.5.10",
     "vue-echarts": "^6.0.2",
     "vue-router": "^3.2.0",
-    "vuex": "^3.4.0"
+    "vuex": "^3.4.0",
+    "vue-loader": "^13.3.0"
   },
   "devDependencies": {
     "@riophae/vue-treeselect": "^0.4.0",

+ 2 - 2
src/views/vote/module/voteChart.vue

@@ -11,8 +11,8 @@
                 <div class="choices" style="min-height: 20px;margin-bottom: 10px;display: flex;justify-content: space-between;" v-if="item.flag">
                     <div  style="width: 60px;">投票人:</div>
                     <div class="nameList">
-                        <span v-for="tar in item.choices" style="margin-right: 10px;color: #1890ff;">
-                            {{tar.passportName}}
+                        <span v-for="tar in item.choices" v-if="tar != null" style="margin-right: 10px;color: #1890ff;">
+                            {{tar.voterName}}
                         </span>
                     </div>