Explorar el Código

修改逻辑判断

695593266@qq.com hace 11 meses
padre
commit
94bdae7796
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/views/inspectionPlan/components/new-edit.vue

+ 2 - 2
src/views/inspectionPlan/components/new-edit.vue

@@ -629,7 +629,7 @@
 
 
       // 分页后的样品列表
       // 分页后的样品列表
       paginatedSampleList() {
       paginatedSampleList() {
-        if (this.rowIds && this.isOrder) {
+        if (this.rowIds && this.isSampleList) {
           console.log(this.sampleList, 'sampleList');
           console.log(this.sampleList, 'sampleList');
           return this.sampleList;
           return this.sampleList;
         }
         }
@@ -2160,7 +2160,7 @@
       },
       },
       async handleSampleCurrentChange(val) {
       async handleSampleCurrentChange(val) {
         this.samplePagination.currentPage = val;
         this.samplePagination.currentPage = val;
-        if (this.rowIds && this.isOrder) {
+        if (this.rowIds && this.isSampleList) {
           await this.getSampleList(this.rowIds);
           await this.getSampleList(this.rowIds);
         }
         }
       },
       },