diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java index 3da43269..c83af282 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java @@ -99,6 +99,17 @@ public class SysNoticeController extends BaseController return toAjax(noticeService.updateNotice(notice)); } + /** + * 查询公告详细 + */ + @RequiresPermissions("system:notice:list") + @GetMapping("/view/{noticeId}") + public String view(@PathVariable("noticeId") Long noticeId, ModelMap mmap) + { + mmap.put("notice", noticeService.selectNoticeById(noticeId)); + return prefix + "/view"; + } + /** * 删除公告 */ diff --git a/ruoyi-admin/src/main/resources/templates/system/notice/notice.html b/ruoyi-admin/src/main/resources/templates/system/notice/notice.html index eb7d30dd..4ad5c895 100644 --- a/ruoyi-admin/src/main/resources/templates/system/notice/notice.html +++ b/ruoyi-admin/src/main/resources/templates/system/notice/notice.html @@ -59,6 +59,7 @@ $(function() { var options = { url: prefix + "/list", + viewUrl: prefix + "/view/{id}", createUrl: prefix + "/add", updateUrl: prefix + "/edit/{id}", removeUrl: prefix + "/remove", @@ -71,9 +72,12 @@ title : '序号' }, { - field : 'noticeTitle', - title : '公告标题' - }, + field: 'noticeTitle', + title: '公告标题', + formatter: function (value, row, index) { + return '' + value + ''; + } + }, { field: 'noticeType', title: '公告类型', diff --git a/ruoyi-admin/src/main/resources/templates/system/notice/view.html b/ruoyi-admin/src/main/resources/templates/system/notice/view.html new file mode 100644 index 00000000..38791c64 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/notice/view.html @@ -0,0 +1,27 @@ + + +
+项目介绍
RuoYi开源项目是为企业用户定制的后台脚手架框架,为企业打造的一站式解决方案,降低企业开发成本,提升开发效率。主要包括用户管理、角色管理、部门管理、菜单管理、参数管理、字典管理、岗位管理、定时任务、服务监控、登录日志、操作日志、代码生成等功能。其中,还支持多数据源、数据权限、国际化、Redis缓存、Docker部署、滑动验证码、第三方认证登录、分布式事务、分布式文件存储、分库分表处理等技术特点。
官网及演示
若依官网地址: http://ruoyi.vip
若依文档地址: http://doc.ruoyi.vip
演示地址【不分离版】: http://demo.ruoyi.vip
演示地址【分离版本】: http://vue.ruoyi.vip
演示地址【微服务版】: http://cloud.ruoyi.vip
演示地址【移动端版】: http://h5.ruoyi.vip