From 1e9fa82cb2fe2c15f46bd1dd73f5c878c74b83b8 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 04 八月 2022 15:35:50 +0800
Subject: [PATCH] 1.系统多账号登录问题2.采购订单页面样式修改及数据渲染

---
 src/views/scgl/gd.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/views/scgl/gd.vue b/src/views/scgl/gd.vue
index 92f9c1d..b2a5755 100644
--- a/src/views/scgl/gd.vue
+++ b/src/views/scgl/gd.vue
@@ -860,8 +860,7 @@
     }
   },
   created() {
-    this.getMesOrderSearch()
-    this.getSelect()
+    this.handleRequest()
   },
   mounted() {
     window.addEventListener('resize', this.getHeight)
@@ -871,6 +870,13 @@
     this.username = getCookie('username')
   },
   methods: {
+    handleRequest() {
+      this.getMesOrderSearch().then(res => {
+        if (res.code === '200') {
+          this.getSelect()
+        }
+      })
+    },
     async getMesOrderSearch() {
       // let tempDate = this.form.createdate
       // if (tempDate.length > 0) {
@@ -895,6 +901,7 @@
       this.total = res.count
 
       // this.form.createdate = tempDate
+      return { code: res.code }
     },
     async getSelect() {
       // 鑾峰彇浜у搧淇℃伅

--
Gitblit v1.9.3