Skip to content

Commit 52da1a0

Browse files
committed
上次提交遗漏内容
1 parent 853359f commit 52da1a0

File tree

422 files changed

+15517
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

422 files changed

+15517
-79
lines changed

.angular-cli.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
"./assets/global/plugins/sweet-alert/sweetalert.min.js",
2727
"./assets/global/scripts/sweetalert.js",
2828
"../node_modules/echarts/dist/echarts.min.js",
29-
"..node_modules/fullcalendar/dist/fullcalendar.js"
29+
"../node_modules/moment/min/moment.min.js",
30+
"../node_modules/fullcalendar/dist/fullcalendar.min.js",
31+
"../node_modules/ztree/js/jquery.ztree.all.min.js",
32+
"../node_modules/jsplumb/dist/js/jsplumb.min.js"
3033
],
3134
"environmentSource": "environments/environment.ts",
3235
"environments": {

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,24 @@
2222
"@angular/platform-browser": "^4.0.0",
2323
"@angular/platform-browser-dynamic": "^4.0.0",
2424
"@angular/router": "^4.0.0",
25-
"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.26",
2625
"@types/hammerjs": "^2.0.34",
2726
"@types/jquery": "^2.0.45",
2827
"core-js": "^2.4.1",
2928
"echarts": "^3.6.1",
3029
"fullcalendar": "^3.4.0",
3130
"hammerjs": "^2.0.8",
3231
"jquery": "^3.2.1",
32+
"jsplumb": "^2.4.2",
3333
"material-design-icons": "^3.0.1",
3434
"material-design-lite": "^1.3.0",
35+
"moment": "^2.18.1",
3536
"ng2-ckeditor": "^1.1.7",
3637
"ng2-toastr": "^4.0.1",
3738
"ng2-translate": "^5.0.0",
3839
"ngx-echarts": "^1.2.0",
3940
"rxjs": "^5.1.0",
40-
"zone.js": "^0.8.4"
41+
"zone.js": "^0.8.4",
42+
"ztree": "^3.5.24"
4143
},
4244
"devDependencies": {
4345
"@angular/cli": "1.0.3",

src/app/app.component.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Component, OnInit } from '@angular/core';
22

33
import { TranslateService } from 'ng2-translate';
44

5+
declare var Common;
6+
57
declare var $: any;
68
@Component({
79
selector: 'app-root',
@@ -10,19 +12,21 @@ declare var $: any;
1012
})
1113
export class AppComponent implements OnInit {
1214

13-
constructor(private translate: TranslateService) { }
15+
constructor(private translate: TranslateService) {
16+
Common.startLoading();
17+
}
1418
ngOnInit() {
19+
// 简陋的根据屏幕大小定右边内容容器的宽高
1520
const windowWidth = window.innerWidth,
1621
windowHeight = window.innerHeight;
1722
$('.app-body, .body-footer').css('width', windowWidth - 246 + 'px');
1823
$('.app-body').css('height', windowHeight - 111 + 'px');
1924

20-
25+
// 国际化处理,现在只做中英文的
2126
this.translate.addLangs(["zh", "en"]);
2227
this.translate.setDefaultLang('zh');
23-
2428
const browserLang = this.translate.getBrowserLang();
25-
console.log("检测到的浏览器语言>" + browserLang);
29+
// console.log("检测到的浏览器语言>" + browserLang);
2630
this.translate.use(browserLang.match(/zh|en/) ? browserLang : 'zh');
2731
}
2832
}

src/app/app.routing.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import { AppCkeditorComponent } from './share/app-ckeditor/app-ckeditor.componen
1717
import { AppChartsComponent } from './share/app-charts/app-charts.component';
1818
import { AmapDemoComponent } from './share/app-amap/amap-demo.component';
1919
import { CalendarDemoComponent } from './share/app-calendar/calendar-demo.component';
20-
20+
import { AppAlertComponent } from './share/app-alert/app-alert.component';
21+
import { AppTreeComponent } from './share/app-tree/app-tree.component';
22+
import { AppJsplumbComponent } from './share/app-jsplumb/app-jsplumb.component';
2123

