Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aceite-tecnico-frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Renan de Jesus Montenegro da Silva
aceite-tecnico-frontend
Commits
b31d0e30
Commit
b31d0e30
authored
Jul 23, 2025
by
RenanMontenegro3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:"alteração em add+ edit + visualização de navio"
parent
7227c5a2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
navio-add.component.html
src/app/pages/crud-navios/navio-add/navio-add.component.html
+3
-3
navio-add.component.ts
src/app/pages/crud-navios/navio-add/navio-add.component.ts
+1
-1
navio-edit.component.html
...pp/pages/crud-navios/navio-edit/navio-edit.component.html
+9
-1
navio-edit.component.ts
src/app/pages/crud-navios/navio-edit/navio-edit.component.ts
+1
-0
visualizacao-navio.component.html
...vios/visualizacao-navio/visualizacao-navio.component.html
+3
-0
No files found.
src/app/pages/crud-navios/navio-add/navio-add.component.html
View file @
b31d0e30
...
...
@@ -48,9 +48,9 @@
<div
class=
"row"
>
<mat-form-field
class=
"field medium"
appearance=
"outline"
>
<mat-label>
Calado Máximo
</mat-label>
<input
matInput
type=
"text"
formControlName=
"calado_max
imo
"
[currencyMask]=
"{ prefix: '', thousands: '.', decimal: ',' }"
>
<mat-error
*ngIf=
"empForm.get('calado_max
imo
')?.invalid"
>
{{ getErrorMessage('calado_max
imo
') }}
<input
matInput
type=
"text"
formControlName=
"calado_max"
[currencyMask]=
"{ prefix: '', thousands: '.', decimal: ',' }"
>
<mat-error
*ngIf=
"empForm.get('calado_max')?.invalid"
>
{{ getErrorMessage('calado_max') }}
</mat-error>
</mat-form-field>
</div>
...
...
src/app/pages/crud-navios/navio-add/navio-add.component.ts
View file @
b31d0e30
...
...
@@ -71,7 +71,7 @@ export class NavioAddComponent implements OnInit {
mfold_quilha
:
[
''
,
Validators
.
required
],
categoria
:
[
''
,
Validators
.
required
],
flag
:
[
''
,
Validators
.
required
],
calado_max
imo
:
[
''
,
Validators
.
required
],
calado_max
:
[
''
,
Validators
.
required
],
obs
:
[
''
],
});
...
...
src/app/pages/crud-navios/navio-edit/navio-edit.component.html
View file @
b31d0e30
...
...
@@ -83,7 +83,15 @@
getErrorMessage("mfold_quilha")
}}
</mat-error>
</mat-form-field>
<div
class=
"row"
>
<mat-form-field
class=
"field medium"
appearance=
"outline"
>
<mat-label>
Calado Máximo
</mat-label>
<input
matInput
type=
"text"
formControlName=
"calado_max"
[currencyMask]=
"{ prefix: '', thousands: '.', decimal: ',' }"
>
<mat-error
*ngIf=
"empForm.get('calado_max')?.invalid"
>
{{ getErrorMessage('calado_max') }}
</mat-error>
</mat-form-field>
</div>
<mat-form-field
class=
"field medium"
appearance=
"outline"
>
<mat-label>
Categoria
</mat-label>
<mat-select
formControlName=
"categoria"
(selectionChange)=
"onCategoriaChange($event.value)"
>
...
...
src/app/pages/crud-navios/navio-edit/navio-edit.component.ts
View file @
b31d0e30
...
...
@@ -72,6 +72,7 @@ export class NavioEditComponent implements OnInit {
categoria
:
[
Number
(
this
.
data
?.
categoria
)
||
''
,
Validators
.
required
],
flag
:
[
Number
(
this
.
data
?.
flag
)
||
''
,
Validators
.
required
],
obs
:
[
this
.
data
?.
obs
||
''
],
calado_max
:
[
Number
(
this
.
data
?.
calado_max
)
||
''
,
Validators
.
required
],
});
this
.
empForm
.
get
(
'
categoria
'
)?.
valueChanges
.
subscribe
(
catId
=>
{
const
cat
=
this
.
categoria
.
find
((
c
:
any
)
=>
c
.
id
===
catId
);
...
...
src/app/pages/crud-navios/visualizacao-navio/visualizacao-navio.component.html
View file @
b31d0e30
...
...
@@ -23,6 +23,9 @@
<div
class=
"column"
style=
"flex: 1 1 30%; margin-bottom: 10px;"
>
<p><strong>
Boca:
</strong>
{{ data.boca || 'Não informado' }}
</p>
</div>
<div
class=
"column"
style=
"flex: 1 1 30%; margin-bottom: 10px;"
>
<p><strong>
Calado Máximo:
</strong>
{{ data.calado_max || 'Não informado' }}
</p>
</div>
<div
class=
"column"
style=
"flex: 1 1 30%; margin-bottom: 10px;"
>
<p><strong>
DWT:
</strong>
{{ data.dwt || 'Não informado' }}
</p>
</div>
...
...
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