Explorar o código

采购预留处理-列表增加隐藏、检索、排序列功能

002390 hai 1 ano
pai
achega
afcc93a62e

+ 10 - 1
src/views/purchase/ownership/columns.js

@@ -67,7 +67,16 @@ export default function useColumns() {
       item: { key: "createTime", title: "创建时间" },
       attr: {}
     },
-  ];
+  ].map(({ item, attr }) => ({
+    attr,
+    item: {
+      ...item,
+      sortabled: true,
+      fixedabled: true,
+      filterabled: true,
+      hiddenabled: true,
+    },
+  }));
 
   const FormColumns = [
     {

+ 1 - 0
src/views/purchase/ownership/index.vue

@@ -25,6 +25,7 @@
       :columns="TableColumns"
       index
       pagination
+      convenitentOperation
       highlight-current-row
       storage-key="ownerShipSuperTable"
       @pagination="getList({ ...page, ...params })"