Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
b67b3dd8
Commit
b67b3dd8
authored
Aug 04, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
10a10f36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
12 deletions
+23
-12
chooseMenu.vue
src/components/common/chooseMenu.vue
+22
-12
rubik.vue
src/components/sallCenter/plugin/rubik.vue
+1
-0
No files found.
src/components/common/chooseMenu.vue
View file @
b67b3dd8
<
style
>
.other_Style
{
color
:
#409EFF
;
}
</
style
>
<
template
>
<div
class=
"chooseMenu"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
...
...
@@ -16,8 +21,10 @@
<el-input
placeholder=
"输入关键字进行过滤"
style=
"width:99%;margin-bottom:10px;"
v-model=
"filterText"
>
</el-input>
<el-tree
:data=
"item.SubMenuList"
node-key=
"PageId"
ref=
"tree"
:props=
"defaultProps"
filter
:filter-node-method=
"filterNode"
@
check=
"handleCheck"
:check-strictly=
"true"
show-checkbox
>
:filter-node-method=
"filterNode"
@
check=
"handleCheck"
:check-strictly=
"true"
show-checkbox
>
<span
class=
"custom-tree-node"
slot-scope=
"{ node, data }"
>
<span
:class=
"{'other_Style':data.SubMenuList&&data.SubMenuList.length>0}"
>
{{ data.PageName }}
</span>
</span>
</el-tree>
</div>
</el-tab-pane>
...
...
@@ -35,7 +42,7 @@
children
:
'SubMenuList'
,
label
:
'PageName'
},
checkedObj
:{}
checkedObj
:
{}
};
},
created
()
{},
...
...
@@ -66,15 +73,17 @@
PageUrl
:
""
,
IsParameter
:
0
,
ParameterValue
:
""
,
PageName
:
""
PageName
:
""
,
new_link_url
:
''
};
if
(
this
.
activeName
!=
6
)
{
if
(
this
.
activeName
!=
6
)
{
if
(
this
.
dataList
&&
this
.
dataList
.
length
>
0
)
{
this
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
SubMenuList
&&
item
.
SubMenuList
.
length
>
0
)
{
item
.
SubMenuList
.
forEach
(
subItem
=>
{
if
(
subItem
.
IsChecked
)
{
obj
.
PageUrl
=
subItem
.
PageUrl
;
obj
.
new_link_url
=
subItem
.
PageUrl
obj
.
IsParameter
=
subItem
.
IsParameter
;
obj
.
ParameterValue
=
subItem
.
ParameterValue
;
obj
.
PageName
=
subItem
.
PageName
;
...
...
@@ -83,11 +92,12 @@
}
});
}
}
else
{
obj
.
PageUrl
=
this
.
checkedObj
.
PageUrl
obj
.
IsParameter
=
this
.
checkedObj
.
IsParameter
obj
.
ParameterValue
=
this
.
checkedObj
.
ParameterValue
obj
.
PageName
=
this
.
checkedObj
.
PageName
;
}
else
{
obj
.
PageUrl
=
this
.
checkedObj
.
PageUrl
obj
.
new_link_url
=
this
.
checkedObj
.
PageUrl
obj
.
IsParameter
=
this
.
checkedObj
.
IsParameter
obj
.
ParameterValue
=
this
.
checkedObj
.
ParameterValue
obj
.
PageName
=
this
.
checkedObj
.
PageName
;
}
return
obj
;
},
...
...
@@ -117,11 +127,11 @@
return
data
.
PageName
.
indexOf
(
value
)
!==
-
1
;
},
//check单选
handleCheck
(
a
,
b
)
{
handleCheck
(
a
,
b
)
{
//a为传递给 data 属性的数组中该节点所对应的对象;b为树目前的选中状态对象
if
(
b
.
checkedKeys
.
length
>
0
)
{
this
.
$refs
.
tree
[
0
].
setCheckedKeys
([
a
.
PageId
]);
this
.
checkedObj
=
a
;
this
.
checkedObj
=
a
;
}
},
},
...
...
src/components/sallCenter/plugin/rubik.vue
View file @
b67b3dd8
...
...
@@ -718,6 +718,7 @@
this
.
rubData
.
data
.
list
[
this
.
rubik
].
link
[
0
].
IsParameter
=
obj
.
IsParameter
;
this
.
rubData
.
data
.
list
[
this
.
rubik
].
link
[
0
].
ParameterValue
=
obj
.
ParameterValue
;
this
.
rubData
.
data
.
list
[
this
.
rubik
].
link
[
0
].
PageName
=
obj
.
PageName
;
this
.
rubData
.
data
.
list
[
this
.
rubik
].
link
[
0
].
new_link_url
=
obj
.
new_link_url
;
this
.
isShowLink
=
false
;
},
...
...
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