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
a655345c
Commit
a655345c
authored
Oct 19, 2020
by
xierz
Browse files
新增子栏目
parent
ae907965
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
a655345c
...
...
@@ -540,11 +540,15 @@
this
.categoryUrlOptionsGet
()
;
this
.categoryFlagOptionsGet
()
;
this
.form.id
=
ms
.util.getParameter
(
"id"
)
;
this
.form.child
=
ms
.util.getParameter
(
"child"
)
;
if
(
this
.form.id
)
{
this
.categoryTypeDisabled
=
false
;
if
(
this
.form.id
!=
undefined
&&
this
.form.child
==
undefined
)
{
this
.categoryTypeDisabled
=
true
;
this
.get
(
this
.form.id
)
;
}
else
{
this
.categoryTypeDisabled
=
false
;
}
else
if
(
this
.form.child
)
{
this
.form.id
=
null
;
this
.form.categoryId
=
this
.form.child
;
}
}
}
);
...
...
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
View file @
a655345c
...
...
@@ -64,6 +64,9 @@
</el-table-column>
<el-table-column label="操作" width="120" align="center">
<template slot-scope="scope">
<@shiro.hasPermission name="cms:category:save">
<el-link type="primary" :underline="false" @click="save(scope.row.id, scope.row.id)">新增子栏目</el-link>
</@shiro.hasPermission>
<@shiro.hasPermission name="cms:category:update">
<el-link type="primary" :underline="false" @click="save(scope.row.id)">编辑</el-link>
</@shiro.hasPermission>
...
...
@@ -231,9 +234,9 @@
return
value
;
},
//新增
save
:
function
(
id
)
{
save
:
function
(
id
,
child
)
{
if
(
id
)
{
location
.href
=
this
.manager
+
"/cms/category/form.do?id="
+
id
;
location
.href
=
this
.manager
+
"/cms/category/form.do?id="
+
id
+
"&child="
+
child
;
}
else
{
location
.href
=
this
.manager
+
"/cms/category/form.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