|
|
@ -25,12 +25,14 @@ export class DaOneselfPlanComponent implements OnInit { |
|
|
|
selectedTime |
|
|
|
selectedTime |
|
|
|
selectMonth(item) { |
|
|
|
selectMonth(item) { |
|
|
|
this.selectedMonth = item.id |
|
|
|
this.selectedMonth = item.id |
|
|
|
// this.getTaskList()
|
|
|
|
this.getTasks() |
|
|
|
|
|
|
|
this.getAllStation() |
|
|
|
} |
|
|
|
} |
|
|
|
selectYear(e) { |
|
|
|
selectYear(e) { |
|
|
|
this.selectedYear = e |
|
|
|
this.selectedYear = e |
|
|
|
console.log('年', e) |
|
|
|
console.log('年', e) |
|
|
|
// this.getTaskList()
|
|
|
|
this.getTasks() |
|
|
|
|
|
|
|
this.getAllStation() |
|
|
|
} |
|
|
|
} |
|
|
|
months = [ |
|
|
|
months = [ |
|
|
|
{ id: 1, name: '1月', isable: true }, |
|
|
|
{ id: 1, name: '1月', isable: true }, |
|
|
@ -55,7 +57,7 @@ export class DaOneselfPlanComponent implements OnInit { |
|
|
|
formatOne = (percent: number): string => `${percent}%\n完成率`; |
|
|
|
formatOne = (percent: number): string => `${percent}%\n完成率`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//上级任务指标
|
|
|
|
//上部卡片
|
|
|
|
cardData = [ |
|
|
|
cardData = [ |
|
|
|
{ name: '双随机', isDetails: false, isLoading: false, background: '#1D9DFF', icon: 'suiji.png', passed: 0, inspected: 0, percentage: 0, data: [] }, |
|
|
|
{ name: '双随机', isDetails: false, isLoading: false, background: '#1D9DFF', icon: 'suiji.png', passed: 0, inspected: 0, percentage: 0, data: [] }, |
|
|
|
{ name: '行政许可', isDetails: false, isLoading: false, background: '#42B983', icon: 'xuke.png', passed: 0, inspected: 0, percentage: 0, data: [] }, |
|
|
|
{ name: '行政许可', isDetails: false, isLoading: false, background: '#42B983', icon: 'xuke.png', passed: 0, inspected: 0, percentage: 0, data: [] }, |
|
|
@ -65,8 +67,16 @@ export class DaOneselfPlanComponent implements OnInit { |
|
|
|
{ name: '投诉举报', isDetails: false, isLoading: false, background: '#5087FF', icon: 'tousu.png', passed: 0, inspected: 0, percentage: 0, data: [] }, |
|
|
|
{ name: '投诉举报', isDetails: false, isLoading: false, background: '#5087FF', icon: 'tousu.png', passed: 0, inspected: 0, percentage: 0, data: [] }, |
|
|
|
{ name: '火灾调查', isDetails: false, isLoading: false, background: '#FF404D', icon: 'huozai.png', passed: 0, inspected: 0, percentage: 0, data: [] } |
|
|
|
{ name: '火灾调查', isDetails: false, isLoading: false, background: '#FF404D', icon: 'huozai.png', passed: 0, inspected: 0, percentage: 0, data: [] } |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
openDetails(data, type) { |
|
|
|
|
|
|
|
data.isDetails = type |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async getTasks() { |
|
|
|
async getTasks() { |
|
|
|
|
|
|
|
this.cardData.forEach((item, key) => { |
|
|
|
|
|
|
|
item.data = [] |
|
|
|
|
|
|
|
item.passed = 0 |
|
|
|
|
|
|
|
item.inspected = 0 |
|
|
|
|
|
|
|
}); |
|
|
|
let selectedTime = this.selectedYear + '-' + this.selectedMonth + '-' + '01' |
|
|
|
let selectedTime = this.selectedYear + '-' + this.selectedMonth + '-' + '01' |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
Month: selectedTime, |
|
|
|
Month: selectedTime, |
|
|
@ -100,38 +110,6 @@ export class DaOneselfPlanComponent implements OnInit { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
openDetails(data, type) { |
|
|
|
|
|
|
|
data.isDetails = type |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
radioChange(e) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nodes: any = [] |
|
|
|
|
|
|
|
BuildingTypes |
|
|
|
|
|
|
|
adjustment(item) { |
|
|
|
|
|
|
|
console.log(item) |
|
|
|
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
|
|
|
nzTitle: "任务调整", |
|
|
|
|
|
|
|
nzContent: PlanAdjustmentComponent, |
|
|
|
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
|
|
|
nzWidth: 900, |
|
|
|
|
|
|
|
nzComponentParams: { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
nzOnOk: async () => { |
|
|
|
|
|
|
|
console.log(123); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -161,7 +139,6 @@ export class DaOneselfPlanComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
expandcarditem(item) { |
|
|
|
expandcarditem(item) { |
|
|
|
item.isExpand = !item.isExpand |
|
|
|
item.isExpand = !item.isExpand |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//获得消防站下的所有任务
|
|
|
|
//获得消防站下的所有任务
|
|
|
|
PageNumber = 1 |
|
|
|
PageNumber = 1 |
|
|
@ -225,4 +202,26 @@ export class DaOneselfPlanComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nodes: any = [] |
|
|
|
|
|
|
|
BuildingTypes |
|
|
|
|
|
|
|
adjustment(item) { |
|
|
|
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
|
|
|
nzTitle: "任务调整", |
|
|
|
|
|
|
|
nzContent: PlanAdjustmentComponent, |
|
|
|
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
|
|
|
nzWidth: 900, |
|
|
|
|
|
|
|
nzFooter: null, |
|
|
|
|
|
|
|
nzComponentParams: { |
|
|
|
|
|
|
|
data: item |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
|
|
|
|
modal.afterClose.subscribe(result => { |
|
|
|
|
|
|
|
this.getTaskListOfStation(item) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|