2224
const appRoutes: Routes = [
2325
{
@@ -76,6 +78,18 @@ const appRoutes: Routes = [
7678
path: 'calendar',
7779
component: CalendarDemoComponent
7880
},
81+
{
82+
path: 'alert',
83+
component: AppAlertComponent
84+
},
85+
{
86+
path: 'tree',
87+
component: AppTreeComponent
88+
},
89+
{
90+
path: 'jsplumb',
91+
component: AppJsplumbComponent
92+
},
7993
{
8094
path: '',
8195
redirectTo: '/home',

src/app/base-data/base-data.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { NgModule } from '@angular/core';
2+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
23
import { CommonModule } from '@angular/common';
34
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
45
import { RouterModule } from '@angular/router';
@@ -13,6 +14,7 @@ import { PersonManageService } from './person-manage.service';
1314

1415
@NgModule({
1516
imports: [
17+
BrowserAnimationsModule,
1618
CommonModule,
1719
FormsModule,
1820
MaterialModule,

src/app/base-data/person-add/person-add.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { TabControlService } from '../../layout/header/tab/tabControl.service';
66

77
declare var $: any;
88
declare var SweetAlert: any;
9+
declare var Common;
910

1011
@Component({
1112
selector: 'app-person-add',
@@ -83,6 +84,7 @@ export class PersonAddComponent implements OnInit {
8384
.map(position => this.filterPositions(position));
8485
}
8586
ngOnInit() {
87+
Common.stopLoading();
8688
}
8789

8890
filterStates(val: string) {

src/app/base-data/person-list/person-list.component.html

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="portlet display-list-container">
1+
<div class="portlet display-list-container" [@fadeIn]="'active'">
22
<div class="portlet-header display-list-header">
33
<div class="table-toolbar">
44
<div class="toolbar-btns">
@@ -9,12 +9,9 @@
99
</div>
1010

1111
<div class="toolbar-search">
12-
<mdl-textfield type="text" label="姓名" [(ngModel)]="searchObj.name" autocomplete="name" (blur)="onInputBlur($event)" (focus)="onInputFocus($event)"
13-
(keyup)="onInputKeyup($event)" floating-label></mdl-textfield>
14-
<mdl-textfield type="text" label="队伍" [(ngModel)]="searchObj.team" autocomplete="name" (blur)="onInputBlur($event)" (focus)="onInputFocus($event)"
15-
(keyup)="onInputKeyup($event)" floating-label></mdl-textfield>
16-
<mdl-textfield type="text" label="账号" [(ngModel)]="searchObj.account" autocomplete="name" (blur)="onInputBlur($event)" (focus)="onInputFocus($event)"
17-
(keyup)="onInputKeyup($event)" floating-label></mdl-textfield>
12+
<mdl-textfield type="text" label="姓名" [(ngModel)]="searchObj.name" autocomplete="name" (blur)="onInputBlur($event)" (focus)="onInputFocus($event)" (keyup)="onInputKeyup($event)" floating-label></mdl-textfield>
13+
<mdl-textfield type="text" label="队伍" [(ngModel)]="searchObj.team" autocomplete="name" (blur)="onInputBlur($event)" (focus)="onInputFocus($event)" (keyup)="onInputKeyup($event)" floating-label></mdl-textfield>
14+
<mdl-textfield type="text" label="账号" [(ngModel)]="searchObj.account" autocomplete="name" (blur)="onInputBlur($event)" (focus)="onInputFocus($event)" (keyup)="onInputKeyup($event)" floating-label></mdl-textfield>
1815
<button mdl-button mdl-button-type="fab" (click)="search()" class="btn-search">
1916
<i class="fa fa-search"></i>
2017
</button>
@@ -26,15 +23,14 @@
2623
</div>
2724
<div class="portlet-body display-list-body">
2825
<div class="table-container">
29-
<mdl-table-selectable mdl-shadow="2" id='person_manage_table' [table-model]="tableModel" [table-model-selected]="selected"
30-
(table-model-selectionChanged)="selectionChanged($event)">
26+
<mdl-table-selectable mdl-shadow="2" id='person_manage_table' [table-model]="tableModel" [table-model-selected]="selected" (table-model-selectionChanged)="selectionChanged($event)">
3127
</mdl-table-selectable>
3228
<div class="table-footer">
3329
<span></span><span class="total-size">8</span><span></span>
3430
<span class="now-page">1</span>/<span class="total-page">1</span>
3531
<span></span>
3632
<button mdl-button mdl-button-type="raised" mdl-ripple class="btn-prev"><i class="fa fa-chevron-left"></i></button>
37-
<input class="table-target-page">
33+
<input class="form-control table-target-page" value="1">
3834
<button mdl-button mdl-button-type="raised" mdl-ripple class="btn-next"><i class="fa fa-chevron-right"></i></button>
3935
<span></span>
4036
</div>

src/app/base-data/person-list/person-list.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ import { IPersonItem } from '../model/table-person-item';
77
import { TabControlService } from '../../layout/header/tab/tabControl.service';
88
import { PersonManageService } from '../person-manage.service';
99
import 'rxjs/add/operator/toPromise';
10+
import { fadeIn } from '../../animations/fade-in';
1011

1112
declare var SweetAlert: any;
1213
declare var Common: any;
1314

1415
@Component({
1516
selector: 'app-person-list',
1617
templateUrl: './person-list.component.html',
17-
styleUrls: ['./person-list.component.css']
18+
styleUrls: ['./person-list.component.css'],
19+
animations: [fadeIn]
1820
})
1921
export class PersonListComponent implements OnInit {
2022

src/app/home/home/home.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
2+
declare var Common;
33
@Component({
44
selector: 'app-home',
55
templateUrl: './home.component.html',
@@ -10,6 +10,7 @@ export class HomeComponent implements OnInit {
1010
constructor() { }
1111

1212
ngOnInit() {
13+
Common.stopLoading();
1314
}
1415

1516
}

src/app/layout/header/tab/tab.component.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ md2-tabs {
3434
position: absolute;
3535
top: 0;
3636
height: 100%;
37-
width: 32px;
37+
width: 30px;
3838
padding: 10px 0;
3939
z-index: 2;
4040
cursor: pointer;
@@ -57,15 +57,14 @@ md2-tabs {
5757
.md2-prev-button .prev-icon,
5858
.md2-next-button .next-icon {
5959
display: block;
60-
width: 10px;
61-
height: 10px;
60+
width: 12px;
61+
height: 12px;
6262
font-size: 0;
63-
border-width: 0 0 2px 2px;
63+
border-width: 0 0 4px 4px;
6464
border-style: solid;
65-
border-color: #757575;
6665
border-radius: 1px;
6766
transform: rotate(45deg);
68-
margin: 8px;
67+
margin: 6px;
6968
}
7069

7170
.md2-next-button .next-icon {
@@ -75,7 +74,7 @@ md2-tabs {
7574
.md2-tabs-canvas {
7675
position: relative;
7776
height: 100%;
78-
/*overflow: hidden;*/
77+
overflow: hidden;
7978
display: block;
8079
outline: none;
8180
}

0 commit comments

Comments
 (0)