Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cassiopée
nghyd
Commits
b43145b2
Commit
b43145b2
authored
1 year ago
by
AUBRY JEAN-PASCAL
Browse files
Options
Downloads
Patches
Plain Diff
fix: implement update function when another macro rugo is selected
parent
027bec85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!252
release: version 4.18.0
,
!213
Resolve "Ajout du module courbe de remous d'une passe à macro-rugosité"
Pipeline
#151602
passed
1 year ago
Stage: install
Stage: build
Stage: clean-stale-branches
Stage: deploy-dev
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/formulaire/definition/form-macrorugo-remous.ts
+24
-24
24 additions, 24 deletions
src/app/formulaire/definition/form-macrorugo-remous.ts
with
24 additions
and
24 deletions
src/app/formulaire/definition/form-macrorugo-remous.ts
+
24
−
24
View file @
b43145b2
...
@@ -16,6 +16,7 @@ export class FormulaireMacrorugoRemous extends FormulaireFixedVar {
...
@@ -16,6 +16,7 @@ export class FormulaireMacrorugoRemous extends FormulaireFixedVar {
}
}
if
(
pam
!==
undefined
)
{
if
(
pam
!==
undefined
)
{
props
.
setPropValue
(
"
nubMacroRugo
"
,
pam
.
uid
);
props
.
setPropValue
(
"
nubMacroRugo
"
,
pam
.
uid
);
}
}
return
super
.
initNub
(
props
);
return
super
.
initNub
(
props
);
}
}
...
@@ -40,6 +41,7 @@ export class FormulaireMacrorugoRemous extends FormulaireFixedVar {
...
@@ -40,6 +41,7 @@ export class FormulaireMacrorugoRemous extends FormulaireFixedVar {
}
}
protected
reaffectResultComponents
()
{
protected
reaffectResultComponents
()
{
console
.
log
(
"
reaffect
"
);
const
mrr
=
this
.
currentNub
as
MacrorugoRemous
;
const
mrr
=
this
.
currentNub
as
MacrorugoRemous
;
mrr
.
syncSectionMacroRugo
();
mrr
.
syncSectionMacroRugo
();
...
@@ -81,30 +83,28 @@ export class FormulaireMacrorugoRemous extends FormulaireFixedVar {
...
@@ -81,30 +83,28 @@ export class FormulaireMacrorugoRemous extends FormulaireFixedVar {
// interface Observer
// interface Observer
// public update(sender: IObservable, data: any) {
public
update
(
sender
:
IObservable
,
data
:
any
,
props
?:
Props
)
{
// // copied from FormDefinition, to avoid calling super.update() that would trigger an unwanted this.refreshFieldsets();
// copied from FormDefinition, to avoid calling super.update() that would trigger an unwanted this.refreshFieldsets();
// if (sender instanceof Nub) {
if
(
sender
instanceof
Nub
)
{
// switch (data.action) {
switch
(
data
.
action
)
{
// case "resultUpdated":
case
"
resultUpdated
"
:
// // forward Nub results update notification to FormCompute objects
// forward Nub results update notification to FormCompute objects
// this.reaffectResultComponents();
this
.
reaffectResultComponents
();
// break;
break
;
// }
}
// }
}
// // copied from FormFixedVar, to avoid calling super.update()
// copied from FormFixedVar, to avoid calling super.update()
// if (data.action === "propertyChange") {
if
(
data
.
action
===
"
propertyChange
"
)
{
// this.reset();
this
.
reset
();
// }
}
// if (sender instanceof SelectField) {
if
(
sender
instanceof
SelectField
)
{
// this.reset(); // reset results
this
.
reset
();
// reset results
// console.log("update", data.action)
if
(
sender
.
id
===
"
select_target_pam
"
&&
data
.
action
===
"
select
"
)
{
// if (sender.id === "select_target_pam" && data.action === "select") {
this
.
_currentNub
.
setPropValue
(
"
nubMacroRugo
"
,
data
.
value
.
value
);
// // update Verificateur property: Pass to check
}
// this._currentNub.setPropValue("nubToVerify", data.value ? data.value.value : undefined);
}
// }
}
// }
// }
public
resetFormResults
()
{
public
resetFormResults
()
{
this
.
_remousResults
.
reset
();
this
.
_remousResults
.
reset
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment