diff --git a/src/app/babylon/controller/mode-manager.ts b/src/app/babylon/controller/mode-manager.ts
index 146f793..8b28322 100644
--- a/src/app/babylon/controller/mode-manager.ts
+++ b/src/app/babylon/controller/mode-manager.ts
@@ -28,7 +28,7 @@ export class ModeManager {
/**
* 调试模式
*/
- public static isDebug = true;
+ public static isDebug = false;
diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.html b/src/app/pages/criminal-records-admin/criminal-records-admin.component.html
index 8984933..606e22a 100644
--- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.html
+++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.html
@@ -115,7 +115,7 @@
+
预警类型
@@ -139,7 +139,7 @@
状态
-
@@ -161,7 +161,7 @@
Ⅲ级
Ⅳ级
-
+
{{item.violation.violationType}}
@@ -186,8 +186,10 @@
已处置
未处置
-
diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts
index 4d70caa..062ca95 100644
--- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts
+++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts
@@ -11,6 +11,8 @@ import * as moment from 'moment';
import { NzModalService } from 'ng-zorro-antd/modal';
import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-details/get-out-of-line-details.component';
import { OilUnloadingProcessComponent } from '../oil-unloading-process/oil-unloading-process.component';
+import { DispositionComponent } from '../disposition/disposition.component';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'app-criminal-records-admin',
templateUrl: './criminal-records-admin.component.html',
@@ -19,7 +21,7 @@ import { OilUnloadingProcessComponent } from '../oil-unloading-process/oil-unloa
export class CriminalRecordsAdminComponent implements OnInit {
validateForm!: FormGroup;
- constructor(private element: ElementRef, private http: HttpClient, private fb: FormBuilder, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef) { }
+ constructor(private element: ElementRef, private http: HttpClient, private fb: FormBuilder, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService) { }
//饼图
myChart
option = {
@@ -33,7 +35,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
type: 'pie',
radius: [88, 116],//内半径外,外半径
left: '0',
- top:'8%',
+ top: '8%',
avoidLabelOverlap: false,//防止标签重叠策略
label: {//每一个标签外网延伸的引导说明
show: false,
@@ -427,6 +429,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
this.totalCount = data.result.totalCount
console.log('违规记录列表', data)
this.getAggregations()
+ console.log(this.list.length)
})
}
@@ -435,9 +438,11 @@ export class CriminalRecordsAdminComponent implements OnInit {
ngAfterViewInit(): void {
fromEvent(this.element.nativeElement.querySelector(`#tbody`) as HTMLCanvasElement, 'scroll').pipe(debounceTime(100)).subscribe((event: any) => { //监听 DOM 滚动事件
if (event.target.scrollHeight - (event.target.scrollTop + event.target.clientHeight) <= 10) {
- console.log('需要加载数据了', event)
- this.SkipCount = String(Number(this.SkipCount) + 50)
- this.getViolateRecordList()
+ if(this.totalCount > this.list.length){
+ console.log('需要加载数据了', event)
+ this.SkipCount = String(Number(this.SkipCount) + 50)
+ this.getViolateRecordList()
+ }
}
});
}
@@ -579,7 +584,47 @@ export class CriminalRecordsAdminComponent implements OnInit {
//跳转卸油统计页面
- goOilList(){
+ goOilList() {
this.router.navigate(['/records/oliunloadinglist'])
}
+
+
+ dispose(item) {
+ console.log(item)
+ const modal = this.modal.create({
+ nzContent: DispositionComponent,
+ nzViewContainerRef: this.viewContainerRef,
+ nzWidth: 380,
+ nzBodyStyle: {
+ 'border': '1px solid #91CCFF',
+ 'border-radius': '0px',
+ 'padding': '7px',
+ 'box-shadow': '0 0 8px 0 #fff',
+ 'background-image': 'linear-gradient(#003665, #000f25)'
+ },
+ nzComponentParams: {},
+ nzFooter: null,
+ nzClosable: false,
+ nzOnOk: async () => {
+ if (instance.validateForm.valid) {
+ await new Promise(resolve => {
+ let body = {
+ id: item.id,
+ handleRecord: instance.validateForm.value.content
+ }
+ this.http.post('/api/services/app/ViolateRecord/HandleViolateRecord', body).subscribe(data => {
+ resolve(data)
+ this.message.create('success', '处置成功!');
+ item.handleTime = new Date()
+ return true
+ })
+ })
+ } else {
+ this.message.create('warning', '请填写完整!');
+ return false
+ }
+ },
+ });
+ const instance = modal.getContentComponent();
+ }
}
diff --git a/src/app/pages/criminal-records/criminal-records.component.html b/src/app/pages/criminal-records/criminal-records.component.html
index 699701a..2bc1e0f 100644
--- a/src/app/pages/criminal-records/criminal-records.component.html
+++ b/src/app/pages/criminal-records/criminal-records.component.html
@@ -168,7 +168,9 @@
未处置