close https://github.com/elunez/eladmin/issues/625
This commit is contained in:
@@ -34,6 +34,9 @@
|
|||||||
v-model="deptDatas"
|
v-model="deptDatas"
|
||||||
:load-options="loadDepts"
|
:load-options="loadDepts"
|
||||||
:options="depts"
|
:options="depts"
|
||||||
|
:flat="true"
|
||||||
|
:auto-select-descendants="true"
|
||||||
|
:default-expand-level="1"
|
||||||
multiple
|
multiple
|
||||||
style="width: 380px"
|
style="width: 380px"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -192,6 +195,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交前做的操作
|
// 提交前做的操作
|
||||||
[CRUD.HOOK.afterValidateCU](crud) {
|
[CRUD.HOOK.afterValidateCU](crud) {
|
||||||
|
console.log(this.deptDatas)
|
||||||
if (crud.form.dataScope === '自定义' && this.deptDatas.length === 0) {
|
if (crud.form.dataScope === '自定义' && this.deptDatas.length === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '自定义数据权限不能为空',
|
message: '自定义数据权限不能为空',
|
||||||
|
|||||||
Reference in New Issue
Block a user