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
d5ec6b83
Commit
d5ec6b83
authored
Oct 23, 2021
by
mingsoft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化搜索
parent
46b12719
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+7
-2
form.ftl
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
+1
-1
index.ftl
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
+1
-0
main.ftl
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
+3
-2
No files found.
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
d5ec6b83
...
...
@@ -219,8 +219,13 @@
<if
test=
"contentTitle != null and contentTitle != ''"
>
and content_title like CONCAT(CONCAT('%',#{contentTitle}),'%')
</if>
<if
test=
"categoryId != null and categoryId != ''"
>
and (ct.category_id=#{categoryId} or ct.category_id in
(select id FROM cms_category where find_in_set('${categoryId}',CATEGORY_PARENT_IDS)>0))
</if>
<if
test=
"categoryType != null and categoryType != ''"
>
and cc.category_type=#{categoryType}
</if>
<if
test=
"contentType != null and contentType != ''"
>
and content_type LIKE CONCAT(CONCAT('%',#{contentType}),'%')
</if>
<if
test=
"contentType != null and contentType != ''"
>
and
<foreach
item=
"item"
index=
"index"
collection=
"contentType.split(',')"
open=
"("
separator=
"or"
close=
")"
>
FIND_IN_SET('${item}',ct.content_type)>0
</foreach>
</if>
<if
test=
"contentDisplay != null and contentDisplay != ''"
>
and content_display=#{contentDisplay}
</if>
<if
test=
"contentAuthor != null and contentAuthor != ''"
>
and content_author=#{contentAuthor}
</if>
<if
test=
"contentSource != null and contentSource != ''"
>
and content_source=#{contentSource}
</if>
...
...
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
d5ec6b83
...
...
@@ -221,7 +221,7 @@
<i
class=
"el-icon-plus"
></i>
<div
slot=
"tip"
class=
"ms-form-tip"
>
只能上传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/>
标签:
<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>
...
...
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
View file @
d5ec6b83
...
...
@@ -271,6 +271,7 @@
}).
then
(
function
(
res
)
{
if
(
res
.
result
)
{
that
.
$notify
({
title
:
'成功 '
,
type
:
'success'
,
message
:
'删除成功!'
});
//删除成功,刷新列表
...
...
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
View file @
d5ec6b83
...
...
@@ -33,8 +33,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"文章类型"
prop=
"c
ategoryFlag
"
>
<el-select
v-model=
"form.c
ategoryFlag
"
<el-form-item
label=
"文章类型"
prop=
"c
ontentType
"
>
<el-select
v-model=
"form.c
ontentType
"
:style=
"{width: '100%'}"
:filterable=
"false"
:disabled=
"false"
...
...
@@ -349,6 +349,7 @@
}).
then
(
function
(
res
)
{
if
(
res
.
result
)
{
that
.
$notify
({
title
:
'成功'
,
type
:
'success'
,
message
:
'删除成功!'
});
//删除成功,刷新列表
...
...
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