From 8d965e584b9be28a81d3f9fa587f6d0b18cd8dff Mon Sep 17 00:00:00 2001
From: yaozc <yaozc@yhzhg.cn>
Date: Mon, 10 Jul 2023 00:54:45 +0000
Subject: [PATCH] toMongo init

---
 eladmin-web-master/src/views/system/userContract/index.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/eladmin-web-master/src/views/system/userContract/index.vue b/eladmin-web-master/src/views/system/userContract/index.vue
index c1bf2ba..9b7baa7 100644
--- a/eladmin-web-master/src/views/system/userContract/index.vue
+++ b/eladmin-web-master/src/views/system/userContract/index.vue
@@ -230,11 +230,10 @@
     // 根据员工选择公司
     getComp(data) {
       if (data !== '') {
-        var form = JSON.stringify({
-          'userId': data
-        })
-        crudSysCompany.getCompName(form).then(res => {
-          this.form.companyId = res.label
+        crudUser.getAll({
+          id: data
+        }).then(res => {
+          this.form.companyId = res[0].company.id
         })
       } else {
         this.form.companyId = null

--
Gitblit v1.9.3