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
96027e10
Commit
96027e10
authored
Oct 21, 2020
by
xierz
Browse files
修复编辑栏目中编辑状态问题
parent
e34740e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
96027e10
...
...
@@ -542,10 +542,10 @@
this
.form.id
=
ms
.util.getParameter
(
"id"
)
;
this
.form.childId
=
ms
.util.getParameter
(
"childId"
)
;//
判断是否增加子栏目
//
判断三种状态,默认为
编辑
状态
//
判断三种状态,默认为
新增
状态
this
.categoryTypeDisabled
=
false
;//
控制栏目分类是否可编辑
if
(
this
.form.id
!=
undefined
&&
this
.form.childId
==
undefined
)
{
//
切换
新增
状态,
id
&
childId
为空
if
(
this
.form.id
!=
undefined
&&
(
this
.form.childId
==
undefined
||
this
.form.childId
==
"undefined"
)
)
{
//
切换
编辑
状态,
id
不为空
childId
为空
this
.categoryTypeDisabled
=
true
;
this
.get
(
this
.form.id
)
;
}
else
if
(
this
.form.childId
)
{
...
...
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