Przeglądaj źródła

发运明细-列表查询

jbb 2 lat temu
rodzic
commit
f393695f63
1 zmienionych plików z 1 dodań i 38 usunięć
  1. 1 38
      src/views/shipment-details/shipmentList.vue

+ 1 - 38
src/views/shipment-details/shipmentList.vue

@@ -594,21 +594,6 @@ export default {
     this.defalutDate()
   },
   mounted(){
-    let dom = this.$refs.TableInfo.$el.querySelectorAll('.ant-table-body')[0]
-    const offsetHeight = dom.offsetHeight;
-            dom.addEventListener(
-             'scroll',
-                () => {
-                  const scrollTop = dom.scrollTop;
-                  const scrollHeight = dom.scrollHeight;
-                  debugger
-                 if (offsetHeight + scrollTop >= scrollHeight ) {
-                  debugger
-         	//触发事件
-                }
-                  // this.sctollList()
-               },
-              )
   },
    watch:{
     selectedRowKeys(newVal){
@@ -647,13 +632,7 @@ export default {
              this.exportButton ='1'
              this.exportButton1 = '0'
            }
-           this.allList = res.result.records
-           this.allList.map((item,index)=>{
-            if(index<=19){
-              this.shipmentListData.push(item)
-            }
-           })
-          //  this.shipmentListData = res.result.records
+           this.shipmentListData = res.result.records
             for (var i=0; i<this.shipmentListData.length; i++){
               this.shipmentListData.randomId = randomUUID();
             }
@@ -670,22 +649,6 @@ export default {
           }
         })
     },
-    sctollList(){
-      debugger
-      this.shipmentListData=this.allList
-      debugger
-      // if(this.shipmentListData.length<this.allList.length){
-      //   this.allList.map((item,index)=>{
-      //     if(index > (this.shipmentListData.length-1)){
-      //        if(index < (this.shipmentListData.length+20)){
-      //          this.shipmentListData.push(item)
-      //        }
-           
-           
-      //     }
-      //   })
-      // }
-    },
     //关闭申报要素弹窗
      async closeDeclare(){
        //判断是否是新增的数据