diff --git a/src/app/babylon/controller/scene-manager.ts b/src/app/babylon/controller/scene-manager.ts index 4f1d9fc..ee940df 100644 --- a/src/app/babylon/controller/scene-manager.ts +++ b/src/app/babylon/controller/scene-manager.ts @@ -605,7 +605,7 @@ export class SceneManager { }, function (scene: Scene, message: string, exception?: any) { - + LoadTool.remove(modelData.resPath + modelData.resName); if (index < 5) { let l_index = index + 1; modelInfo.dispose(); @@ -618,7 +618,7 @@ export class SceneManager { } else { modelInfo.dispose(); - LoadTool.remove(modelData.resPath + modelData.resName); + // LoadTool.onEnd(); console.log(message, exception); alert("模型加载失败,请刷新页面重试: " + message + "==" + exception); // alert(exception); diff --git a/src/app/pages/audit/audit-ing/audit-ing.component.ts b/src/app/pages/audit/audit-ing/audit-ing.component.ts index 1a29b58..3d57d8d 100644 --- a/src/app/pages/audit/audit-ing/audit-ing.component.ts +++ b/src/app/pages/audit/audit-ing/audit-ing.component.ts @@ -188,6 +188,10 @@ export class AuditIngComponent implements OnInit { return new Promise((resolve, reject) => { let params = { id: item.itemId } this.http.get(url, { params }).subscribe((data: any) => { + let auditLog = { rejectReason: item.rejectReason } + if (item.auditType == 1 && item.rejectReason) { + data.result.auditLog = auditLog + } resolve(data.result) }) }) diff --git a/src/app/pages/audit/audit-record/audit-record.component.html b/src/app/pages/audit/audit-record/audit-record.component.html index 071ede5..70597bf 100644 --- a/src/app/pages/audit/audit-record/audit-record.component.html +++ b/src/app/pages/audit/audit-record/audit-record.component.html @@ -71,14 +71,13 @@ - + - + diff --git a/src/app/pages/audit/audit-record/audit-record.component.ts b/src/app/pages/audit/audit-record/audit-record.component.ts index e85a0a4..de805be 100644 --- a/src/app/pages/audit/audit-record/audit-record.component.ts +++ b/src/app/pages/audit/audit-record/audit-record.component.ts @@ -244,6 +244,10 @@ export class AuditRecordComponent implements OnInit { return new Promise((resolve, reject) => { let params = { id: item.itemId } this.http.get(url, { params }).subscribe((data: any) => { + let auditLog = { rejectReason: item.rejectReason } + if (item.auditType == 1 && item.rejectReason) { + data.result.auditLog = auditLog + } resolve(data.result) }) }) diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.html b/src/app/pages/audit/gas-base-info/gas-base-info.component.html index 462e684..bd804c6 100644 --- a/src/app/pages/audit/gas-base-info/gas-base-info.component.html +++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.html @@ -79,7 +79,7 @@ 审核记录 - 审核次数:{{auditList.length}} + 审核次数:{{getVerifyNum()}} 驳回次数:{{getRejectNum()}} diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts index 187e5e6..b419c66 100644 --- a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts +++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts @@ -50,6 +50,17 @@ export class GasBaseInfoComponent implements OnInit { }) } + //获取审核次数 + getVerifyNum(): number { + let num = 0 + this.auditList.forEach(item=>{ + if (item.auditStatus == 2 || item.auditStatus == 3) { + num = num + 1 + } + }) + return num + } + //获取驳回次数 getRejectNum(): number { let num = 0 diff --git a/src/app/pages/license/file-category/details-file-category/details-file-category.component.html b/src/app/pages/license/file-category/details-file-category/details-file-category.component.html index 0280b5d..443717f 100644 --- a/src/app/pages/license/file-category/details-file-category/details-file-category.component.html +++ b/src/app/pages/license/file-category/details-file-category/details-file-category.component.html @@ -13,13 +13,17 @@
-

证件图片:   

+

证件图片:    + + + +

审核记录 - 审核次数:{{auditList.length}} + 审核次数:{{getVerifyNum()}} 驳回次数:{{getRejectNum()}} @@ -28,8 +32,9 @@

- {{item.creationTime | date:"yyyy/MM/dd"}} - {{item.auditStatus | auditStatus}} + {{item.creationTime | date:"yyyy/MM/dd"}} + {{item.auditStatus | auditStatus}} + 驳回说明:{{item.auditLog? item.auditLog.rejectReason : ''}} diff --git a/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts b/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts index fe9d27d..2161bd7 100644 --- a/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts +++ b/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts @@ -4,6 +4,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { HttpClient } from '@angular/common/http'; import { ObjectsSimpleService } from 'src/app/service/objectsSimple.service'; import Viewer from 'viewerjs'; +import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-details-file-category', @@ -13,7 +14,7 @@ import Viewer from 'viewerjs'; export class DetailsFileCategoryComponent implements OnInit { @Input() data?: any; - constructor(private modal: NzModalRef, private http: HttpClient) { } + constructor(private modal: NzModalRef, private http: HttpClient,private message: NzMessageService) { } ngOnInit(): void { this.getAuditLogging() @@ -32,6 +33,17 @@ export class DetailsFileCategoryComponent implements OnInit { }) } + //获取审核次数 + getVerifyNum(): number { + let num = 0 + this.auditList.forEach(item=>{ + if (item.auditStatus == 2 || item.auditStatus == 3) { + num = num + 1 + } + }) + return num + } + //获取驳回次数 getRejectNum(): number { let num = 0 @@ -47,6 +59,19 @@ export class DetailsFileCategoryComponent implements OnInit { this.modal.destroy({ data: 'this the result data' }); } + //获取文件格式 + getFileType(name: string):string { + let suffix + if (name.substring(name.length-4).includes('png') || name.substring(name.length-4).includes('jpg') || name.substring(name.length-4).includes('jpeg') || name.substring(name.length-4).includes('webp')) { + suffix = 'img' + } else if (name.substring(name.length-4).includes('doc') || name.substring(name.length-4).includes('docx')) { + suffix = 'word' + } else if (name.substring(name.length-4).includes('pdf')) { + suffix = 'pdf' + } + return suffix + } + //查看图片 viewImg(url) { let dom = document.getElementById(`viewerjs`) @@ -67,4 +92,20 @@ export class DetailsFileCategoryComponent implements OnInit { }, 0); } + //查看文件 + lookFile(item) { + if (!item.imageUrl) { + return + } + if (this.getFileType(item.imageUrl) == 'word') { + let arr = item.imageUrl.split('.') + arr[arr.length - 1] = 'pdf' + window.open(arr.join('.')) + } else if (this.getFileType(item.imageUrl) == 'pdf') { + window.open(item.imageUrl) + } else { + this.message.create('warning', '暂不支持查看!'); + } + } + } diff --git a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html index ea06c5b..7efab10 100644 --- a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html +++ b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html @@ -26,7 +26,10 @@
- + + + + diff --git a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts index 825b327..8d590bb 100644 --- a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts +++ b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts @@ -4,6 +4,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { HttpClient } from '@angular/common/http'; import { ObjectsSimpleService } from 'src/app/service/objectsSimple.service'; import Viewer from 'viewerjs'; +import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-edit-file-category', templateUrl: './edit-file-category.component.html', @@ -14,7 +15,7 @@ export class EditFileCategoryComponent implements OnInit { @Input() data?: any; validateForm!: FormGroup; - constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient, private objectsSrv: ObjectsSimpleService) { } + constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient, private objectsSrv: ObjectsSimpleService,private message: NzMessageService) { } data2 @@ -94,9 +95,21 @@ export class EditFileCategoryComponent implements OnInit { } + //获取文件格式 + getFileType(name: string):string { + let suffix + if (name.substring(name.length-4).includes('png') || name.substring(name.length-4).includes('jpg') || name.substring(name.length-4).includes('jpeg') || name.substring(name.length-4).includes('webp')) { + suffix = 'img' + } else if (name.substring(name.length-4).includes('doc') || name.substring(name.length-4).includes('docx')) { + suffix = 'word' + } else if (name.substring(name.length-4).includes('pdf')) { + suffix = 'pdf' + } + return suffix + } + //查看图片 viewImg(url) { - // url.split('?')[0] let dom = document.getElementById(`viewerjs`) let pObjs = dom.childNodes; let node = document.createElement("img") @@ -115,4 +128,20 @@ export class EditFileCategoryComponent implements OnInit { }, 0); } + //查看文件 + lookFile(item) { + if (!item.imageUrl) { + return + } + if (this.getFileType(item.imageUrl) == 'word') { + let arr = item.imageUrl.split('.') + arr[arr.length - 1] = 'pdf' + window.open(arr.join('.')) + } else if (this.getFileType(item.imageUrl) == 'pdf') { + window.open(item.imageUrl) + } else { + this.message.create('warning', '暂不支持查看!'); + } + } + } diff --git a/src/app/pages/license/file-category/file-category.component.html b/src/app/pages/license/file-category/file-category.component.html index 7edc66d..376fd49 100644 --- a/src/app/pages/license/file-category/file-category.component.html +++ b/src/app/pages/license/file-category/file-category.component.html @@ -8,7 +8,7 @@ 证件名称 有效期类型 - 图片 + 附件 提交时间 审核状态 操作 @@ -25,11 +25,13 @@ - + + + {{item.committedTime | date:"yyyy/MM/dd"}}未提交审核 - {{item.auditStatus | auditStatus}} + {{item.auditLog.auditStatusDesc || ''}} 编辑 diff --git a/src/app/pages/license/file-category/file-category.component.ts b/src/app/pages/license/file-category/file-category.component.ts index e841d20..e8a7828 100644 --- a/src/app/pages/license/file-category/file-category.component.ts +++ b/src/app/pages/license/file-category/file-category.component.ts @@ -41,6 +41,19 @@ export class FileCategoryComponent implements OnInit { }) } + //获取文件格式 + getFileType(name: string):string { + let suffix + if (name.substring(name.length-4).includes('png') || name.substring(name.length-4).includes('jpg') || name.substring(name.length-4).includes('jpeg') || name.substring(name.length-4).includes('webp')) { + suffix = 'img' + } else if (name.substring(name.length-4).includes('doc') || name.substring(name.length-4).includes('docx')) { + suffix = 'word' + } else if (name.substring(name.length-4).includes('pdf')) { + suffix = 'pdf' + } + return suffix + } + //查看图片 viewImg(url) { let dom = document.getElementById(`viewerjs`) @@ -61,6 +74,22 @@ export class FileCategoryComponent implements OnInit { }, 0); } + //查看文件 + lookFile(item) { + if (!item.imageUrl) { + return + } + if (this.getFileType(item.imageUrl) == 'word') { + let arr = item.imageUrl.split('.') + arr[arr.length - 1] = 'pdf' + window.open(arr.join('.')) + } else if (this.getFileType(item.imageUrl) == 'pdf') { + window.open(item.imageUrl) + } else { + this.message.create('warning', '暂不支持查看!'); + } + } + dispose() { } diff --git a/src/app/pages/license/update-category/details-update-category/details-update-category.component.html b/src/app/pages/license/update-category/details-update-category/details-update-category.component.html index 635d1ef..9dfca80 100644 --- a/src/app/pages/license/update-category/details-update-category/details-update-category.component.html +++ b/src/app/pages/license/update-category/details-update-category/details-update-category.component.html @@ -29,7 +29,7 @@ 审核记录 - 审核次数:{{auditList.length}} + 审核次数:{{getVerifyNum()}} 驳回次数:{{getRejectNum()}} @@ -38,8 +38,9 @@

- {{item.creationTime | date:"yyyy/MM/dd"}} - {{item.auditStatus | auditStatus}} + {{item.creationTime | date:"yyyy/MM/dd"}} + {{item.auditStatus | auditStatus}} + 驳回说明:{{item.auditLog? item.auditLog.rejectReason : ''}} diff --git a/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts b/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts index 399308e..18de9d9 100644 --- a/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts +++ b/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts @@ -34,6 +34,17 @@ export class DetailsUpdateCategoryComponent implements OnInit { }) } + //获取审核次数 + getVerifyNum(): number { + let num = 0 + this.auditList.forEach(item=>{ + if (item.auditStatus == 2 || item.auditStatus == 3) { + num = num + 1 + } + }) + return num + } + //获取驳回次数 getRejectNum(): number { let num = 0 diff --git a/src/app/pages/license/update-category/update-category.component.html b/src/app/pages/license/update-category/update-category.component.html index f4018d9..e3c3c23 100644 --- a/src/app/pages/license/update-category/update-category.component.html +++ b/src/app/pages/license/update-category/update-category.component.html @@ -27,12 +27,9 @@ {{item.licenseCode || ''}} {{item.isLongTerm ? '长期证照' : (item.validityEndTime | date:"yyyy/MM/dd")}} - - - + + + @@ -47,7 +44,7 @@ {{item.committedTime | date:"yyyy/MM/dd"}}未提交审核 - {{item.auditStatus | auditStatus}} + {{item.auditLog.auditStatusDesc || ''}} diff --git a/src/app/pages/license/update-category/update-category.component.ts b/src/app/pages/license/update-category/update-category.component.ts index 5753622..4e36b4f 100644 --- a/src/app/pages/license/update-category/update-category.component.ts +++ b/src/app/pages/license/update-category/update-category.component.ts @@ -36,7 +36,6 @@ export class UpdateCategoryComponent implements OnInit { let data = JSON.parse(sessionStorage.getItem('userdataOfgasstation')); let params = { orgId: data.organization.id || "" } this.http.get(`/api/services/app/StationValidityLicense/GetCurStationLicense`,{params}).subscribe((info: any)=>{ - this.tableSpin = false this.list = info.result this.tableSpin = false console.log(info.result)