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
8d68c53a
"eladmin-logging/src/main/vscode:/vscode.git/clone" did not exist on "ec716f99f2494076ae48f917df3a94674839e043"
Commit
8d68c53a
authored
Nov 23, 2020
by
xierz
Browse files
文章管理栏目问题
parent
a381b8f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/cms/content/index.ftl
View file @
8d68c53a
...
@@ -11,7 +11,23 @@
...
@@ -11,7 +11,23 @@
<el-container class="index-menu">
<el-container class="index-menu">
<div class="left-tree" style="position:relative;">
<div class="left-tree" style="position:relative;">
<el-scrollbar style="height: 100%;">
<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
}
">
<el-tooltip class="item" effect="dark" :content="data.categoryTitle" placement="top-start">
<span :style="data.categoryType == '3' ? 'color: #dcdfe6' : ''">
{{
data
.categoryTitle
}}
</span>
</span>
</el-tooltip>
</el-tree>
</el-scrollbar>
</el-scrollbar>
</div>
</div>
<iframe :src="action" class="ms-iframe-style">
<iframe :src="action" class="ms-iframe-style">
...
@@ -39,8 +55,9 @@
...
@@ -39,8 +55,9 @@
if
(
data
.categoryType
==
'
1
'
)
{
if
(
data
.categoryType
==
'
1
'
)
{
this
.action
=
ms
.manager
+
"/cms/content/main.do?categoryId="
+
data
.id
;
this
.action
=
ms
.manager
+
"/cms/content/main.do?categoryId="
+
data
.id
;
}
else
if
(
data
.categoryType
==
'
2
'
)
{
}
else
if
(
data
.categoryType
==
'
2
'
)
{
this
.action
=
ms
.manager
+
"/cms/content/form.do?categoryId="
+
data
.id
+
"&type=2"
;
this
.action
=
ms
.manager
+
"/cms/content/form.do?categoryId="
+
data
.id
+
"& type=2"
;
}
else
{
//
id
=
0
时为最顶级节点全部节点
}
else
if
(
data
.id
==
0
){
this
.action
=
ms
.manager
+
"/cms/content/main.do"
;
this
.action
=
ms
.manager
+
"/cms/content/main.do"
;
}
}
},
},
...
@@ -63,9 +80,7 @@
...
@@ -63,9 +80,7 @@
}
else
{
}
else
{
that
.emptyText
=
'';
that
.emptyText
=
'';
//
过滤掉栏目类型为链接属性
//
过滤掉栏目类型为链接属性
that
.treeData
=
res
.data.rows.filter
(
function
(
item
)
{
that
.treeData
=
res
.data.rows
;
return
item
.categoryType
=='
2
'
||
item
.categoryType
=='
1
'
})
that
.treeData
=
ms
.util.treeData
(
that
.treeData
,
'
id
'
,
'
categoryId
'
,
'
children
'
)
;
that
.treeData
=
ms
.util.treeData
(
that
.treeData
,
'
id
'
,
'
categoryId
'
,
'
children
'
)
;
that
.treeData
=
[
{
that
.treeData
=
[
{
id
:
0
,
id
:
0
,
...
...
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