From ffb4f983478bc74ae34d7c7cecc7fb937fab045f Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期二, 20 九月 2022 18:02:22 +0800
Subject: [PATCH] 新建logo管理页面

---
 src/views/systemSetting/baseSetting/department/createUser/index.vue |   23 ++++++++---------------
 1 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/department/createUser/index.vue b/src/views/systemSetting/baseSetting/department/createUser/index.vue
index c1f8a44..97e6361 100644
--- a/src/views/systemSetting/baseSetting/department/createUser/index.vue
+++ b/src/views/systemSetting/baseSetting/department/createUser/index.vue
@@ -104,13 +104,13 @@
                     { required: true, trigger: "blur", validator: validateNickname },
                 ],
                 parentId: [
-                    { required: true, trigger: "blur", validator: validatePass },
+                    { required: false, trigger: "blur", validator: validatePass },
                 ],
                 departType: [
-                    { required: true, trigger: "blur", validator: validateTruename },
+                    { required: false, trigger: "blur", validator: validatePhone },
                 ],
                 departDes: [
-                    { required: true, trigger: "blur" },
+                    { required: false, trigger: "blur" },
                 ],
             },
             roleList: [
@@ -134,18 +134,11 @@
     },
     methods: {
         handleUser() {
-            const { user } = this;
-            console.log(user);
-            this.$axios.post('sccg/admin/register', {
-                departmentId: user.departmentId,
-                email: user.email,
-                jsDy: user.isDy,
-                jobTitle: user.jobTitle,
-                mobile: user.mobile,
-                nickName: user.nickName,
-                password: user.password,
-                userType: user.userType,
-                username: user.username,
+            const { depart } = this;
+            console.log(depart);
+            this.$axios.post('/sccg/depart/create', {
+                departName: depart.departName,
+                parentId: depart.parentId,  departType: depart.departType,  departDes: depart.departDes
             }).then(res => {
                 if (res.code === 200) {
                     this.refresh();

--
Gitblit v1.8.0