From 305270b3f47cb9e76d73416a9bbfa532755e62d5 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Fri, 6 Nov 2020 10:26:11 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/home/home.component.html | 25 ++++++++-- src/app/ui/home/home.component.scss | 42 +++++++++++++++- src/app/ui/home/home.component.ts | 20 +++++++- .../ui/router-gis/router-gis.component.html | 3 ++ .../ui/router-gis/router-gis.component.scss | 11 +++++ .../router-gis/router-gis.component.spec.ts | 25 ++++++++++ src/app/ui/router-gis/router-gis.component.ts | 48 +++++++++++++++++++ src/app/ui/ui.module.ts | 3 +- 8 files changed, 171 insertions(+), 6 deletions(-) create mode 100644 src/app/ui/router-gis/router-gis.component.html create mode 100644 src/app/ui/router-gis/router-gis.component.scss create mode 100644 src/app/ui/router-gis/router-gis.component.spec.ts create mode 100644 src/app/ui/router-gis/router-gis.component.ts diff --git a/src/app/ui/home/home.component.html b/src/app/ui/home/home.component.html index f0f913a..38b04dd 100644 --- a/src/app/ui/home/home.component.html +++ b/src/app/ui/home/home.component.html @@ -16,15 +16,34 @@
- + - +
- +
+ + + + + + + + + + + + + + + + + +
熟悉对象熟悉时间带队领导上传人员操作
{{item.target}}{{item.time}}{{item.leadTheTeam}}{{item.updateStaff}}查看详情
+
diff --git a/src/app/ui/home/home.component.scss b/src/app/ui/home/home.component.scss index 9c713f1..775dc6c 100644 --- a/src/app/ui/home/home.component.scss +++ b/src/app/ui/home/home.component.scss @@ -61,12 +61,14 @@ button.mat-menu-item { text-align: center; } align-items: center; div { margin: 0 0.097656rem } input { + width: 1.757813rem; height: 0.292969rem; line-height: 0.292969rem; padding-left: 0.048828rem; border-radius: 0.195313rem; outline: none; border: 0.009766rem solid #999; + font-size: 0.136719rem; } button { width: 0.78125rem; @@ -78,7 +80,45 @@ button.mat-menu-item { text-align: center; } color: #fff; } } -.mat-datepicker-toggle{ vertical-align: middle; } +.mat-datepicker-toggle{ vertical-align: middle; margin: 0 0; padding: 0 0; } .centerTable { flex: 1; + box-sizing: border-box; + padding: 0.097656rem; + overflow: hidden; + .table { + width: 100%; + max-height: 100%; + overflow-y: auto; + } + table { + width: 100%; + border-radius: 0.244141rem; + background: #FD5A31; + text-align: center; + border-collapse:collapse; + word-break:break-all; + word-wrap:break-all; + table-layout:fixed; + .firstContent { width: 0.488281rem; } + th { + height: 0.390625rem; + font-weight: normal; + font-size: 0.15625rem; + color: #fff; + // border-bottom: 1px solid rgb(211, 207, 207); + } + td { + height: 0.390625rem; + font-size: 0.136719rem; + background-color: #fff; + border-top: 1px solid rgb(211, 207, 207); + } + } +} +.fontColor { color: #FC7045; } +.overflowText { + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; } \ No newline at end of file diff --git a/src/app/ui/home/home.component.ts b/src/app/ui/home/home.component.ts index 1642a5e..28a0862 100644 --- a/src/app/ui/home/home.component.ts +++ b/src/app/ui/home/home.component.ts @@ -22,6 +22,19 @@ export class HomeComponent implements OnInit { } enddate:any; //查询时间 + tableData :any = [ + {target: '梧州市金龙万豪酒店', time: '2020-10-29 07:19', leadTheTeam: '郑子墨', updateStaff: '赵竹林', }, + {target: '众美光合原筑', time: '2020-11-02 07:19', leadTheTeam: '何先超', updateStaff: '何晨', }, + {target: '凡尔赛公馆', time: '2020-11-02 11:19', leadTheTeam: '吴洁丽', updateStaff: '赵玉', }, + {target: '西黄岛九号', time: '2020-11-03 07:19', leadTheTeam: '吴毅溪', updateStaff: '赵晓慧', }, + {target: '首城双景', time: '2020-11-07 07:19', leadTheTeam: '周伟林', updateStaff: '李英顺', }, + {target: '华贸国际公馆', time: '2020-11-11 07:19', leadTheTeam: '李林颖', updateStaff: '吴思怡', }, + {target: '鸿威翡翠城', time: '2020-11-12 07:19', leadTheTeam: '李双杆', updateStaff: '钱浩宇', }, + {target: '泽信公馆', time: '2020-11-14 11:19', leadTheTeam: '孙正荣', updateStaff: '孙正云', }, + {target: '润泽御府', time: '2020-11-17 07:19', leadTheTeam: '赵虎林', updateStaff: '冯燕', }, + {target: '万达广场', time: '2020-11-20 07:19', leadTheTeam: '周伟林', updateStaff: '李英顺', }, + {target: '天悦', time: '2020-11-22 07:19', leadTheTeam: '冯燕', updateStaff: '冯靖宇', }, + ] //退出系统 signOut () { @@ -42,12 +55,17 @@ export class HomeComponent implements OnInit { //查询 query () { - + console.log('查询') } //新增 add () { + console.log('新增') + } + //查看详情 + viewDetails () { + console.log('查看详情') } diff --git a/src/app/ui/router-gis/router-gis.component.html b/src/app/ui/router-gis/router-gis.component.html new file mode 100644 index 0000000..1f2f2b9 --- /dev/null +++ b/src/app/ui/router-gis/router-gis.component.html @@ -0,0 +1,3 @@ +
+
+
diff --git a/src/app/ui/router-gis/router-gis.component.scss b/src/app/ui/router-gis/router-gis.component.scss new file mode 100644 index 0000000..219d8f4 --- /dev/null +++ b/src/app/ui/router-gis/router-gis.component.scss @@ -0,0 +1,11 @@ +.content { + width: 100%; + height: 100%; + box-sizing: border-box; + padding: 0.244141rem; + overflow: hidden; + .center { + width: 100%; + height: 100%; + } +} \ No newline at end of file diff --git a/src/app/ui/router-gis/router-gis.component.spec.ts b/src/app/ui/router-gis/router-gis.component.spec.ts new file mode 100644 index 0000000..5ab8e67 --- /dev/null +++ b/src/app/ui/router-gis/router-gis.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { RouterGISComponent } from './router-gis.component'; + +describe('RouterGISComponent', () => { + let component: RouterGISComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ RouterGISComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(RouterGISComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/ui/router-gis/router-gis.component.ts b/src/app/ui/router-gis/router-gis.component.ts new file mode 100644 index 0000000..bb9a124 --- /dev/null +++ b/src/app/ui/router-gis/router-gis.component.ts @@ -0,0 +1,48 @@ +import { Component, OnInit } from '@angular/core'; +declare var AMap: any; + +@Component({ + selector: 'app-router-gis', + templateUrl: './router-gis.component.html', + styleUrls: ['./router-gis.component.scss'] +}) +export class RouterGISComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + + } + + ngAfterViewInit(): void { + window.setTimeout(()=>{ + this.mapInit() + },0) + } + + //地图初始化 + mapInit () { + //创建地图 + let map = new AMap.Map('center', { + resizeEnable: true, + cursor: 'default', + zooms:[6,18], + }); + //构造路线导航类 实际路线 + let driving = new AMap.Driving({ + map: map, + showTraffic: true, + isOutline: true, + }); + driving.search( [{keyword: '广西消防总队',city:'广西'},{keyword: '万科公园里',city:'广西'},{keyword: '南宁明安医院',city:'广西'}], ); + //构造路线导航类 导航路线 + let drivingTwo = new AMap.Driving({ + map: map, + showTraffic: false, + }); + drivingTwo.search( [{keyword: '广西消防总队',city:'广西'},{keyword: '南宁明安医院',city:'广西'}], ); + //function (status,result) { console.log(status,result) } //地图路线 匹配起始点回调函数 + //new AMap.LngLat(116.379028, 39.865042), new AMap.LngLat(116.427281, 39.903719) / [{keyword: '淄博站',city:'山东'},{keyword: '淄博北站',city:'山东'}], //路线可搜索, 可用坐标 + } + +} diff --git a/src/app/ui/ui.module.ts b/src/app/ui/ui.module.ts index f577c5c..ab6c747 100644 --- a/src/app/ui/ui.module.ts +++ b/src/app/ui/ui.module.ts @@ -67,8 +67,9 @@ import { WorkingAreaComponent } from '../working-area/working-area.component'; import {leftFunctionalDomainComponent,editPlaneFigureComponent,addDisposalNodeComponent,editDisposalNodeComponent} from './collection-tools/leftFunctionalDomain' import { saveOneDialog, saveTwoDialog } from './collection-tools/save'; import { HomeComponent } from './home/home.component'; +import { RouterGISComponent } from './router-gis/router-gis.component'; @NgModule({ - declarations: [UiComponent,PersonaldataComponent, FooterComponent, UserdataComponent, ChangepasswordComponent,IsnoPipe,ConfirmpswDirective,TimePipe,EditUser,UnitInformationComponent,EditUnitInfo,AddUnitInfo,AddGroups,EditGroup,addUnitAttributeComponent,editUnitAttribute,CollectionToolsComponent,WorkingAreaComponent,CreateBuilding,EditBuilding,leftFunctionalDomainComponent,editPlaneFigureComponent,ViewDetails,saveOneDialog,saveTwoDialog,addDisposalNodeComponent,editDisposalNodeComponent,HomeComponent], + declarations: [UiComponent,PersonaldataComponent, FooterComponent, UserdataComponent, ChangepasswordComponent,IsnoPipe,ConfirmpswDirective,TimePipe,EditUser,UnitInformationComponent,EditUnitInfo,AddUnitInfo,AddGroups,EditGroup,addUnitAttributeComponent,editUnitAttribute,CollectionToolsComponent,WorkingAreaComponent,CreateBuilding,EditBuilding,leftFunctionalDomainComponent,editPlaneFigureComponent,ViewDetails,saveOneDialog,saveTwoDialog,addDisposalNodeComponent,editDisposalNodeComponent,HomeComponent, RouterGISComponent], imports: [ CommonModule,