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
b19dccc6
Commit
b19dccc6
authored
Dec 22, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增文章栏目问题
parent
185bb63a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
main.ftl
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
+11
-6
No files found.
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
View file @
b19dccc6
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-header
class=
"ms-header"
height=
"50px"
>
<el-header
class=
"ms-header"
height=
"50px"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<
@
shiro
.
hasPermission
name=
"cms:content:save"
>
<
@
shiro
.
hasPermission
name=
"cms:content:save"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"save(
0
)"
>
新增
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"save()"
>
新增
</el-button>
</
@
shiro
.hasPermission
>
</
@
shiro
.hasPermission
>
<
@
shiro
.
hasPermission
name=
"cms:content:del"
>
<
@
shiro
.
hasPermission
name=
"cms:content:del"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"del(selectionList)"
:disabled=
"!selectionList.length"
>
删除
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"del(selectionList)"
:disabled=
"!selectionList.length"
>
删除
</el-button>
...
@@ -368,13 +368,18 @@
...
@@ -368,13 +368,18 @@
},
},
//新增
//新增
save
:
function
(
id
)
{
save
:
function
(
id
)
{
//id有值时编辑
if
(
id
)
{
if
(
id
)
{
location
.
href
=
this
.
manager
+
"/cms/content/form.do?id="
+
id
;
location
.
href
=
this
.
manager
+
"/cms/content/form.do?id="
+
id
;
}
else
if
(
id
==
0
){
}
else
{
//在全部栏目下新增文章
//根据当前栏目新增时自动选中栏目
location
.
href
=
this
.
manager
+
"/cms/content/form.do"
;
var
categoryId
=
this
.
form
.
categoryId
;
}
else
{
if
(
categoryId
)
{
location
.
href
=
this
.
manager
+
"/cms/content/form.do?categoryId="
+
this
.
form
.
categoryId
;
location
.
href
=
this
.
manager
+
"/cms/content/form.do?categoryId="
+
this
.
form
.
categoryId
;
}
else
{
//如果栏目id没有值就单纯的新增,不自动选定栏目
location
.
href
=
this
.
manager
+
"/cms/content/form.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