diff --git a/src/main/java/cn/com/tenlion/operator/controller/route/content/ContentRouteController.java b/src/main/java/cn/com/tenlion/operator/controller/route/content/ContentRouteController.java index 96e6c91..ba606fb 100644 --- a/src/main/java/cn/com/tenlion/operator/controller/route/content/ContentRouteController.java +++ b/src/main/java/cn/com/tenlion/operator/controller/route/content/ContentRouteController.java @@ -35,4 +35,10 @@ public class ContentRouteController extends DefaultBaseController { return new ModelAndView("content/list"); } + @GetMapping("view") + public ModelAndView view() { + return new ModelAndView("content/view-content"); + } + + } \ No newline at end of file diff --git a/src/main/resources/templates/content/list.html b/src/main/resources/templates/content/list.html index a6d8ab6..bec7362 100644 --- a/src/main/resources/templates/content/list.html +++ b/src/main/resources/templates/content/list.html @@ -135,6 +135,15 @@ var rowData = '添加子元素'; return rowData; } + }, + { + field: 'viewContent', fixed: 'right', width: 90, title: '预览', align: 'center', + templet: function (row) { + return '' + + ' 预览' + } } ] ], diff --git a/src/main/resources/templates/content/view-content.html b/src/main/resources/templates/content/view-content.html new file mode 100644 index 0000000..ccbfa6c --- /dev/null +++ b/src/main/resources/templates/content/view-content.html @@ -0,0 +1,134 @@ + + + +
+