Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
witiumCloud2
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
WitCloud
witiumCloud2
Commits
4d8a2d86
Commit
4d8a2d86
authored
Apr 11, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加图标
parent
f58afd78
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
151 additions
and
291 deletions
+151
-291
layout.component.html
src/app/layout/layout.component.html
+5
-5
layout.component.scss
src/app/layout/layout.component.scss
+1
-1
layout.module.ts
src/app/layout/layout.module.ts
+0
-4
leftmenu.component.html
src/app/layout/leftmenu/leftmenu.component.html
+1
-1
leftmenu.component.ts
src/app/layout/leftmenu/leftmenu.component.ts
+15
-4
operate.component.html
src/app/main/operate/operate.component.html
+0
-3
operate.component.ts
src/app/main/operate/operate.component.ts
+0
-15
person.component.html
src/app/main/person/person.component.html
+0
-3
person.component.ts
src/app/main/person/person.component.ts
+0
-15
router.module.ts
src/app/router.module.ts
+3
-7
en.json
src/assets/i18n/en.json
+22
-1
jpn.json
src/assets/i18n/jpn.json
+22
-1
zh.json
src/assets/i18n/zh.json
+18
-1
iconfont.css
src/assets/iconfont/iconfont.css
+43
-135
iconfont.eot
src/assets/iconfont/iconfont.eot
+0
-0
iconfont.svg
src/assets/iconfont/iconfont.svg
+21
-90
iconfont.ttf
src/assets/iconfont/iconfont.ttf
+0
-0
iconfont.woff
src/assets/iconfont/iconfont.woff
+0
-0
styles.scss
src/styles.scss
+0
-5
No files found.
src/app/layout/layout.component.html
View file @
4d8a2d86
...
@@ -5,17 +5,17 @@
...
@@ -5,17 +5,17 @@
<div
style=
"height: 54px;"
></div>
<div
style=
"height: 54px;"
></div>
</span>
</span>
<span
*
ngIf=
"isCollapsed"
style=
"width: calc(50% - 64px);display: block;"
>
<span
*
ngIf=
"isCollapsed"
style=
"width: calc(50% - 64px);display: block;"
>
<
i
class=
"iconfont icon-cloud"
></i
>
<
!--<i class="iconfont icon-cloud"></i>--
>
</span>
</span>
</div>
</div>
<app-leftmenu
#
leftmenu
[
isCollapsed
]="
isCollapsed
"
[
selectedItem
]="
selectedItem
"
></app-leftmenu>
<app-leftmenu
#
leftmenu
[
isCollapsed
]="
isCollapsed
"
[
selectedItem
]="
selectedItem
"
></app-leftmenu>
</nz-sider>
</nz-sider>
<nz-layout>
<nz-layout>
<nz-header
class=
"logoBackground bottomLine"
style=
"padding:0;position:fixed; width:100%;z-index: 99;border-bottom: 1px solid rgb(230, 230, 230);"
>
<nz-header
class=
"logoBackground bottomLine"
style=
"padding:0;position:fixed; width:100%;z-index: 99;border-bottom: 1px solid rgb(230, 230, 230);"
>
<i
class=
"i
confont trigger textStyle1 whenHover"
[
class
.
icon-toFold
]="!
isCollapsed
"
<i
class=
"i
o trigger textStyle1 whenHover"
[
class
.
i-shou
]="!
isCollapsed
"
[
class
.
i
con-toOpen
]="
isCollapsed
"
(
click
)="
changeCollapsed
()"
></i>
[
class
.
i
-fang
]="
isCollapsed
"
(
click
)="
changeCollapsed
()"
></i>
<label
class=
"linkToPersonSetting whenHover textStyle1"
routerLink=
"/app/system/person"
>
<label
class=
"linkToPersonSetting whenHover textStyle1"
routerLink=
"/app/system/person"
>
<i
class=
"i
confont icon-user
"
></i>
<i
class=
"i
o i-person
"
></i>
{{'person' | translate}}
{{'person' | translate}}
</label>
</label>
<label
class=
"loginOut whenHover textStyle1"
(
click
)="
loginOut
()"
>
<label
class=
"loginOut whenHover textStyle1"
(
click
)="
loginOut
()"
>
...
@@ -32,6 +32,6 @@
...
@@ -32,6 +32,6 @@
</nz-layout>
</nz-layout>
</nz-layout>
</nz-layout>
<ng-template
#
trigger
>
<ng-template
#
trigger
>
<i
class=
"i
confont icon-up
"
></i>
<i
class=
"i
o i-shang
"
></i>
</ng-template>
</ng-template>
<!--<div class="footer"></div>-->
<!--<div class="footer"></div>-->
src/app/layout/layout.component.scss
View file @
4d8a2d86
...
@@ -46,6 +46,6 @@ ul {
...
@@ -46,6 +46,6 @@ ul {
width
:
199px
;
width
:
199px
;
}
}
.width-
8
0
{
.width-
6
0
{
width
:
79px
;
width
:
79px
;
}
}
src/app/layout/layout.module.ts
View file @
4d8a2d86
...
@@ -11,10 +11,8 @@ import {FooterComponent} from './footer/footer.component';
...
@@ -11,10 +11,8 @@ import {FooterComponent} from './footer/footer.component';
import
{
BreadcrumbComponent
}
from
'./breadcrumb/breadcrumb.component'
;
import
{
BreadcrumbComponent
}
from
'./breadcrumb/breadcrumb.component'
;
import
{
HomeComponent
}
from
'../main/home/home.component'
;
import
{
HomeComponent
}
from
'../main/home/home.component'
;
import
{
LayoutRoutingModule
}
from
'../router.module'
;
import
{
LayoutRoutingModule
}
from
'../router.module'
;
import
{
PersonComponent
}
from
'../main/person/person.component'
;
import
{
RoleComponent
}
from
'../main/role/role.component'
;
import
{
RoleComponent
}
from
'../main/role/role.component'
;
import
{
UserComponent
}
from
'../main/user/user.component'
;
import
{
UserComponent
}
from
'../main/user/user.component'
;
import
{
OperateComponent
}
from
'../main/operate/operate.component'
;
import
{
LogComponent
}
from
'../main/log/log.component'
;
import
{
LogComponent
}
from
'../main/log/log.component'
;
// 通用组件
// 通用组件
import
{
SearchDateComponent
}
from
'../component/search-date/search-date.component'
;
import
{
SearchDateComponent
}
from
'../component/search-date/search-date.component'
;
...
@@ -48,11 +46,9 @@ import {TransferComponent} from '../component/transfer/transfer.component';
...
@@ -48,11 +46,9 @@ import {TransferComponent} from '../component/transfer/transfer.component';
FooterComponent
,
FooterComponent
,
BreadcrumbComponent
,
BreadcrumbComponent
,
HomeComponent
,
HomeComponent
,
PersonComponent
,
UserComponent
,
UserComponent
,
RoleComponent
,
RoleComponent
,
LogComponent
,
LogComponent
,
OperateComponent
,
SearchDateComponent
,
SearchDateComponent
,
SearchItemComponent
,
SearchItemComponent
,
SearchSelectComponent
,
SearchSelectComponent
,
...
...
src/app/layout/leftmenu/leftmenu.component.html
View file @
4d8a2d86
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"first-floor textStyle1 whenHover"
[
title
]="
item
.
name
|
translate
"
*
ngIf=
"(item.child && item.child.length > 0) || item.type"
(
click
)="
selectFirstFloor
(
item
)"
[
ngClass
]="{'
isSelectedFirst
'
:
isSelected
[
0
]
===
item
.
name
,
'
isSelectedSecond
'
:
isSelected
[
0
]
===
item
.
name
&&
item
.
type =
==
1
}"
>
<div
class=
"first-floor textStyle1 whenHover"
[
title
]="
item
.
name
|
translate
"
*
ngIf=
"(item.child && item.child.length > 0) || item.type"
(
click
)="
selectFirstFloor
(
item
)"
[
ngClass
]="{'
isSelectedFirst
'
:
isSelected
[
0
]
===
item
.
name
,
'
isSelectedSecond
'
:
isSelected
[
0
]
===
item
.
name
&&
item
.
type =
==
1
}"
>
<i
[
class
]="
item
.
icon
"
[
ngClass
]="{'
iconLeft
'
:
!
isCollapsed
,'
iconLeftCos
'
:
isCollapsed
}"
></i>
<i
[
class
]="
item
.
icon
"
[
ngClass
]="{'
iconLeft
'
:
!
isCollapsed
,'
iconLeftCos
'
:
isCollapsed
}"
></i>
<span
*
ngIf=
"!isCollapsed"
>
{{item.name | translate}}
</span>
<span
*
ngIf=
"!isCollapsed"
>
{{item.name | translate}}
</span>
<i
class=
"i
confont iconRight"
[
ngClass
]="{'
icon-down
'
:
!
isOpen
[
item
.
name
]
&&
!
item
.
type
&&
!
isCollapsed
,'
icon-up
'
:
isOpen
[
item
.
name
]
&&
!
item
.
type
&&
!
isCollapsed
,
'
icon-right
'
:
isCollapsed
&&
!
item
.
type
}"
></i>
<i
class=
"i
o iconRight"
[
ngClass
]="{'
i-xia
'
:
!
isOpen
[
item
.
name
]
&&
!
item
.
type
&&
!
isCollapsed
,'
i-shang
'
:
isOpen
[
item
.
name
]
&&
!
item
.
type
&&
!
isCollapsed
,
'
i-you
'
:
isCollapsed
&&
!
item
.
type
}"
></i>
</div>
</div>
<div
*
ngIf=
"isOpen[item.name] && !isCollapsed"
class=
"menuSecond whenHover"
>
<div
*
ngIf=
"isOpen[item.name] && !isCollapsed"
class=
"menuSecond whenHover"
>
<div
class=
"second-floor whenHover textStyle2"
[
title
]="
one
.
name
|
translate
"
*
ngFor=
"let one of item.child"
<div
class=
"second-floor whenHover textStyle2"
[
title
]="
one
.
name
|
translate
"
*
ngFor=
"let one of item.child"
...
...
src/app/layout/leftmenu/leftmenu.component.ts
View file @
4d8a2d86
...
@@ -25,14 +25,25 @@ export class LeftmenuComponent implements OnInit, OnDestroy {
...
@@ -25,14 +25,25 @@ export class LeftmenuComponent implements OnInit, OnDestroy {
}
}
dataArr
=
[{
dataArr
=
[{
name
:
'home'
,
name
:
'home'
,
icon
:
'i
confont icon-hom
e'
,
icon
:
'i
o i-shouy
e'
,
type
:
1
,
type
:
1
,
child
:
[]
child
:
[]
},
{
},
{
name
:
'
system
'
,
name
:
'
deviceCenter
'
,
icon
:
'i
confont icon-setting
'
,
icon
:
'i
o i-shebei
'
,
type
:
0
,
type
:
0
,
child
:
[{
name
:
'person'
},
{
name
:
'role'
},
{
name
:
'user'
},
{
name
:
'operate'
},
{
name
:
'log'
}]
child
:
[{
name
:
'gatewayMgr'
},
{
name
:
'sensorMgr'
},
{
name
:
'moduleMgr'
},
{
name
:
'topicModuleMgr'
},
{
name
:
'setModuleMgr'
},
{
name
:
'mqttSetMgr'
}]
},
{
name
:
'systemMgr'
,
icon
:
'io i-shezhi'
,
type
:
0
,
child
:
[{
name
:
'userCenter'
},
{
name
:
'customCenter'
},
{
name
:
'partMgr'
},
{
name
:
'areaMgr'
},
{
name
:
'logMgr'
}]
},
{
name
:
'dataCenter'
,
icon
:
'io i-ico_data'
,
type
:
0
,
child
:
[{
name
:
'currentData'
},
{
name
:
'dataSum'
},
{
name
:
'historyData'
}]
}];
}];
isOpen
=
{
monitoring
:
false
,
deviceManage
:
false
,
pileManage
:
false
,
moduleCenter
:
false
,
systemSet
:
false
};
isOpen
=
{
monitoring
:
false
,
deviceManage
:
false
,
pileManage
:
false
,
moduleCenter
:
false
,
systemSet
:
false
};
isSelected
=
[
''
,
''
];
isSelected
=
[
''
,
''
];
...
...
src/app/main/operate/operate.component.html
deleted
100644 → 0
View file @
f58afd78
<p>
operate works!
</p>
src/app/main/operate/operate.component.ts
deleted
100644 → 0
View file @
f58afd78
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-operate'
,
templateUrl
:
'./operate.component.html'
,
styles
:
[]
})
export
class
OperateComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
src/app/main/person/person.component.html
deleted
100644 → 0
View file @
f58afd78
<p>
person works!
</p>
src/app/main/person/person.component.ts
deleted
100644 → 0
View file @
f58afd78
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-person'
,
templateUrl
:
'./person.component.html'
,
styles
:
[]
})
export
class
PersonComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
src/app/router.module.ts
View file @
4d8a2d86
...
@@ -3,8 +3,6 @@ import { LayoutComponent } from './layout/layout.component';
...
@@ -3,8 +3,6 @@ import { LayoutComponent } from './layout/layout.component';
import
{
AuthService
}
from
'./service/auth'
;
import
{
AuthService
}
from
'./service/auth'
;
import
{
HomeComponent
}
from
'./main/home/home.component'
;
import
{
HomeComponent
}
from
'./main/home/home.component'
;
import
{
LogComponent
}
from
'./main/log/log.component'
;
import
{
LogComponent
}
from
'./main/log/log.component'
;
import
{
OperateComponent
}
from
'./main/operate/operate.component'
;
import
{
PersonComponent
}
from
'./main/person/person.component'
;
import
{
RoleComponent
}
from
'./main/role/role.component'
;
import
{
RoleComponent
}
from
'./main/role/role.component'
;
import
{
UserComponent
}
from
'./main/user/user.component'
;
import
{
UserComponent
}
from
'./main/user/user.component'
;
...
@@ -24,11 +22,9 @@ const routes: Routes = [
...
@@ -24,11 +22,9 @@ const routes: Routes = [
children
:
[
children
:
[
{
path
:
''
,
redirectTo
:
'/extra/login'
,
pathMatch
:
'full'
},
{
path
:
''
,
redirectTo
:
'/extra/login'
,
pathMatch
:
'full'
},
{
path
:
'home'
,
component
:
HomeComponent
},
{
path
:
'home'
,
component
:
HomeComponent
},
{
path
:
'system/user'
,
component
:
UserComponent
},
{
path
:
'systemMgr/userCenter'
,
component
:
UserComponent
},
{
path
:
'system/role'
,
component
:
RoleComponent
},
{
path
:
'systemMgr/roleMgr'
,
component
:
RoleComponent
},
{
path
:
'system/person'
,
component
:
PersonComponent
},
{
path
:
'systemMgr/logMgr'
,
component
:
LogComponent
},
{
path
:
'system/operate'
,
component
:
OperateComponent
},
{
path
:
'system/log'
,
component
:
LogComponent
},
]
]
}
}
];
];
...
...
src/assets/i18n/en.json
View file @
4d8a2d86
...
@@ -49,5 +49,26 @@
...
@@ -49,5 +49,26 @@
"userImg"
:
"用户头像"
,
"userImg"
:
"用户头像"
,
"editRole"
:
"编辑角色"
,
"editRole"
:
"编辑角色"
,
"addRole"
:
"新增角色"
,
"addRole"
:
"新增角色"
,
"confirmDeleteThisRecord"
:
"确认删除这条记录吗"
"confirmDeleteThisRecord"
:
"确认删除这条记录吗"
,
"loginOutValidityTips"
:
"登录凭证失效,请重新登录"
,
"noLoginTips"
:
"您尚未登录,请登录"
,
"wrongServerWithCode"
:
"服务器异常,错误代码: "
,
"wrongServer"
:
"服务器异常, 请稍后再试"
,
"deviceCenter"
:
"设备中心"
,
"gatewayMgr"
:
"网关管理"
,
"sensorMgr"
:
"传感器管理"
,
"moduleMgr"
:
"模块管理"
,
"topicModuleMgr"
:
"主题模板管理"
,
"setModuleMgr"
:
"配置模板管理"
,
"mqttSetMgr"
:
"MQTT账户管理"
,
"systemMgr"
:
"系统管理"
,
"userCenter"
:
"用户中心"
,
"customCenter"
:
"客户中心"
,
"partMgr"
:
"场景管理"
,
"areaMgr"
:
"区域管理"
,
"logMgr"
:
"日志管理"
,
"dataCenter"
:
"数据中心"
,
"currentData"
:
"实时数据"
,
"dataSum"
:
"数据统计"
,
"historyData"
:
"历史数据"
}
}
src/assets/i18n/jpn.json
View file @
4d8a2d86
...
@@ -49,5 +49,26 @@
...
@@ -49,5 +49,26 @@
"userImg"
:
"用户头像"
,
"userImg"
:
"用户头像"
,
"editRole"
:
"编辑角色"
,
"editRole"
:
"编辑角色"
,
"addRole"
:
"新增角色"
,
"addRole"
:
"新增角色"
,
"confirmDeleteThisRecord"
:
"确认删除这条记录吗"
"confirmDeleteThisRecord"
:
"确认删除这条记录吗"
,
"loginOutValidityTips"
:
"登录凭证失效,请重新登录"
,
"noLoginTips"
:
"您尚未登录,请登录"
,
"wrongServerWithCode"
:
"服务器异常,错误代码: "
,
"wrongServer"
:
"服务器异常, 请稍后再试"
,
"deviceCenter"
:
"设备中心"
,
"gatewayMgr"
:
"网关管理"
,
"sensorMgr"
:
"传感器管理"
,
"moduleMgr"
:
"模块管理"
,
"topicModuleMgr"
:
"主题模板管理"
,
"setModuleMgr"
:
"配置模板管理"
,
"mqttSetMgr"
:
"MQTT账户管理"
,
"systemMgr"
:
"系统管理"
,
"userCenter"
:
"用户中心"
,
"customCenter"
:
"客户中心"
,
"partMgr"
:
"场景管理"
,
"areaMgr"
:
"区域管理"
,
"logMgr"
:
"日志管理"
,
"dataCenter"
:
"数据中心"
,
"currentData"
:
"实时数据"
,
"dataSum"
:
"数据统计"
,
"historyData"
:
"历史数据"
}
}
src/assets/i18n/zh.json
View file @
4d8a2d86
...
@@ -53,5 +53,22 @@
...
@@ -53,5 +53,22 @@
"loginOutValidityTips"
:
"登录凭证失效,请重新登录"
,
"loginOutValidityTips"
:
"登录凭证失效,请重新登录"
,
"noLoginTips"
:
"您尚未登录,请登录"
,
"noLoginTips"
:
"您尚未登录,请登录"
,
"wrongServerWithCode"
:
"服务器异常,错误代码: "
,
"wrongServerWithCode"
:
"服务器异常,错误代码: "
,
"wrongServer"
:
"服务器异常, 请稍后再试"
"wrongServer"
:
"服务器异常, 请稍后再试"
,
"deviceCenter"
:
"设备中心"
,
"gatewayMgr"
:
"网关管理"
,
"sensorMgr"
:
"传感器管理"
,
"moduleMgr"
:
"模块管理"
,
"topicModuleMgr"
:
"主题模板管理"
,
"setModuleMgr"
:
"配置模板管理"
,
"mqttSetMgr"
:
"MQTT账户管理"
,
"systemMgr"
:
"系统管理"
,
"userCenter"
:
"用户中心"
,
"customCenter"
:
"客户中心"
,
"partMgr"
:
"场景管理"
,
"areaMgr"
:
"区域管理"
,
"logMgr"
:
"日志管理"
,
"dataCenter"
:
"数据中心"
,
"currentData"
:
"实时数据"
,
"dataSum"
:
"数据统计"
,
"historyData"
:
"历史数据"
}
}
src/assets/iconfont/iconfont.css
View file @
4d8a2d86
This diff is collapsed.
Click to expand it.
src/assets/iconfont/iconfont.eot
View file @
4d8a2d86
No preview for this file type
src/assets/iconfont/iconfont.svg
View file @
4d8a2d86
This diff is collapsed.
Click to expand it.
src/assets/iconfont/iconfont.ttf
View file @
4d8a2d86
No preview for this file type
src/assets/iconfont/iconfont.woff
View file @
4d8a2d86
No preview for this file type
src/styles.scss
View file @
4d8a2d86
...
@@ -316,11 +316,6 @@ span.addSpan {
...
@@ -316,11 +316,6 @@ span.addSpan {
position
:
relative
;
position
:
relative
;
}
}
.addIcon
.iconfont
{
font-size
:
32px
;
color
:
#52c41a
;
}
.inModal
{
.inModal
{
width
:
100%
;
width
:
100%
;
}
}
...
...
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