Zheng Jie
2023-07-04 20:55:22 +08:00
parent 62ea1e831b
commit de47dc438e

View File

@@ -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: '自定义数据权限不能为空',