From 386878d3b2c54585c3d572ff34b3d5831d5175a1 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 22 十一月 2023 14:50:44 +0800
Subject: [PATCH] 供应商管理-请求头添加token

---
 src/views/purchaseManage/purchase/index.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index 9bf233e..f5ef1f0 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -111,7 +111,11 @@
         { label: "缁忓姙浜�", prop: "handledBy", min: 130 },
         { label: "鍒跺崟浜�", prop: "creator", min: 130 }
       ],
-      showCol: ['閲囪喘鍗曞彿', '閲囪喘鍗曞悕绉�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閲囪喘鏁伴噺', '鏀惰揣浠撳簱','缁忓姙浜�','鍒跺崟浜�']
+      showCol: ['閲囪喘鍗曞彿', '閲囪喘鍗曞悕绉�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閲囪喘鏁伴噺', '鏀惰揣浠撳簱','缁忓姙浜�','鍒跺崟浜�'],
+      pagerOptions:{
+        pageSize:15,
+        currPage:1,
+      }
     }
   },
   created() {
@@ -163,18 +167,18 @@
     // 璇锋眰鏁版嵁
     async getData() {
       await getPurchaseList({
-        keyword: this.search,
+        keyword: this.search||'',
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize
       })
       .then((res) => {
-        if (res.data.code === 200) {
-          let list = res.data.data.list
+        if (res.code === 200) {
+          let list = res.data.list
           list.map((item)=>{
             item.supplierName=item.supplier.name
           })
           this.tableList.tableInfomation = list || []
-          this.pagerOptions.totalCount = res.data.data.total
+          this.pagerOptions.totalCount = res.data.total
         }
       })
       .catch((err) => {

--
Gitblit v1.8.0