Просмотр исходного кода

修复产品数据表格列配置问题

yusheng 8 месяцев назад
Родитель
Сommit
aa6b443fb8
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/views/material/product/components/index-data.vue

+ 3 - 3
src/views/material/product/components/index-data.vue

@@ -3,7 +3,7 @@
     <!-- 数据表格 -->
     <!-- 数据表格 -->
     <ele-pro-table
     <ele-pro-table
       ref="table"
       ref="table"
-      :columns="newColumns"
+      :columns="columns"
       :datasource="datasource"
       :datasource="datasource"
       :need-page="true"
       :need-page="true"
       :selection.sync="selection"
       :selection.sync="selection"
@@ -680,7 +680,7 @@
           }
           }
         ],
         ],
 
 
-        newColumns: [],
+        // newColumns: [],
         // 表格选中数据
         // 表格选中数据
         selection: [],
         selection: [],
         // 是否显示编辑弹窗
         // 是否显示编辑弹窗
@@ -861,7 +861,7 @@
             };
             };
           });
           });
 
 
-          this.newColumns = [...this.columns, ...newRes, ...privateColumn];
+          this.columns = [...this.columns, ...newRes, ...privateColumn];
           this.getTabColumns();
           this.getTabColumns();
           this.$forceUpdate();
           this.$forceUpdate();
         });
         });