diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl index 84ad4fb2..80bd6e40 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl @@ -23,7 +23,7 @@ :disabled="false" :style="{width: '100%'}" :clearable="true" - placeholder="请输入栏目管理名称"> + placeholder="请输入栏目名称">
标签:${'$'}{field.typetitle} @@ -35,6 +35,9 @@ +
+ 不能将父级别栏目移动到自身子级栏目 +
@@ -52,55 +55,69 @@
- 列表:常用于带列表、详情的业务,例如:新闻列表、图片列表
- 封面:常用单篇文章显示,例如:关于我们、公司介绍
- 跳转:栏目外链接,需要配合逻辑判断<#if>和自定义链接使用
- 修改栏目时如果该栏目存在文章则不能修改栏目类型 + 列表:列表->详情 的页面,例如:新闻列表、图片列表,可以多篇文章
+ 单篇:单篇文章,例如:关于我们、公司介绍,只能发一篇文章
+ 拦截:外链接,需要配合逻辑判断<#if>自定义链接标签使用使用,不能发文章
+ 修改栏目时,如果该栏目下存在文章栏目类型则不能修改
- - - + + + + +
+ 文章字段不满足,使用代码生成器生成自定义模型来扩展,
+ 大概步骤:代码生成器->复制自定义模型->打开系统后台的自定义管理->选择自定义模型->导入->栏目 自定义模型 绑定 +
+
- - + justify="start" align="top" > + + + placeholder="请选择详情模板"> - - - - - - + + + +
- 如果发布时候文章字段信息不够,可以采用铭飞代码生成器生成自定义模型,再通过“自定义管理->自定义模型->导入”功能导入模型,注意类型是cms + 标签:${'$'}{field.typeurl}
+ + + + + +
@@ -115,27 +132,11 @@ :label="item">
- 当栏目类型为列表时有效 + 当栏目类型为列表时有效
- - - - - - - -
- 标签:${'$'}{field.typeurl} -
-
-
- 类型不满足可以在自定义字典菜单中新增,字段类型为“栏目属性” + 可以在自定义字典中管理
- + + placeholder="请输入栏目生成路径,默认栏目名称拼音全拼"> +
+ 默认根据栏目名称的拼音全拼,如果栏目名称含有特殊字符请手动输入 +
- + + placeholder="关键字,有助于搜索">
- 标签:${'$'}{field.typekeyword} + 标签:${'$'}{field.typekeyword}, + 用于SEO优化
- + + placeholder="栏目描述,有助于搜索">
标签:${'$'}{field.typedescrip} + 用于SEO优化
@@ -210,8 +216,8 @@ list-type="picture-card">
- 标签:${'$'}{field.typedescrip}
- 最多上传1张图片 + 只能上传1张图片 + 标签:${'$'}<#noparse >{@ms:file field.typelitpic/}
@@ -283,7 +289,7 @@ "label": "列表" }, { "value": "2", - "label": "封面" + "label": "单篇" },{ "value": "3", "label": "链接" @@ -589,7 +595,7 @@ this.categoryFlagOptionsGet(); this.form.id = ms.util.getParameter("id"); this.form.childId = ms.util.getParameter("childId");// 判断是否增加子栏目 - + this.form.categoryId = '0'; // 判断三种状态,默认为新增状态 this.categoryTypeDisabled = false;// 控制栏目分类是否可编辑 if (this.form.id != undefined && (this.form.childId == undefined || this.form.childId == "undefined")) { diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl index e1435029..20bc87d7 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -36,13 +36,19 @@ - +
- 标签:${'$'}{field.typetitle}
- 不能为链接和封面类型新建文章 + 标签:${'$'}{field.typetitle} + 不能选择封面、链接栏目类型,不能选择父栏目
diff --git a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl index 02ce7747..aa485c20 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl @@ -51,12 +51,12 @@ methods: { handleNodeClick: function (data) { if (data.categoryType == '1') { - this.action = ms.manager + "/cms/content/main.do?categoryId=" + data.id; + this.action = ms.manager + "/cms/content/main.do?categoryId=" + data.id+"&leaf="+data.leaf; } else if (data.categoryType == '2') { this.action = ms.manager + "/cms/content/form.do?categoryId=" + data.id + "&type=2"; //id=0时为最顶级节点全部节点 } else if (data.id == 0){ - this.action = ms.manager + "/cms/content/main.do"; + this.action = ms.manager + "/cms/content/main.do?leaf=true"; } }, treeList: function () { diff --git a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl index 14e8e471..c204a1b2 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl @@ -11,7 +11,7 @@ <@shiro.hasPermission name="cms:content:save"> - 新增 + 新增 <@shiro.hasPermission name="cms:content:del"> 删除 @@ -269,7 +269,8 @@ // 文章类型 contentType: null, categoryId: '' - } + }, + leaf:1 }, methods: { //查询列表 @@ -470,6 +471,7 @@ this.contentCategoryIdOptionsGet(); this.contentTypeOptionsGet(); this.form.categoryId = ms.util.getParameter("categoryId"); + this.leaf = ms.util.getParameter("leaf"); if (history.hasOwnProperty("state")) { this.form = history.state.form; this.currentPage = history.state.page.pageNo; diff --git a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl index a288d687..c134bfd7 100644 --- a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl @@ -23,7 +23,7 @@ :label="item">
- 更新主页,如果系统存在引导页面可以手动修改主页位置文件名,default.html引导页面index.html主页。 + 一般选择index.htm模版
@@ -36,7 +36,9 @@ placeholder="请输入主页位置">
- 主页位置htm文件名一般为index.html或default.html + 一般为index.html或default.html, + 如果是引导页面->首页,可以手动调整主页模版与主页设置,先生成引导页,再生成首页。一般default.html为引导页面index.html为主页。 +
@@ -58,7 +60,7 @@ placeholder="请选择文章栏目">
- 生成对应栏目属性为列表的内容数据,例如:新闻详情、产品详情 + 生成指定栏目下的文章内容
@@ -79,7 +81,7 @@ type="date">
- 根据内容的发布时间来生成,例如:2020-10-10,则生成10月10号以后发布的内容 + 根据内容的发布时间来生成,例如:2021-01-01,则生成21年01月01号以后发布的文章,如果遇到内容没有生成可以调整时间
@@ -101,7 +103,7 @@ placeholder="请选择文章栏目">
- 生成栏目属性为列表、封面的内容数据,例如:关于我们、公司介绍、新闻列表、产品列表 + 生成栏目类型为列表的数据,例如:新闻列表、产品列表
@@ -308,7 +310,7 @@ padding:20px; outline:none; outline-offset:-1px; - height:260px; + height:300px; max-width:100%; background-color:#FFFFFF; flex-direction:column; @@ -456,7 +458,7 @@ padding:20px; outline:none; outline-offset:-1px; - height:260px; + height:300px; max-width:100%; background-color:#FFFFFF; flex-direction:column; @@ -601,7 +603,7 @@ padding:20px; outline:none; outline-offset:-1px; - height:260px; + height:300px; max-width:100%; background-color:#FFFFFF; flex-direction:column; diff --git a/src/main/webapp/static/css/app.css b/src/main/webapp/static/css/app.css index c7d0450e..aca4cb42 100644 --- a/src/main/webapp/static/css/app.css +++ b/src/main/webapp/static/css/app.css @@ -80,6 +80,16 @@ a:link,a:visited,a:active{text-decoration: none; color:#409EFF;} line-height: 18px; padding: 4px 0; } +.ms-form-tip b{ + color: #e6a23c; +} +.ms-form-tip a:hover{ + text-decoration: underline !important; +} +.ms-form-tip i{ + background-color: #f0f9eb; + color: #67c23a; +} .ms-select{ display: block; }