Explorar o código

fix:过滤问题

chenxinlei %!s(int64=2) %!d(string=hai) anos
pai
achega
a08ed6d644
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  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