Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
95b9bc0c
Commit
95b9bc0c
authored
Mar 10, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@rbc/workflow-job-view): 切换页签时刷新
parent
661657bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
app.vue
develop/@rbc/workflow-job-view/src/app.vue
+8
-5
No files found.
develop/@rbc/workflow-job-view/src/app.vue
View file @
95b9bc0c
...
...
@@ -107,11 +107,13 @@ export default {
this
.
templateName
=
this
.
templateOptionList
[
0
]?.
templateName
;
this
.
handleSearch
();
});
window
.
GMS
.
vbus
.
$on
(
'refresh-workflow-job-view'
,
()
=>
{
this
.
handleSearch
()
})
window
.
GMS
.
vbus
.
$on
(
'refresh-workflow-job-view'
,
this
.
handleSearch
)
this
.
$root
.
$on
(
'updated'
,
this
.
handleSearch
)
},
beforeUnmount
()
{
window
.
GMS
.
vbus
.
$off
(
'refresh-workflow-job-view'
,
this
.
handleSearch
)
this
.
$root
.
$off
(
'updated'
,
this
.
handleSearch
)
},
methods
:
{
handleQueryDataChange
(
v
)
{
this
.
queryData
=
v
.
map
((
o
)
=>
{
...
...
@@ -187,7 +189,8 @@ export default {
this
.
$refs
.
seniorQuery
.
selectedConditions
=
[]
window
.
GMS
.
vbus
.
$emit
(
'clear-senior-query-from-app'
)
},
handleSearch
()
{
handleSearch
(
state
)
{
if
(
state
==
'hide'
)
return
if
(
!
this
.
templateName
)
return
;
this
.
$refs
.
seniorQuery
.
makeSure
(
'from-app-click'
)
},
...
...
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