From 387e8b0743240de72425e5b5c5709d629ace9aa4 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期二, 11 十月 2022 20:17:43 +0800
Subject: [PATCH] 新增消息界面、处理遗留问题

---
 src/components/dispatch/index.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/components/dispatch/index.vue b/src/components/dispatch/index.vue
index 66d3df2..c5aebf1 100644
--- a/src/components/dispatch/index.vue
+++ b/src/components/dispatch/index.vue
@@ -300,17 +300,21 @@
         },
         // 浜哄憳鏇存敼
         async handlePerChange(id){
-            await this.getLawUser(id);
+            let obj =  await this.getLawUser(id);
+            this.dispatch.lawEnforcerName = obj.nickName;
+            this.dispatch.contactWay = obj.mobile;
         },
         // 鑾峰彇鎵ф硶浜哄憳淇℃伅
         async getLawUser(id){
+            let obj = {}
             await this.$axios({
                 method:'get',
                 url:`sccg/admin/${id}`
             })
             .then(res=>{
-                console.log(res);
+                obj = res.data;
             })
+            return obj;
         }
     }
 }

--
Gitblit v1.8.0