del:多余文件
parent
8acd42a351
commit
056f37f7d5
|
|
@ -1,115 +0,0 @@
|
||||||
{
|
|
||||||
"code": 0,
|
|
||||||
"msg": "",
|
|
||||||
"count": 12,
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"id": "001",
|
|
||||||
"title": "LV降价了!宇宙大牌最值得买的包可以下手啦!",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/100",
|
|
||||||
"readSize": 288,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": true,
|
|
||||||
"status": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "002",
|
|
||||||
"title": "这颗彗星时速13.5万公里,有人想抓点样本带回地球",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/101",
|
|
||||||
"readSize": 188,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": false,
|
|
||||||
"status": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "003",
|
|
||||||
"title": "LV降价了!宇宙大牌最值得买的包可以下手啦!",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/100",
|
|
||||||
"readSize": 288,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": true,
|
|
||||||
"status": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "004",
|
|
||||||
"title": "这颗彗星时速13.5万公里,有人想抓点样本带回地球",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/101",
|
|
||||||
"readSize": 188,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": false,
|
|
||||||
"status": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "005",
|
|
||||||
"title": "LV降价了!宇宙大牌最值得买的包可以下手啦!",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/100",
|
|
||||||
"readSize": 288,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": true,
|
|
||||||
"status": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "006",
|
|
||||||
"title": "这颗彗星时速13.5万公里,有人想抓点样本带回地球",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/101",
|
|
||||||
"readSize": 188,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": false,
|
|
||||||
"status": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "007",
|
|
||||||
"title": "LV降价了!宇宙大牌最值得买的包可以下手啦!",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/100",
|
|
||||||
"readSize": 288,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": true,
|
|
||||||
"status": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "008",
|
|
||||||
"title": "这颗彗星时速13.5万公里,有人想抓点样本带回地球",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/101",
|
|
||||||
"readSize": 188,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": false,
|
|
||||||
"status": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "009",
|
|
||||||
"title": "LV降价了!宇宙大牌最值得买的包可以下手啦!",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/100",
|
|
||||||
"readSize": 288,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": true,
|
|
||||||
"status": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "010",
|
|
||||||
"title": "这颗彗星时速13.5万公里,有人想抓点样本带回地球",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/101",
|
|
||||||
"readSize": 188,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": false,
|
|
||||||
"status": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "011",
|
|
||||||
"title": "LV降价了!宇宙大牌最值得买的包可以下手啦!",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/100",
|
|
||||||
"readSize": 288,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": true,
|
|
||||||
"status": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "012",
|
|
||||||
"title": "这颗彗星时速13.5万公里,有人想抓点样本带回地球",
|
|
||||||
"url": "http://ok-admin.xlbweb.cn/p/101",
|
|
||||||
"readSize": 188,
|
|
||||||
"publisher": "admin",
|
|
||||||
"isTop": false,
|
|
||||||
"status": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -1,254 +0,0 @@
|
||||||
{
|
|
||||||
"code": 0,
|
|
||||||
"msg": "",
|
|
||||||
"count": 19,
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"authorityId": 1,
|
|
||||||
"authorityName": "系统管理",
|
|
||||||
"orderNumber": 1,
|
|
||||||
"menuUrl": null,
|
|
||||||
"menuIcon": "layui-icon-set",
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": null,
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 0,
|
|
||||||
"parentId": -1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 2,
|
|
||||||
"authorityName": "用户管理",
|
|
||||||
"orderNumber": 2,
|
|
||||||
"menuUrl": "system/user",
|
|
||||||
"menuIcon": null,
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": null,
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 0,
|
|
||||||
"parentId": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 3,
|
|
||||||
"authorityName": "查询用户",
|
|
||||||
"orderNumber": 3,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/07/21 13:54:16",
|
|
||||||
"authority": "user:view",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/21 13:54:16",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 4,
|
|
||||||
"authorityName": "添加用户",
|
|
||||||
"orderNumber": 4,
|
|
||||||
"menuUrl": null,
|
|
||||||
"menuIcon": null,
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "user:add",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 5,
|
|
||||||
"authorityName": "修改用户",
|
|
||||||
"orderNumber": 5,
|
|
||||||
"menuUrl": null,
|
|
||||||
"menuIcon": null,
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "user:edit",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 6,
|
|
||||||
"authorityName": "删除用户",
|
|
||||||
"orderNumber": 6,
|
|
||||||
"menuUrl": null,
|
|
||||||
"menuIcon": null,
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "user:delete",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 7,
|
|
||||||
"authorityName": "角色管理",
|
|
||||||
"orderNumber": 7,
|
|
||||||
"menuUrl": "system/role",
|
|
||||||
"menuIcon": null,
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": null,
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 0,
|
|
||||||
"parentId": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 8,
|
|
||||||
"authorityName": "查询角色",
|
|
||||||
"orderNumber": 8,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/07/21 13:54:59",
|
|
||||||
"authority": "role:view",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/21 13:54:58",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 9,
|
|
||||||
"authorityName": "添加角色",
|
|
||||||
"orderNumber": 9,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "role:add",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 10,
|
|
||||||
"authorityName": "修改角色",
|
|
||||||
"orderNumber": 10,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "role:edit",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 11,
|
|
||||||
"authorityName": "删除角色",
|
|
||||||
"orderNumber": 11,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "role:delete",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 12,
|
|
||||||
"authorityName": "角色权限管理",
|
|
||||||
"orderNumber": 12,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "role:auth",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 15:27:18",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 13,
|
|
||||||
"authorityName": "权限管理",
|
|
||||||
"orderNumber": 13,
|
|
||||||
"menuUrl": "system/authorities",
|
|
||||||
"menuIcon": null,
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": null,
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 15:45:13",
|
|
||||||
"isMenu": 0,
|
|
||||||
"parentId": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 14,
|
|
||||||
"authorityName": "查询权限",
|
|
||||||
"orderNumber": 14,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/07/21 13:55:57",
|
|
||||||
"authority": "authorities:view",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/21 13:55:56",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 15,
|
|
||||||
"authorityName": "添加权限",
|
|
||||||
"orderNumber": 15,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "authorities:add",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/06/29 11:05:41",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 16,
|
|
||||||
"authorityName": "修改权限",
|
|
||||||
"orderNumber": 16,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/07/13 09:13:42",
|
|
||||||
"authority": "authorities:edit",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/13 09:13:42",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 17,
|
|
||||||
"authorityName": "删除权限",
|
|
||||||
"orderNumber": 17,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": "authorities:delete",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/06/29 11:05:41",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 18,
|
|
||||||
"authorityName": "登录日志",
|
|
||||||
"orderNumber": 18,
|
|
||||||
"menuUrl": "system/loginRecord",
|
|
||||||
"menuIcon": null,
|
|
||||||
"createTime": "2018/06/29 11:05:41",
|
|
||||||
"authority": null,
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/06/29 11:05:41",
|
|
||||||
"isMenu": 0,
|
|
||||||
"parentId": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"authorityId": 19,
|
|
||||||
"authorityName": "查询登录日志",
|
|
||||||
"orderNumber": 19,
|
|
||||||
"menuUrl": "",
|
|
||||||
"menuIcon": "",
|
|
||||||
"createTime": "2018/07/21 13:56:43",
|
|
||||||
"authority": "loginRecord:view",
|
|
||||||
"checked": 0,
|
|
||||||
"updateTime": "2018/07/21 13:56:43",
|
|
||||||
"isMenu": 1,
|
|
||||||
"parentId": 18
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"code": 0,
|
|
||||||
"msg": "",
|
|
||||||
"count": 3,
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"id": "001",
|
|
||||||
"name": "ADMIN",
|
|
||||||
"remarks": "管理员",
|
|
||||||
"createUser": "admin",
|
|
||||||
"createTime": "2018-05-06 18:15:28"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "002",
|
|
||||||
"name": "TEACHER",
|
|
||||||
"remarks": "教师",
|
|
||||||
"createUser": "admin",
|
|
||||||
"createTime": "2018-05-06 19:15:28"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "003",
|
|
||||||
"name": "STUDENT",
|
|
||||||
"remarks": "学生",
|
|
||||||
"createUser": "admin",
|
|
||||||
"createTime": "2018-05-06 20:15:28"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
{
|
|
||||||
"code": 0,
|
|
||||||
"msg": "获取成功",
|
|
||||||
"data": {
|
|
||||||
"trees": [
|
|
||||||
{
|
|
||||||
"name": "用户管理",
|
|
||||||
"value": "xsgl",
|
|
||||||
"checked": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "用户组管理",
|
|
||||||
"value": "sbgl",
|
|
||||||
"checked": true,
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"name": "角色管理",
|
|
||||||
"value": "sbgl-sbsjlb",
|
|
||||||
"checked": true,
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"name": "添加角色",
|
|
||||||
"value": "sbgl-sbsjlb-dj",
|
|
||||||
"checked": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "角色列表",
|
|
||||||
"value": "sbgl-sbsjlb-yl",
|
|
||||||
"checked": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "管理员管理",
|
|
||||||
"value": "sbgl-sbsjlb",
|
|
||||||
"checked": true,
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"name": "添加管理员",
|
|
||||||
"value": "sbgl-sbsjlb-dj",
|
|
||||||
"checked": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "管理员列表",
|
|
||||||
"value": "sbgl-sbsjlb-yl",
|
|
||||||
"checked": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,128 +0,0 @@
|
||||||
{
|
|
||||||
"code": 0,
|
|
||||||
"msg": "操作成功",
|
|
||||||
"count": 11,
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"id": "001",
|
|
||||||
"username": "zhangsan",
|
|
||||||
"name": "张三",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 0,
|
|
||||||
"role": 0,
|
|
||||||
"email": "zhangsan@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "002",
|
|
||||||
"username": "lisi",
|
|
||||||
"name": "李四",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 0,
|
|
||||||
"role": 0,
|
|
||||||
"email": "lisi@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "003",
|
|
||||||
"username": "wangwu",
|
|
||||||
"name": "王五",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "wangwu@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "004",
|
|
||||||
"username": "zhaoliu",
|
|
||||||
"name": "赵六",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "zhaoliu@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "005",
|
|
||||||
"username": "sunqi",
|
|
||||||
"name": "孙七",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "sunqi@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "006",
|
|
||||||
"username": "zhouba",
|
|
||||||
"name": "周八",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "zhouba@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "007",
|
|
||||||
"username": "wujiu",
|
|
||||||
"name": "吴九",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "wujiu@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "008",
|
|
||||||
"username": "zhengshi",
|
|
||||||
"name": "郑十",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "zhengshi@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "009",
|
|
||||||
"username": "liubei",
|
|
||||||
"name": "刘备",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "liubei@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "010",
|
|
||||||
"username": "zhangfei",
|
|
||||||
"name": "张飞",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "zhangfei@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "011",
|
|
||||||
"username": "guanyu",
|
|
||||||
"name": "关羽",
|
|
||||||
"password": "111111",
|
|
||||||
"status": 1,
|
|
||||||
"role": 1,
|
|
||||||
"email": "guanyu@qq.com",
|
|
||||||
"createTime": "2018-05-06 18:15:28",
|
|
||||||
"logins": 24
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -24,7 +24,7 @@ layui.define([], function(exprots) {
|
||||||
list2: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/permission/list2"
|
list2: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/permission/list2"
|
||||||
},
|
},
|
||||||
article: {
|
article: {
|
||||||
list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/article/list"
|
list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/article/list"
|
||||||
},
|
},
|
||||||
log: {
|
log: {
|
||||||
list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/log/list"
|
list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/log/list"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="utf-8">
|
||||||
<title>添加文章</title>
|
<title>添加文章</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
|
<link rel="stylesheet" href="../../css/sub.css">
|
||||||
<link rel="stylesheet" href="../../css/scroll-bar.css">
|
|
||||||
<link rel="stylesheet" href="../../css/sub-page.css">
|
|
||||||
<link rel="stylesheet" href="//at.alicdn.com/t/font_693759_wytlyqhtdtj1nhfr.css">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="ok-body">
|
<div class="ok-body">
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="utf-8">
|
||||||
<title>编辑文章</title>
|
<title>编辑文章</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
|
<link rel="stylesheet" href="../../css/sub.css">
|
||||||
<link rel="stylesheet" href="../../css/scroll-bar.css">
|
|
||||||
<link rel="stylesheet" href="../../css/sub-page.css">
|
|
||||||
<link rel="stylesheet" href="//at.alicdn.com/t/font_693759_wytlyqhtdtj1nhfr.css">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="ok-body">
|
<div class="ok-body">
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,20 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="utf-8">
|
||||||
<title>文章列表</title>
|
<title>文章列表</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
|
<link rel="stylesheet" href="../../css/sub.css">
|
||||||
<link rel="stylesheet" href="../../lib/nprogress/nprogress.css">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="ok-body">
|
<div class="ok-body">
|
||||||
<!--面包屑导航区域-->
|
<!--面包屑导航区域-->
|
||||||
<div class="ok-body-breadcrumb">
|
<div class="ok-body-breadcrumb">
|
||||||
<span class="layui-breadcrumb">
|
<span class="layui-breadcrumb">
|
||||||
<a><cite>首页</cite></a>
|
<a><cite>首页</cite></a>
|
||||||
<a><cite>常用页面</cite></a>
|
<a><cite>常用页面</cite></a>
|
||||||
<a><cite>文章列表</cite></a>
|
<a><cite>文章列表</cite></a>
|
||||||
</span>
|
</span>
|
||||||
<a class="layui-btn layui-btn-sm" href="javascript:location.replace(location.href);" title="刷新">
|
<a class="layui-btn layui-btn-sm" href="javascript:location.replace(location.href);" title="刷新">
|
||||||
<i class="layui-icon layui-icon-refresh"></i>
|
<i class="layui-icon layui-icon-refresh"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -23,206 +22,198 @@
|
||||||
<!--模糊搜索区域-->
|
<!--模糊搜索区域-->
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
<form class="layui-form layui-col-md12 ok-search">
|
<form class="layui-form layui-col-md12 ok-search">
|
||||||
<input class="layui-input" placeholder="开始日期" autocomplete="off" id="startTime">
|
<input class="layui-input" placeholder="开始日期" autocomplete="off" id="startTime" name="startTime">
|
||||||
<input class="layui-input" placeholder="截止日期" autocomplete="off" id="endTime">
|
<input class="layui-input" placeholder="截止日期" autocomplete="off" id="endTime" name="endTime">
|
||||||
<input class="layui-input" placeholder="请输入标题" autocomplete="off">
|
<input class="layui-input" placeholder="请输入标题" autocomplete="off" name="title">
|
||||||
<button class="layui-btn" lay-submit="" lay-filter="search">
|
<button class="layui-btn" lay-submit="" lay-filter="search">
|
||||||
<i class="layui-icon layui-icon-search"></i>
|
<i class="layui-icon layui-icon-search"></i>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!--工具栏-->
|
|
||||||
<okToolbar>
|
|
||||||
<button class="layui-btn layui-btn-normal" id="batchEnabled">
|
|
||||||
<i class="iconfont icon-shangsheng"></i>批量上架
|
|
||||||
</button>
|
|
||||||
<button class="layui-btn layui-btn-warm" id="batchDisabled">
|
|
||||||
<i class="iconfont icon-web-icon-"></i>批量下架
|
|
||||||
</button>
|
|
||||||
<button class="layui-btn layui-btn-danger" id="batchDel">
|
|
||||||
<i class="layui-icon layui-icon-delete"></i>批量删除
|
|
||||||
</button>
|
|
||||||
<button class="layui-btn" id="addUser">
|
|
||||||
<i class="layui-icon"></i>添加文章
|
|
||||||
</button>
|
|
||||||
<span>共有数据:<i id="countNum"></i> 条</span>
|
|
||||||
</okToolbar>
|
|
||||||
<!--数据表格-->
|
<!--数据表格-->
|
||||||
<table class="layui-hide" id="tableId" lay-filter="tableFilter"></table>
|
<table class="layui-hide" id="tableId" lay-filter="tableFilter"></table>
|
||||||
</div>
|
</div>
|
||||||
<!--js逻辑-->
|
<!--js逻辑-->
|
||||||
<script src="../../lib/layui/layui.js"></script>
|
<script src="../../lib/layui/layui.js"></script>
|
||||||
<script src="../../lib/nprogress/nprogress.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
// 进度条加载提示
|
layui.use(["element", "table", "form", "laydate", "okLayer", "okUtils", "okMock"], function () {
|
||||||
NProgress.start();
|
|
||||||
window.onload = function () {
|
|
||||||
NProgress.done();
|
|
||||||
}
|
|
||||||
// layui相关
|
|
||||||
layui.use(['element', 'table', 'form', 'jquery', 'laydate'], function () {
|
|
||||||
var element = layui.element;
|
|
||||||
var table = layui.table;
|
var table = layui.table;
|
||||||
var form = layui.form;
|
var form = layui.form;
|
||||||
var $ = layui.jquery;
|
var util = layui.util;
|
||||||
var laydate = layui.laydate;
|
var laydate = layui.laydate;
|
||||||
|
var okLayer = layui.okLayer;
|
||||||
|
var okUtils = layui.okUtils;
|
||||||
|
var okMock = layui.okMock;
|
||||||
|
|
||||||
laydate.render({
|
util.fixbar({});
|
||||||
elem: '#startTime',
|
|
||||||
type: "datetime"
|
|
||||||
});
|
|
||||||
|
|
||||||
laydate.render({
|
laydate.render({elem: "#startTime", type: "datetime"});
|
||||||
elem: '#endTime',
|
laydate.render({elem: "#endTime", type: "datetime"});
|
||||||
type: "datetime"
|
|
||||||
});
|
|
||||||
|
|
||||||
table.render({
|
var articleTable = table.render({
|
||||||
elem: '#tableId',
|
elem: "#tableId",
|
||||||
url: '../../data/article.json',
|
url: okMock.api.article.list,
|
||||||
limit: 10,
|
limit: 20,
|
||||||
page: true,
|
page: true,
|
||||||
even: true,
|
even: true,
|
||||||
|
toolbar: "#toolbarTpl",
|
||||||
|
size: "sm",
|
||||||
cols: [[
|
cols: [[
|
||||||
{type: 'checkbox'},
|
{type: "checkbox"},
|
||||||
{field: 'id', title: 'ID', width: 80, sort: true},
|
{field: "id", title: "ID", width: 80, sort: true},
|
||||||
{field: 'title', title: '标题', width: 350},
|
{field: "title", title: "标题", width: 350},
|
||||||
{field: 'url', title: '链接', width: 250, templet: '#urlTpl'},
|
{field: "url", title: "链接", width: 250, templet: "#urlTpl"},
|
||||||
{field: 'readSize', title: '阅读量', width: 80},
|
{field: "readSize", title: "阅读量", width: 80},
|
||||||
{field: 'publisher', title: '发布者', width: 100},
|
{field: "publisher", title: "发布者", width: 100},
|
||||||
{field: 'isTop', title: '置顶', width: 100, templet: '#topTpl'},
|
{field: "isTop", title: "是否置顶", width: 100, align: "center", templet: "#topTpl"},
|
||||||
{field: 'status', title: '状态', width: 100, templet: '#statusTpl'},
|
{field: "status", title: "发布状态", width: 110, align: "center", templet: "#statusTpl"},
|
||||||
{title: '操作', width: 200, templet: '#operationTpl', align: 'center'}
|
{title: "操作", width: 200, align: "center", templet: "#operationTpl"}
|
||||||
]],
|
]],
|
||||||
done: function (res, curr, count) {
|
done: function (res, curr, count) {
|
||||||
$("#countNum").text(count);
|
console.log(res, curr, count)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
form.on('submit(search)', function () {
|
form.on("submit(search)", function () {
|
||||||
layer.msg('正在查询,请稍后...');
|
articleTable.reload({
|
||||||
|
where: data.field,
|
||||||
|
page: {curr: 1}
|
||||||
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
table.on('tool(tableFilter)', function (obj) {
|
table.on("toolbar(tableFilter)", function (obj) {
|
||||||
var data = obj.data;
|
switch (obj.event) {
|
||||||
var layEvent = obj.event;
|
case "batchEnabled":
|
||||||
if (layEvent === 'edit') {
|
batchEnabled();
|
||||||
layer.open({
|
break;
|
||||||
title: '编辑用户',
|
case "batchDisabled":
|
||||||
type: 2,
|
batchDisabled();
|
||||||
shade: false,
|
break;
|
||||||
maxmin: true,
|
case "batchDel":
|
||||||
shade: 0.5,
|
batchDel();
|
||||||
area: ['90%', '90%'],
|
break;
|
||||||
content: 'article-edit.html',
|
case "add":
|
||||||
zIndex: layer.zIndex,
|
add();
|
||||||
end: function () {
|
break;
|
||||||
$(".layui-laypage-btn")[0].click();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else if (layEvent === 'del') {
|
|
||||||
layer.confirm("确定要删除吗?", {skin: 'layui-layer-lan', icon: 2, title: '提示', anim: 6}, function () {
|
|
||||||
layer.msg("操作成功!", {icon: 1, time: 1000});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#batchEnabled").click(function () {
|
table.on("tool(tableFilter)", function (obj) {
|
||||||
layer.confirm("确定要批量上架吗?", {skin: 'layui-layer-lan', icon: 3, title: '提示', anim: 1}, function () {
|
var data = obj.data;
|
||||||
var checkStatus = table.checkStatus('tableId');
|
switch (obj.event) {
|
||||||
var rows = checkStatus.data.length;
|
case "edit":
|
||||||
if (rows > 0) {
|
edit(data.id);
|
||||||
var idsStr = "";
|
break;
|
||||||
for (var i = 0; i < checkStatus.data.length; i++) {
|
case "del":
|
||||||
idsStr += checkStatus.data[i].id + ',';
|
del(data.id);
|
||||||
}
|
break;
|
||||||
console.log("选择的id-->" + idsStr);
|
}
|
||||||
layer.msg("操作成功!", {icon: 1, time: 1000}, function () {
|
});
|
||||||
$(".layui-laypage-btn")[0].click();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
layer.msg('未选择有效数据', {
|
|
||||||
offset: 't',
|
|
||||||
anim: 6
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
})
|
|
||||||
|
|
||||||
$("#batchDisabled").click(function () {
|
function batchEnabled() {
|
||||||
layer.confirm("确定要批量下架吗?", {skin: 'layui-layer-lan', icon: 3, title: '提示', anim: 2}, function () {
|
okLayer.confirm("确定要批量上架吗?", function (index) {
|
||||||
var checkStatus = table.checkStatus('tableId');
|
layer.close(index);
|
||||||
var rows = checkStatus.data.length;
|
var idsStr = okUtils.table.batchCheck(table);
|
||||||
if (rows > 0) {
|
if (idsStr) {
|
||||||
var idsStr = "";
|
okUtils.ajax("/article/batchNormal", "post", {idsStr: idsStr}).done(function (response) {
|
||||||
for (var i = 0; i < checkStatus.data.length; i++) {
|
console.log(response)
|
||||||
idsStr += checkStatus.data[i].id + ',';
|
okUtils.table.successMsg("批量上架成功");
|
||||||
}
|
}).fail(function (error) {
|
||||||
console.log("选择的id-->" + idsStr);
|
console.log(error)
|
||||||
layer.msg("操作成功!", {icon: 1, time: 1000}, function () {
|
|
||||||
$(".layui-laypage-btn")[0].click();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
layer.msg('未选择有效数据', {
|
|
||||||
offset: 't',
|
|
||||||
anim: 6
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
}
|
||||||
|
|
||||||
$("#batchDel").click(function () {
|
function batchDisabled(){
|
||||||
layer.confirm("确定要批量删除吗?", {skin: 'layui-layer-lan', icon: 2, title: '提示', anim: 6}, function () {
|
okLayer.confirm("确定要批量下架吗?", function (index) {
|
||||||
var checkStatus = table.checkStatus('tableId');
|
layer.close(index);
|
||||||
var rows = checkStatus.data.length;
|
var idsStr = okUtils.table.batchCheck(table);
|
||||||
if (rows > 0) {
|
if (idsStr) {
|
||||||
var idsStr = "";
|
okUtils.ajax("/article/batchStop", "post", {idsStr: idsStr}).done(function (response) {
|
||||||
for (var i = 0; i < checkStatus.data.length; i++) {
|
console.log(response)
|
||||||
idsStr += checkStatus.data[i].id + ',';
|
okUtils.table.successMsg("批量下架成功");
|
||||||
}
|
}).fail(function (error) {
|
||||||
console.log("选择的id-->" + idsStr);
|
console.log(error)
|
||||||
layer.msg("操作成功!", {icon: 1, time: 1000}, function () {
|
|
||||||
$(".layui-laypage-btn")[0].click();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
layer.msg('未选择有效数据', {
|
|
||||||
offset: 't',
|
|
||||||
anim: 6
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
}
|
||||||
|
|
||||||
$("#addUser").click(function () {
|
function batchDel(){
|
||||||
layer.open({
|
okLayer.confirm("确定要批量删除吗?", function (index) {
|
||||||
title: '添加文章',
|
layer.close(index);
|
||||||
type: 2,
|
var idsStr = okUtils.table.batchCheck(table);
|
||||||
shade: false,
|
if (idsStr) {
|
||||||
maxmin: true,
|
okUtils.ajax("/article/batchDel", "post", {idsStr: idsStr}).done(function (response) {
|
||||||
shade: 0.5,
|
console.log(response)
|
||||||
anim: 4,
|
okUtils.table.successMsg("批量删除成功");
|
||||||
area: ['90%', '90%'],
|
}).fail(function (error) {
|
||||||
content: 'article-add.html',
|
console.log(error)
|
||||||
zIndex: layer.zIndex,
|
});
|
||||||
// skin: 'layui-layer-molv',
|
|
||||||
end: function () {
|
|
||||||
$(".layui-laypage-btn")[0].click();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
}
|
||||||
|
|
||||||
|
function add () {
|
||||||
|
okLayer.open("添加文章", "article-add.html", "90%", "90%", null, function () {
|
||||||
|
articleTable.reload();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function edit (id) {
|
||||||
|
okLayer.open("编辑文章", "article-edit.html?id=" + id, "90%", "90%", null, function () {
|
||||||
|
articleTable.reload();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function del (id) {
|
||||||
|
okLayer.confirm("确定要删除吗?", function () {
|
||||||
|
okUtils.ajax("/article/batchDel", "post", {idsStr: id}).done(function (response) {
|
||||||
|
console.log(response)
|
||||||
|
okUtils.table.successMsg("删除成功");
|
||||||
|
}).fail(function (error) {
|
||||||
|
console.log(error)
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<!--模板-->
|
<!-- 头工具栏模板 -->
|
||||||
|
<script type="text/html" id="toolbarTpl">
|
||||||
|
<div class="layui-btn-container">
|
||||||
|
<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="batchEnabled"><i class="iconfont icon-shangsheng"></i>批量上架</button>
|
||||||
|
<button class="layui-btn layui-btn-sm layui-btn-warm" lay-event="batchDisabled"><i class="iconfont icon-web-icon-"></i>批量下架</button>
|
||||||
|
<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="batchDel"><i class="layui-icon layui-icon-delete"></i>批量删除</button>
|
||||||
|
<button class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon"></i>添加文章</button>
|
||||||
|
</div>
|
||||||
|
</script>
|
||||||
|
<!-- 链接模板 -->
|
||||||
<script type="text/html" id="urlTpl">
|
<script type="text/html" id="urlTpl">
|
||||||
<a href="{{d.url}}" target="_blank">{{d.url}}</a>
|
<a href="{{d.url}}" target="_blank">{{d.url}}</a>
|
||||||
</script>
|
</script>
|
||||||
<script type="text/html" id="topTpl">
|
<!-- 是否指顶模板
|
||||||
<input type="checkbox" name="isTop" value="{{d.isTop}}" lay-skin="switch" lay-text="是|否" {{ d.isTop== true ? 'checked' : ''}}>
|
<input type="checkbox" name="isTop" value="{{d.isTop}}" lay-skin="switch" lay-text="是|否" {{ d.isTop== true ? 'checked' : ''}}>
|
||||||
|
-->
|
||||||
|
<script type="text/html" id="topTpl">
|
||||||
|
{{# if(d.isTop == true){ }}
|
||||||
|
<span class="layui-btn layui-btn-normal layui-btn-xs">已置顶</span>
|
||||||
|
{{# } else if(d.isTop == false) { }}
|
||||||
|
<span class="layui-btn layui-btn-warm layui-btn-xs">未置顶</span>
|
||||||
|
{{# } }}
|
||||||
</script>
|
</script>
|
||||||
|
<!-- 发布状态模板
|
||||||
|
<input type="checkbox" name="top" value="{{d.status}}" lay-skin="switch" lay-text="已发布|未发布" {{ d.status== true ? 'checked' : ''}}>
|
||||||
|
-->
|
||||||
<script type="text/html" id="statusTpl">
|
<script type="text/html" id="statusTpl">
|
||||||
<input type="checkbox" name="top" value="{{d.status}}" lay-skin="switch" lay-text="上架|下架" {{ d.status== true ? 'checked' : ''}}>
|
{{# if(d.status == true){ }}
|
||||||
|
<span class="layui-btn layui-btn-normal layui-btn-xs">已发布</span>
|
||||||
|
{{# } else if(d.status == false) { }}
|
||||||
|
<span class="layui-btn layui-btn-warm layui-btn-xs">未发布</span>
|
||||||
|
{{# } }}
|
||||||
</script>
|
</script>
|
||||||
|
<!-- 行工具栏模板 -->
|
||||||
<script type="text/html" id="operationTpl">
|
<script type="text/html" id="operationTpl">
|
||||||
<a href="javascript:;" title="编辑" lay-event="edit"><i class="layui-icon"></i></a>
|
<a href="javascript:;" title="编辑" lay-event="edit"><i class="layui-icon"></i></a>
|
||||||
<a href="javascript:;" title="删除" lay-event="del"><i class="layui-icon"></i></a>
|
<a href="javascript:;" title="删除" lay-event="del"><i class="layui-icon"></i></a>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="utf-8">
|
||||||
<title>用户列表</title>
|
<title>用户列表</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<link rel="stylesheet" href="../../css/sub.css">
|
<link rel="stylesheet" href="../../css/sub.css">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue