소스 검색

fix:首页通知搜索

zh 2 년 전
부모
커밋
53c593bed9
1개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 7 6
      src/views/dashboard.vue

+ 7 - 6
src/views/dashboard.vue

@@ -233,7 +233,7 @@
                         "
                         >重置</el-button
                       >
-                      <el-button type="primary" @click="getListInvoiceOrder">查询</el-button>
+                      <el-button type="primary" @click="getArrivalNotice">查询</el-button>
                     </div>
                   </el-form-item>
                 </el-col>
@@ -636,17 +636,18 @@ export default {
     },
     // 获取物流列表
     async getListInvoiceOrder(data) {
+    
+      const res = await getListInvoiceOrder(data)
+      this.invoiceOrderList = res.data.records
+      this.listTotal = res.data.total
+    },
+    async getArrivalNotice(data) {
       data = {
         ...data,
         pageSize: this.pageSize,
         pageNum: this.currentPage,
         specification: this.specification
       }
-      const res = await getListInvoiceOrder(data)
-      this.invoiceOrderList = res.data.records
-      this.listTotal = res.data.total
-    },
-    async getArrivalNotice(data) {
       const res = await getArrivalNotice(data)
       this.arrivalNoticeList = res.data.records
       this.listTotal = res.data.total