Browse Source

月度总览样式

非煤矿山灾害智能感知和预警系统
jingbowen 3 years ago
parent
commit
b67313aaf4
  1. 11068
      package-lock.json
  2. 3
      package.json
  3. 80
      src/app/app.module.ts
  4. 174
      src/app/home/task/da-monthly-task-overview/da-monthly-task-overview.component.html
  5. 105
      src/app/home/task/da-monthly-task-overview/da-monthly-task-overview.component.scss
  6. 4
      src/app/home/task/da-monthly-task-overview/da-monthly-task-overview.component.ts

11068
package-lock.json generated

File diff suppressed because it is too large Load Diff

3
package.json

@ -19,11 +19,13 @@
"@angular/platform-browser-dynamic": "~13.1.0",
"@angular/router": "~13.1.0",
"@types/file-saver": "^2.0.5",
"echarts": "^5.3.3",
"file-saver": "^2.0.5",
"js-base64": "^3.7.2",
"moment": "^2.29.4",
"ng-zorro-antd": "^13.0.1",
"ngx-cookie-service": "^13.1.2",
"ngx-echarts": "^14.0.0",
"rxjs": "~7.4.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
@ -41,6 +43,7 @@
"karma-coverage": "~2.1.0",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"resize-observer-polyfill": "^1.5.1",
"typescript": "~4.5.2"
}
}

80
src/app/app.module.ts

@ -1,40 +1,40 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { PagesModule } from './pages/pages.module';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { httpInterceptorProviders } from './http-interceptors/index'
import { CacheTokenService } from './service/cache-token.service'
import { NzNotificationModule } from 'ng-zorro-antd/notification';
import { NzMessageModule } from 'ng-zorro-antd/message';
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 { NzModalModule } from 'ng-zorro-antd/modal';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
PagesModule,
FormsModule,
HttpClientModule,
NzNotificationModule,
NzMessageModule,
NzModalModule
],
providers: [httpInterceptorProviders, CacheTokenService, TreeService, ConfigFormDataService,
{ provide: RouteReuseStrategy, useClass: CustomReuseStrategy }],
bootstrap: [AppComponent]
})
export class AppModule { }
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { PagesModule } from './pages/pages.module';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { httpInterceptorProviders } from './http-interceptors/index'
import { CacheTokenService } from './service/cache-token.service'
import { NzNotificationModule } from 'ng-zorro-antd/notification';
import { NzMessageModule } from 'ng-zorro-antd/message';
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 { NzModalModule } from 'ng-zorro-antd/modal';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
PagesModule,
FormsModule,
HttpClientModule,
NzNotificationModule,
NzMessageModule,
NzModalModule
],
providers: [httpInterceptorProviders, CacheTokenService, TreeService, ConfigFormDataService,
{ provide: RouteReuseStrategy, useClass: CustomReuseStrategy }],
bootstrap: [AppComponent]
})
export class AppModule { }

174
src/app/home/task/da-monthly-task-overview/da-monthly-task-overview.component.html

@ -95,18 +95,20 @@
<span>{{i.company.companyName}}</span>
</div>
<div class="info">
<span>
<img src="../../../../assets/images/icon/main.png" alt="">
{{i.mainSupervisor ? i.mainSupervisor.name : '未分配'}}
</span>
<span>
<img src="../../../../assets/images/icon/assist.png" alt="">
{{i.assitantSupervisor ? i.assitantSupervisor.name : '未分配'}}
</span>
<span class="blue" (click)="allot(i)">分配</span>
<span>|</span>
<span>申请人: {{i.organization.name}}</span>
<!-- <span class="blue">修改</span> -->
<div >
<span>
<img src="../../../../assets/images/icon/main.png" alt="">
{{i.mainSupervisor ? i.mainSupervisor.name : '未分配'}}
</span>
<span>
<img src="../../../../assets/images/icon/assist.png" alt="">
{{i.assitantSupervisor ? i.assitantSupervisor.name : '未分配'}}
</span>
<span class="blue" (click)="allot(i)">分配</span>
<span>|</span>
<span>申请人: {{i.organization.name}}</span>
<!-- <span class="blue">修改</span> -->
</div>
</div>
<!-- <div class="btn">
<button [ngClass]="{'forbidbtn': i.approvalStatus}" [disabled]="i.approvalStatus"
@ -114,10 +116,12 @@
<button [ngClass]="{'forbidbtn': i.approvalStatus}" [disabled]="i.approvalStatus"
nz-button (click)="reject(i)">驳回</button>
</div> -->
<img *ngIf="i.approvalStatus == 'reject'" class="auditimg"
src="../../../../assets/images/icon/reject.png" alt="">
<img *ngIf="i.approvalStatus == 'approved'" class="auditimg"
src="../../../../assets/images/icon/agree.png" alt="">
<div class="img">
<img class="auditimg" *ngIf="i.approvalStatus == '驳回'"
src="../../../../assets/images/icon/reject.png" alt="">
<img *ngIf="i.approvalStatus == '通过'" class="auditimg"
src="../../../../assets/images/icon/agree.png" alt="">
</div>
</div>
</div>
@ -137,41 +141,123 @@
</div>
<div class="deploycontent" *ngIf="isdeployboxExpanded">
<div class="deploycontentitem">
<div class="title">
月计划统计
<div class="aaa">
<div class="title">
任务总数
</div>
<div class="details">
<div class="detailsname">
完成
<!-- <span style="font-weight: 18;font-size: 26px;margin-left: 10px;">15</span> -->
</div>
<span class="progresssquare">
<!-- <span>完成率</span> -->
<nz-progress nzStrokeLinecap="square" style="width: 70%;margin-bottom: 3px;"
[nzPercent]="75" nzStrokeColor="#42B983" [nzShowInfo]="false" [nzStrokeWidth]="18">
</nz-progress>
<span>75%</span>
</span>
</div>
</div>
<div class="details">
<div class="detailsname">
月计划总数
<span style="font-weight: 18;font-size: 26px;margin-left: 10px;">15</span>
<div class="percentage">
<nz-progress [nzWidth]="80" nz-tooltip nzType="circle"
[nzPercent]="70" nzStrokeLinecap="square" [nzShowInfo]="false" [nzSuccessPercent]="40"></nz-progress>
<div class="typebox">
<div class="type">
<div class="tips" style="background: #42B983;"></div>
<div style="font-size: 13px;"><span style="margin-right: 5px;">上级指派</span><span>46%</span></div>
</div>
<div class="type">
<div class="tips" style="background: #1890FF;"></div>
<div style="font-size: 13px;"><span style="margin-right: 5px;">自主任务</span><span>46%</span></div>
</div>
<div class="type">
<div class="tips" style="background: #fff;"></div>
<div style="font-size: 13px;"><span style="margin-right: 5px;">申领任务</span><span>46%</span></div>
</div>
</div>
<span>已完成 15</span>
<span class="progresssquare">
<span>完成率</span>
<nz-progress nzStrokeLinecap="square" style="width: 70%;margin-bottom: 3px;"
[nzPercent]="75" nzStrokeColor="#42B983" [nzShowInfo]="false" [nzStrokeWidth]="18">
</nz-progress>
<span>75%</span>
</span>
</div>
</div>
<div class="deploycontentitem">
<div class="title">
周计划统计
<div class="aaa">
<div class="title">
任务总数
</div>
<div class="details">
<div class="detailsname">
完成
<!-- <span style="font-weight: 18;font-size: 26px;margin-left: 10px;">15</span> -->
</div>
<span class="progresssquare">
<!-- <span>完成率</span> -->
<nz-progress nzStrokeLinecap="square" style="width: 70%;margin-bottom: 3px;"
[nzPercent]="75" nzStrokeColor="#42B983" [nzShowInfo]="false" [nzStrokeWidth]="18">
</nz-progress>
<span>75%</span>
</span>
</div>
</div>
<div class="percentage">
<nz-progress [nzWidth]="80" nz-tooltip nzType="circle"
[nzPercent]="70" nzStrokeColor="#42B983" nzStrokeLinecap="square" [nzShowInfo]="false" ></nz-progress>
<div class="typebox">
<div class="type">
<div class="tips" style="background: #42B983;"></div>
<div style="font-size: 13px;"><span style="margin-right: 5px;">自主任务</span><span>46%</span></div>
</div>
<div class="type">
<div class="tips" style="background: #fff;"></div>
<div style="font-size: 13px;"><span style="margin-right: 5px;">申领任务</span><span>46%</span></div>
</div>
</div>
</div>
<div class="details">
<div class="detailsname">
周计划总数
<span style="font-weight: 18;font-size: 26px;margin-left: 10px;">15</span>
</div>
<div class="deploycontentitem">
<div class="aaa">
<div class="title">
任务总数
</div>
<span>已完成 15</span>
<span class="progresssquare">
<span>完成率</span>
<nz-progress nzStrokeLinecap="square" style="width: 70%;margin-bottom: 3px;"
[nzPercent]="75" nzStrokeColor="#42B983" [nzShowInfo]="false" [nzStrokeWidth]="18">
</nz-progress>
<span>75%</span>
</span>
<div class="details">
<div class="detailsname">
完成
<!-- <span style="font-weight: 18;font-size: 26px;margin-left: 10px;">15</span> -->
</div>
<span class="progresssquare">
<!-- <span>完成率</span> -->
<nz-progress nzStrokeLinecap="square" style="width: 70%;margin-bottom: 3px;"
[nzPercent]="75" nzStrokeColor="#E6D91D" [nzShowInfo]="false" [nzStrokeWidth]="18">
</nz-progress>
<span>75%</span>
</span>
</div>
</div>
<div class="percentage">
<nz-progress [nzWidth]="80" nz-tooltip nzType="circle"
[nzPercent]="50" nzStrokeColor="#E6D91D" [nzShowInfo]="false" ></nz-progress>
<div class="typebox">
<div class="type">
<div class="tips" style="background: #E6D91D;"></div>
<div style="font-size: 13px;"><span style="margin-right: 5px;">自主任务</span><span>46%</span></div>
</div>
<div class="type">
<div class="tips" style="background: #fff;"></div>
<div style="font-size: 13px;"><span style="margin-right: 5px;">申领任务</span><span>46%</span></div>
</div>
</div>
</div>
</div>
</div>

