diff --git a/backend/application/urls.py b/backend/application/urls.py index f7ba7cb..fca0097 100644 --- a/backend/application/urls.py +++ b/backend/application/urls.py @@ -35,8 +35,8 @@ from dvadmin.system.views.system_config import InitSettingsViewSet from dvadmin.utils.swagger import CustomOpenAPISchemaGenerator # =========== 初始化系统配置 ================= -dispatch.init_system_config() -dispatch.init_dictionary() +# dispatch.init_system_config() +# dispatch.init_dictionary() # =========== 初始化系统配置 ================= schema_view = get_schema_view( diff --git a/web/src/views/system/rolePermission/index.vue b/web/src/views/system/rolePermission/index.vue index bf732e4..d8e90b0 100644 --- a/web/src/views/system/rolePermission/index.vue +++ b/web/src/views/system/rolePermission/index.vue @@ -93,7 +93,7 @@ :default-checked-keys="menuCheckedKeys" :check-on-click-node="false" empty-text="请先选择角色" - :check-strictly="true" + :check-strictly="false" @check-change="handleCheckClick" > @@ -104,8 +104,7 @@ v-for="(item, index) in data.menuPermission" :key="index" v-model="item.checked" - >{{ item.name }} + >{{ item.name }} @@ -288,14 +287,16 @@ export default { * @param data */ handleCheckClick (data, checked) { + console.log(data,checked) const { menuPermission, - children + children, + parent } = data for (const item of menuPermission) { this.$set(item, 'checked', checked) } - if (children) { + if (children && parent) { for (const item of children) { this.$refs.menuTree.setChecked(item.id, checked) }