浏览代码

fix:过滤问题

chenxinlei 2 年之前
父节点
当前提交
a08ed6d644
共有 1 个文件被更改,包括 6 次插入2 次删除
  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