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/jcsz/yhqd.vue |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/src/views/jcsz/yhqd.vue b/src/views/jcsz/yhqd.vue
index ee8c740..db4f7be 100644
--- a/src/views/jcsz/yhqd.vue
+++ b/src/views/jcsz/yhqd.vue
@@ -189,7 +189,7 @@
           >
             <template slot-scope="{row}">
               <i v-if="row.is_role==='Y'" class="el-icon-share" @click="roleClick({row})" />
-              <i v-if="row.is_role==='N'" class="el-icon-share" style="color: #E4E7ED" @click="roleClick({row})" />
+              <i v-if="row.is_role==='N'" class="el-icon-share" style="color: rgb(180 ,181, 185)" @click="roleClick({row})" />
             </template>
           </el-table-column>
           <el-table-column
@@ -653,25 +653,42 @@
         prop: 'group_code',
         order: 'desc'
       },
+
       title_value: '鏁版嵁瀵煎叆 / 鐢ㄦ埛娓呭崟',
-      code: '1',
+      code: '2',
       shows: false
     }
   },
-  created() {
-    this.getUserSearch()
-    this.getUserOrganization()
+  watch: {
+    shows() {
+      if (!this.shows) {
+        this.getUserSearch()
+      }
+    }
   },
+  created() {
+    this.handleRequest()
+  },
+
   mounted() {
     window.addEventListener('resize', this.getHeight)
     this.getHeight()
   },
   methods: {
+    handleRequest() {
+      this.getUserSearch().then(res => {
+        if (res.code === '200') {
+          this.getUserOrganization()
+        }
+      })
+    },
+
     // 鑾峰彇鐢ㄦ埛娓呭崟
     async getUserSearch() {
       const res = await UserSearch(this.form)
       this.tableData = res.data
       this.total = res.count
+      return { code: res.code }
     },
     // 鑾峰彇鎵�灞炵粍缁�
     async getUserOrganization() {

--
Gitblit v1.9.3