Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
c2099519
Commit
c2099519
authored
May 27, 2021
by
zhongxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改栏目管理新增模块
parent
3e82dd63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
62 deletions
+41
-62
form.ftl
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
+41
-62
No files found.
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
c2099519
...
@@ -19,19 +19,16 @@
...
@@ -19,19 +19,16 @@
justify=
"start"
align=
"top"
>
justify=
"start"
align=
"top"
>
<el-col
span=
"12"
>
<el-col
span=
"12"
>
<el-form-item
label=
"栏目名称"
prop=
"categoryTitle"
>
<el-form-item
label=
"栏目名称"
prop=
"categoryTitle"
>
<template
slot=
'label'
>
栏目名称
<template
slot=
'label'
>
栏目名称
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target=
"_blank"
>
${'$'}{field.typetitle}
</a>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-input
v-model=
"form.categoryTitle"
<el-input
v-model=
"form.categoryTitle"
:disabled=
"false"
:disabled=
"false"
:style=
"{width: '100%'}"
:style=
"{width: '100%'}"
:clearable=
"true"
:clearable=
"true"
placeholder=
"请输入栏目管理名称"
>
placeholder=
"请输入栏目管理名称"
>
</el-input>
</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>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
span=
"12"
>
<el-col
span=
"12"
>
...
@@ -47,15 +44,7 @@
...
@@ -47,15 +44,7 @@
justify=
"start"
align=
"top"
>
justify=
"start"
align=
"top"
>
<el-col
span=
"12"
>
<el-col
span=
"12"
>
<el-form-item
prop=
"categoryType"
>
<el-form-item
prop=
"categoryType"
>
<template
slot=
'label'
>
栏目类型
<template
slot=
'label'
>
栏目类型
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
列表:常用于带列表、详情的业务,例如:新闻列表、图片列表
<br>
封面:常用单篇文章显示,例如:关于我们、公司介绍
<br>
跳转:栏目外链接,需要配合逻辑判断
<
#if
>
和自定义链接使用
<br>
修改栏目时如果该栏目存在文章则不能修改栏目类型
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-radio-group
v-model=
"form.categoryType"
<el-radio-group
v-model=
"form.categoryType"
:style=
"{width: ''}"
:style=
"{width: ''}"
:disabled=
"categoryTypeDisabled"
>
:disabled=
"categoryTypeDisabled"
>
...
@@ -64,6 +53,12 @@
...
@@ -64,6 +53,12 @@
{{true? item.label : item.value}}
{{true? item.label : item.value}}
</el-radio>
</el-radio>
</el-radio-group>
</el-radio-group>
<div
class=
"ms-form-tip"
>
列表:常用于带列表、详情的业务,例如:新闻列表、图片列表
<br>
封面:常用单篇文章显示,例如:关于我们、公司介绍
<br>
跳转:栏目外链接,需要配合逻辑判断
<
#if
>
和自定义链接使用
<br>
修改栏目时如果该栏目存在文章则不能修改栏目类型
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
span=
"12"
>
<el-col
span=
"12"
>
...
@@ -94,12 +89,7 @@
...
@@ -94,12 +89,7 @@
</el-col>
</el-col>
<el-col
span=
"12"
>
<el-col
span=
"12"
>
<el-form-item
prop=
"mdiyModelId"
>
<el-form-item
prop=
"mdiyModelId"
>
<template
slot=
'label'
>
自定义模型
<template
slot=
'label'
>
自定义模型
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
width=
"400"
trigger=
"hover"
content=
"如果发布时候文章字段信息不够,可以采用铭飞代码生成器生成自定义模型,再通过“自定义管理->自定义模型->导入”功能导入模型,注意类型是cms"
>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-select
v-model=
"form.mdiyModelId"
<el-select
v-model=
"form.mdiyModelId"
:style=
"{width: '100%'}"
:style=
"{width: '100%'}"
:filterable=
"false"
:filterable=
"false"
...
@@ -109,18 +99,17 @@
...
@@ -109,18 +99,17 @@
<el-option
v-for=
'item in mdiyModelIdOptions'
:key=
"item.id"
:value=
"item.id"
<el-option
v-for=
'item in mdiyModelIdOptions'
:key=
"item.id"
:value=
"item.id"
:label=
"item.modelName"
></el-option>
:label=
"item.modelName"
></el-option>
</el-select>
</el-select>
<div
class=
"ms-form-tip"
>
如果发布时候文章字段信息不够,可以采用铭飞代码生成器生成自定义模型,
<br/>
再通过“自定义管理->自定义模型->导入”功能导入模型,注意类型是cms
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
gutter=
"0"
justify=
"start"
align=
"top"
>
<el-row
gutter=
"0"
justify=
"start"
align=
"top"
>
<el-col
span=
"12"
>
<el-col
span=
"12"
>
<el-form-item
prop=
"categoryListUrl"
v-if=
"form.categoryType == '1'"
>
<el-form-item
prop=
"categoryListUrl"
v-if=
"form.categoryType == '1'"
>
<template
slot=
'label'
>
列表模板
<template
slot=
'label'
>
列表模板
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
trigger=
"hover"
content=
"当栏目类型为列表时有效"
>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-select
v-model=
"form.categoryListUrl"
<el-select
v-model=
"form.categoryListUrl"
:style=
"{width: '100%'}"
:style=
"{width: '100%'}"
:filterable=
"true"
:filterable=
"true"
...
@@ -130,6 +119,9 @@
...
@@ -130,6 +119,9 @@
<el-option
v-for=
'item in categoryListUrlOptions'
:key=
"item"
:value=
"item"
<el-option
v-for=
'item in categoryListUrlOptions'
:key=
"item"
:value=
"item"
:label=
"item"
></el-option>
:label=
"item"
></el-option>
</el-select>
</el-select>
<div
class=
"ms-form-tip"
>
当栏目类型为列表时有效
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
span=
"12"
>
<el-col
span=
"12"
>
...
@@ -138,19 +130,16 @@
...
@@ -138,19 +130,16 @@
<el-col
span=
"12"
v-if=
"form.categoryType == 3"
>
<el-col
span=
"12"
v-if=
"form.categoryType == 3"
>
<el-form-item
prop=
"categoryDiyUrl"
>
<el-form-item
prop=
"categoryDiyUrl"
>
<template
slot=
'label'
>
自定义链接
<template
slot=
'label'
>
自定义链接
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target=
"_blank"
>
${'$'}{field.typeurl}
</a>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-input
<el-input
:disabled=
"false"
:disabled=
"false"
v-model=
"form.categoryDiyUrl"
v-model=
"form.categoryDiyUrl"
:style=
"{width: '100%'}"
:style=
"{width: '100%'}"
placeholder=
"请输入自定义链接"
>
placeholder=
"请输入自定义链接"
>
</el-input>
</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-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -159,11 +148,7 @@
...
@@ -159,11 +148,7 @@
justify=
"start"
align=
"top"
>
justify=
"start"
align=
"top"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"栏目属性"
prop=
"categoryFlag"
>
<el-form-item
label=
"栏目属性"
prop=
"categoryFlag"
>
<template
slot=
'label'
>
栏目属性
<template
slot=
'label'
>
栏目属性
</template>
<el-popover
placement=
"top-start"
title=
"提示"
trigger=
"hover"
content=
"类型不满足可以在自定义字典菜单中新增,字段类型为“栏目属性”"
>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-select
v-model=
"form.categoryFlag"
<el-select
v-model=
"form.categoryFlag"
:style=
"{width: '100%'}"
:style=
"{width: '100%'}"
:filterable=
"false"
:filterable=
"false"
...
@@ -173,6 +158,9 @@
...
@@ -173,6 +158,9 @@
<el-option
v-for=
'item in categoryFlagOptions'
:key=
"item.dictValue"
:value=
"item.dictValue"
<el-option
v-for=
'item in categoryFlagOptions'
:key=
"item.dictValue"
:value=
"item.dictValue"
:label=
"item.dictLabel"
></el-option>
:label=
"item.dictLabel"
></el-option>
</el-select>
</el-select>
<div
class=
"ms-form-tip"
>
类型不满足可以在自定义字典菜单中新增,字段类型为“栏目属性”
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -191,13 +179,7 @@
...
@@ -191,13 +179,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-form-item
label=
"栏目管理关键字"
prop=
"categoryKeyword"
>
<el-form-item
label=
"栏目管理关键字"
prop=
"categoryKeyword"
>
<template
slot=
'label'
>
栏目关键字
<template
slot=
'label'
>
栏目关键字
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target=
"_blank"
>
${'$'}{field.typekeyword}
</a>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-input
<el-input
type=
"textarea"
:rows=
"5"
type=
"textarea"
:rows=
"5"
:disabled=
"false"
:disabled=
"false"
...
@@ -205,15 +187,12 @@
...
@@ -205,15 +187,12 @@
:style=
"{width: '100%'}"
:style=
"{width: '100%'}"
placeholder=
"栏目管理关键字,有助于搜索"
>
placeholder=
"栏目管理关键字,有助于搜索"
>
</el-input>
</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>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"栏目管理描述"
prop=
"categoryDescrip"
>
<el-form-item
label=
"栏目管理描述"
prop=
"categoryDescrip"
>
<template
slot=
'label'
>
栏目描述
<template
slot=
'label'
>
栏目描述
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target=
"_blank"
>
${'$'}{field.typedescrip}
</a>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-input
<el-input
type=
"textarea"
:rows=
"5"
type=
"textarea"
:rows=
"5"
:disabled=
"false"
:disabled=
"false"
...
@@ -221,15 +200,12 @@
...
@@ -221,15 +200,12 @@
:style=
"{width: '100%'}"
:style=
"{width: '100%'}"
placeholder=
"栏目管理描述,对栏目管理关键字的扩展"
>
placeholder=
"栏目管理描述,对栏目管理关键字的扩展"
>
</el-input>
</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>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
prop=
"categoryImg"
>
<el-form-item
label=
""
prop=
"categoryImg"
>
<template
slot=
'label'
>
缩略图
<template
slot=
'label'
>
缩略图
</template>
<el-popover
slot=
"label"
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target=
"_blank"
>
${'$'}{field.typelitpic}
</a>
<i
class=
"el-icon-question"
slot=
"reference"
></i>
</el-popover>
</template>
<el-upload
<el-upload
:file-list=
"form.categoryImg"
:file-list=
"form.categoryImg"
:action=
"ms.base+'/file/upload.do'"
:action=
"ms.base+'/file/upload.do'"
...
@@ -243,7 +219,10 @@
...
@@ -243,7 +219,10 @@
accept=
"image/*"
accept=
"image/*"
list-type=
"picture-card"
>
list-type=
"picture-card"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<div
slot=
"tip"
class=
"el-upload__tip"
>
最多上传1张图片
</div>
<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张图片
</div>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
...
Write
Preview
Markdown
is supported
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