Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez authored and liuyefengfly committed Oct 18, 2024
1 parent 45dc258 commit 96476b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/system/role/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
v-model="deptDatas"
:load-options="loadDepts"
:options="depts"
:flat="true"
:auto-select-descendants="true"
:default-expand-level="1"
multiple
style="width: 380px"
placeholder="请选择"
Expand Down Expand Up @@ -192,6 +195,7 @@ export default {
},
// 提交前做的操作
[CRUD.HOOK.afterValidateCU](crud) {
console.log(this.deptDatas)
if (crud.form.dataScope === '自定义' && this.deptDatas.length === 0) {
this.$message({
message: '自定义数据权限不能为空',
Expand Down

0 comments on commit 96476b7

Please sign in to comment.