Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
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
wangqinghua
smart
Commits
03e756cc
Commit
03e756cc
authored
Jan 18, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
64cf6b0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
sidebar.component.html
src/main/webapp/app/layouts/sidebar/sidebar.component.html
+0
-1
asset-part.component.ts
src/main/webapp/app/work/asset-part/asset-part.component.ts
+1
-0
type-asets.component.html
...ebapp/app/work/modal/type-asets/type-asets.component.html
+2
-2
type-asets.component.ts
.../webapp/app/work/modal/type-asets/type-asets.component.ts
+11
-3
No files found.
src/main/webapp/app/layouts/sidebar/sidebar.component.html
View file @
03e756cc
...
...
@@ -10,6 +10,5 @@
</ul>
</li>
</ng-container>
</ul>
src/main/webapp/app/work/asset-part/asset-part.component.ts
View file @
03e756cc
...
...
@@ -49,6 +49,7 @@ export class AssetPartComponent implements OnInit {
getTypeList
(){
this
.
getList
();
this
.
changeType
();
this
.
smartTypeAsets
.
getParentList
();
}
//父级分类
...
...
src/main/webapp/app/work/modal/type-asets/type-asets.component.html
View file @
03e756cc
...
...
@@ -4,8 +4,8 @@
<nz-form-item>
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"name"
>
分类类型
</nz-form-label>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<button
nz-button
nzSize=
"small"
[
nzType
]="
isParent
"
(
click
)="
checkChange
('
parent
')"
>
父分类
</button>
<button
nz-button
nzSize=
"small"
[
nzType
]="
isChildren
"
(
click
)="
checkChange
('
children
')"
>
子分类
</button>
<button
[
disabled
]="
updateId
"
nz-button
nzSize=
"small"
[
nzType
]="
isParent
"
(
click
)="
checkChange
('
parent
')"
>
父分类
</button>
<button
[
disabled
]="
updateId
"
nz-button
nzSize=
"small"
[
nzType
]="
isChildren
"
(
click
)="
checkChange
('
children
')"
>
子分类
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item
*
ngIf=
"isChildren == 'primary'"
>
...
...
src/main/webapp/app/work/modal/type-asets/type-asets.component.ts
View file @
03e756cc
...
...
@@ -7,7 +7,15 @@ import {NzMessageService} from 'ng-zorro-antd';
@
Component
({
selector
:
'smart-type-asets'
,
templateUrl
:
'./type-asets.component.html'
,
styles
:
[]
styles
:
[
`
:host ::ng-deep.ant-btn-primary.disabled, .ant-btn-primary[disabled]{
color: #fff;
background-color: #1890ff;
border-color: #1890ff;
}
`
]
})
export
class
TypeAsetsComponent
implements
OnInit
{
@
Output
()
done
=
new
EventEmitter
<
any
>
();
...
...
@@ -40,6 +48,7 @@ export class TypeAsetsComponent implements OnInit {
ngOnInit
()
{
this
.
initForm
();
this
.
getParentList
();
}
getParentList
(){
...
...
@@ -55,6 +64,7 @@ export class TypeAsetsComponent implements OnInit {
}
initForm
(){
this
.
updateId
=
null
;
this
.
isParent
=
'primary'
;
this
.
isChildren
=
'default'
;
this
.
validateForm
=
this
.
fb
.
group
(
...
...
@@ -70,13 +80,11 @@ export class TypeAsetsComponent implements OnInit {
showAddModal
(
title
)
{
this
.
isVisible
=
true
;
this
.
title
=
title
;
this
.
getParentList
();
}
showEditModal
(
title
,
id
)
{
this
.
isVisible
=
true
;
this
.
title
=
title
;
this
.
getParentList
();
this
.
updateId
=
id
;
this
.
workSer
.
findType
(
id
).
subscribe
(
(
res
)
=>
{
...
...
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