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
c36c1e67
Commit
c36c1e67
authored
Nov 24, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
封面栏目文章问题
parent
1d21a818
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+11
-11
index.ftl
src/main/webapp/WEB-INF/manager/cms/content/index.ftl
+1
-1
No files found.
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
c36c1e67
...
...
@@ -364,17 +364,17 @@
if
(
valid
)
{
that
.
saveDisabled
=
true
;
//判断
if
(
that
.
categoryIdOptions
.
filter
(
function
(
f
)
{
return
f
[
'id'
]
==
that
.
form
.
categoryId
;
})[
0
].
categoryType
==
'2'
&&
that
.
returnIsShow
)
{
that
.
$notify
({
title
:
'提示'
,
message
:
'所属栏目不能为封面'
,
type
:
'error'
});
that
.
saveDisabled
=
false
;
return
;
}
//
if (that.categoryIdOptions.filter(function (f) {
//
return f['id'] == that.form.categoryId;
//
})[0].categoryType == '2' && that.returnIsShow) {
//
that.$notify({
//
title: '提示',
//
message: '所属栏目不能为封面',
//
type: 'error'
//
});
//
that.saveDisabled = false;
//
return;
//
}
var
data
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
form
));
...
...
src/main/webapp/WEB-INF/manager/cms/content/index.ftl
View file @
c36c1e67
...
...
@@ -53,7 +53,7 @@
if
(
data
.
categoryType
==
'1'
)
{
this
.
action
=
ms
.
manager
+
"/cms/content/main.do?categoryId="
+
data
.
id
;
}
else
if
(
data
.
categoryType
==
'2'
)
{
this
.
action
=
ms
.
manager
+
"/cms/content/form.do?categoryId="
+
data
.
id
+
"&
type=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"
;
...
...
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