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
c36c1e67
Commit
c36c1e67
authored
Nov 24, 2020
by
xierz
Browse files
封面栏目文章问题
parent
1d21a818
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
c36c1e67
...
@@ -364,17 +364,17 @@
...
@@ -364,17 +364,17 @@
if
(
valid
)
{
if
(
valid
)
{
that
.saveDisabled
=
true
;
//判断
that
.saveDisabled
=
true
;
//判断
if
(
that
.categoryIdOptions.filter
(
function
(
f
)
{
//
if
(
that
.categoryIdOptions.filter
(
function
(
f
)
{
return
f
['
id
']
==
that
.form.categoryId
;
//
return
f
['
id
']
==
that
.form.categoryId
;
})[
0
]
.categoryType == '2' && that.returnIsShow)
{
//
})[
0
]
.categoryType == '2' && that.returnIsShow)
{
that
.
$notify
({
//
that
.
$notify
({
title
:
'提示'
,
//
title
:
'提示'
,
message
:
'所属栏目不能为封面'
,
//
message
:
'所属栏目不能为封面'
,
type
:
'
error
'
//
type
:
'
error
'
})
;
//
})
;
that
.saveDisabled
=
false
;
//
that
.saveDisabled
=
false
;
return
;
//
return
;
}
//
}
var
data
=
JSON
.parse
(
JSON
.stringify
(
that
.form
))
;
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 @@
...
@@ -53,7 +53,7 @@
if
(
data
.categoryType
==
'
1
'
)
{
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
;
}
else
if
(
data
.categoryType
==
'
2
'
)
{
}
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
时为最顶级节点全部节点
//
id
=
0
时为最顶级节点全部节点
}
else
if
(
data
.id
==
0
){
}
else
if
(
data
.id
==
0
){
this
.action
=
ms
.manager
+
"/cms/content/main.do"
;
this
.action
=
ms
.manager
+
"/cms/content/main.do"
;
...
...
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