diff --git a/doc/sql/20230413.sql b/doc/sql/20230413.sql index c139cb4..4a8dfcd 100644 --- a/doc/sql/20230413.sql +++ b/doc/sql/20230413.sql @@ -107,4 +107,15 @@ VALUES (1, 601); INSERT INTO `sys_menu` (menu_id, `parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`) VALUES (602, 601, '删除', null, 'novel:book:remove', '2', null, '6'); INSERT INTO sys_role_menu (role_id, menu_id) -VALUES (1, 602); \ No newline at end of file +VALUES (1, 602); + +INSERT +INTO `sys_menu`(`menu_id`, `parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`) +VALUES (603, 600, '评论管理', 'novel/bookComment', 'novel:bookComment:bookComment', '1', 'fa', '10'); +INSERT INTO sys_role_menu (role_id, menu_id) +VALUES (1, 603); + +INSERT INTO `sys_menu` (menu_id, `parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`) +VALUES (604, 603, '删除', null, 'novel:bookComment:remove', '2', null, '6'); +INSERT INTO sys_role_menu (role_id, menu_id) +VALUES (1, 604); \ No newline at end of file diff --git a/doc/sql/novel_plus.sql b/doc/sql/novel_plus.sql index 16ba03e..70ced45 100644 --- a/doc/sql/novel_plus.sql +++ b/doc/sql/novel_plus.sql @@ -2936,4 +2936,15 @@ VALUES (1, 601); INSERT INTO `sys_menu` (menu_id, `parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`) VALUES (602, 601, '删除', null, 'novel:book:remove', '2', null, '6'); INSERT INTO sys_role_menu (role_id, menu_id) -VALUES (1, 602); \ No newline at end of file +VALUES (1, 602); + +INSERT +INTO `sys_menu`(`menu_id`, `parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`) +VALUES (603, 600, '评论管理', 'novel/bookComment', 'novel:bookComment:bookComment', '1', 'fa', '10'); +INSERT INTO sys_role_menu (role_id, menu_id) +VALUES (1, 603); + +INSERT INTO `sys_menu` (menu_id, `parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`) +VALUES (604, 603, '删除', null, 'novel:bookComment:remove', '2', null, '6'); +INSERT INTO sys_role_menu (role_id, menu_id) +VALUES (1, 604); \ No newline at end of file diff --git a/novel-admin/src/main/resources/static/js/appjs/novel/bookComment/bookComment.js b/novel-admin/src/main/resources/static/js/appjs/novel/bookComment/bookComment.js index 8adfe45..05a7cee 100644 --- a/novel-admin/src/main/resources/static/js/appjs/novel/bookComment/bookComment.js +++ b/novel-admin/src/main/resources/static/js/appjs/novel/bookComment/bookComment.js @@ -59,49 +59,31 @@ function load() { return arguments[2] + 1; } }, - { - field: 'id', - title: '主键' - }, - - { - field: 'bookId', - title: '小说ID' - }, + { + field: 'bookId', + title: '小说ID' + }, - - { - field: 'commentContent', - title: '评价内容' - }, + { + field: 'commentContent', + title: '评价内容' + }, - - { - field: 'replyCount', - title: '回复数量' - }, - - { - field: 'auditStatus', - title: '审核状态,0:待审核,1:审核通过,2:审核不通过' - }, + { + field: 'createTime', + title: '评价时间' + }, - - { - field: 'createTime', - title: '评价时间' - }, - - { - field: 'createUserId', - title: '评价人' - }, + { + field: 'createUserId', + title: '评价人ID' + }, - - { + + { title: '操作', field: 'id', align: 'center', @@ -120,9 +102,11 @@ function load() { }] }); } + function reLoad() { $('#exampleTable').bootstrapTable('refresh'); } + function add() { layer.open({ type: 2, @@ -133,6 +117,7 @@ function add() { content: prefix + '/add' // iframe的url }); } + function detail(id) { layer.open({ type: 2, @@ -143,6 +128,7 @@ function detail(id) { content: prefix + '/detail/' + id // iframe的url }); } + function edit(id) { layer.open({ type: 2, @@ -153,6 +139,7 @@ function edit(id) { content: prefix + '/edit/' + id // iframe的url }); } + function remove(id) { layer.confirm('确定要删除选中的记录?', { btn: ['确定', '取消'] @@ -177,6 +164,7 @@ function remove(id) { function resetPwd(id) { } + function batchRemove() { var rows = $('#exampleTable').bootstrapTable('getSelections'); // 返回所有选择的行,当没有选择的记录时,返回一个空数组 if (rows.length == 0) { diff --git a/novel-admin/src/main/resources/templates/novel/bookComment/bookComment.html b/novel-admin/src/main/resources/templates/novel/bookComment/bookComment.html index 79dea21..e1049fd 100644 --- a/novel-admin/src/main/resources/templates/novel/bookComment/bookComment.html +++ b/novel-admin/src/main/resources/templates/novel/bookComment/bookComment.html @@ -7,30 +7,30 @@