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
b49ef690
Commit
b49ef690
authored
Mar 14, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事件注销指定函数
parent
965f4b2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
21 deletions
+19
-21
bill-form-runner.vue
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
+19
-21
No files found.
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
View file @
b49ef690
...
@@ -46,32 +46,30 @@ export default {
...
@@ -46,32 +46,30 @@ export default {
mounted
()
{
mounted
()
{
this
.
$portalAPI
.
on
(
"resetBillData"
,
this
.
changeData
);
this
.
$portalAPI
.
on
(
"resetBillData"
,
this
.
changeData
);
this
.
$portalAPI
.
on
(
'on-close-tag'
,
this
.
checkBillChange
)
this
.
$portalAPI
.
on
(
'on-close-tag'
,
this
.
checkBillChange
)
this
.
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
this
.
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
GMS
.
vbus
.
$on
(
"change-form-state"
,
(
param
)
=>
{
const
{
state
,
billId
}
=
param
;
GMS
.
vbus
.
$on
(
"change-form-state"
,
this
.
changeFormState
);
if
(
billId
!==
undefined
)
{
GMS
.
vbus
.
$on
(
"workflow-state-change"
,
this
.
changeFormState
)
this
.
billId
=
billId
;
}
this
.
state
=
state
;
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
init
=
true
;
});
});
GMS
.
vbus
.
$on
(
"workflow-state-change"
,
(
val
)
=>
{
console
.
log
(
'refresh'
,
val
)
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
init
=
true
;
})
})
},
},
beforeDestroy
()
{
beforeDestroy
()
{
GMS
.
vbus
.
$off
(
"workflow-state-change"
)
GMS
.
vbus
.
$off
(
"workflow-state-change"
,
this
.
changeFormState
)
GMS
.
vbus
.
$off
(
"change-form-state"
);
GMS
.
vbus
.
$off
(
"change-form-state"
,
this
.
changeFormState
);
this
.
$portalAPI
.
off
(
'on-close-tag'
,
this
.
checkBillChange
)
this
.
$portalAPI
.
off
(
'on-close-tag'
,
this
.
checkBillChange
)
},
},
methods
:
{
methods
:
{
changeFormState
(
param
){
if
(
param
&&
Object
.
prototype
.
toString
.
call
(
param
)
==
'[object Object]'
){
const
{
state
,
billId
}
=
param
;
if
(
billId
!==
undefined
)
{
this
.
billId
=
billId
;
}
this
.
state
=
state
;
}
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
init
=
true
;
});
},
checkBillChange
(
cb
,
id
)
{
checkBillChange
(
cb
,
id
)
{
if
(
id
!=
this
.
curTagId
)
{
if
(
id
!=
this
.
curTagId
)
{
cb
(
true
)
cb
(
true
)
...
...
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