Browse Source

Merge branch 'master' of http://121.36.37.70:3000/shaojiahao/Jinan_project

非煤矿山灾害智能感知和预警系统
jingbowen 3 years ago
parent
commit
eca36ec211
  1. 3
      src/app/app.module.ts
  2. 12
      src/app/home/home.module.ts
  3. 11
      src/app/home/system-management/user/adduser/adduser.component.html
  4. 6
      src/app/home/task/station-task-apply/apply-look/apply-look.component.html
  5. 0
      src/app/home/task/station-task-apply/apply-look/apply-look.component.scss
  6. 54
      src/app/home/task/station-task-apply/apply-look/apply-look.component.ts
  7. 36
      src/app/home/task/station-task-apply/apply/apply.component.html
  8. 0
      src/app/home/task/station-task-apply/apply/apply.component.scss
  9. 53
      src/app/home/task/station-task-apply/apply/apply.component.ts
  10. 73
      src/app/home/task/station-task-apply/station-task-apply.component.html
  11. 79
      src/app/home/task/station-task-apply/station-task-apply.component.scss
  12. 124
      src/app/home/task/station-task-apply/station-task-apply.component.ts
  13. 71
      src/app/home/task/station-task-execution/station-task-execution.component.html
  14. 72
      src/app/home/task/station-task-execution/station-task-execution.component.scss
  15. 32
      src/app/home/task/station-task-execution/station-task-execution.component.ts
  16. 61
      src/app/home/task/station-weekly-plan/station-weekly-plan.component.html
  17. 52
      src/app/home/task/station-weekly-plan/station-weekly-plan.component.scss
  18. 32
      src/app/home/task/station-weekly-plan/station-weekly-plan.component.ts
  19. 57
      src/theme.less

3
src/app/app.module.ts

