6 changed files with 467 additions and 309 deletions
@ -1,238 +1,238 @@ |
|||||||
<!-- <p>本级计划</p> --> |
<!-- <p>本级计划</p> --> |
||||||
<div class="box"> |
<div class="box"> |
||||||
<div class="timebox"> |
<div class="timebox"> |
||||||
<nz-select ngModel="2022"> |
<nz-select ngModel="2022"> |
||||||
<nz-option nzValue="2021" nzLabel="2021年"></nz-option> |
<nz-option nzValue="2021" nzLabel="2021年"></nz-option> |
||||||
<nz-option nzValue="2022" nzLabel="2022年"></nz-option> |
<nz-option nzValue="2022" nzLabel="2022年"></nz-option> |
||||||
</nz-select> |
</nz-select> |
||||||
<div *ngFor="let item of months" class="monthbtn" (click)="selectMonth(item)" |
<div *ngFor="let item of months" class="monthbtn" (click)="selectMonth(item)" |
||||||
[ngClass]="{'selectedMonth': item.name == selectedMonth}"> |
[ngClass]="{'selectedMonth': item.name == selectedMonth}"> |
||||||
{{item.name}} |
{{item.name}} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div style="flex: 1;overflow-y: auto;"> |
<div style="flex: 1;overflow-y: auto;"> |
||||||
<!-- 上部仪表盘 --> |
<!-- 上部仪表盘 --> |
||||||
<div class="instrumentpanelbox"> |
<div class="instrumentpanelbox"> |
||||||
<div class="instrumentpanelheader"> |
<div class="instrumentpanelheader"> |
||||||
<span>本级部署</span> |
<span>本级部署</span> |
||||||
<span (click)="expand()" class="expand blue"> |
<span (click)="expand()" class="expand blue"> |
||||||
{{isExpand ? '收起' :'展开'}} |
{{isExpand ? '收起' :'展开'}} |
||||||
<i nz-icon [nzType]="isExpand ? 'down' : 'up'" nzTheme="outline"></i> |
<i nz-icon [nzType]="isExpand ? 'down' : 'up'" nzTheme="outline"></i> |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="instrumentpanel"> |
<div class="instrumentpanel"> |
||||||
<div class="instrumentpanelitem" *ngFor="let item of cardData" |
<div class="instrumentpanelitem" *ngFor="let item of cardData" |
||||||
[ngClass]="{'instrumentpanelitemopen': isExpand,'instrumentpanelitemclose': !isExpand}"> |
[ngClass]="{'instrumentpanelitemopen': isExpand,'instrumentpanelitemclose': !isExpand}"> |
||||||
<div class="itemone" *ngIf="!item.isDetails"> |
<div class="itemone" *ngIf="!item.isDetails"> |
||||||
<div class="instrumentpanelitemleft"> |
<div class="instrumentpanelitemleft"> |
||||||
<div class="panelheadername" [style]="'background:'+ item.background"> |
<div class="panelheadername" [style]="'background:'+ item.background"> |
||||||
<img [src]="'../../../../assets/images/icon/'+ item.icon" alt=""> |
<img [src]="'../../../../assets/images/icon/'+ item.icon" alt=""> |
||||||
{{item.name}} |
{{item.name}} |
||||||
</div> |
</div> |
||||||
<div class="tasknum"> |
<div class="tasknum"> |
||||||
<p> |
<p> |
||||||
<span style="margin-right: 6px;">任务分配</span> |
<span style="margin-right: 6px;">任务分配</span> |
||||||
<i (click)="openDetails(item,true)" |
<i (click)="openDetails(item,true)" |
||||||
style="vertical-align: text-top;cursor: pointer;" nz-icon nzType="right-circle" |
style="vertical-align: text-top;cursor: pointer;" nz-icon nzType="right-circle" |
||||||
nzTheme="outline"></i> |
nzTheme="outline"></i> |
||||||
</p> |
</p> |
||||||
<p style="font-weight: 900;font-size: 36px;text-align: left;">5/9</p> |
<p style="font-weight: 900;font-size: 36px;text-align: left;">5/9</p> |
||||||
</div> |
</div> |
||||||
<button *ngIf="isExpand" nz-button class="btn">快速派发</button> |
<button *ngIf="isExpand" nz-button class="btn">快速派发</button> |
||||||
</div> |
</div> |
||||||
<div class="instrumentpanelitemright" *ngIf="isExpand"> |
<div class="instrumentpanelitemright" *ngIf="isExpand"> |
||||||
<nz-progress [nzPercent]="75" nzType="circle" [nzFormat]="formatOne" |
<nz-progress [nzPercent]="75" nzType="circle" [nzFormat]="formatOne" |
||||||
nzStrokeColor="#42B983"> |
nzStrokeColor="#42B983"> |
||||||
</nz-progress> |
</nz-progress> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<div class="itemtwo" *ngIf="item.isDetails"> |
<div class="itemtwo" *ngIf="item.isDetails"> |
||||||
<p class="itemtwotitle"> |
<p class="itemtwotitle"> |
||||||
<span>{{item.name}}</span> |
<span>{{item.name}}</span> |
||||||
<span class="back" (click)="openDetails(item,false)"><i nz-icon nzType="rollback" |
<span class="back" (click)="openDetails(item,false)"><i nz-icon nzType="rollback" |
||||||
nzTheme="outline"></i>返回</span> |
nzTheme="outline"></i>返回</span> |
||||||
</p> |
</p> |
||||||
<div class="itemtwocontent"> |
<div class="itemtwocontent"> |
||||||
<div class="itemtwocontentitem"> |
<div class="itemtwocontentitem"> |
||||||
<p class="itemtwocontentitemp1"> |
<p class="itemtwocontentitemp1"> |
||||||
<span class="itemtwocontentitemp1name">济南历下森豪室内娱乐场</span> |
<span class="itemtwocontentitemp1name">济南历下森豪室内娱乐场</span> |
||||||
<span> |
<span> |
||||||
<span class="blue" *ngIf="isExpand">派发</span> |
<span class="blue" *ngIf="isExpand">派发</span> |
||||||
</span> |
</span> |
||||||
</p> |
</p> |
||||||
<p>A消防救援站</p> |
<p>A消防救援站</p> |
||||||
<p><span class="blue" *ngIf="!isExpand">派发</span></p> |
<p><span class="blue" *ngIf="!isExpand">派发</span></p> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<!-- 救援站列表 --> |
<!-- 救援站列表 --> |
||||||
<div class="stationcardlistbox"> |
<div class="stationcardlistbox"> |
||||||
<div class="stationcardlistitembox" *ngFor="let item of stationData"> |
<div class="stationcardlistitembox" *ngFor="let item of stationData"> |
||||||
<div class="stationcardlistitem"> |
<div class="stationcardlistitem"> |
||||||
<div class="header"> |
<div class="header"> |
||||||
<span style="width: 16%;"> |
<span style="width: 16%;"> |
||||||
<img src="../../../../assets//images/icon/station.png" alt=""> |
<img src="../../../../assets//images/icon/station.png" alt=""> |
||||||
{{item.name}} |
{{item.name}} |
||||||
</span> |
</span> |
||||||
<span style="width: 8%;">单位总数: 7/8</span> |
<span style="width: 8%;">单位总数: 7/8</span> |
||||||
<div style="width: 66%;" class="progress progresssquare"> |
<div style="width: 66%;" class="progress progresssquare"> |
||||||
<span>完成进度</span> |
<span>完成进度</span> |
||||||
<nz-progress nzStrokeLinecap="square" nzStrokeWidth="16" |
<nz-progress nzStrokeLinecap="square" nzStrokeWidth="16" |
||||||
nzStrokeColor="#42B983" [nzPercent]="30"></nz-progress> |
nzStrokeColor="#42B983" [nzPercent]="30"></nz-progress> |
||||||
</div> |
</div> |
||||||
<button nz-button nzType="primary">任务下派</button> |
<button nz-button nzType="primary" (click)="adjustment()">任务调整</button> |
||||||
<span (click)="expandcarditem(item)" class="expand blue"> |
<span (click)="expandcarditem(item)" class="expand blue"> |
||||||
{{item.isExpand ? '收起' :'展开'}} |
{{item.isExpand ? '收起' :'展开'}} |
||||||
<i nz-icon [nzType]="item.isExpand ? 'down' : 'up'" nzTheme="outline"></i> |
<i nz-icon [nzType]="item.isExpand ? 'down' : 'up'" nzTheme="outline"></i> |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="maincontent" *ngIf="item.isExpand"> |
<div class="maincontent" *ngIf="item.isExpand"> |
||||||
<div class="maincontentitem"> |
<div class="maincontentitem"> |
||||||
<div class="maincontentitemleft"> |
<div class="maincontentitemleft"> |
||||||
<div class="panelheadername panelheadernameor"> |
<div class="panelheadername panelheadernameor"> |
||||||
<img src="'../../../../assets/images/icon/huodong.png" alt=""> |
<img src="'../../../../assets/images/icon/huodong.png" alt=""> |
||||||
重大活动 |
重大活动 |
||||||
</div> |
</div> |
||||||
<div class="num"> |
<div class="num"> |
||||||
<div class="round" style="background: #2C4DC0;"></div> |
<div class="round" style="background: #2C4DC0;"></div> |
||||||
<span class="word">已分配</span> |
<span class="word">已分配</span> |
||||||
<span class="boldspan">1</span> |
<span class="boldspan">1</span> |
||||||
</div> |
</div> |
||||||
<div class="num"> |
<div class="num"> |
||||||
<div class="round" style="background: #42B983;"></div> |
<div class="round" style="background: #42B983;"></div> |
||||||
<span class="word">已完成</span> |
<span class="word">已完成</span> |
||||||
<span class="boldspan">1</span> |
<span class="boldspan">1</span> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<div class="maincontentitemright"> |
<div class="maincontentitemright"> |
||||||
<div class="maincontentitemrightitem"> |
<div class="maincontentitemrightitem"> |
||||||
<div class="flexcol namebox"> |
<div class="flexcol namebox"> |
||||||
<span> |
<span> |
||||||
尬粒酒店管理有限公司济南泺文路分公司 |
尬粒酒店管理有限公司济南泺文路分公司 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
单位名称 |
单位名称 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
重点单位 |
重点单位 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
级别 |
级别 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
历下区A消防救援站 |
历下区A消防救援站 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
责任机构 |
责任机构 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
历下区B消防救援站 |
历下区B消防救援站 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
协助机构 |
协助机构 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
<label nz-radio ngModel [ngModel]="xxx" |
<label nz-radio ngModel [ngModel]="xxx" |
||||||
(click)="radioChange($event)">宣传</label> |
(click)="radioChange($event)">宣传</label> |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
同步工作 |
同步工作 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol progressbox progresssquare"> |
<div class="flexcol progressbox progresssquare"> |
||||||
<span> |
<span> |
||||||
<nz-progress style="width: 200px;" nzStrokeLinecap="square" |
<nz-progress style="width: 200px;" nzStrokeLinecap="square" |
||||||
nzStrokeWidth="16" nzStrokeColor="#42B983" [nzPercent]="30"> |
nzStrokeWidth="16" nzStrokeColor="#42B983" [nzPercent]="30"> |
||||||
</nz-progress> |
</nz-progress> |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
进度 |
进度 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="btnbox"> |
<div class="btnbox"> |
||||||
<button nz-button nzType="primary">提交审核</button> |
<button nz-button nzType="primary">提交审核</button> |
||||||
<button style="margin-left: 12px;" nz-button nzType="primary">取消</button> |
<button style="margin-left: 12px;" nz-button nzType="primary">取消</button> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<div class="maincontentitemrightitem"> |
<div class="maincontentitemrightitem"> |
||||||
<div class="flexcol namebox"> |
<div class="flexcol namebox"> |
||||||
<span> |
<span> |
||||||
尬粒酒店管理有限公司济南泺文路分公司 |
尬粒酒店管理有限公司济南泺文路分公司 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
单位名称 |
单位名称 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
重点单位 |
重点单位 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
级别 |
级别 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
历下区A消防救援站 |
历下区A消防救援站 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
责任机构 |
责任机构 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
历下区B消防救援站 |
历下区B消防救援站 |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
协助机构 |
协助机构 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol"> |
<div class="flexcol"> |
||||||
<span> |
<span> |
||||||
<label nz-radio ngModel [ngModel]="xxx" |
<label nz-radio ngModel [ngModel]="xxx" |
||||||
(click)="radioChange($event)">宣传</label> |
(click)="radioChange($event)">宣传</label> |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
同步工作 |
同步工作 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="flexcol progressbox progresssquare"> |
<div class="flexcol progressbox progresssquare"> |
||||||
<span> |
<span> |
||||||
<nz-progress style="width: 200px;" nzStrokeLinecap="square" |
<nz-progress style="width: 200px;" nzStrokeLinecap="square" |
||||||
nzStrokeWidth="16" nzStrokeColor="#42B983" [nzPercent]="30"> |
nzStrokeWidth="16" nzStrokeColor="#42B983" [nzPercent]="30"> |
||||||
</nz-progress> |
</nz-progress> |
||||||
</span> |
</span> |
||||||
<span> |
<span> |
||||||
进度 |
进度 |
||||||
</span> |
</span> |
||||||
</div> |
</div> |
||||||
<div class="btnbox"> |
<div class="btnbox"> |
||||||
<button nz-button nzType="primary">提交审核</button> |
<button nz-button nzType="primary">提交审核</button> |
||||||
<button style="margin-left: 12px;" nz-button nzType="primary">取消</button> |
<button style="margin-left: 12px;" nz-button nzType="primary">取消</button> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<!-- --> |
<!-- --> |
||||||
<div class="cutoffrule"></div> |
<div class="cutoffrule"></div> |
||||||
</div> |
</div> |
||||||
|
|
||||||
</div> |
</div> |
@ -1,71 +1,92 @@ |
|||||||
import { Component, OnInit } from '@angular/core'; |
import { Component, OnInit,ViewContainerRef } from '@angular/core'; |
||||||
|
import { NzMessageService } from 'ng-zorro-antd/message'; |
||||||
@Component({ |
import { NzModalService } from 'ng-zorro-antd/modal'; |
||||||
selector: 'app-da-oneself-plan', |
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
||||||
templateUrl: './da-oneself-plan.component.html', |
import {PlanAdjustmentComponent} from './plan-adjustment/plan-adjustment.component' |
||||||
styleUrls: ['./da-oneself-plan.component.scss'] |
@Component({ |
||||||
}) |
selector: 'app-da-oneself-plan', |
||||||
export class DaOneselfPlanComponent implements OnInit { |
templateUrl: './da-oneself-plan.component.html', |
||||||
|
styleUrls: ['./da-oneself-plan.component.scss'] |
||||||
constructor() { } |
}) |
||||||
|
export class DaOneselfPlanComponent implements OnInit { |
||||||
ngOnInit(): void { |
|
||||||
} |
constructor(private modal: NzModalService,private message: NzMessageService,private viewContainerRef: ViewContainerRef) { } |
||||||
months = [ |
validateForm!: FormGroup; |
||||||
{ name: '1月', isable: true }, |
ngOnInit(): void { |
||||||
{ name: '2月', isable: true }, |
} |
||||||
{ name: '3月', isable: true }, |
months = [ |
||||||
{ name: '4月', isable: true }, |
{ name: '1月', isable: true }, |
||||||
{ name: '5月', isable: true }, |
{ name: '2月', isable: true }, |
||||||
{ name: '6月', isable: true }, |
{ name: '3月', isable: true }, |
||||||
{ name: '7月', isable: true }, |
{ name: '4月', isable: true }, |
||||||
{ name: '8月', isable: true }, |
{ name: '5月', isable: true }, |
||||||
{ name: '9月', isable: true }, |
{ name: '6月', isable: true }, |
||||||
{ name: '10月', isable: true }, |
{ name: '7月', isable: true }, |
||||||
{ name: '11月', isable: true }, |
{ name: '8月', isable: true }, |
||||||
{ name: '12月', isable: true } |
{ name: '9月', isable: true }, |
||||||
] |
{ name: '10月', isable: true }, |
||||||
selectedMonth |
{ name: '11月', isable: true }, |
||||||
selectMonth(item) { |
{ name: '12月', isable: true } |
||||||
this.selectedMonth = item.name |
] |
||||||
} |
selectedMonth |
||||||
|
selectMonth(item) { |
||||||
isExpand = false |
this.selectedMonth = item.name |
||||||
expand() { |
} |
||||||
this.isExpand = !this.isExpand |
|
||||||
} |
isExpand = false |
||||||
|
expand() { |
||||||
formatOne = (percent: number): string => `${percent}%\n完成率`; |
this.isExpand = !this.isExpand |
||||||
|
} |
||||||
|
|
||||||
cardData = [ |
formatOne = (percent: number): string => `${percent}%\n完成率`; |
||||||
{ name: '重大活动', isDetails: false, background: '#FF9203', icon: 'huodong.png' }, |
|
||||||
{ name: '双随机', isDetails: false, background: '#1D9DFF', icon: 'suiji.png' }, |
|
||||||
{ name: '行政许可', isDetails: false, background: '#42B983', icon: 'xuke.png' }, |
cardData = [ |
||||||
{ name: '熟悉演练', isDetails: false, background: '#9D80FF', icon: 'yanlian.png' }, |
{ name: '重大活动', isDetails: false, background: '#FF9203', icon: 'huodong.png' }, |
||||||
{ name: '联络指导', isDetails: false, background: '#5483EA', icon: 'zhidao.png' }, |
{ name: '双随机', isDetails: false, background: '#1D9DFF', icon: 'suiji.png' }, |
||||||
{ name: '消防宣传', isDetails: false, background: '#FF5D2A', icon: 'xuanchuan.png' }, |
{ name: '行政许可', isDetails: false, background: '#42B983', icon: 'xuke.png' }, |
||||||
{ name: '投诉举报', isDetails: false, background: '#5087FF', icon: 'tousu.png' }, |
{ name: '熟悉演练', isDetails: false, background: '#9D80FF', icon: 'yanlian.png' }, |
||||||
{ name: '火灾调查', isDetails: false, background: '#FF404D', icon: 'huozai.png' } |
{ name: '联络指导', isDetails: false, background: '#5483EA', icon: 'zhidao.png' }, |
||||||
] |
{ name: '消防宣传', isDetails: false, background: '#FF5D2A', icon: 'xuanchuan.png' }, |
||||||
|
{ name: '投诉举报', isDetails: false, background: '#5087FF', icon: 'tousu.png' }, |
||||||
openDetails(data, type) { |
{ name: '火灾调查', isDetails: false, background: '#FF404D', icon: 'huozai.png' } |
||||||
data.isDetails = type |
] |
||||||
} |
|
||||||
xxx = false |
openDetails(data, type) { |
||||||
radioChange(e) { |
data.isDetails = type |
||||||
|
} |
||||||
setTimeout(() => { |
xxx = false |
||||||
this.xxx = !this.xxx |
radioChange(e) { |
||||||
}, 0); |
|
||||||
|
setTimeout(() => { |
||||||
} |
this.xxx = !this.xxx |
||||||
stationData = [ |
}, 0); |
||||||
{ name: '历下区A消防救援站', isExpand: true }, |
|
||||||
{ name: '历下区B消防救援站', isExpand: false }, |
} |
||||||
{ name: '历下区C消防救援站', isExpand: false } |
stationData = [ |
||||||
] |
{ name: '历下区A消防救援站', isExpand: true }, |
||||||
expandcarditem(item) { |
{ name: '历下区B消防救援站', isExpand: false }, |
||||||
item.isExpand = !item.isExpand |
{ name: '历下区C消防救援站', isExpand: false } |
||||||
} |
] |
||||||
} |
expandcarditem(item) { |
||||||
|
item.isExpand = !item.isExpand |
||||||
|
} |
||||||
|
nodes: any = [] |
||||||
|
BuildingTypes |
||||||
|
adjustment(){ |
||||||
|
const modal = this.modal.create({ |
||||||
|
nzTitle: "任务调整", |
||||||
|
nzContent: PlanAdjustmentComponent, |
||||||
|
nzViewContainerRef: this.viewContainerRef, |
||||||
|
nzWidth: 900, |
||||||
|
nzComponentParams: { |
||||||
|
|
||||||
|
}, |
||||||
|
nzOnOk: async () => { |
||||||
|
console.log(123); |
||||||
|
} |
||||||
|
}); |
||||||
|
const instance = modal.getContentComponent(); |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
@ -0,0 +1,35 @@ |
|||||||
|
<div class="box"> |
||||||
|
<div style="border: 1px solid #E4E7EC; padding: 20px; width:400px; margin: 0 20px;"> |
||||||
|
<div class="title"><span>未接任务</span><span>任务总数:{{taskNumber}}/8</span></div> |
||||||
|
<div class="missed"> |
||||||
|
<div *ngFor="let item of list" class="item"> |
||||||
|
<i [style]="'background:'+item.class+';'"> </i> |
||||||
|
<span>{{item.tag}}</span> |
||||||
|
<div (click)="aaa(data)" class="checked" *ngFor="let data of item.item"> |
||||||
|
<label [nzDisabled]="task" nz-checkbox [(ngModel)]="data.checked" (change)="aaa(data)">{{data.name}}</label> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div style="border: 1px solid #E4E7EC; padding: 20px; width:400px; margin: 0 20px;" > |
||||||
|
<div class="title">已接任务</div> |
||||||
|
<div class="missed"> |
||||||
|
<div *ngFor="let item2 of list" class="item"> |
||||||
|
<div> |
||||||
|
<i [style]="'background:'+item2.class+';'"> </i> |
||||||
|
<span>{{item2.tag}}</span> |
||||||
|
</div> |
||||||
|
<div *ngFor="let data of item2.item"> |
||||||
|
<div class="received checked" *ngIf="data.checked"> |
||||||
|
<div class="name">{{data.name}}</div> |
||||||
|
<div><i nz-icon nzType="close" nzTheme="outline" (click)="bbb(data)"></i></div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
</div> |
@ -0,0 +1,28 @@ |
|||||||
|
.box { |
||||||
|
display: flex; |
||||||
|
} |
||||||
|
.title{ |
||||||
|
span{ |
||||||
|
margin-right: 14px; |
||||||
|
} |
||||||
|
} |
||||||
|
.missed { |
||||||
|
.item { |
||||||
|
margin: 20px 0; |
||||||
|
border-bottom: 1px dotted #C7CAD0; |
||||||
|
i { |
||||||
|
width: 4px; |
||||||
|
height: 12px; |
||||||
|
margin-right: 5px; |
||||||
|
} |
||||||
|
.checked{ |
||||||
|
margin: 10px 0; |
||||||
|
} |
||||||
|
} |
||||||
|
.received{ |
||||||
|
display: flex; |
||||||
|
.name{ |
||||||
|
flex: 1; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,70 @@ |
|||||||
|
import { Component, OnInit } from '@angular/core'; |
||||||
|
|
||||||
|
@Component({ |
||||||
|
selector: 'app-plan-adjustment', |
||||||
|
templateUrl: './plan-adjustment.component.html', |
||||||
|
styleUrls: ['./plan-adjustment.component.scss'] |
||||||
|
}) |
||||||
|
export class PlanAdjustmentComponent implements OnInit { |
||||||
|
|
||||||
|
constructor() { } |
||||||
|
list = [ |
||||||
|
{ |
||||||
|
tag: "行政许可", |
||||||
|
class: "#42B983", |
||||||
|
item: [ |
||||||
|
{ |
||||||
|
name: "想啥吃啥餐饮有限公司", |
||||||
|
checked: false |
||||||
|
}, |
||||||
|
{ |
||||||
|
name: "想啥吃啥餐饮有限公司", |
||||||
|
checked: false |
||||||
|
} |
||||||
|
] |
||||||
|
}, |
||||||
|
{ |
||||||
|
tag: "双随机", |
||||||
|
class: "#1D9DFF", |
||||||
|
item: [ |
||||||
|
{ |
||||||
|
name: "想啥吃啥餐饮有限公司", |
||||||
|
checked: false |
||||||
|
} |
||||||
|
] |
||||||
|
}, |
||||||
|
] |
||||||
|
list2 = [ |
||||||
|
|
||||||
|
] |
||||||
|
taskNumber=0 |
||||||
|
task=false |
||||||
|
ngOnInit(): void { |
||||||
|
} |
||||||
|
aaa(data) { |
||||||
|
if(data.checked && !this.task){ |
||||||
|
this.list2.push({meu:this.list2.length,data}) |
||||||
|
console.log(this.list2); |
||||||
|
this.taskNumber=this.list2.length |
||||||
|
if(this.taskNumber==8){ |
||||||
|
this.task=true |
||||||
|
} |
||||||
|
}else{ |
||||||
|
this.bbb(data) |
||||||
|
} |
||||||
|
} |
||||||
|
bbb(e) { |
||||||
|
console.log(e); |
||||||
|
e.checked=false |
||||||
|
for (let index = 0; index < this.list2.length; index++) { |
||||||
|
if(e==this.list2[index].data){ |
||||||
|
this.list2.splice(this.list2[index].meu,1) |
||||||
|
this.taskNumber=this.list2.length |
||||||
|
if(this.taskNumber!=8){ |
||||||
|
this.task=false |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue