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 9fad21e..42ed216 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
@@ -1 +1,56 @@
-
-
证件名称: 营业执照
+
证件名称: 营业执照
-
证件编号: Z201800041501
+
证件编号: Z201800041501
-
证件有效期: 2018.12.02—2025.01.12
+
证件有效期: 2018.12.02—2025.01.12
-
办理类型: 年度公示
+
办理类型: 年度公示
-
有效期类型: 1523天
+
有效期类型: 1523天
-
是否年检: 是
+
是否年检: 是
-
证件图片:
证件图片: 
-
审核记录
+
+ 审核记录
+
+
+ 审核次数:6
+
+
+ 驳回次数:2
+
+
+
2022.04.02
diff --git a/src/app/pages/license/update-category/details-update-category/details-update-category.component.scss b/src/app/pages/license/update-category/details-update-category/details-update-category.component.scss
index 010499b..ff540a7 100644
--- a/src/app/pages/license/update-category/details-update-category/details-update-category.component.scss
+++ b/src/app/pages/license/update-category/details-update-category/details-update-category.component.scss
@@ -38,6 +38,11 @@
background: linear-gradient(180deg, #36A2FF 0%, #FFFFFF 100%);
opacity: 1;
}
+ .recordP{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
}
p {
diff --git a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html
index 2628d7b..c34cd30 100644
--- a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html
+++ b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html
@@ -44,7 +44,7 @@
- 证件图片
+ 附件上传(图片格式、pdf格式、word格式)
@@ -52,7 +52,7 @@
+ nzTheme="outline">上传附件
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 caf5061..2a487c5 100644
--- a/src/app/pages/license/update-category/update-category.component.html
+++ b/src/app/pages/license/update-category/update-category.component.html
@@ -9,7 +9,7 @@
证件编号 |
证件有效期 |
-
图片 |
+
附件 |
有效期类型 |
办理类型 |
是否年检 |
@@ -27,8 +27,12 @@
证件编号 |
证件有效期 |
-
+
+
|
有效期类型 |
办理类型 |
@@ -46,6 +50,4 @@
-
-
-
+
\ No newline at end of file
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 d11dcc9..4e97a8e 100644
--- a/src/app/pages/license/update-category/update-category.component.ts
+++ b/src/app/pages/license/update-category/update-category.component.ts
@@ -8,6 +8,7 @@ import * as moment from 'moment';
import { NzMessageService } from 'ng-zorro-antd/message';
import { HttpClient } from '@angular/common/http';
import { DetailsUpdateCategoryComponent } from './details-update-category/details-update-category.component';
+import { PdfWordLookComponent } from '../pdf-word-look/pdf-word-look.component';
@Component({
selector: 'app-update-category',
templateUrl: './update-category.component.html',
@@ -17,7 +18,11 @@ export class UpdateCategoryComponent implements OnInit {
constructor(private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService, private http: HttpClient) { }
tableSpin = false
- list = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
+ list = [
+ { url: '/api/Objects/sinochemweb/stationPhotos/175/timg.jpg', type: 'img' },
+ { url: '/api/Objects/sinochemweb/stationPhotos/853/完整度规划20200724.docx', type: 'word' },
+ { url: '/api/Objects/sinochemweb/stationPhotos/853/10.6 MB.pdf', type: 'pdf' },
+ ]
tableScrollHeight
ngOnInit(): void {
@@ -26,6 +31,8 @@ export class UpdateCategoryComponent implements OnInit {
fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe((event) => {
this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px'
});
+ let xxx = '/api/Objects/sinochemweb/stationPhotos/853/10.6 MB.pdf'
+ // console.log(666,xxx.split('.')[xxx.split('.').length - 1])
}
//查看图片
viewImg(url) {
@@ -47,7 +54,47 @@ export class UpdateCategoryComponent implements OnInit {
node.click();
}, 0);
}
+ //查看文件
+ lookFile(item) {
+ console.log('item', item)
+
+ let suffix = item.url.split('.')[item.url.split('.').length - 1].toLowerCase()
+ if (item.type == 'word') {
+ let arr = item.url.split('.')
+ arr[arr.length - 1] = 'pdf'
+ window.open(arr.join('.'))
+ } else if (item.type == 'pdf') {
+ window.open(item.url)
+ } else {
+ // let config = new MatSnackBarConfig();
+ // config.verticalPosition = 'top';
+ // config.duration = 3000
+ // this.snackBar.open('该文件类型暂不支持在线查看', '确定', config);
+ }
+ // const modal = this.modal.create({
+ // nzContent: PdfWordLookComponent,
+ // nzViewContainerRef: this.viewContainerRef,
+ // nzWidth: 850,
+ // nzBodyStyle: {
+ // 'border': '1px solid #91CCFF',
+ // 'border-radius': '0px',
+ // 'padding': '7px',
+ // 'box-shadow': '0 0 8px 0 #fff',
+ // 'background-image': 'linear-gradient(#003665, #000f25)'
+ // },
+ // nzComponentParams: {
+ // data: item
+ // },
+ // nzFooter: null,
+ // nzClosable: false,
+ // nzOnOk: async () => {
+
+ // }
+ // });
+ // const instance = modal.getContentComponent();
+ // modal.afterClose.subscribe(result => { });
+ }
dispose() {
console.log('处置')
}
diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts
index f0c6be5..d7c58aa 100644
--- a/src/app/pages/pages.module.ts
+++ b/src/app/pages/pages.module.ts
@@ -69,10 +69,12 @@ import { DetailsUpdateCategoryComponent } from './license/update-category/detail
import { EditFileCategoryComponent } from './license/file-category/edit-file-category/edit-file-category.component';
import { DetailsFileCategoryComponent } from './license/file-category/details-file-category/details-file-category.component';
import { NzTimelineModule } from 'ng-zorro-antd/timeline';
+import { PdfWordLookComponent } from './license/pdf-word-look/pdf-word-look.component';
+
@NgModule({
declarations: [LoginComponent, RegisterComponent, HomeComponent, PlanComponent, TodayWarningComponent, CriminalRecordsComponent,
TodayWarningAdminComponent, CriminalRecordsAdminComponent, LeftDomainComponent, EquipmentInfoComponent, OilStationInfoComponent,
- AddequipmentComponent, EditequipmentComponent, PlanAdminComponent, GetOutOfLineDetailsComponent, DispositionComponent, OilUnloadingProcessComponent, HomePageComponent, OilUnloadingProcessListComponent, ChangePasswordComponent, FacilitySortPipe, WarningStatisticsListComponent, DisposeequipmentComponent, NavBarComponent, InformComponent, UpdateCategoryComponent, FileCategoryComponent, HistoriesComponent, EditUpdateCategoryComponent, DetailsUpdateCategoryComponent, EditFileCategoryComponent, DetailsFileCategoryComponent],
+ AddequipmentComponent, EditequipmentComponent, PlanAdminComponent, GetOutOfLineDetailsComponent, DispositionComponent, OilUnloadingProcessComponent, HomePageComponent, OilUnloadingProcessListComponent, ChangePasswordComponent, FacilitySortPipe, WarningStatisticsListComponent, DisposeequipmentComponent, NavBarComponent, InformComponent, UpdateCategoryComponent, FileCategoryComponent, HistoriesComponent, EditUpdateCategoryComponent, DetailsUpdateCategoryComponent, EditFileCategoryComponent, DetailsFileCategoryComponent,PdfWordLookComponent],
imports: [
@@ -116,7 +118,7 @@ import { NzTimelineModule } from 'ng-zorro-antd/timeline';
NzToolTipModule,
NzTimelineModule
],
- entryComponents: [AddequipmentComponent, EditequipmentComponent, GetOutOfLineDetailsComponent, DispositionComponent, OilUnloadingProcessComponent, ChangePasswordComponent, DisposeequipmentComponent, EditUpdateCategoryComponent, DetailsUpdateCategoryComponent, EditFileCategoryComponent, DetailsFileCategoryComponent],
+ entryComponents: [AddequipmentComponent, EditequipmentComponent, GetOutOfLineDetailsComponent, DispositionComponent, OilUnloadingProcessComponent, ChangePasswordComponent, DisposeequipmentComponent, EditUpdateCategoryComponent, DetailsUpdateCategoryComponent, EditFileCategoryComponent, DetailsFileCategoryComponent, PdfWordLookComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
diff --git a/src/app/service/objectsSimple.service.ts b/src/app/service/objectsSimple.service.ts
index 25a5fcf..609be78 100644
--- a/src/app/service/objectsSimple.service.ts
+++ b/src/app/service/objectsSimple.service.ts
@@ -48,7 +48,7 @@ export class ObjectsSimpleService {
let fileSize = file.size || null //上传文件的总大小
let shardSize = 5 * 1024 * 1024 //5MB一个分片
let allSlice = Math.ceil(fileSize / shardSize) //总文件/5MB===共分多少段
-
+ console.log('共分多少段' + allSlice)
for (let i = 0; i < allSlice; i++) { //循环分段上传
let start = i * shardSize //切割文件开始位置
let end = Math.min(fileSize, start + shardSize); //切割文件结束位置
@@ -66,13 +66,14 @@ export class ObjectsSimpleService {
PartNumberETag.push(result)
if (PartNumberETag.length === allSlice) { //分块上传完成
+
let data = PartNumberETag
let paramsData = { uploadId: uploadId };
let path = ObjectsSimpleService.c_apiRoot_Multipart + 'CompleteMultipartUpload/sinochemweb/' + objectName;
this.http.post(path, data, { params: paramsData }).subscribe(data => {
let objData: any = new Object();
objData.fileName = file.name;
- objData.filePath = (ObjectsSimpleService.baseUrl + objectName).replace(file.name, "");
+ objData.filePath = ObjectsSimpleService.baseUrl + objectName
resolve(objData)
})
}
diff --git a/src/assets/images/license/pdf.png b/src/assets/images/license/pdf.png
new file mode 100644
index 0000000..0fbbf86
Binary files /dev/null and b/src/assets/images/license/pdf.png differ
diff --git a/src/assets/images/license/word.png b/src/assets/images/license/word.png
new file mode 100644
index 0000000..5939eb1
Binary files /dev/null and b/src/assets/images/license/word.png differ
diff --git a/src/theme.less b/src/theme.less
index 42a2414..885e0f5 100644
--- a/src/theme.less
+++ b/src/theme.less
@@ -171,7 +171,9 @@
#addequipment,
#disposeequipment,
#editupdatecategory,
-#detailsupdatecategory {
+#detailsupdatecategory,
+#editfilecategory,
+#detailsfilecategory {
nz-input-group,
input {
@@ -201,7 +203,9 @@
#stationPlanBox,
#disposeequipment,
#editupdatecategory,
-#detailsupdatecategory {
+#detailsupdatecategory,
+#editfilecategory,
+#detailsfilecategory {
::-webkit-input-placeholder {
/* WebKit browsers */
color: #345d85;
@@ -244,7 +248,9 @@
//证件弹出框
#editupdatecategory,
-#detailsupdatecategory {
+#detailsupdatecategory,
+#editfilecategory,
+#detailsfilecategory {
nz-form-item {
margin-bottom: 0;
@@ -344,7 +350,8 @@
//蓝色 表格 tree
#stationPlanBox,
#inform,
-#updateLicense {
+#updateLicense,
+#fileLicense {
::-webkit-input-placeholder {
/* WebKit browsers */
color: #345d85;