Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
zhouqian
vue-gjjs
Commits
2cddc99b
Commit
2cddc99b
authored
Dec 13, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitopn保函激活/展开面板触发切换标签页事件handleChange方法实现
parent
228ee2ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
Ovwp.vue
src/views/Business/Gitopn/Ovwp.vue
+9
-11
No files found.
src/views/Business/Gitopn/Ovwp.vue
View file @
2cddc99b
...
@@ -142,22 +142,21 @@ export default {
...
@@ -142,22 +142,21 @@ export default {
},
},
methods
:
{
methods
:
{
...
Event
,
...
Event
,
handleChange
(
tab
){
handleChange
(
names
){
// console.log(names);//激活的(展开的)面板的name数组集合
if
(
this
.
isInDisplay
)
{
if
(
this
.
isInDisplay
)
{
return
return
}
}
// let name = tab.name
const
nms
=
tab
.
split
(
","
)
const
arr
=
[]
const
arr
=
[]
for
(
let
i
=
0
;
i
<
n
m
s
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
n
ame
s
.
length
;
i
++
)
{
const
n
=
n
m
s
[
i
];
const
n
=
n
ame
s
[
i
];
const
path
=
tabNameToRulePathMapping
[
n
]
const
path
=
tabNameToRulePathMapping
[
n
]
//取出激活/展开面板name对应的rulePath
if
(
path
)
{
if
(
path
)
{
arr
.
push
(
path
)
arr
.
push
(
path
)
}
}
}
}
let
rulePath
=
arr
.
join
(
","
);
// let rulePath = arr[arr.length-1]//取最后一个展开的面板的rulePath
let
rulePath
=
arr
.
join
(
","
);
//把arr数组加入逗号分割,变成字符串
// if (name === "conp") {
// if (name === "conp") {
// rulePath = "cfagit.recp.conp";
// rulePath = "cfagit.recp.conp";
// }
// }
...
@@ -179,15 +178,14 @@ export default {
...
@@ -179,15 +178,14 @@ export default {
// if(name === "detp"){
// if(name === "detp"){
// rulePath = "gitp.detp"
// rulePath = "gitp.detp"
// }
// }
if
(
!!
rulePath
)
{
if
(
rulePath
)
{
//rulePath不为空串
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
);
this
.
updateModel
(
res
.
data
);
}
}
});
});
}
}
}
},
},
},
created
:
function
()
{},
created
:
function
()
{},
};
};
...
...
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