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
654873f4
Commit
654873f4
authored
Sep 20, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modal update
parent
70cbd277
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
358 additions
and
55 deletions
+358
-55
company-modal.component.html
...ain/webapp/app/company-modal/company-modal.component.html
+0
-3
company-modal.component.ts
src/main/webapp/app/company-modal/company-modal.component.ts
+0
-15
line.component.ts
src/main/webapp/app/netTopology/model/line/line.component.ts
+1
-1
company-modal.component.html
...-manager/modal/company-modal/company-modal.component.html
+32
-0
company-modal.component.ts
...ct-manager/modal/company-modal/company-modal.component.ts
+87
-0
project-modal.component.html
...-manager/modal/project-modal/project-modal.component.html
+32
-0
project-modal.component.ts
...ct-manager/modal/project-modal/project-modal.component.ts
+87
-0
team-modal.component.html
...roject-manager/modal/team-modal/team-modal.component.html
+32
-0
team-modal.component.ts
.../project-manager/modal/team-modal/team-modal.component.ts
+87
-0
project-modal.component.html
...ain/webapp/app/project-modal/project-modal.component.html
+0
-3
project-modal.component.ts
src/main/webapp/app/project-modal/project-modal.component.ts
+0
-15
team-modal.component.html
src/main/webapp/app/team-modal/team-modal.component.html
+0
-3
team-modal.component.ts
src/main/webapp/app/team-modal/team-modal.component.ts
+0
-15
No files found.
src/main/webapp/app/company-modal/company-modal.component.html
deleted
100644 → 0
View file @
70cbd277
<p>
company-modal works!
</p>
src/main/webapp/app/company-modal/company-modal.component.ts
deleted
100644 → 0
View file @
70cbd277
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'smart-company-modal'
,
templateUrl
:
'./company-modal.component.html'
,
styles
:
[]
})
export
class
CompanyModalComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
src/main/webapp/app/netTopology/model/line/line.component.ts
View file @
654873f4
...
...
@@ -116,7 +116,7 @@ export class LineComponent implements OnInit {
type
:
"in"
,
pageNum
:
this
.
inPageNum
,
pageCount
:
this
.
inPageCount
}
}
;
this
.
topologySer
.
findFlowItemByHost
(
data
).
subscribe
(
(
res
)
=>
{
this
.
totalNum
=
res
.
data
.
totalNum
;
...
...
src/main/webapp/app/project-manager/modal/company-modal/company-modal.component.html
0 → 100644
View file @
654873f4
<nz-modal
[
nzWidth
]="
780
"
[(
nzVisible
)]="
isVisiable
"
nzTitle=
"流量配置"
(
nzOnCancel
)="
handleCancel
()"
(
nzOnOk
)="
handleOk
()"
>
<div
class=
"padding-10"
>
<input
name=
"outSearchName"
(
keyup
.
enter
)="
getList
()"
style=
"width: 200px;"
type=
"text"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
placeholder=
"输入名称"
>
<button
(
click
)="
getList
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
<nz-table
#
basicTable
[
nzData
]="
page
.
list
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
page
.
totalNum
"
[
nzPageIndex
]="
page
.
pageNum
"
[
nzPageSize
]="
page
.
pageCount
"
(
nzCurrentPageDataChange
)="
PageDataChange
($
event
)"
(
nzPageIndexChange
)="
changePage
($
event
)"
>
<thead>
<tr>
<th></th>
<th>
名称
</th>
<th>
主机名
</th>
<th>
键值
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let data of basicTable.data"
>
<td
nzShowCheckbox
[(
nzChecked
)]="
data
.
checked
"
(
nzCheckedChange
)="
selectItem
(
data
,$
event
)"
></td>
<td>
{{data.name}}
</td>
<td>
{{data.hostName}}
</td>
<td>
{{data.key}}
</td>
</tr>
</tbody>
</nz-table>
</nz-modal>
src/main/webapp/app/project-manager/modal/company-modal/company-modal.component.ts
0 → 100644
View file @
654873f4
import
{
Component
,
EventEmitter
,
OnInit
,
Output
}
from
'@angular/core'
;
import
{
ProjectService
}
from
'../../project.service'
;
@
Component
({
selector
:
'smart-company-modal'
,
templateUrl
:
'./company-modal.component.html'
,
styles
:
[]
})
export
class
CompanyModalComponent
implements
OnInit
{
@
Output
()
done
=
new
EventEmitter
<
any
>
();
isVisiable
=
false
;
obj
=
{
keyword
:
''
};
page
=
{
list
:
[],
isLoading
:
false
,
totalNum
:
0
,
pageNum
:
1
,
pageCount
:
5
,
};
inSelect
;
constructor
(
private
projectSer
:
ProjectService
)
{
}
ngOnInit
()
{
this
.
getList
();
}
getList
()
{
this
.
page
.
isLoading
=
true
;
const
obj
=
{
obj
:
this
.
obj
,
pageNum
:
this
.
page
.
pageNum
,
pageCount
:
this
.
page
.
pageCount
};
this
.
projectSer
.
selectMaintainTeam
(
obj
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
page
.
list
=
res
.
data
.
data
;
this
.
page
.
totalNum
=
res
.
data
.
totalNum
;
this
.
page
.
isLoading
=
false
;
}
}
);
}
PageDataChange
(
e
)
{
}
changePage
(
e
)
{
this
.
page
.
pageNum
=
e
;
this
.
getList
();
}
selectItem
(
item
,
e
)
{
if
(
e
)
{
const
arr
=
this
.
page
.
list
.
map
(
data
=>
{
return
data
.
itemId
;
});
const
old
=
this
.
inSelect
;
if
(
old
)
{
const
index
=
arr
.
indexOf
(
old
.
itemId
);
this
.
page
.
list
[
index
].
checked
=
false
;
}
this
.
inSelect
=
item
;
}
else
{
this
.
inSelect
=
null
;
}
}
handleOk
(){
this
.
isVisiable
=
false
;
this
.
done
.
emit
(
this
.
inSelect
);
}
handleCancel
(){
this
.
isVisiable
=
false
;
}
}
src/main/webapp/app/project-manager/modal/project-modal/project-modal.component.html
0 → 100644
View file @
654873f4
<nz-modal
[
nzWidth
]="
780
"
[(
nzVisible
)]="
isVisiable
"
nzTitle=
"流量配置"
(
nzOnCancel
)="
handleCancel
()"
(
nzOnOk
)="
handleOk
()"
>
<div
class=
"padding-10"
>
<input
name=
"outSearchName"
(
keyup
.
enter
)="
getList
()"
style=
"width: 200px;"
type=
"text"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
placeholder=
"输入名称"
>
<button
(
click
)="
getList
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
<nz-table
#
basicTable
[
nzData
]="
page
.
list
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
page
.
totalNum
"
[
nzPageIndex
]="
page
.
pageNum
"
[
nzPageSize
]="
page
.
pageCount
"
(
nzCurrentPageDataChange
)="
PageDataChange
($
event
)"
(
nzPageIndexChange
)="
changePage
($
event
)"
>
<thead>
<tr>
<th></th>
<th>
名称
</th>
<th>
主机名
</th>
<th>
键值
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let data of basicTable.data"
>
<td
nzShowCheckbox
[(
nzChecked
)]="
data
.
checked
"
(
nzCheckedChange
)="
selectItem
(
data
,$
event
)"
></td>
<td>
{{data.name}}
</td>
<td>
{{data.hostName}}
</td>
<td>
{{data.key}}
</td>
</tr>
</tbody>
</nz-table>
</nz-modal>
src/main/webapp/app/project-manager/modal/project-modal/project-modal.component.ts
0 → 100644
View file @
654873f4
import
{
Component
,
EventEmitter
,
OnInit
,
Output
}
from
'@angular/core'
;
import
{
ProjectService
}
from
'../../project.service'
;
@
Component
({
selector
:
'smart-project-modal'
,
templateUrl
:
'./project-modal.component.html'
,
styles
:
[]
})
export
class
ProjectModalComponent
implements
OnInit
{
@
Output
()
done
=
new
EventEmitter
<
any
>
();
isVisiable
=
false
;
obj
=
{
keyword
:
''
};
page
=
{
list
:
[],
isLoading
:
false
,
totalNum
:
0
,
pageNum
:
1
,
pageCount
:
5
,
};
inSelect
;
constructor
(
private
projectSer
:
ProjectService
)
{
}
ngOnInit
()
{
this
.
getList
();
}
getList
()
{
this
.
page
.
isLoading
=
true
;
const
obj
=
{
obj
:
this
.
obj
,
pageNum
:
this
.
page
.
pageNum
,
pageCount
:
this
.
page
.
pageCount
};
this
.
projectSer
.
selectMaintainTeam
(
obj
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
page
.
list
=
res
.
data
.
data
;
this
.
page
.
totalNum
=
res
.
data
.
totalNum
;
this
.
page
.
isLoading
=
false
;
}
}
);
}
PageDataChange
(
e
)
{
}
changePage
(
e
)
{
this
.
page
.
pageNum
=
e
;
this
.
getList
();
}
selectItem
(
item
,
e
)
{
if
(
e
)
{
const
arr
=
this
.
page
.
list
.
map
(
data
=>
{
return
data
.
itemId
;
});
const
old
=
this
.
inSelect
;
if
(
old
)
{
const
index
=
arr
.
indexOf
(
old
.
itemId
);
this
.
page
.
list
[
index
].
checked
=
false
;
}
this
.
inSelect
=
item
;
}
else
{
this
.
inSelect
=
null
;
}
}
handleOk
(){
this
.
isVisiable
=
false
;
this
.
done
.
emit
(
this
.
inSelect
);
}
handleCancel
(){
this
.
isVisiable
=
false
;
}
}
src/main/webapp/app/project-manager/modal/team-modal/team-modal.component.html
0 → 100644
View file @
654873f4
<nz-modal
[
nzWidth
]="
780
"
[(
nzVisible
)]="
isVisiable
"
nzTitle=
"流量配置"
(
nzOnCancel
)="
handleCancel
()"
(
nzOnOk
)="
handleOk
()"
>
<div
class=
"padding-10"
>
<input
name=
"outSearchName"
(
keyup
.
enter
)="
getList
()"
style=
"width: 200px;"
type=
"text"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
placeholder=
"输入名称"
>
<button
(
click
)="
getList
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
<nz-table
#
basicTable
[
nzData
]="
page
.
list
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
page
.
totalNum
"
[
nzPageIndex
]="
page
.
pageNum
"
[
nzPageSize
]="
page
.
pageCount
"
(
nzCurrentPageDataChange
)="
PageDataChange
($
event
)"
(
nzPageIndexChange
)="
changePage
($
event
)"
>
<thead>
<tr>
<th></th>
<th>
名称
</th>
<th>
主机名
</th>
<th>
键值
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let data of basicTable.data"
>
<td
nzShowCheckbox
[(
nzChecked
)]="
data
.
checked
"
(
nzCheckedChange
)="
selectItem
(
data
,$
event
)"
></td>
<td>
{{data.name}}
</td>
<td>
{{data.hostName}}
</td>
<td>
{{data.key}}
</td>
</tr>
</tbody>
</nz-table>
</nz-modal>
src/main/webapp/app/project-manager/modal/team-modal/team-modal.component.ts
0 → 100644
View file @
654873f4
import
{
Component
,
EventEmitter
,
OnInit
,
Output
}
from
'@angular/core'
;
import
{
ProjectService
}
from
'../../project.service'
;
@
Component
({
selector
:
'smart-team-modal'
,
templateUrl
:
'./team-modal.component.html'
,
styles
:
[]
})
export
class
TeamModalComponent
implements
OnInit
{
@
Output
()
done
=
new
EventEmitter
<
any
>
();
isVisiable
=
false
;
obj
=
{
keyword
:
''
};
page
=
{
list
:
[],
isLoading
:
false
,
totalNum
:
0
,
pageNum
:
1
,
pageCount
:
5
,
};
inSelect
;
constructor
(
private
projectSer
:
ProjectService
)
{
}
ngOnInit
()
{
this
.
getList
();
}
getList
()
{
this
.
page
.
isLoading
=
true
;
const
obj
=
{
obj
:
this
.
obj
,
pageNum
:
this
.
page
.
pageNum
,
pageCount
:
this
.
page
.
pageCount
};
this
.
projectSer
.
selectMaintainTeam
(
obj
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
page
.
list
=
res
.
data
.
data
;
this
.
page
.
totalNum
=
res
.
data
.
totalNum
;
this
.
page
.
isLoading
=
false
;
}
}
);
}
PageDataChange
(
e
)
{
}
changePage
(
e
)
{
this
.
page
.
pageNum
=
e
;
this
.
getList
();
}
selectItem
(
item
,
e
)
{
if
(
e
)
{
const
arr
=
this
.
page
.
list
.
map
(
data
=>
{
return
data
.
itemId
;
});
const
old
=
this
.
inSelect
;
if
(
old
)
{
const
index
=
arr
.
indexOf
(
old
.
itemId
);
this
.
page
.
list
[
index
].
checked
=
false
;
}
this
.
inSelect
=
item
;
}
else
{
this
.
inSelect
=
null
;
}
}
handleOk
(){
this
.
isVisiable
=
false
;
this
.
done
.
emit
(
this
.
inSelect
);
}
handleCancel
(){
this
.
isVisiable
=
false
;
}
}
src/main/webapp/app/project-modal/project-modal.component.html
deleted
100644 → 0
View file @
70cbd277
<p>
project-modal works!
</p>
src/main/webapp/app/project-modal/project-modal.component.ts
deleted
100644 → 0
View file @
70cbd277
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'smart-project-modal'
,
templateUrl
:
'./project-modal.component.html'
,
styles
:
[]
})
export
class
ProjectModalComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
src/main/webapp/app/team-modal/team-modal.component.html
deleted
100644 → 0
View file @
70cbd277
<p>
team-modal works!
</p>
src/main/webapp/app/team-modal/team-modal.component.ts
deleted
100644 → 0
View file @
70cbd277
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'smart-team-modal'
,
templateUrl
:
'./team-modal.component.html'
,
styles
:
[]
})
export
class
TeamModalComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
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