去除首页面,优化命名,优化schema
This commit is contained in:
@@ -17,7 +17,7 @@ userdata = [
|
||||
enable=1,
|
||||
realname='超级管理',
|
||||
remark='要是不能把握时机,就要终身蹭蹬,一事无成!',
|
||||
avatar='http://127.0.0.1:5000/_uploads/photos/1617291580000.jpg',
|
||||
avatar='/static/system/admin/images/avatar.jpg',
|
||||
dept_id=1,
|
||||
),
|
||||
User(
|
||||
@@ -28,7 +28,7 @@ userdata = [
|
||||
enable=1,
|
||||
realname='测试',
|
||||
remark='要是不能把握时机,就要终身蹭蹬,一事无成!',
|
||||
avatar='http://127.0.0.1:5000/_uploads/photos/1617291580000.jpg',
|
||||
avatar='/static/system/admin/images/avatar.jpg',
|
||||
dept_id=1,
|
||||
),
|
||||
User(
|
||||
@@ -39,7 +39,7 @@ userdata = [
|
||||
enable=1,
|
||||
realname='风',
|
||||
remark='要是不能把握时机,就要终身蹭蹬,一事无成!',
|
||||
avatar='http://127.0.0.1:5000/_uploads/photos/1617291580000.jpg',
|
||||
avatar='/static/system/admin/images/avatar.jpg',
|
||||
dept_id=7,
|
||||
),
|
||||
]
|
||||
@@ -147,8 +147,8 @@ powerdata = [
|
||||
id=3,
|
||||
name='用户管理',
|
||||
type='1',
|
||||
code='admin:user:main',
|
||||
url='/admin/user/',
|
||||
code='system:user:main',
|
||||
url='/system/user/',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon='layui-icon layui-icon layui-icon layui-icon layui-icon-rate',
|
||||
@@ -160,8 +160,8 @@ powerdata = [
|
||||
id=4,
|
||||
name='权限管理',
|
||||
type='1',
|
||||
code='admin:power:main',
|
||||
url='/admin/power/',
|
||||
code='system:power:main',
|
||||
url='/system/power/',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon=None,
|
||||
@@ -173,8 +173,8 @@ powerdata = [
|
||||
id=9,
|
||||
name='角色管理',
|
||||
type='1',
|
||||
code='admin:role:main',
|
||||
url='/admin/role',
|
||||
code='system:role:main',
|
||||
url='/system/role',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon='layui-icon layui-icon-username',
|
||||
@@ -186,8 +186,8 @@ powerdata = [
|
||||
id=12,
|
||||
name='系统监控',
|
||||
type='1',
|
||||
code='admin:monitor:main',
|
||||
url='/admin/monitor',
|
||||
code='system:monitor:main',
|
||||
url='/system/monitor',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon='layui-icon layui-icon-vercode',
|
||||
@@ -199,8 +199,8 @@ powerdata = [
|
||||
id=13,
|
||||
name='日志管理',
|
||||
type='1',
|
||||
code='admin:log:main',
|
||||
url='/admin/log',
|
||||
code='system:log:main',
|
||||
url='/system/log',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon='layui-icon layui-icon-read',
|
||||
@@ -225,8 +225,8 @@ powerdata = [
|
||||
id=18,
|
||||
name='图片上传',
|
||||
type='1',
|
||||
code='admin:file:main',
|
||||
url='/admin/file',
|
||||
code='system:file:main',
|
||||
url='/system/file',
|
||||
open_type='_iframe',
|
||||
parent_id='17',
|
||||
icon='layui-icon layui-icon-camera',
|
||||
@@ -238,7 +238,7 @@ powerdata = [
|
||||
id=21,
|
||||
name='权限增加',
|
||||
type='2',
|
||||
code='admin:power:add',
|
||||
code='system:power:add',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='4',
|
||||
@@ -251,7 +251,7 @@ powerdata = [
|
||||
id=22,
|
||||
name='用户增加',
|
||||
type='2',
|
||||
code='admin:user:add',
|
||||
code='system:user:add',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='3',
|
||||
@@ -264,7 +264,7 @@ powerdata = [
|
||||
id=23,
|
||||
name='用户编辑',
|
||||
type='2',
|
||||
code='admin:user:edit',
|
||||
code='system:user:edit',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='3',
|
||||
@@ -277,7 +277,7 @@ powerdata = [
|
||||
id=24,
|
||||
name='用户删除',
|
||||
type='2',
|
||||
code='admin:user:remove',
|
||||
code='system:user:remove',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='3',
|
||||
@@ -290,7 +290,7 @@ powerdata = [
|
||||
id=25,
|
||||
name='权限编辑',
|
||||
type='2',
|
||||
code='admin:power:edit',
|
||||
code='system:power:edit',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='4',
|
||||
@@ -303,7 +303,7 @@ powerdata = [
|
||||
id=26,
|
||||
name='用户删除',
|
||||
type='2',
|
||||
code='admin:power:remove',
|
||||
code='system:power:remove',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='4',
|
||||
@@ -316,7 +316,7 @@ powerdata = [
|
||||
id=27,
|
||||
name='用户增加',
|
||||
type='2',
|
||||
code='admin:role:add',
|
||||
code='system:role:add',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='9',
|
||||
@@ -329,7 +329,7 @@ powerdata = [
|
||||
id=28,
|
||||
name='角色编辑',
|
||||
type='2',
|
||||
code='admin:role:edit',
|
||||
code='system:role:edit',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='9',
|
||||
@@ -342,7 +342,7 @@ powerdata = [
|
||||
id=29,
|
||||
name='角色删除',
|
||||
type='2',
|
||||
code='admin:role:remove',
|
||||
code='system:role:remove',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='9',
|
||||
@@ -355,7 +355,7 @@ powerdata = [
|
||||
id=30,
|
||||
name='角色授权',
|
||||
type='2',
|
||||
code='admin:role:power',
|
||||
code='system:role:power',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='9',
|
||||
@@ -368,7 +368,7 @@ powerdata = [
|
||||
id=31,
|
||||
name='图片增加',
|
||||
type='2',
|
||||
code='admin:file:add',
|
||||
code='system:file:add',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='18',
|
||||
@@ -381,7 +381,7 @@ powerdata = [
|
||||
id=32,
|
||||
name='图片删除',
|
||||
type='2',
|
||||
code='admin:file:delete',
|
||||
code='system:file:delete',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='18',
|
||||
@@ -394,8 +394,8 @@ powerdata = [
|
||||
id=44,
|
||||
name='数据字典',
|
||||
type='1',
|
||||
code='admin:dict:main',
|
||||
url='/admin/dict',
|
||||
code='system:dict:main',
|
||||
url='/system/dict',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon='layui-icon layui-icon-console',
|
||||
@@ -407,7 +407,7 @@ powerdata = [
|
||||
id=45,
|
||||
name='字典增加',
|
||||
type='2',
|
||||
code='admin:dict:add',
|
||||
code='system:dict:add',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='44',
|
||||
@@ -420,7 +420,7 @@ powerdata = [
|
||||
id=46,
|
||||
name='字典修改',
|
||||
type='2',
|
||||
code='admin:dict:edit',
|
||||
code='system:dict:edit',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='44',
|
||||
@@ -433,7 +433,7 @@ powerdata = [
|
||||
id=47,
|
||||
name='字典删除',
|
||||
type='2',
|
||||
code='admin:dict:remove',
|
||||
code='system:dict:remove',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='44',
|
||||
@@ -446,8 +446,8 @@ powerdata = [
|
||||
id=48,
|
||||
name='部门管理',
|
||||
type='1',
|
||||
code='admin:dept:main',
|
||||
url='/dept',
|
||||
code='system:dept:main',
|
||||
url='/system/dept',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon='layui-icon layui-icon-group',
|
||||
@@ -459,7 +459,7 @@ powerdata = [
|
||||
id=49,
|
||||
name='部门增加',
|
||||
type='2',
|
||||
code='admin:dept:add',
|
||||
code='system:dept:add',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='48',
|
||||
@@ -472,7 +472,7 @@ powerdata = [
|
||||
id=50,
|
||||
name='部门编辑',
|
||||
type='2',
|
||||
code='admin:dept:edit',
|
||||
code='system:dept:edit',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='48',
|
||||
@@ -485,7 +485,7 @@ powerdata = [
|
||||
id=51,
|
||||
name='部门删除',
|
||||
type='2',
|
||||
code='admin:dept:remove',
|
||||
code='system:dept:remove',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='48',
|
||||
@@ -498,8 +498,8 @@ powerdata = [
|
||||
id=57,
|
||||
name='邮件管理',
|
||||
type='1',
|
||||
code='admin:mail:main',
|
||||
url='/admin/mail',
|
||||
code='system:mail:main',
|
||||
url='/system/mail',
|
||||
open_type='_iframe',
|
||||
parent_id='1',
|
||||
icon='layui-icon ',
|
||||
@@ -511,7 +511,7 @@ powerdata = [
|
||||
id=58,
|
||||
name='邮件发送',
|
||||
type='2',
|
||||
code='admin:mail:add',
|
||||
code='system:mail:add',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='57',
|
||||
@@ -524,7 +524,7 @@ powerdata = [
|
||||
id=59,
|
||||
name='邮件删除',
|
||||
type='2',
|
||||
code='admin:mail:remove',
|
||||
code='system:mail:remove',
|
||||
url='',
|
||||
open_type='',
|
||||
parent_id='57',
|
||||
@@ -572,4 +572,4 @@ def init_db():
|
||||
print("用户角色数据存入")
|
||||
add_role_power()
|
||||
print("角色权限数据存入")
|
||||
print("数据初始化完成,请使用python app.py命令运行")
|
||||
print("数据初始化完成,请使用run脚本运行")
|
||||
|
||||
Reference in New Issue
Block a user