Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
01a99b3f
Commit
01a99b3f
authored
May 29, 2021
by
msgroup
Browse files
1、注释修改
2、修改栏目发布问题
parent
60d3fd09
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
01a99b3f
...
...
@@ -23,7 +23,7 @@
:disabled="false"
:style="
{
width
:
'
100
%'
}
"
:clearable="true"
placeholder="请输入栏目
管理
名称">
placeholder="请输入栏目名称">
</el-input>
<div class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}{
field
.typetitle
}
</a>
...
...
@@ -35,6 +35,9 @@
<tree-select ref="tree" :props="
{
value
:
'
id
'
,
label
:
'
categoryTitle
'
,
children
:
'
children
'
}
"
:options="treeList" :style="
{
width
:
'
100
%'
}
"
v-model="form.categoryId"></tree-select>
<div class="ms-form-tip">
不能将父级别栏目移动到自身子级栏目
</div>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -52,55 +55,69 @@
</el-radio>
</el-radio-group>
<div class="ms-form-tip">
列表:
常用于带列表、详情的业务
,例如:新闻列表、图片列表<br>
封面:常用单篇文章显示
,例如:关于我们、公司介绍<br>
跳转:栏目
外链接,需要配合逻辑判断<#if>
和自定义链接使用
<br>
修改栏目时如果该栏目存在文章则不能修改
栏目类型
列表:
<b>列表->详情</b> 的页面
,例如:
<i>
新闻列表、图片列表<
/i>,可以多篇文章<
br>
单篇:<b>单篇文章</b>
,例如:
<i>
关于我们、公司介绍<
/i>,只能发一篇文章<
br>
拦截:
外链接,需要配合逻辑判断
<b>
<#if>
</b>和<b>自定义链接</b>标签使用使用,不能发文章
<br>
修改栏目时
,
如果该栏目
下
存在文章
栏目类型
则不能修改
</div>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="自定义顺序" prop="categorySort">
<el-input-number
v-model="form.categorySort"
:disabled="false"
controls-position="">
</el-input-number>
<el-form-item prop="mdiyModelId" label="自定义模型">
<el-select v-model="form.mdiyModelId"
:style="
{
width
:
'
100
%'
}
"
:filterable="false"
:disabled="false"
:multiple="false" :clearable="true"
placeholder="请选择自定义模型">
<el-option v-for='item in mdiyModelIdOptions' :key="item.id" :value="item.id"
:label="item.modelName"></el-option>
</el-select>
<div class="ms-form-tip">
文章字段不满足,使用<b>代码生成器</b>生成<b>自定义模型</b>来扩展,<br/>
大概步骤:<i>代码生成器->复制自定义模型->打开系统后台的自定义管理->选择自定义模型->导入->栏目 自定义模型 绑定</i>
</div>
</el-form-item>
</el-col>
</el-row>
<el-row
gutter="0"
justify="start" align="top"
v-if="form.categoryType != '3'"
>
<el-col span="12">
<el-form-item prop="categoryUrl"
:
label="form.categoryType
=='1'? '内容模板' : '封面模板
'">
justify="start" align="top" >
<el-col span="12"
>
<el-form-item prop="categoryUrl" label="
详情模板" v-if="
form.categoryType
!= '3
'">
<el-select v-model="form.categoryUrl"
:style="
{
width
:
'
100
%'
}
"
:filterable="true"
:disabled="false"
:multiple="false" :clearable="true"
placeholder="请选择
内容
模板">
placeholder="请选择
详情
模板">
<el-option v-for='item in categoryUrlOptions' :key="item" :value="item"
:label="item"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item prop="mdiyModelId" label="自定义模型">
<el-select v-model="form.mdiyModelId"
:style="
{
width
:
'
100
%'
}
"
:filterable="false"
:disabled="false"
:multiple="false" :clearable="true"
placeholder="请选择栏目的自定义模型">
<el-option v-for='item in mdiyModelIdOptions' :key="item.id" :value="item.id"
:label="item.modelName"></el-option>
</el-select>
<el-form-item prop="categoryDiyUrl" label="自定义链接" v-if="form.categoryType == '3'">
<el-input
:disabled="false"
v-model="form.categoryDiyUrl"
:style="
{
width
:
'
100
%'
}
"
placeholder="请输入自定义链接">
</el-input>
<div class="ms-form-tip">
如果发布时候文章字段信息不够,可以采用铭飞代码生成器生成自定义模型,再通过“自定义管理->自定义模型->导入”功能导入模型,注意类型是cms
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}{
field
.typeurl
}
</a>
</div>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="自定义顺序" prop="categorySort">
<el-input-number
v-model="form.categorySort"
:disabled="false"
controls-position="">
</el-input-number>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="0" justify="start" align="top" >
<el-col span="12">
...
...
@@ -115,27 +132,11 @@
:label="item"></el-option>
</el-select>
<div class="ms-form-tip">
当栏目类型为
列表
时有效
当栏目类型为
<b>列表</b>
时有效
</div>
</el-form-item>
</el-col>
<el-col span="12">
</el-col>
<el-col span="12" v-if="form.categoryType == 3">
<el-form-item prop="categoryDiyUrl" label="自定义链接">
<el-input
:disabled="false"
v-model="form.categoryDiyUrl"
:style="
{
width
:
'
100
%'
}
"
placeholder="请输入自定义链接">
</el-input>
<div class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}{
field
.typeurl
}
</a>
</div>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter="0"
...
...
@@ -152,47 +153,52 @@
:label="item.dictLabel"></el-option>
</el-select>
<div class="ms-form-tip">
类型不满足
可以在自定义字典
菜单中新增,字段类型为“栏目属性”
可以在自定义字典
中管理
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="
栏目拼音
" prop="categoryPinyin">
<el-form-item label="
生成路径
" prop="categoryPinyin">
<el-input
v-model="form.categoryPinyin"
:disabled="false"
:readonly="false"
:style="
{
width
:
'
100
%'
}
"
:clearable="true"
placeholder="
默认拼音根据名称生成,含有特殊字符请手动输入
">
placeholder="
请输入栏目生成路径,默认栏目名称拼音全拼
">
</el-input>
<div class="ms-form-tip">
默认根据栏目名称的拼音全拼,如果栏目名称含有特殊字符请手动输入
</div>
</el-form-item>
</el-col>
<el-col :span="12">
</el-col>
</el-row>
<el-form-item label="
栏目管理
关键字" prop="categoryKeyword" >
<el-form-item label="关键字" prop="categoryKeyword" >
<el-input
type="textarea" :rows="5"
:disabled="false"
v-model="form.categoryKeyword"
:style="
{
width
:
'
100
%'
}
"
placeholder="
栏目管理
关键字,有助于搜索">
placeholder="关键字,有助于搜索">
</el-input>
<div class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}{
field
.typekeyword
}
</a>
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}{
field
.typekeyword
}
</a>,
用于SEO优化
</div>
</el-form-item>
<el-form-item label="
栏目管理
描述" prop="categoryDescrip">
<el-form-item label="描述" prop="categoryDescrip">
<el-input
type="textarea" :rows="5"
:disabled="false"
v-model="form.categoryDescrip"
:style="
{
width
:
'
100
%'
}
"
placeholder="栏目
管理
描述,
对栏目管理关键字的扩展
">
placeholder="栏目描述,
有助于搜索
">
</el-input>
<div class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}{
field
.typedescrip
}
</a>
用于SEO优化
</div>
</el-form-item>
<el-form-item label="缩略图" prop="categoryImg" >
...
...
@@ -210,8 +216,8 @@
list-type="picture-card">
<i class="el-icon-plus"></i>
<div slot="tip" class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}{
field
.typedescrip
}
</a><br/>
最多上传1张图片
只能上传1张图片
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">$
{
'$'
}
<#noparse >
{
@
ms
:
file
field
.typelitpic
/
}
</#noparse></a><br/>
</div>
</el-upload>
</el-form-item>
...
...
@@ -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
")) {
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
01a99b3f
...
...
@@ -36,13 +36,19 @@
</el-col>
<el-col span="12" v-if="returnIsShow">
<el-form-item label="所属栏目" prop="categoryId">
<tree-select :props="
{
value
:
'
id
'
,
label
:
'
categoryTitle
'
,
children
:
'
children
'
}
"
:options="contentCategoryIdOptions" :style="
{
width
:
'
100
%'
}
"
@change="categoryChange"
v-model="form.categoryId"></tree-select>
<treeselect v-model="form.categoryId"
:disable-branch-nodes="true"
:normalizer="node=>
{
return
{
id
:
node
.id
,
label
:
node
.categoryTitle
,
children
:
node
.children
}}
"
@change="categoryChange"
:options="contentCategoryIdOptions" placeholder="请选择"/>
<div class="ms-form-tip">
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">$
{
'$'
}{
field
.typetitle
}
</a>
<br/>
不能
为链接和封面类型新建文章
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html" target="_blank">$
{
'$'
}{
field
.typetitle
}
</a>
不能
选择封面、链接栏目类型,不能选择父栏目
</div>
</el-form-item>
</el-col>
...
...
src/main/webapp/WEB-INF/manager/cms/content/index.ftl
View file @
01a99b3f
...
...
@@ -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
()
{
...
...
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
View file @
01a99b3f
...
...
@@ -11,7 +11,7 @@
<el-header class="ms-header" height="50px">
<el-col :span="12">
<@shiro.hasPermission name="cms:content:save">
<el-button type="primary" icon="el-icon-plus" size="mini" @click="save()">新增</el-button>
<el-button
v-if="leaf=='true'"
type="primary" icon="el-icon-plus" size="mini" @click="save()">新增</el-button>
</@shiro.hasPermission>
<@shiro.hasPermission name="cms:content:del">
<el-button type="danger" icon="el-icon-delete" size="mini" @click="del(selectionList)" :disabled="!selectionList.length">删除</el-button>
...
...
@@ -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
;
...
...
src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
View file @
01a99b3f
...
...
@@ -23,7 +23,7 @@
:label="item"></el-option>
</el-select>
<div class="ms-form-tip">
更新主页,如果系统存在引导页面可以手动修改主页位置文件名,default.html引导页面
index.htm
l主页。
一般选择<i>
index.htm
</i>模版
</div>
</el-form-item>
</div>
...
...
@@ -36,7 +36,9 @@
placeholder="请输入主页位置">
</el-input>
<div class="ms-form-tip">
主页位置htm文件名一般为index.html或default.html
一般为index.html或default.html,
如果是<i>引导页面->首页</i>,可以手动调整主页模版与主页设置,先生成引导页,再生成首页。一般default.html为引导页面index.html为主页。
</div>
</el-form-item>
</div>
...
...
@@ -58,7 +60,7 @@
placeholder="请选择文章栏目">
</tree-select>
<div class="ms-form-tip">
生成
对应栏目属性为列表的内容数据,例如:新闻详情、产品详情
生成
指定栏目下的文章内容
</div>
</el-form-item>
</div>
...
...
@@ -79,7 +81,7 @@
type="date">
</el-date-picker>
<div class="ms-form-tip">
根据内容的发布时间来生成,例如:202
0-10-10,则生成10月10号以后发布的内容
根据内容的发布时间来生成,例如:202
1-01-01,则生成21年01月01号以后发布的文章,如果遇到内容没有生成可以调整时间
</div>
</el-form-item>
</div>
...
...
@@ -101,7 +103,7 @@
placeholder="请选择文章栏目">
</tree-select>
<div class="ms-form-tip">
生成
栏目属性为列表、封面的内容数据,例如:关于我们、公司介绍、
新闻列表、产品列表
生成
<b>栏目类型</b>为列表的数据,例如:
新闻列表、产品列表
</div>
</el-form-item>
</div>
...
...
@@ -308,7 +310,7 @@
padding
:
20
px
;
outline
:
none
;
outline-offset
:
-1
px
;
height
:
26
0
px
;
height
:
30
0
px
;
max-width
:
100
%;
background-color
:
#
FFFFFF
;
flex-direction
:
column
;
...
...
@@ -456,7 +458,7 @@
padding
:
20
px
;
outline
:
none
;
outline-offset
:
-1
px
;
height
:
26
0
px
;
height
:
30
0
px
;
max-width
:
100
%;
background-color
:
#
FFFFFF
;
flex-direction
:
column
;
...
...
@@ -601,7 +603,7 @@
padding
:
20
px
;
outline
:
none
;
outline-offset
:
-1
px
;
height
:
26
0
px
;
height
:
30
0
px
;
max-width
:
100
%;
background-color
:
#
FFFFFF
;
flex-direction
:
column
;
...
...
src/main/webapp/static/css/app.css
View file @
01a99b3f
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment