“dzb”
2022-09-20 ffb4f983478bc74ae34d7c7cecc7fb937fab045f
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();