@ -14,6 +14,9 @@ import { TreeService } from './service/tree.service';
import { RouteReuseStrategy } from '@angular/router';
import { CustomReuseStrategy } from './CustomReuseStrategy';
import { ConfigFormDataService } from './service/configFormData.service';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
@NgModule({
declarations: [
AppComponent

12
src/app/home/home.module.ts

@ -48,6 +48,9 @@ import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
import { ScrollingModule } from '@angular/cdk/scrolling';
import { NzGridModule } from 'ng-zorro-antd/grid';
import { NzRadioModule } from 'ng-zorro-antd/radio';
import { ApplyComponent } from './task/station-task-apply/apply/apply.component';
import { ApplyLookComponent } from './task/station-task-apply/apply-look/apply-look.component';
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
@NgModule({
declarations: [
NavComponent,
@ -74,7 +77,9 @@ import { NzRadioModule } from 'ng-zorro-antd/radio';
EdituserComponent,
AddorComponent,
EditorComponent,
AddUnitComponent
AddUnitComponent,
ApplyComponent,
ApplyLookComponent
],
imports: [
CommonModule,
@ -101,8 +106,9 @@ import { NzRadioModule } from 'ng-zorro-antd/radio';
NzCheckboxModule,
ScrollingModule,
NzGridModule,
NzRadioModule
NzRadioModule,
NzDatePickerModule
],
entryComponents: [AddroleComponent, EditroleComponent, AdduserComponent, EdituserComponent, AddorComponent, EditorComponent]
entryComponents: [AddroleComponent, EditroleComponent, AdduserComponent, EdituserComponent, AddorComponent, EditorComponent, ApplyComponent, ApplyLookComponent]
})
export class HomeModule { }

11
src/app/home/system-management/user/adduser/adduser.component.html

@ -34,16 +34,6 @@
</ng-template>
</nz-form-control>
</nz-form-item>
<!-- <nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="角色">角色</nz-form-label>
<nz-form-control>
<nz-select formControlName="role" nzPlaceHolder="请选择角色" nzMode="multiple">
<nz-option *ngFor="let item of listOfData" [nzValue]="item.normalizedName"
[nzLabel]="item.displayName">
</nz-option>
</nz-select>
</nz-form-control>
</nz-form-item> -->
<nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="手机号">手机号</nz-form-label>
<nz-form-control>
@ -52,6 +42,5 @@
</nz-input-group>
</nz-form-control>
</nz-form-item>
</form>
</div>

6
src/app/home/task/station-task-apply/apply-look/apply-look.component.html

@ -0,0 +1,6 @@
<div class="box applymodel">
<p>任务名称: 熟悉演练</p>
<p>单位名称: 上海雅特酒店管理有限公司济南泺文路分公司</p>
<p>协助机构: 历下区A消防救援站</p>
</div>

0
src/app/home/task/station-task-apply/apply-look/apply-look.component.scss

54
src/app/home/task/station-task-apply/apply-look/apply-look.component.ts

@ -0,0 +1,54 @@
import { Component, OnInit, Input } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { HttpClient } from '@angular/common/http';
import { TreeService } from 'src/app/service/tree.service';
@Component({
selector: 'app-apply-look',
templateUrl: './apply-look.component.html',
styleUrls: ['./apply-look.component.scss']
})
export class ApplyLookComponent implements OnInit {
@Input() title?: string;
@Input() subtitle?: string;
validateForm!: FormGroup;
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient, private toTree: TreeService) { }
ngOnInit(): void {
this.validateForm = this.fb.group({
taskname: [true, [Validators.required]],
unitname: [null, [Validators.required]],
organization: [null, [Validators.required]]
});
this.getAllOrganization()
}
destroyModal(): void {
this.modal.destroy({ data: 'this the result data' });
}
//获取所有组织机构
nodes: any = []
getAllOrganization() {
// let OrganizationUnitId = sessionStorage.getItem('isGasStation') == 'true' ? JSON.parse(sessionStorage.getItem('userdataOfgasstation')).organization.id : JSON.parse(sessionStorage.getItem('userdata')).organization.id
// let params = {
// OrganizationUnitId: OrganizationUnitId,
// IsContainsChildren: "true"
// }
// this.http.get('/api/services/app/Organization/GetAll', {
// params: params
// }).subscribe((data: any) => {
// data.result.items.forEach(element => {
// if (element.id == OrganizationUnitId) {
// element.parentId = null
// }
// element.key = element.id
// element.title = element.displayName
// });
// this.nodes = [...this.toTree.toTree(data.result.items)]
// })
}
}

36
src/app/home/task/station-task-apply/apply/apply.component.html

@ -0,0 +1,36 @@
<div class="box applymodel">
<form nz-form [formGroup]="validateForm">
<nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="账号">任务名称</nz-form-label>
<nz-form-control>
<label nz-radio formControlName="taskname">熟悉演练</label>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="单位名称">单位名称</nz-form-label>
<nz-form-control>
<nz-input-group>
<input nz-input type="text" formControlName="unitname" placeholder="请输入单位名称" />
</nz-input-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="协助机构">协助机构</nz-form-label>
<nz-form-control>
<nz-tree-select [nzShowSearch]='true' [nzDropdownClassName]="'maxHeightTreeSelect'"
formControlName="organization" [nzNodes]="nodes" nzPlaceHolder="请选择协助机构"
[nzExpandedIcon]="multiExpandedIconTpl">
</nz-tree-select>
<ng-template #multiExpandedIconTpl let-node let-origin="origin">
<ng-container *ngIf="node.children.length == 0; else elseTemplate">
</ng-container>
<ng-template #elseTemplate>
<i nz-icon [nzType]="node.isExpanded ? 'caret-down' : 'caret-right'"
class="ant-tree-switcher-line-icon"></i>
</ng-template>
</ng-template>
</nz-form-control>
</nz-form-item>
</form>
</div>

0
src/app/home/task/station-task-apply/apply/apply.component.scss

53
src/app/home/task/station-task-apply/apply/apply.component.ts

@ -0,0 +1,53 @@
import { Component, OnInit, Input } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { HttpClient } from '@angular/common/http';
import { TreeService } from 'src/app/service/tree.service';
@Component({
selector: 'app-apply',
templateUrl: './apply.component.html',
styleUrls: ['./apply.component.scss']
})
export class ApplyComponent implements OnInit {
@Input() title?: string;
@Input() subtitle?: string;
validateForm!: FormGroup;
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient, private toTree: TreeService) { }
ngOnInit(): void {
this.validateForm = this.fb.group({
taskname: [true, [Validators.required]],
unitname: [null, [Validators.required]],
organization: [null, [Validators.required]]
});
this.getAllOrganization()
}
destroyModal(): void {
this.modal.destroy({ data: 'this the result data' });
}
//获取所有组织机构
nodes: any = []
getAllOrganization() {
// let OrganizationUnitId = sessionStorage.getItem('isGasStation') == 'true' ? JSON.parse(sessionStorage.getItem('userdataOfgasstation')).organization.id : JSON.parse(sessionStorage.getItem('userdata')).organization.id
// let params = {
// OrganizationUnitId: OrganizationUnitId,
// IsContainsChildren: "true"
// }
// this.http.get('/api/services/app/Organization/GetAll', {
// params: params
// }).subscribe((data: any) => {
// data.result.items.forEach(element => {
// if (element.id == OrganizationUnitId) {
// element.parentId = null
// }
// element.key = element.id
// element.title = element.displayName
// });
// this.nodes = [...this.toTree.toTree(data.result.items)]
// })
}
}

73
src/app/home/task/station-task-apply/station-task-apply.component.html

@ -1 +1,72 @@
<p>station-task-apply works!</p>
<!-- <p>任务申请</p> -->
<div class="box">
<div class="fffbox">
<div class="header">
<span>
任务申请
</span>
<span style="font-size: 14px; color: #42B983;">
<i nz-icon nzType="info-circle" nzTheme="outline"></i>
任务申请已开始!剩余时间 3天13小时 / 生成周计划已开始!剩余时间 23:54:03
</span>
</div>
<div class="searchbox">
<div class="search">
<input type="text" nz-input placeholder="任务名称" [(ngModel)]="searchForm.taskname" />
<input type="text" nz-input placeholder="单位名称" [(ngModel)]="searchForm.unitname" />
<input type="text" nz-input placeholder="单位级别" [(ngModel)]="searchForm.unitlevel" />
<input type="text" nz-input placeholder="协助机构" [(ngModel)]="searchForm.or" />
<button nz-button nzType="primary"><i nz-icon nzType="search" nzTheme="outline"></i>查询</button>
<button nz-button nzType="default"><i nz-icon nzType="reload" nzTheme="outline"></i>重置</button>
</div>
</div>
<div class="content">
<div class="applybtn">
<button (click)="apply()" nz-button nzType="primary"><i nz-icon nzType="form" nzTheme="outline"></i>申请</button>
</div>
<div class="tablebox">
<nz-table nzBordered #basicTable [nzLoading]="loading" [nzData]="usersLIst" [nzShowPagination]='false'
[nzPageSize]='16'>
<thead>
<tr>
<th [width]="'15%'">任务名称</th>
<th [width]="'20%'">单位名称</th>
<th>单位级别</th>
<th>协助机构</th>
<th>结果</th>
<th [width]="'8%'">操作</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of basicTable.data">
<td>监督检查</td>
<td nzBreakWord>
上海雅特酒店管理有限公司济南泺文路分公司
</td>
<td>
一般单位
</td>
<td>
历下区A消防救援站
</td>
<td>
未发现违法违规情况
</td>
<td class="operation">
<a class="blue" (click)="look(item)">查看</a>
</td>
</tr>
</tbody>
</nz-table>
</div>
<div class="pagination">
<nz-pagination [nzHideOnSinglePage]="false" [nzPageIndex]="1" [nzTotal]="usersNum" [nzPageSize]="16"
[nzShowTotal]="totalTemplate" nzShowQuickJumper (nzPageIndexChange)="pageChange($event)">
</nz-pagination>
<ng-template #totalTemplate let-total> 16条/页,共{{usersNum}}条 </ng-template>
</div>
</div>
</div>
</div>

79
src/app/home/task/station-task-apply/station-task-apply.component.scss

@ -0,0 +1,79 @@
.box {
width: 100%;
height: 100%;
color: #303133;
box-sizing: border-box;
padding: 18px;
.fffbox {
width: 100%;
height: 100%;
background: #FFFFFF;
box-shadow: 0px 3px 8px 1px rgba(0, 0, 0, 0.0800);
border-radius: 4px 4px 4px 4px;
opacity: 1;
border: 1px solid #E4E7EC;
display: flex;
flex-direction: column;
}
.header {
width: 100%;
height: 56px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid #E4E7EC;
span {
color: #303133;
font-weight: 500;
font-size: 16px;
}
}
.searchbox {
height: 70px;
display: flex;
justify-content: space-between;
padding: 0 20px;
align-items: center;
border-bottom: 1px solid #E4E7EC;
.search {
width: 80%;
display: flex;
input {
margin-right: 16px;
}
button {
margin-right: 16px;
}
}
}
.content {
flex: 1;
box-sizing: border-box;
padding: 18px;
padding-top: 0px;
display: flex;
flex-direction: column;
.applybtn {
align-self: flex-start;
margin: 18px 0;
}
.operation {
a {
margin-right: 16px;
}
}
}
}

124
src/app/home/task/station-task-apply/station-task-apply.component.ts

@ -1,4 +1,12 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-antd/tree';
import { NzModalService } from 'ng-zorro-antd/modal';
import { NzMessageService } from 'ng-zorro-antd/message';
import { HttpClient } from '@angular/common/http';
import { TreeService } from 'src/app/service/tree.service';
import { ApplyComponent } from './apply/apply.component';
import { ApplyLookComponent } from './apply-look/apply-look.component';
@Component({
selector: 'app-station-task-apply',
@ -7,9 +15,119 @@ import { Component, OnInit } from '@angular/core';
})
export class StationTaskApplyComponent implements OnInit {
constructor() { }
validateForm!: FormGroup;
constructor(private fb: FormBuilder, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService, private http: HttpClient, private toTree: TreeService) { }
searchForm = {
taskname: '',
unitname: '',
unitlevel: '',
or: ''
}
usersNum
loading
usersLIst = [1]
ngOnInit(): void {
}
pageChange($event) {
}
cancel(item, type) {
}
delete(item) {
}
apply() {
const modal = this.modal.create({
nzTitle: '申请',
nzContent: ApplyComponent,
nzViewContainerRef: this.viewContainerRef,
nzWidth: 660,
nzMaskClosable: false,
nzComponentParams: {
title: '',
subtitle: ''
},
nzOnOk: async () => {
if (instance.validateForm.valid) {
await new Promise(resolve => {
let roleNames = [...instance.validateForm.value.role, ...instance.validateForm.value.role2]
let body = {
userName: instance.validateForm.value.account,
name: instance.validateForm.value.name,
organizationUnitId: Number(instance.validateForm.value.organization),
roleNames: roleNames,
phoneNumber: instance.validateForm.value.phonenum,
isActive: true
}
// this.http.post(this.addUrl, body).subscribe(data => {
// resolve(data)
// this.message.create('success', '创建成功!');
// this.SkipCount = 0
// this.getAllUsers()
// return true
// }, err => {
// resolve(err)
// this.message.create('warning', err.error.error.message);
// return false
// })
})
} else {
this.message.create('warning', '请填写完整!');
return false
}
}
});
const instance = modal.getContentComponent();
modal.afterOpen.subscribe(() => console.log('[afterOpen] emitted!'));
modal.afterClose.subscribe(result => console.log('[afterClose] The result is:', result));
}
look(item) {
const modal = this.modal.create({
nzTitle: '详情',
nzContent: ApplyLookComponent,
nzViewContainerRef: this.viewContainerRef,
nzWidth: 660,
nzMaskClosable: false,
nzComponentParams: {
title: '',
subtitle: ''
},
nzFooter:null,
nzOnOk: async () => {
if (instance.validateForm.valid) {
await new Promise(resolve => {
let roleNames = [...instance.validateForm.value.role, ...instance.validateForm.value.role2]
let body = {
userName: instance.validateForm.value.account,
name: instance.validateForm.value.name,
organizationUnitId: Number(instance.validateForm.value.organization),
roleNames: roleNames,
phoneNumber: instance.validateForm.value.phonenum,
isActive: true
}
// this.http.post(this.addUrl, body).subscribe(data => {
// resolve(data)
// this.message.create('success', '创建成功!');
// this.SkipCount = 0
// this.getAllUsers()
// return true
// }, err => {
// resolve(err)
// this.message.create('warning', err.error.error.message);
// return false
// })
})
} else {
this.message.create('warning', '请填写完整!');
return false
}
}
});
const instance = modal.getContentComponent();
modal.afterOpen.subscribe(() => console.log('[afterOpen] emitted!'));
modal.afterClose.subscribe(result => console.log('[afterClose] The result is:', result));
}
}

71
src/app/home/task/station-task-execution/station-task-execution.component.html

@ -1 +1,70 @@
<p>station-task-execution works!</p>
<!-- <p>任务执行!</p> -->
<div class="box">
<div class="fffbox">
<div class="header">
<span>
任务执行
</span>
<span style="font-size: 14px; color: #42B983;">
<i nz-icon nzType="info-circle" nzTheme="outline"></i>
任务申请已开始!剩余时间 3天13小时 / 生成周计划已开始!剩余时间 23:54:03
</span>
</div>
<div class="searchbox">
<div class="search">
<input type="text" nz-input placeholder="任务名称" [(ngModel)]="searchForm.taskname" />
<input type="text" nz-input placeholder="单位名称" [(ngModel)]="searchForm.unitname" />
<input type="text" nz-input placeholder="单位级别" [(ngModel)]="searchForm.unitlevel" />
<input type="text" nz-input placeholder="协助机构" [(ngModel)]="searchForm.or" />
<input type="text" nz-input placeholder="时间" [(ngModel)]="searchForm.tasktime" />
<button nz-button nzType="primary"><i nz-icon nzType="search" nzTheme="outline"></i>查询</button>
<button nz-button nzType="default"><i nz-icon nzType="reload" nzTheme="outline"></i>重置</button>
</div>
</div>
<div class="content">
<div class="tablebox">
<nz-table nzBordered #basicTable [nzLoading]="loading" [nzData]="usersLIst" [nzShowPagination]='false'
[nzPageSize]='16'>
<thead>
<tr>
<th [width]="'15%'">任务名称</th>
<th [width]="'10%'">时间</th>
<th [width]="'20%'">单位名称</th>
<th>单位级别</th>
<th>协助机构</th>
<th>检查结果</th>
<th [width]="'8%'">操作</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of basicTable.data">
<td>监督检查</td>
<td>2022.07.20 14:00</td>
<td nzBreakWord>
上海雅特酒店管理有限公司济南泺文路分公司
</td>
<td>
一般单位
</td>
<td>
历下区A消防救援站
</td>
<td>
未发现违法违规情况
</td>
<td class="operation">
<a class="blue">查看</a>
</td>
</tr>
</tbody>
</nz-table>
</div>
<div class="pagination">
<nz-pagination [nzHideOnSinglePage]="false" [nzPageIndex]="1" [nzTotal]="usersNum" [nzPageSize]="16"
[nzShowTotal]="totalTemplate" nzShowQuickJumper (nzPageIndexChange)="pageChange($event)">
</nz-pagination>
<ng-template #totalTemplate let-total> 16条/页,共{{usersNum}}条 </ng-template>
</div>
</div>
</div>
</div>

72
src/app/home/task/station-task-execution/station-task-execution.component.scss

@ -0,0 +1,72 @@
.box {
width: 100%;
height: 100%;
color: #303133;
box-sizing: border-box;
padding: 18px;
.fffbox {
width: 100%;
height: 100%;
background: #FFFFFF;
box-shadow: 0px 3px 8px 1px rgba(0, 0, 0, 0.0800);
border-radius: 4px 4px 4px 4px;
opacity: 1;
border: 1px solid #E4E7EC;
display: flex;
flex-direction: column;
}
.header {
width: 100%;
height: 56px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid #E4E7EC;
span {
color: #303133;
font-weight: 500;
font-size: 16px;
}
}
.searchbox {
height: 70px;
display: flex;
justify-content: space-between;
padding: 0 20px;
align-items: center;
.search {
width: 100%;
display: flex;
input {
margin-right: 16px;
}
button {
margin-right: 16px;
}
}
}
.content {
flex: 1;
box-sizing: border-box;
padding: 18px;
padding-top: 0px;
.operation {
a {
margin-right: 16px;
}
}
}
}

32
src/app/home/task/station-task-execution/station-task-execution.component.ts

@ -1,5 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-antd/tree';
import { NzModalService } from 'ng-zorro-antd/modal';
import { NzMessageService } from 'ng-zorro-antd/message';
import { HttpClient } from '@angular/common/http';
import { TreeService } from 'src/app/service/tree.service';
@Component({
selector: 'app-station-task-execution',
templateUrl: './station-task-execution.component.html',
@ -7,9 +12,28 @@ import { Component, OnInit } from '@angular/core';
})
export class StationTaskExecutionComponent implements OnInit {
constructor() { }
validateForm!: FormGroup;
constructor(private fb: FormBuilder, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService, private http: HttpClient, private toTree: TreeService) { }
searchForm = {
taskname: '',
tasktime: '',
unitname: '',
unitlevel: '',
or:''
}
usersNum
loading
usersLIst = [1]
ngOnInit(): void {
}
pageChange($event) {
}
cancel(item, type) {
}
delete(item) {
}
}

61
src/app/home/task/station-weekly-plan/station-weekly-plan.component.html

@ -1 +1,60 @@
<p>station-weekly-plan works!</p>
<!-- <p>生成周计划</p> -->
<div class="box weeklyplan">
<div class="fffbox">
<div class="header">
<span>
申请周计划
</span>
<span style="font-size: 14px; color: #42B983;">
<i nz-icon nzType="info-circle" nzTheme="outline"></i>
任务申请已开始!剩余时间 3天13小时 / 生成周计划已开始!剩余时间 23:54:03
</span>
</div>
<div class="content">
<div class="tablebox">
<nz-table nzBordered #basicTable [nzLoading]="loading" [nzData]="usersLIst" [nzShowPagination]='false'
[nzPageSize]='16'>
<thead>
<tr>
<th [width]="'10%'">任务类型</th>
<th [width]="'25%'">单位名称</th>
<th>单位级别</th>
<th>检查人</th>
<th>消防负责人</th>
<th>联系电话</th>
<th [width]="'15%'">操作</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of basicTable.data">
<td>双随机</td>
<td nzBreakWord>上海雅特酒店管理有限公司济南泺文路分公司</td>
<td>
一般单位
</td>
<td>
张三三
</td>
<td>
张三三
</td>
<td>
15022667845
</td>
<td class="operation">
<!-- <span>检查时间 </span> -->
<nz-date-picker nzPlaceHolder="请选择检查日期" nzBorderless></nz-date-picker>
</td>
</tr>
</tbody>
</nz-table>
</div>
<div class="pagination">
<nz-pagination [nzHideOnSinglePage]="false" [nzPageIndex]="1" [nzTotal]="usersNum" [nzPageSize]="16"
[nzShowTotal]="totalTemplate" nzShowQuickJumper (nzPageIndexChange)="pageChange($event)">
</nz-pagination>
<ng-template #totalTemplate let-total> 16条/页,共{{usersNum}}条 </ng-template>
</div>
</div>
</div>
</div>

52
src/app/home/task/station-weekly-plan/station-weekly-plan.component.scss

@ -0,0 +1,52 @@
.box {
width: 100%;
height: 100%;
color: #303133;
box-sizing: border-box;
padding: 18px;
.fffbox {
width: 100%;
height: 100%;
background: #FFFFFF;
box-shadow: 0px 3px 8px 1px rgba(0, 0, 0, 0.0800);
border-radius: 4px 4px 4px 4px;
opacity: 1;
border: 1px solid #E4E7EC;
display: flex;
flex-direction: column;
}
.header {
width: 100%;
height: 56px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid #E4E7EC;
span {
color: #303133;
font-weight: 500;
font-size: 16px;
}
}
.content {
flex: 1;
box-sizing: border-box;
padding: 18px;
padding-top: 0px;
margin-top: 18px;
.operation {
nz-date-picker {
width: 140px;
}
}
}
}

32
src/app/home/task/station-weekly-plan/station-weekly-plan.component.ts

@ -1,5 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-antd/tree';
import { NzModalService } from 'ng-zorro-antd/modal';
import { NzMessageService } from 'ng-zorro-antd/message';
import { HttpClient } from '@angular/common/http';
import { TreeService } from 'src/app/service/tree.service';
@Component({
selector: 'app-station-weekly-plan',
templateUrl: './station-weekly-plan.component.html',
@ -7,9 +12,28 @@ import { Component, OnInit } from '@angular/core';
})
export class StationWeeklyPlanComponent implements OnInit {
constructor() { }
validateForm!: FormGroup;
constructor(private fb: FormBuilder, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService, private http: HttpClient, private toTree: TreeService) { }
searchForm = {
taskname: '',
tasktime: '',
unitname: '',
unitlevel: '',
or: ''
}
usersNum
loading
usersLIst = [1]
ngOnInit(): void {
}
pageChange($event) {
}
cancel(item, type) {
}
delete(item) {
}
}

57
src/theme.less

@ -21,8 +21,61 @@
white-space: pre;
font-size: 18px;
}
.progresssquare{
.ant-progress-inner{
.progresssquare {
.ant-progress-inner {
border-radius: 0px;
}
}
.applymodel {
.ant-col-sm-6 {
flex: 0 0 15%;
}
}
// 周计划日期选择权
.weeklyplan {
.ant-picker {
padding-left: 0;
}
.ant-picker-suffix {
color: #2C4DC0;
}
input::-webkit-input-placeholder {
/* WebKit, Blink, Edge */
color: #2C4DC0;
}
:-moz-placeholder {
/* Mozilla Firefox 4 to 18 */
color: #2C4DC0;
}
::-moz-placeholder {
/* Mozilla Firefox 19+ */
color: #2C4DC0;
}
input:-ms-input-placeholder {
/* Internet Explorer 10-11 */
color: #2C4DC0;
}
input::-ms-input-placeholder {
/* Microsoft Edge */
color: #2C4DC0;
}
}

Loading…
Cancel
Save