105
src/app/home/task/da-monthly-task-overview/da-monthly-task-overview.component.scss

@ -276,11 +276,14 @@
}
.unitname {
flex: 3;
width: 30%;
}
.info {
flex: 6;
flex: 1;
display: flex;
justify-content: center;
align-items: center;
span {
margin-right: 20px;
@ -302,11 +305,16 @@
}
}
.auditimg {
position: absolute;
right: 18%;
top: 9%;
.img {
width: 30%;
.auditimg {
position: absolute;
right: 18%;
top: 9%;
}
}
}
.greencard {
@ -327,6 +335,10 @@
}
}
.ant-progress-circle .ant-progress-text {
color: #fff !important;
}
.deploybox {
box-sizing: border-box;
padding: 18px;
@ -346,7 +358,7 @@
justify-content: space-between;
.deploycontentitem {
width: 49.5%;
width: 32%;
height: 110px;
background: linear-gradient(180deg, #7AA3FC 0%, #2C4DC0 100%);
box-shadow: 0px 3px 8px 1px rgba(0, 0, 0, 0.0800);
@ -355,39 +367,79 @@
box-sizing: border-box;
padding: 18px 18px;
display: flex;
flex-direction: column;
justify-content: space-around;
// flex-direction: column;
// justify-content: space-around;
color: #fff;
.title {
text-align: left;
}
.details {
.aaa {
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: column;
justify-content: space-around;
flex: 1;
.detailsname {
.title {
text-align: left;
}
.details {
display: flex;
justify-content: space-between;
align-items: center;
.detailsname {
display: flex;
align-items: center;
margin-right: 5px;
width: 40px;
}
.progresssquare {
width: 90%;
// flex: 1;
display: flex;
color: #fff;
align-items: center;
span:nth-child(1) {
margin-right: 16px;
}
span:last-child {
margin-left: 5px;
}
}
}
}
.progresssquare {
.percentage {
width: 50%;
// flex: 1;
display: flex;
.typebox {
width: 60%;
display: flex;
color: #fff;
justify-content: center;
align-items: center;
flex-direction: column;
span:nth-child(1) {
margin-right: 16px;
.type {
margin: 5px 0;
display: flex;
justify-content: center;
align-items: center;
}
span:last-child {
margin-left: 16px;
.tips {
width: 10px;
height: 10px;
border-radius: 10px;
margin-right: 5px;
}
}
}
}
.deploycontentitem:nth-child(1) {
@ -398,6 +450,11 @@
background: linear-gradient(180deg, #56C5FF 0%, #005DFF 100%);
}
.deploycontentitem:nth-child(3) {
background: linear-gradient(180deg, #73D9AA 0%, #42B983 100%);
}
}
}
@ -589,4 +646,4 @@
.cutoffrule {
width: 100%;
border-top: 1px dashed #C7CAD0;
}
}

4
src/app/home/task/da-monthly-task-overview/da-monthly-task-overview.component.ts

@ -3,7 +3,6 @@ import { Component, OnInit, ViewContainerRef } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd/message';
import { NzModalService } from 'ng-zorro-antd/modal';
import { AllotPersonComponent } from '../da-subordinate-audit/allot-person/allot-person.component';
@Component({
selector: 'app-da-monthly-task-overview',
templateUrl: './da-monthly-task-overview.component.html',
@ -13,7 +12,6 @@ export class DaMonthlyTaskOverviewComponent implements OnInit {
constructor(private http: HttpClient, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService) { }
selectedMonth
selectedYear = 2022
selectedTime
@ -160,6 +158,8 @@ export class DaMonthlyTaskOverviewComponent implements OnInit {
next: async (data) => {
this.message.create('success', '分配成功');
resolve(data)
console.log(data);
this.getTaskList()
return true
},

Loading…
Cancel
Save