功能变化: 初始化登录日志
parent
4a3aaba0b5
commit
7a5d9e5fb0
|
@ -518,6 +518,27 @@ class Initialize(CoreInitialize):
|
|||
"creator_id": 1,
|
||||
"parent_id": 15,
|
||||
"is_catalog": 0
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"description": "",
|
||||
"modifier": "1",
|
||||
"dept_belong_id": 1,
|
||||
"update_datetime": datetime.datetime.now(),
|
||||
"create_datetime": datetime.datetime.now(),
|
||||
"icon": "file-text",
|
||||
"name": "登录日志",
|
||||
"sort": 1,
|
||||
"is_link": 0,
|
||||
"web_path": "/loginLog",
|
||||
"component": "system/log/loginLog/index",
|
||||
"component_name": "loginLog",
|
||||
"status": 1,
|
||||
"cache": 0,
|
||||
"visible": 1,
|
||||
"creator_id": 1,
|
||||
"parent_id": 15,
|
||||
"is_catalog": 0
|
||||
}
|
||||
]
|
||||
self.save(Menu, self.menu_data, "菜单表")
|
||||
|
@ -1268,6 +1289,33 @@ class Initialize(CoreInitialize):
|
|||
"method": 2,
|
||||
"creator_id": 1,
|
||||
"menu_id": 3
|
||||
},{
|
||||
"id": 54,
|
||||
"description": None,
|
||||
"modifier": "1",
|
||||
"dept_belong_id": "1",
|
||||
"update_datetime": datetime.datetime.now(),
|
||||
"create_datetime": datetime.datetime.now(),
|
||||
"name": "查询",
|
||||
"value": "Search",
|
||||
"api": "/api/system/login_log/",
|
||||
"method": 0,
|
||||
"creator_id": 1,
|
||||
"menu_id": 20
|
||||
},
|
||||
{
|
||||
"id": 55,
|
||||
"description": None,
|
||||
"modifier": "1",
|
||||
"dept_belong_id": "1",
|
||||
"update_datetime": datetime.datetime.now(),
|
||||
"create_datetime": datetime.datetime.now(),
|
||||
"name": "详情",
|
||||
"value": "Retrieve",
|
||||
"api": "/api/system/login_log/{id}/",
|
||||
"method": 0,
|
||||
"creator_id": 1,
|
||||
"menu_id": 20
|
||||
}
|
||||
]
|
||||
self.save(MenuButton, self.menu_button_data, "菜单按钮表")
|
||||
|
|
|
@ -312,7 +312,7 @@ class LoginLog(CoreModel):
|
|||
LOGIN_TYPE_CHOICES = (
|
||||
(1, '普通登录'),
|
||||
)
|
||||
username = models.CharField(max_length=32, verbose_name="登录用户名", null=True, blank=True, help_text="登录ip")
|
||||
username = models.CharField(max_length=32, verbose_name="登录用户名", null=True, blank=True, help_text="登录用户名")
|
||||
ip = models.CharField(max_length=32, verbose_name="登录ip", null=True, blank=True, help_text="登录ip")
|
||||
agent = models.TextField(verbose_name="agent信息", null=True, blank=True, help_text="agent信息")
|
||||
browser = models.CharField(max_length=200, verbose_name="浏览器名", null=True, blank=True, help_text="浏览器名")
|
||||
|
|
|
@ -30,7 +30,7 @@ import { crudOptions } from './crud'
|
|||
import { d2CrudPlus } from 'd2-crud-plus'
|
||||
|
||||
export default {
|
||||
name: 'operationLog',
|
||||
name: 'loginLog',
|
||||
|
||||
mixins: [d2CrudPlus.crud],
|
||||
data () {
|
||||
|
|
Loading…
Reference in New Issue