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
c8b0095b
Commit
c8b0095b
authored
Feb 09, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 单据提交时没有刷新
parent
d87ac7b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
typesBill.vue
...ms-plugin-billexpand/src/components-control/typesBill.vue
+8
-0
buttonGrouop.vue
...p/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
+6
-5
bill-form-runner.vue
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
+8
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue
View file @
c8b0095b
...
...
@@ -142,6 +142,13 @@ export default {
this
.
init
=
true
;
});
});
GMS
.
vbus
.
$on
(
"workflow-state-change"
,
(
val
)
=>
{
console
.
log
(
'refresh'
,
val
)
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
init
=
true
;
})
})
GMS
.
vbus
.
$on
(
"submitSuccess"
,
(
res
,
param
)
=>
{
GMS
.
vbus
.
$emit
(
"custom-query-refresh"
);
GMS
.
vbus
.
$emit
(
"tab-count-refresh"
);
...
...
@@ -169,6 +176,7 @@ export default {
GMS
.
vbus
.
$off
(
"saveSuccess"
);
GMS
.
vbus
.
$off
(
"submitSuccess"
);
GMS
.
vbus
.
$off
(
"change-form-state"
);
GMS
.
vbus
.
$off
(
"workflow-state-change"
)
},
};
</
script
>
...
...
develop/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
View file @
c8b0095b
...
...
@@ -55,15 +55,16 @@ export default {
}
}
// 监听工作流状态改变
GMS
.
vbus
.
$on
(
"workflow-state-change"
,
(
val
)
=>
{
this
.
workflowState
=
val
this
.
getBtnGroup
()
})
GMS
.
vbus
.
$on
(
"workflow-state-change"
,
this
.
handleWorkflowStateChange
)
},
beforeDestroy
()
{
GMS
.
vbus
.
$off
(
"workflow-state-change"
);
GMS
.
vbus
.
$off
(
"workflow-state-change"
,
this
.
handleWorkflowStateChange
);
},
methods
:
{
handleWorkflowStateChange
(
val
)
{
this
.
workflowState
=
val
this
.
getBtnGroup
()
},
checkParent
()
{
let
curNode
=
this
.
$refs
.
btnGroup
while
(
curNode
)
{
...
...
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
View file @
c8b0095b
...
...
@@ -56,8 +56,16 @@ export default {
// this.type = 'load'
});
});
GMS
.
vbus
.
$on
(
"workflow-state-change"
,
(
val
)
=>
{
console
.
log
(
'refresh'
,
val
)
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
init
=
true
;
})
})
},
beforeDestroy
()
{
GMS
.
vbus
.
$off
(
"workflow-state-change"
)
GMS
.
vbus
.
$off
(
"change-form-state"
);
this
.
$portalAPI
.
off
(
'on-close-tag'
,
this
.
checkBillChange
)
},
...
...
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