Browse Source

fix:过滤问题

chenxinlei 2 years ago
parent
commit
a08ed6d644
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/stationConfiguration/windterbin/index.vue

+ 6 - 2
src/views/stationConfiguration/windterbin/index.vue

@@ -106,9 +106,13 @@ export default {
   methods: {
     equipmentCategoryFormatter(row, column, cellValue, index){
       let val = this.equipmentCategoryOptions.filter(item=>{
-        return item.id === row.equipmentCategory
+        return item.id == row.equipmentCategory
       });
-      return val[0].name
+      if(val[0]) {
+        return val[0].name
+      }else {
+        return ""
+      }
     },
     handleQuery() {
       this.queryForm.pageNo = 1