zhongrj
2024-02-27 acae84ed08d03fc234ed796347fc23fe9d97d533
src/views/system/user.vue
@@ -465,7 +465,8 @@
                            leafOnly: false,
                            dicData: [],
                            props: {
                                label: "title"
                                label: "title",
                                value:"id"
                            },
                            rules: [{
                                required: true,
@@ -719,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)
@@ -738,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)
@@ -908,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