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/sbgl/sbqd.vue |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/views/sbgl/sbqd.vue b/src/views/sbgl/sbqd.vue
index c1cff22..0f01076 100644
--- a/src/views/sbgl/sbqd.vue
+++ b/src/views/sbgl/sbqd.vue
@@ -672,23 +672,30 @@
     }
   },
   created() {
-    // 鑾峰彇璁惧娓呭崟鍒楄〃
-    this.getDeviceMangerSearch()
-    // 鑾峰彇璁惧绫诲瀷涓嬫媺
-    this.getDeviceTypeSelect()
-    // 鑾峰彇鎵�灞炶溅闂翠笅鎷�
-    this.getWorkShopSelect()
+    this.handleRequest()
   },
   mounted() {
     window.addEventListener('resize', this.getHeight)
     this.getHeight()
   },
   methods: {
+    handleRequest() {
+      // 鑾峰彇璁惧娓呭崟鍒楄〃
+      this.getDeviceMangerSearch().then(res => {
+        if (res.code === '200') {
+          // 鑾峰彇璁惧绫诲瀷涓嬫媺
+          this.getDeviceTypeSelect()
+          // 鑾峰彇鎵�灞炶溅闂翠笅鎷�
+          this.getWorkShopSelect()
+        }
+      })
+    },
     // 鑾峰彇璁惧娓呭崟鍒楄〃
     async getDeviceMangerSearch() {
       const res = await DeviceMangerSearch(this.form)
       this.tableData = res.data
       this.total = res.count
+      return { code: res.code }
     },
     // 鑾峰彇鎵�灞炶溅闂翠笅鎷�
     async getWorkShopSelect() {

--
Gitblit v1.9.3