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
fukai
vue-gjjs
Commits
03fc4059
Commit
03fc4059
authored
Jan 17, 2023
by
wangna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitplb修改
parent
95a94cfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
Ovwp.vue
src/views/Business/Gitplb/Ovwp.vue
+27
-0
No files found.
src/views/Business/Gitplb/Ovwp.vue
View file @
03fc4059
...
@@ -32,6 +32,10 @@ import Gitsetp1 from "./Gitsetp1";
...
@@ -32,6 +32,10 @@ import Gitsetp1 from "./Gitsetp1";
import
Cfap
from
"./Cfap"
;
import
Cfap
from
"./Cfap"
;
import
Dclpp
from
"./Dclpp"
;
import
Dclpp
from
"./Dclpp"
;
const
tabNameToRulePathMapping
=
{
"dclpp"
:
"cfagit.recp.dclp(1).dclpp"
,
}
export
default
{
export
default
{
components
:
{
components
:
{
"m-gitsetp1"
:
Gitsetp1
,
"m-gitsetp1"
:
Gitsetp1
,
...
@@ -48,6 +52,29 @@ export default {
...
@@ -48,6 +52,29 @@ export default {
},
},
methods
:
{
methods
:
{
...
Event
,
...
Event
,
handleChange
(
names
){
console
.
log
(
names
);
//激活的(展开的)面板的name数组集合
if
(
this
.
isInDisplay
)
{
return
}
const
arr
=
[]
for
(
let
i
=
0
;
i
<
names
.
length
;
i
++
)
{
const
n
=
names
[
i
];
const
path
=
tabNameToRulePathMapping
[
n
]
//取出激活/展开面板name对应的rulePath
if
(
path
)
{
arr
.
push
(
path
)
}
}
// let rulePath = arr[arr.length-1]//取最后一个展开的面板的rulePath
let
rulePath
=
arr
.
join
(
","
);
//把arr数组加入逗号分割,变成字符串
if
(
!!
rulePath
)
{
//rulePath不为空串
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
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