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
96027e10
Commit
96027e10
authored
Oct 21, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复编辑栏目中编辑状态问题
parent
e34740e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
form.ftl
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
+3
-3
No files found.
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
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