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
3582314e
Commit
3582314e
authored
Nov 23, 2020
by
guwd
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
bb41e140
23e74684
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
5.2-patch.sql
doc/5.2-patch.sql
+0
-1
index.ftl
src/main/webapp/WEB-INF/manager/cms/content/index.ftl
+19
-6
No files found.
doc/5.2-patch.sql
View file @
3582314e
...
...
@@ -74,7 +74,6 @@ DROP COLUMN `app_login_page`;
ALTER
TABLE
`role`
CHANGE
COLUMN
`role_managerid`
`manager_id`
int
(
11
)
NULL
DEFAULT
0
COMMENT
'角色管理员编号'
AFTER
`role_name`
;
ALTER
TABLE
`role`
CHANGE
COLUMN
`role_managerid`
`manager_id`
int
(
11
)
NULL
DEFAULT
0
COMMENT
'角色管理员编号'
AFTER
`role_name`
,
DROP
INDEX
`role_managerid`
,
ADD
INDEX
`inx_role_manage_id`
(
`manager_id`
)
USING
BTREE
;
...
...
src/main/webapp/WEB-INF/manager/cms/content/index.ftl
View file @
3582314e
...
...
@@ -11,7 +11,21 @@
<el-container
class=
"index-menu"
>
<div
class=
"left-tree"
style=
"position:relative;"
>
<el-scrollbar
style=
"height: 100%;"
>
<el-tree
:indent=
"5"
v-loading=
"loading"
highlight-current
:expand-on-click-node=
"false"
default-expand-all
:empty-text=
"emptyText"
:data=
"treeData"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
style=
"padding: 10px;height: 100%;"
></el-tree>
<el-tree
:indent=
"5"
v-loading=
"loading"
highlight-current
:expand-on-click-node=
"false"
default-expand-all
:empty-text=
"emptyText"
:data=
"treeData"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
style=
"padding: 10px;height: 100%;"
>
<span
class=
"custom-tree-node"
slot-scope=
"{ node, data }"
>
<span
:style=
"data.categoryType == '3' ? 'color: #dcdfe6' : ''"
:title=
"data.categoryTitle"
>
{{ data.categoryTitle }}
</span>
</span>
</el-tree>
</el-scrollbar>
</div>
<iframe
:src=
"action"
class=
"ms-iframe-style"
>
...
...
@@ -39,8 +53,9 @@
if
(
data
.
categoryType
==
'1'
)
{
this
.
action
=
ms
.
manager
+
"/cms/content/main.do?categoryId="
+
data
.
id
;
}
else
if
(
data
.
categoryType
==
'2'
)
{
this
.
action
=
ms
.
manager
+
"/cms/content/form.do?categoryId="
+
data
.
id
+
"&type=2"
;
}
else
{
this
.
action
=
ms
.
manager
+
"/cms/content/form.do?categoryId="
+
data
.
id
+
"& type=2"
;
//id=0时为最顶级节点全部节点
}
else
if
(
data
.
id
==
0
){
this
.
action
=
ms
.
manager
+
"/cms/content/main.do"
;
}
},
...
...
@@ -63,9 +78,7 @@
}
else
{
that
.
emptyText
=
''
;
// 过滤掉栏目类型为链接属性
that
.
treeData
=
res
.
data
.
rows
.
filter
(
function
(
item
)
{
return
item
.
categoryType
==
'2'
||
item
.
categoryType
==
'1'
})
that
.
treeData
=
res
.
data
.
rows
;
that
.
treeData
=
ms
.
util
.
treeData
(
that
.
treeData
,
'id'
,
'categoryId'
,
'children'
);
that
.
treeData
=
[{
id
:
0
,
...
...
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