lin
2024-03-22 ebfc739bdbbc0dd0fccd0bf47b7d2d5397c3c511
src/views/system/user.vue
@@ -465,7 +465,8 @@
                            leafOnly: false,
                            dicData: [],
                            props: {
                                label: "title"
                                label: "title",
                                value:"id"
                            },
                            rules: [{
                                required: true,
@@ -477,14 +478,15 @@
                            label: "所属部门",
                            prop: "deptId",
                            type: "tree",
                            // multiple: true,
                            multiple: true,
                            leafOnly: false,
                            dicData: [],
                            dataType: "string",
                            // dataType: "string",
                            props: {
                                label: "title",
                                value: "id"
                            },
                            // checkStrictly: true,
                            checkStrictly: true,
                            slot: true,
                            span: 12,
                            rules: [{
@@ -718,7 +720,7 @@
            row['userType'] = 1
            row.deptId = func.join(row.deptId)
            row.roleId = func.join(row.roleId)
            row.postId = func.join(row.postId)
            // row.postId = func.join(row.postId)
            add(row).then(() => {
                this.initFlag = false
                this.onLoad(this.page)
@@ -737,7 +739,7 @@
            row['userType'] = 1
            row.deptId = func.join(row.deptId)
            row.roleId = func.join(row.roleId)
            row.postId = func.join(row.postId)
            // row.postId = func.join(row.postId)
            update(row).then(() => {
                this.initFlag = false
                this.onLoad(this.page)
@@ -907,9 +909,9 @@
                    if (this.form.hasOwnProperty("roleId")) {
                        this.form.roleId = this.form.roleId.split(",")
                    }
                    if (this.form.hasOwnProperty("postId")) {
                        this.form.postId = this.form.postId.split(",")
                    }
                    // if (this.form.hasOwnProperty("postId")) {
                    //     this.form.postId = this.form.postId.split(",")
                    // }
                })
            }
            this.initFlag = true
@@ -1007,4 +1009,4 @@
.box .el-scrollbar__wrap {
    overflow: scroll;
}
</style>
</style>