功能变化: 授权页面

This commit is contained in:
猿小天
2023-02-07 20:58:15 +08:00
parent b65cc96df4
commit 1812619e6c
5 changed files with 231 additions and 181 deletions

View File

@@ -228,7 +228,7 @@ class RoleMenuButtonPermission(CoreModel):
)
data_range = models.IntegerField(default=0, choices=DATASCOPE_CHOICES, verbose_name="数据权限范围",
help_text="数据权限范围")
dept = models.ManyToManyField(to="Dept", verbose_name="数据权限-关联部门", db_constraint=False,
dept = models.ManyToManyField(to="Dept",blank=True,null=True,verbose_name="数据权限-关联部门", db_constraint=False,
help_text="数据权限-关联部门")
class Meta:
db_table = table_prefix + "role_menu_button_permission"