Эх сурвалжийг харах

采购订单维护-列表虚拟加载

002390 1 жил өмнө
parent
commit
3d31a8fdde

+ 0 - 1
src/components/super-ux-table/index.vue

@@ -145,7 +145,6 @@ export default {
     tableHeight: {
       get() {
         let { height } = this.$props;
-        console.log(height, "height");
         return height ? height : this.resizeHeight;
       },
       set() {},

+ 5 - 3
src/views/purchase/purchase-order/index.vue

@@ -240,12 +240,14 @@ export default {
       this.page.pageNum = 1;
 
       this.page.pageSize = 10;
-      this.$refs.purchaseTable.$refs.superTable.clearSelection();
+      this.$refs.purchaseTable.$refs.superTable &&
+        this.$refs.purchaseTable.$refs.superTable.clearSelection();
 
       for (const key in this.tabTableDatas) {
         this.tabTableDatas[key] = [];
       }
-      this.$refs.puOrderItemList[0].$refs.superTable.clearSelection();
+      this.$refs.puOrderItemList[0].$refs.superTable &&
+        this.$refs.puOrderItemList[0].$refs.superTable.clearSelection();
 
       // this.checkedList = [];
 
@@ -799,7 +801,7 @@ export default {
       @pagination="fetchList(params, page)"
       @selection-change="handleSelectionChange"
     >
-      <ux-table-column fixed="right" title="操作" width="120">
+      <ux-table-column fixed="right" title="操作" width="160">
         <template slot-scope="scope">
           <el-button
             v-if="judgeIsOption('revise', scope.row)"