+
-
-
+
- 尬粒酒店管理有限公司济南泺文路分公司
+ {{i.company.companyName}}
单位名称
@@ -121,7 +124,7 @@
- 重点单位
+ {{i.company.useNature}}
级别
@@ -129,100 +132,52 @@
- 历下区A消防救援站
+ {{i.organization.name}}
责任机构
-
-
- 历下区B消防救援站
-
-
- 协助机构
+
+
+
+
+
+ {{o.name}}
+
+
+
+
+
+
+ {{o.name}}
+
+
+
+ 协助人员
-
+ 宣传
同步工作
-
-
-
-
-
-
- 进度
-
-
-
-
-
-
-
-
-
-
- 尬粒酒店管理有限公司济南泺文路分公司
-
-
- 单位名称
-
-
-
-
- 重点单位
-
-
- 级别
-
-
-
-
- 历下区A消防救援站
-
-
- 责任机构
-
-
-
-
- 历下区B消防救援站
-
-
- 协助机构
-
-
+
-
+ 未发现违法违规情况
- 同步工作
+ 检查结果
-
-
-
-
-
-
- 进度
-
-
-
-
-
-
@@ -231,7 +186,6 @@
-
diff --git a/src/app/home/task/da-oneself-plan/da-oneself-plan.component.scss b/src/app/home/task/da-oneself-plan/da-oneself-plan.component.scss
index d59d3b0..f2f9c3f 100644
--- a/src/app/home/task/da-oneself-plan/da-oneself-plan.component.scss
+++ b/src/app/home/task/da-oneself-plan/da-oneself-plan.component.scss
@@ -45,18 +45,21 @@
box-sizing: border-box;
padding: 18px;
color: #303133;
+ padding-bottom: 0;
+ padding-right: 0;
.instrumentpanelheader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
+ box-sizing: border-box;
+ padding-right: 22px;
}
.instrumentpanel {
display: flex;
flex-wrap: wrap;
- justify-content: space-between;
}
.instrumentpanelitem {
@@ -66,7 +69,7 @@
opacity: 1;
border: 1px solid #E4E7EC;
display: flex;
-
+ position: relative;
.itemone {
width: 100%;
@@ -193,6 +196,7 @@
width: 24.3%;
height: 260px;
margin-bottom: 18px;
+ margin-right: 8px;
.itemone {
.instrumentpanelitemleft {
@@ -204,7 +208,8 @@
.instrumentpanelitemclose {
width: 11.7%;
height: 200px;
- margin-bottom: 0px;
+ margin-bottom: 18px;
+ margin-right: 1%;
.itemone {
.instrumentpanelitemleft {
@@ -230,6 +235,7 @@
color: #303133;
box-sizing: border-box;
padding: 0 18px;
+ position: relative;
.header {
width: 100%;
@@ -331,7 +337,13 @@
padding: 12px 0px;
border-bottom: 1px dashed #C7CAD0;
+ div {
+ flex: 1;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
.flexcol {
display: flex;
@@ -350,21 +362,33 @@
}
.namebox {
- width: 28%;
+ flex: 2;
}
- .progressbox {
- width: 220px;
+ .flexcolassistant {
+ flex: 2;
+ overflow: hidden;
- span:nth-child(1) {
+ .assistant {
width: 100%;
- }
- }
- .btnbox {
- display: flex;
- justify-content: flex-end;
- align-self: flex-start;
+ span {
+ color: #303133;
+ margin-right: 6px;
+ }
+
+ img {
+ width: 16px;
+ height: 16px;
+ vertical-align: text-bottom;
+ }
+
+ display: inline-block;
+ text-align: left;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
}
diff --git a/src/app/home/task/da-oneself-plan/da-oneself-plan.component.ts b/src/app/home/task/da-oneself-plan/da-oneself-plan.component.ts
index 8494edf..9e70bad 100644
--- a/src/app/home/task/da-oneself-plan/da-oneself-plan.component.ts
+++ b/src/app/home/task/da-oneself-plan/da-oneself-plan.component.ts
@@ -1,8 +1,9 @@
-import { Component, OnInit,ViewContainerRef } from '@angular/core';
+import { Component, OnInit, ViewContainerRef } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd/message';
import { NzModalService } from 'ng-zorro-antd/modal';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
-import {PlanAdjustmentComponent} from './plan-adjustment/plan-adjustment.component'
+import { PlanAdjustmentComponent } from './plan-adjustment/plan-adjustment.component'
+import { HttpClient } from '@angular/common/http';
@Component({
selector: 'app-da-oneself-plan',
templateUrl: './da-oneself-plan.component.html',
@@ -10,28 +11,40 @@ import {PlanAdjustmentComponent} from './plan-adjustment/plan-adjustment.compone
})
export class DaOneselfPlanComponent implements OnInit {
- constructor(private modal: NzModalService,private message: NzMessageService,private viewContainerRef: ViewContainerRef) { }
+ constructor(private http: HttpClient, private modal: NzModalService, private message: NzMessageService, private viewContainerRef: ViewContainerRef) { }
validateForm!: FormGroup;
+ OrganizationId
ngOnInit(): void {
+ this.OrganizationId = JSON.parse(sessionStorage.getItem('userData')).organizationId
+ this.selectedMonth = new Date().getMonth() + 1
+ this.getAllStation()
}
- months = [
- { name: '1月', isable: true },
- { name: '2月', isable: true },
- { name: '3月', isable: true },
- { name: '4月', isable: true },
- { name: '5月', isable: true },
- { name: '6月', isable: true },
- { name: '7月', isable: true },
- { name: '8月', isable: true },
- { name: '9月', isable: true },
- { name: '10月', isable: true },
- { name: '11月', isable: true },
- { name: '12月', isable: true }
- ]
selectedMonth
+ selectedYear = 2022
+ selectedTime
selectMonth(item) {
- this.selectedMonth = item.name
+ this.selectedMonth = item.id
+ // this.getTaskList()
+ }
+ selectYear(e) {
+ this.selectedYear = e
+ console.log('年', e)
+ // this.getTaskList()
}
+ months = [
+ { id: 1, name: '1月', isable: true },
+ { id: 2, name: '2月', isable: true },
+ { id: 3, name: '3月', isable: true },
+ { id: 4, name: '4月', isable: true },
+ { id: 5, name: '5月', isable: true },
+ { id: 6, name: '6月', isable: true },
+ { id: 7, name: '7月', isable: true },
+ { id: 8, name: '8月', isable: true },
+ { id: 9, name: '9月', isable: true },
+ { id: 10, name: '10月', isable: true },
+ { id: 11, name: '11月', isable: true },
+ { id: 12, name: '12月', isable: true }
+ ]
isExpand = false
expand() {
@@ -42,7 +55,6 @@ export class DaOneselfPlanComponent implements OnInit {
cardData = [
- { name: '重大活动', isDetails: false, background: '#FF9203', icon: 'huodong.png' },
{ name: '双随机', isDetails: false, background: '#1D9DFF', icon: 'suiji.png' },
{ name: '行政许可', isDetails: false, background: '#42B983', icon: 'xuke.png' },
{ name: '熟悉演练', isDetails: false, background: '#9D80FF', icon: 'yanlian.png' },
@@ -61,26 +73,20 @@ export class DaOneselfPlanComponent implements OnInit {
setTimeout(() => {
this.xxx = !this.xxx
}, 0);
-
- }
- stationData = [
- { name: '历下区A消防救援站', isExpand: true },
- { name: '历下区B消防救援站', isExpand: false },
- { name: '历下区C消防救援站', isExpand: false }
- ]
- expandcarditem(item) {
- item.isExpand = !item.isExpand
+
}
+
+
nodes: any = []
BuildingTypes
- adjustment(){
+ adjustment() {
const modal = this.modal.create({
nzTitle: "任务调整",
nzContent: PlanAdjustmentComponent,
nzViewContainerRef: this.viewContainerRef,
nzWidth: 900,
nzComponentParams: {
-
+
},
nzOnOk: async () => {
console.log(123);
@@ -89,4 +95,83 @@ export class DaOneselfPlanComponent implements OnInit {
const instance = modal.getContentComponent();
}
+
+
+
+
+ //获得辖区下所有救援站
+ stationData = []
+ getAllStation() {
+ let params = {
+ ContainsChildren: true,
+ pageSize: 9999
+ }
+ this.http.get('/api/Organizations', {
+ params: params
+ }).subscribe((data: any) => {
+ data.items = data.items.filter(element => {
+ return element.level == 'squadron'
+ });
+ data.items.forEach(element => {
+ element.isExpand = false
+ element.isLoading = false
+ });
+ this.stationData = data.items
+ })
+ }
+ expandcarditem(item) {
+ item.isExpand = !item.isExpand
+ console.log(item)
+ if (item.isExpand) {
+ this.getTaskListOfStation(item)
+ }
+ }
+ //获得消防站下的所有任务
+ PageNumber = 1
+ PageSize = 9999
+ getTaskListOfStation(item) {
+ let selectedTime = this.selectedYear + '-' + this.selectedMonth + '-' + '01'
+ let params = {
+ Month: selectedTime,
+ CompanyOrganizationId: item.id,
+ PageNumber: this.PageNumber,
+ approvalStatuses: '通过',
+ PageSize: this.PageSize
+ }
+ item.isLoading = true
+ this.http.get('/api/PlanTasks', {
+ params: params
+ }).subscribe({
+ next: (data: any) => {
+ item.isLoading = false
+ let listData = [
+ { name: '双随机', background: '#1D9DFF', icon: 'suiji.png', scale: '0/0', data: [] },
+ { name: '行政许可', background: '#42B983', icon: 'xuke.png', scale: '0/0', data: [] },
+ { name: '熟悉演练', background: '#9D80FF', icon: 'yanlian.png', scale: '0/0', data: [] },
+ { name: '联络指导', background: '#5483EA', icon: 'zhidao.png', scale: '0/0', data: [] },
+ { name: '消防宣传', background: '#FF5D2A', icon: 'xuanchuan.png', scale: '0/0', data: [] },
+ { name: '投诉举报', background: '#5087FF', icon: 'tousu.png', scale: '0/0', data: [] },
+ { name: '火灾调查', background: '#FF404D', icon: 'huozai.png', scale: '0/0', data: [] }
+ ]
+ data.items.forEach(element => {
+ listData.forEach((item, key) => {
+ element.taskType == item.name ? listData[key].data.push(element) : null
+ });
+ });
+ for (let index = 0; index < listData.length; index++) {
+ const element = listData[index];
+ if (element.data.length == 0) {
+ listData.splice(index, 1)
+ index--
+ }
+ }
+ item.data = listData
+ // console.log('点击的救援站通过数据', item)
+ },
+ error: (err) => {
+ this.message.create('warning', '获取数据失败');
+ item.isLoading = false
+ }
+ })
+ }
}
diff --git a/src/app/home/task/da-subordinate-audit/allot-person/allot-person.component.html b/src/app/home/task/da-subordinate-audit/allot-person/allot-person.component.html
index 0415b4e..f43ee10 100644
--- a/src/app/home/task/da-subordinate-audit/allot-person/allot-person.component.html
+++ b/src/app/home/task/da-subordinate-audit/allot-person/allot-person.component.html
@@ -3,7 +3,7 @@
检查员(主)
-
+
@@ -12,7 +12,7 @@
检查员(协)
-
+
diff --git a/src/app/home/task/station-task-execution/station-task-execution.component.html b/src/app/home/task/station-task-execution/station-task-execution.component.html
index 1e41d8e..c2e570c 100644
--- a/src/app/home/task/station-task-execution/station-task-execution.component.html
+++ b/src/app/home/task/station-task-execution/station-task-execution.component.html
@@ -39,7 +39,7 @@