@gsp-svc/formdoc-upload 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/gsp-svc-formdoc-upload.umd.js +184 -12
- package/bundles/gsp-svc-formdoc-upload.umd.js.map +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js.map +1 -1
- package/esm2015/gsp-svc-formdoc-upload.js +2 -2
- package/esm2015/lib/i18n/language.resource.js +5 -1
- package/esm2015/lib/upload/entity/expropertyrequest.js +15 -0
- package/esm2015/lib/upload/entity/fileinfo.js +5 -1
- package/esm2015/lib/upload/entity/gspdocsecuritynaseinfo.js +15 -0
- package/esm2015/lib/upload/entity/securityentity.js +17 -0
- package/esm2015/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm2015/lib/upload/entity/uploadlimit.js +4 -1
- package/esm2015/lib/upload/file-upload/file-upload.component.js +94 -13
- package/esm2015/lib/upload/upload.service.js +71 -1
- package/esm2015/lib/uploaddialog.service.js +2 -1
- package/esm2015/public-api.js +4 -1
- package/esm5/gsp-svc-formdoc-upload.js +2 -2
- package/esm5/lib/i18n/language.resource.js +5 -1
- package/esm5/lib/upload/entity/expropertyrequest.js +19 -0
- package/esm5/lib/upload/entity/fileinfo.js +5 -1
- package/esm5/lib/upload/entity/gspdocsecuritynaseinfo.js +19 -0
- package/esm5/lib/upload/entity/securityentity.js +21 -0
- package/esm5/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm5/lib/upload/entity/uploadlimit.js +4 -1
- package/esm5/lib/upload/file-upload/file-upload.component.js +99 -13
- package/esm5/lib/upload/upload.service.js +84 -1
- package/esm5/lib/uploaddialog.service.js +2 -1
- package/esm5/public-api.js +4 -1
- package/fesm2015/gsp-svc-formdoc-upload.js +171 -14
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +194 -14
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/gsp-svc-formdoc-upload.metadata.json +1 -1
- package/lib/i18n/language.resource.d.ts +4 -0
- package/lib/upload/entity/expropertyrequest.d.ts +5 -0
- package/lib/upload/entity/fileinfo.d.ts +3 -0
- package/lib/upload/entity/gspdocsecuritynaseinfo.d.ts +5 -0
- package/lib/upload/entity/securityentity.d.ts +6 -0
- package/lib/upload/entity/uploadfileinfo.d.ts +2 -0
- package/lib/upload/entity/uploadlimit.d.ts +2 -0
- package/lib/upload/file-upload/file-upload.component.d.ts +9 -0
- package/lib/upload/upload.service.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -11,7 +11,7 @@ import { ProgressModule } from '@farris/ui-progress';
|
|
|
11
11
|
import { FormsModule } from '@angular/forms';
|
|
12
12
|
import { ComboListModule } from '@farris/ui-combo-list';
|
|
13
13
|
import { LanguageService, HttpService } from '@ecp-caf/caf-common';
|
|
14
|
-
import { Injectable, Pipe, Inject, LOCALE_ID, Component, NgModule,
|
|
14
|
+
import { Injectable, Pipe, Inject, LOCALE_ID, Component, NgModule, ViewChild, Input, Injector, ComponentFactoryResolver, defineInjectable } from '@angular/core';
|
|
15
15
|
import { BsModalService } from '@farris/ui-modal';
|
|
16
16
|
import { of as of$1 } from 'rxjs';
|
|
17
17
|
import { HttpClientModule } from '@angular/common/http';
|
|
@@ -284,6 +284,26 @@ class UploadService {
|
|
|
284
284
|
return of(error);
|
|
285
285
|
})));
|
|
286
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* @param {?} baseInfo
|
|
289
|
+
* @return {?}
|
|
290
|
+
*/
|
|
291
|
+
getSecurityInfoList(baseInfo) {
|
|
292
|
+
/** @type {?} */
|
|
293
|
+
let url = "/api/runtime/dfs/v1.0/storagestrategy/security";
|
|
294
|
+
url = url + "?id=" + baseInfo.securityId + "&level=" + baseInfo.securityLevel;
|
|
295
|
+
return this.http.get(url).pipe(tap((/**
|
|
296
|
+
* @param {?} res
|
|
297
|
+
* @return {?}
|
|
298
|
+
*/
|
|
299
|
+
res => { })), catchError((/**
|
|
300
|
+
* @param {?} error
|
|
301
|
+
* @return {?}
|
|
302
|
+
*/
|
|
303
|
+
(error) => {
|
|
304
|
+
return of(error);
|
|
305
|
+
})));
|
|
306
|
+
}
|
|
287
307
|
/**
|
|
288
308
|
* @param {?} storageInfoList
|
|
289
309
|
* @param {?} rootId
|
|
@@ -308,6 +328,37 @@ class UploadService {
|
|
|
308
328
|
return of(error);
|
|
309
329
|
})));
|
|
310
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* @param {?} uploadFileInfoList
|
|
333
|
+
* @param {?} rootId
|
|
334
|
+
* @return {?}
|
|
335
|
+
*/
|
|
336
|
+
saveSecurityInfo(uploadFileInfoList, rootId) {
|
|
337
|
+
/** @type {?} */
|
|
338
|
+
let url = "/api/runtime/dfs/v1.0/doc/exproperty";
|
|
339
|
+
/** @type {?} */
|
|
340
|
+
let reqList = [];
|
|
341
|
+
uploadFileInfoList.forEach((/**
|
|
342
|
+
* @param {?} element
|
|
343
|
+
* @return {?}
|
|
344
|
+
*/
|
|
345
|
+
element => {
|
|
346
|
+
/** @type {?} */
|
|
347
|
+
let request = { id: element.metadataId, rootId: rootId, exProperty: JSON.stringify(element.securityInfo) };
|
|
348
|
+
reqList.push(request);
|
|
349
|
+
}));
|
|
350
|
+
return this.http.post(url, reqList).pipe(tap((/**
|
|
351
|
+
* @param {?} res
|
|
352
|
+
* @return {?}
|
|
353
|
+
*/
|
|
354
|
+
res => { })), catchError((/**
|
|
355
|
+
* @param {?} error
|
|
356
|
+
* @return {?}
|
|
357
|
+
*/
|
|
358
|
+
(error) => {
|
|
359
|
+
return of(error);
|
|
360
|
+
})));
|
|
361
|
+
}
|
|
311
362
|
/**
|
|
312
363
|
* @param {?} formId
|
|
313
364
|
* @param {?} rootId
|
|
@@ -348,6 +399,25 @@ class UploadService {
|
|
|
348
399
|
return of(error);
|
|
349
400
|
})));
|
|
350
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* @param {?} id
|
|
404
|
+
* @return {?}
|
|
405
|
+
*/
|
|
406
|
+
getValidation(id) {
|
|
407
|
+
/** @type {?} */
|
|
408
|
+
let url = "/api/runtime/dfs/v1.0/validation/" + id;
|
|
409
|
+
return this.http.get(url).pipe(tap((/**
|
|
410
|
+
* @param {?} res
|
|
411
|
+
* @return {?}
|
|
412
|
+
*/
|
|
413
|
+
res => { })), catchError((/**
|
|
414
|
+
* @param {?} error
|
|
415
|
+
* @return {?}
|
|
416
|
+
*/
|
|
417
|
+
(error) => {
|
|
418
|
+
return of(error);
|
|
419
|
+
})));
|
|
420
|
+
}
|
|
351
421
|
}
|
|
352
422
|
UploadService.decorators = [
|
|
353
423
|
{ type: Injectable }
|
|
@@ -408,6 +478,7 @@ const LANG_RESOURCES = {
|
|
|
408
478
|
'rename': '重命名',
|
|
409
479
|
'replace': '替换',
|
|
410
480
|
'sizeZero': '文件大小为0',
|
|
481
|
+
'sizeMax': '文件大小超出限制',
|
|
411
482
|
'uploadFailure': '上传失败',
|
|
412
483
|
'uploadSucceed': '上传成功',
|
|
413
484
|
'wait': '等一下,文档正在上传。',
|
|
@@ -435,6 +506,7 @@ const LANG_RESOURCES = {
|
|
|
435
506
|
'rename': 'Rename',
|
|
436
507
|
'replace': 'Replace',
|
|
437
508
|
'sizeZero': 'File size is 0',
|
|
509
|
+
'sizeMax': 'File size beyond limit',
|
|
438
510
|
'uploadFailure': 'Upload failed',
|
|
439
511
|
'uploadSucceed': 'Upload successfully',
|
|
440
512
|
'wait': 'Wait a minute, the file is uploading.',
|
|
@@ -462,6 +534,7 @@ const LANG_RESOURCES = {
|
|
|
462
534
|
'rename': 'Rename',
|
|
463
535
|
'replace': 'Replace',
|
|
464
536
|
'sizeZero': 'File size is 0',
|
|
537
|
+
'sizeMax': 'File size beyond limit',
|
|
465
538
|
'uploadFailure': 'Upload failed',
|
|
466
539
|
'uploadSucceed': 'Upload successfully',
|
|
467
540
|
'wait': 'Wait a minute, the file is uploading.',
|
|
@@ -489,6 +562,7 @@ const LANG_RESOURCES = {
|
|
|
489
562
|
'rename': '重命名',
|
|
490
563
|
'replace': '替換',
|
|
491
564
|
'sizeZero': '文件大小為0',
|
|
565
|
+
'sizeMax': '文件大小超出限制',
|
|
492
566
|
'uploadFailure': '上傳失敗',
|
|
493
567
|
'uploadSucceed': '上傳成功',
|
|
494
568
|
'wait': '等一下,文件正在上傳。',
|
|
@@ -535,6 +609,13 @@ LocalLangPipe.ctorParameters = () => [
|
|
|
535
609
|
{ type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
|
|
536
610
|
];
|
|
537
611
|
|
|
612
|
+
/**
|
|
613
|
+
* @fileoverview added by tsickle
|
|
614
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
615
|
+
*/
|
|
616
|
+
class GspDocSecurityBaseInfo {
|
|
617
|
+
}
|
|
618
|
+
|
|
538
619
|
/**
|
|
539
620
|
* @fileoverview added by tsickle
|
|
540
621
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -557,6 +638,7 @@ class FileUploadComponent {
|
|
|
557
638
|
this.errFileList = [];
|
|
558
639
|
this.errTypeList = [];
|
|
559
640
|
this.nullFileList = [];
|
|
641
|
+
this.beyondFileList = [];
|
|
560
642
|
this.showType = 0;
|
|
561
643
|
this.mouseOn = false;
|
|
562
644
|
this.bufferSize = 1024 * 1024;
|
|
@@ -575,18 +657,22 @@ class FileUploadComponent {
|
|
|
575
657
|
this.uploadedProcess = {};
|
|
576
658
|
this.defaultPropertyName = "";
|
|
577
659
|
this.propertiesNames = [];
|
|
660
|
+
this.securityInfoList = [];
|
|
578
661
|
this.queueListStyle = { width: '480px' };
|
|
579
662
|
this.dropListValue = "";
|
|
580
663
|
this.uploadedFileTotal = 0;
|
|
581
664
|
this.haveExtensionProperty = false;
|
|
665
|
+
this.haveSecurityInfo = false;
|
|
582
666
|
this.uploadedFileInfoList = [];
|
|
583
667
|
this.oldUploadedFileList = [];
|
|
584
668
|
//uploadedNameList = [];
|
|
585
669
|
this.sameNameAllowed = true;
|
|
670
|
+
this.maxFileSize = 0;
|
|
586
671
|
this.checkboxPos = { top: '0px' };
|
|
587
672
|
this.fileType = "*";
|
|
588
673
|
this.fileCount = 0;
|
|
589
674
|
this.oldIdList = [];
|
|
675
|
+
this.securityInfo = null;
|
|
590
676
|
this.totalLoad = null;
|
|
591
677
|
this.exStorageFileList = [];
|
|
592
678
|
if (this.injector) {
|
|
@@ -594,6 +680,7 @@ class FileUploadComponent {
|
|
|
594
680
|
this.localepipe = new LocalLangPipe(this.localeid);
|
|
595
681
|
}
|
|
596
682
|
}
|
|
683
|
+
;
|
|
597
684
|
/**
|
|
598
685
|
* @return {?}
|
|
599
686
|
*/
|
|
@@ -601,6 +688,25 @@ class FileUploadComponent {
|
|
|
601
688
|
if (navigator.userAgent.indexOf('Firefox') >= 0)
|
|
602
689
|
this.checkboxPos.top = '14px';
|
|
603
690
|
//if (this.storageService != null) {
|
|
691
|
+
if (this.securityInfo != null) {
|
|
692
|
+
this.uploadService.getSecurityInfoList(this.securityInfo).subscribe((/**
|
|
693
|
+
* @param {?} res
|
|
694
|
+
* @return {?}
|
|
695
|
+
*/
|
|
696
|
+
res => {
|
|
697
|
+
this.haveSecurityInfo = true;
|
|
698
|
+
/** @type {?} */
|
|
699
|
+
let i = 0;
|
|
700
|
+
res.forEach((/**
|
|
701
|
+
* @param {?} element
|
|
702
|
+
* @return {?}
|
|
703
|
+
*/
|
|
704
|
+
element => {
|
|
705
|
+
this.securityInfoList.push({ id: i.toString(), securityId: element.securityId, securityLevel: element.securityLevel, name: element.name });
|
|
706
|
+
i++;
|
|
707
|
+
}));
|
|
708
|
+
}));
|
|
709
|
+
}
|
|
604
710
|
this.uploadService.getStorageExtensionInfo().subscribe((/**
|
|
605
711
|
* @param {?} res
|
|
606
712
|
* @return {?}
|
|
@@ -631,6 +737,7 @@ class FileUploadComponent {
|
|
|
631
737
|
res => {
|
|
632
738
|
if (res != null && res.error == null) {
|
|
633
739
|
this.sameNameAllowed = res.sameNameAllowed;
|
|
740
|
+
this.validationId = res.validationId;
|
|
634
741
|
if (!this.sameNameAllowed) {
|
|
635
742
|
this.uploadService.getUploadedFileInfoList(this.formId, this.rootId).subscribe((/**
|
|
636
743
|
* @param {?} res
|
|
@@ -643,6 +750,13 @@ class FileUploadComponent {
|
|
|
643
750
|
}
|
|
644
751
|
}));
|
|
645
752
|
}
|
|
753
|
+
this.uploadService.getValidation(this.validationId).subscribe((/**
|
|
754
|
+
* @param {?} res
|
|
755
|
+
* @return {?}
|
|
756
|
+
*/
|
|
757
|
+
res => {
|
|
758
|
+
this.maxFileSize = parseInt(JSON.parse(res.configuration).maxFileSize);
|
|
759
|
+
}));
|
|
646
760
|
}
|
|
647
761
|
}));
|
|
648
762
|
if (this.oldIdList != null && this.oldIdList.length > 0) {
|
|
@@ -653,10 +767,11 @@ class FileUploadComponent {
|
|
|
653
767
|
* @return {?}
|
|
654
768
|
*/
|
|
655
769
|
showLoading() {
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
770
|
+
this.hasSelectedFile = true;
|
|
771
|
+
// if (this.totalLoad == null)
|
|
772
|
+
// this.totalLoad = this.loadService.show({
|
|
773
|
+
// message: this.localepipe.transform('uploading')
|
|
774
|
+
// });
|
|
660
775
|
}
|
|
661
776
|
/**
|
|
662
777
|
* @param {?} $event
|
|
@@ -666,8 +781,8 @@ class FileUploadComponent {
|
|
|
666
781
|
// const loading = this.loadService.show({
|
|
667
782
|
// message: this.localepipe.transform('uploading')
|
|
668
783
|
// });
|
|
669
|
-
this.totalLoad.close();
|
|
670
|
-
this.totalLoad = null;
|
|
784
|
+
// this.totalLoad.close();
|
|
785
|
+
// this.totalLoad = null;
|
|
671
786
|
this.hasSelectedFile = true;
|
|
672
787
|
this.selectedFiles = document.querySelector('#file');
|
|
673
788
|
if (this.fileCount > 0) {
|
|
@@ -685,6 +800,14 @@ class FileUploadComponent {
|
|
|
685
800
|
//selectedFile.slice
|
|
686
801
|
/** @type {?} */
|
|
687
802
|
let uuid = UUID.UUID();
|
|
803
|
+
if (selectedFile.size == 0) {
|
|
804
|
+
this.nullFileList.push(selectedFile.name);
|
|
805
|
+
continue;
|
|
806
|
+
}
|
|
807
|
+
if (selectedFile.size > this.maxFileSize * 1000) {
|
|
808
|
+
this.beyondFileList.push(selectedFile.name);
|
|
809
|
+
continue;
|
|
810
|
+
}
|
|
688
811
|
if (!this.sameNameAllowed) {
|
|
689
812
|
if (this.uploadedFileInfoList.find((/**
|
|
690
813
|
* @param {?} x
|
|
@@ -780,10 +903,6 @@ class FileUploadComponent {
|
|
|
780
903
|
// this.errFileList.push(selectedFile.name);
|
|
781
904
|
// continue;
|
|
782
905
|
// }
|
|
783
|
-
if (selectedFile.size == 0) {
|
|
784
|
-
this.nullFileList.push(selectedFile.name);
|
|
785
|
-
continue;
|
|
786
|
-
}
|
|
787
906
|
//this.flag += Math.ceil(selectedFile.size / this.bufferSize);
|
|
788
907
|
//let reader = new FileReader();
|
|
789
908
|
this.uploadFile(uuid, selectedFile, selectedFile.name);
|
|
@@ -806,6 +925,13 @@ class FileUploadComponent {
|
|
|
806
925
|
this.msgService.warning(name + this.localepipe.transform('sizeZero') + this.localepipe.transform('rechooseFile'));
|
|
807
926
|
this.nullFileList = [];
|
|
808
927
|
}
|
|
928
|
+
if (this.beyondFileList.length > 0) {
|
|
929
|
+
/** @type {?} */
|
|
930
|
+
let name = this.listToString(this.beyondFileList);
|
|
931
|
+
name = name.substring(0, name.length - 1);
|
|
932
|
+
this.msgService.warning(name + this.localepipe.transform('sizeMax') + this.maxFileSize + "KB" + this.localepipe.transform('rechooseFile'));
|
|
933
|
+
this.nullFileList = [];
|
|
934
|
+
}
|
|
809
935
|
// if (this.errTypeList.length > 0) {
|
|
810
936
|
// let type: string = this.listToString(this.errTypeList);
|
|
811
937
|
// this.msgService.warning('不支持上传类型为 ' + type + '的文件请重新选择上传文件。');
|
|
@@ -854,7 +980,9 @@ class FileUploadComponent {
|
|
|
854
980
|
uploadProcess: 0,
|
|
855
981
|
errorMessage: "",
|
|
856
982
|
extensionDropListId: 0,
|
|
857
|
-
extensionName: ""
|
|
983
|
+
extensionName: "",
|
|
984
|
+
securityDropListId: 0,
|
|
985
|
+
securityInfo: this.securityInfoList[0]
|
|
858
986
|
};
|
|
859
987
|
if (this.storageExtension != null)
|
|
860
988
|
fileInfo.extensionName = this.defaultPropertyName;
|
|
@@ -869,6 +997,7 @@ class FileUploadComponent {
|
|
|
869
997
|
uploadFileInfo.fileName = fileInfo.name;
|
|
870
998
|
uploadFileInfo.fileSize = fileInfo.size;
|
|
871
999
|
uploadFileInfo.state = state;
|
|
1000
|
+
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
872
1001
|
while (chunkIndex < chunkTotal) {
|
|
873
1002
|
/** @type {?} */
|
|
874
1003
|
let uploadInfo = new GspFormUploadEntity;
|
|
@@ -1204,6 +1333,21 @@ class FileUploadComponent {
|
|
|
1204
1333
|
}
|
|
1205
1334
|
return name;
|
|
1206
1335
|
}
|
|
1336
|
+
/**
|
|
1337
|
+
* @param {?} $event
|
|
1338
|
+
* @param {?} file
|
|
1339
|
+
* @return {?}
|
|
1340
|
+
*/
|
|
1341
|
+
securityChange($event, file) {
|
|
1342
|
+
file.securityInfo = $event.data;
|
|
1343
|
+
/** @type {?} */
|
|
1344
|
+
let uploadFile = this.uploadFileInfoList.filter((/**
|
|
1345
|
+
* @param {?} x
|
|
1346
|
+
* @return {?}
|
|
1347
|
+
*/
|
|
1348
|
+
x => x.metadataId = file.id))[0];
|
|
1349
|
+
uploadFile.securityInfo = $event.data;
|
|
1350
|
+
}
|
|
1207
1351
|
/**
|
|
1208
1352
|
* @param {?} $event
|
|
1209
1353
|
* @param {?} file
|
|
@@ -1260,6 +1404,9 @@ class FileUploadComponent {
|
|
|
1260
1404
|
this.msgService.warning(this.localepipe.transform('wait'));
|
|
1261
1405
|
return of$1(false);
|
|
1262
1406
|
}
|
|
1407
|
+
if (this.haveSecurityInfo) {
|
|
1408
|
+
this.uploadService.saveSecurityInfo(this.uploadFileInfoList, this.rootId).subscribe();
|
|
1409
|
+
}
|
|
1263
1410
|
if (this.storageExtension == null)
|
|
1264
1411
|
return of$1(this.uploadFileInfoList);
|
|
1265
1412
|
else {
|
|
@@ -1378,7 +1525,7 @@ class FileUploadComponent {
|
|
|
1378
1525
|
FileUploadComponent.decorators = [
|
|
1379
1526
|
{ type: Component, args: [{
|
|
1380
1527
|
selector: 'app-file-upload',
|
|
1381
|
-
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\" class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \" style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\" (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\" [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\" style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-error\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\" style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\" [ngStyle]=\"checkboxPos\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\" style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\" [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\" [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> {{'uploadFailure' | locale}} </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' | locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\" style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\" [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\" [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\" (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">\u4E0A\u4F20\u6587\u4EF6 </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n </div>\n</div>",
|
|
1528
|
+
template: "<div *ngIf=\"hasSelectedFile\">\n\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\n <div class=\"btn btn-secondary upload_button\">\n <img [src]=\"uploadLittleIconAddress\">\n <span>{{'uploadFile' | locale}} </span>\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\"\n title=\"\" [accept]=\"fileType\">\n </div>\n\n\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\"\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\n\n <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \"\n style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\"\n [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\"\n (click)=\"showByList()\"></button>\n </kendo-buttongroup>\n\n\n </div>\n\n <!-- <div class=\"progress\" style=\"height: 12px;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\n </div> -->\n\n <div class=\"pic_list\" *ngIf=\"showType==0\">\n <ul *ngFor=\"let file of files\">\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\n <div *ngIf=\"file.isUploading\">\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\"\n [status]=\"'active'\"></farris-progress>\n </div>\n\n <table *ngIf=\"!file.uploadResult && !file.isUploading\"\n style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\n <tr style=\"margin: 0 auto ; height: 80px;\">\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-warn\"></span></td>\n </tr>\n <tr style=\"margin: 0 auto ; height: 30px;\">\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\n </tr>\n <tr>\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \"\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' |\n locale}}</button></td>\n </tr>\n </table>\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\n <img [src]='file.source'>\n <div *ngIf=\"haveExtensionProperty\"\n style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n <div *ngIf=\"haveSecurityInfo\"\n style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\n\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"securityInfoList\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </div>\n </div>\n </div>\n <table *ngIf=\"!file.isUploading\">\n <tr style=\"height: 20px\">\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\"\n [ngStyle]=\"checkboxPos\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\"\n [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\"\n style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\n </div>\n </div>\n </td>\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\n {{file.picListDisplayName}}</td>\n </tr>\n </table>\n <!-- <span>{{file.picListDisplayName}}</span> -->\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\n <button *ngIf=\"!file.isUploading && file.mouseOn\"\n style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px;\" kendoButton\n [icon]=\"'delete'\" (click)=\"listDeleteFile(file)\"></button>\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\n </li>\n </ul>\n <br>\n </div>\n\n <div class=\"queue_list\" *ngIf=\"showType==1\">\n <table>\n <tr style=\"height: 50px; table-layout:fixed;\">\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\"\n [(ngModel)]=\"fileAllSelected\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </th>\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\n {{storageExtension.extensionName}}\n </th>\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\n </tr>\n </table>\n <div style=\"height: 370px; overflow: auto;\">\n <table>\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\n <div style=\"width: 500px;margin:0 auto\">\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\n </farris-progress>\n </div>\n\n </td>\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\"\n [(ngModel)]=\"file.selectd\">\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\n </div>\n </div>\n </td>\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\n {{file.queueListDisplayName}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\n <tr style=\"margin: 0 auto\">\n <td><span class=\"f-icon f-icon-error\"></span></td>\n <td> {{'uploadFailure' | locale}} </td>\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\"\n (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\n </tr>\n </table>\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' |\n locale}}</span>\n </td>\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\"\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n <td *ngIf=\"!file.isUploading&&haveSecurityInfo\"\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"securityInfoList\"\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\n [enableClear]=\"false\">\n <!-- <ng-template #itemTemp let-item>\n <div class=\"combo-list\">\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\n <span class=\"combo-list-label\">{{item.label}}</span>\n </div>\n </ng-template> -->\n </farris-combo-list>\n </td>\n\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\"\n (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\n </td>\n\n </tr>\n </table>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\n <img [src]=\"uploadIconAddress\">\n <div>\n <span class=\"btn btn-primary btn-lg\">{{'uploadFile' | locale}} </span>\n <input type=\"file\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\">\n <!-- <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\"> -->\n </div>\n</div>",
|
|
1382
1529
|
styles: [".home_page{text-align:center}.home_page img{position:absolute;top:180px;margin-left:-35px;width:70px;height:56px}.home_page div{position:absolute;left:50%;top:255px;margin-left:-75px;width:150px;height:32px;overflow:hidden}.home_page div span{width:150px;height:32px;position:absolute;z-index:10;left:0}.home_page div input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)';z-index:11}.upload_button{width:110px;height:32px;overflow:hidden}.upload_button span{position:relative;right:-4px;top:4px;width:56px;height:22px;font-size:14px}.upload_button input{height:32px;width:110px;position:absolute;left:22px;top:12px;opacity:0;filter:'alpha(opacity=0)';overflow:hidden}.upload_button img{position:relative;left:-6px;top:3px;width:14px;height:14px}.button_group_upload{position:absolute;right:18px;top:12px;height:26px;width:53px}.button_group_upload button{height:26px;width:26px}.fileinput-button{position:absolute;right:60px;bottom:40px;overflow:hidden;width:24px;height:24px;border-radius:12px;transform:scale(2.5);-ms-transform:scale(2.5);-moz-transform:scale(2.5);-webkit-transform:scale(2.5);-o-transform:scale(2.5);color:#0686fd}.fileinput-button input{position:absolute;left:0;top:0;opacity:0;filter:'alpha(opacity=0)'}.pic-droplist{height:24px;color:#e0e1e2;background-color:#e0e1e2}.pic-droplist input-group{display:table-cell;width:100px;text-align:center;border:0}.pic-droplist input-group div{border:0}.pic-droplist input-group div div,.pic-droplist input-group div input{background-color:#e0e1e2}.pic_list{padding:0;height:420px;overflow-y:auto;overflow-x:hidden}.pic_list ul{padding:0;list-style:none;width:100%;margin:20px 0 0 20px}.pic_list ul li{height:180px;width:135px;margin:8px 0 8px 12px;float:left;overflow:hidden;align-items:center;position:relative}.pic_list ul li div{width:135px;height:160px;margin:auto;display:table-cell;vertical-align:middle;text-align:center;position:relative}.pic_list ul li div img{max-width:120px;max-height:118px;align-items:center;margin:auto;vertical-align:middle;text-align:center}.pic_list ul li span.filename{width:100px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue_list{display:block;height:420px;overflow-y:auto}.file_list{list-style:none;margin:0;padding:0;overflow-x:hidden;overflow-y:auto}.file_list li{height:50px;line-height:35px;font-size:16px;position:relative}.file_list li button{float:right;top:6px;right:10px;width:20px}.file_list li p.title{padding:0 0 0 6px;margin:0 210px 0 0}.file_list li p.size{position:absolute;width:100px;top:0;right:100px}"]
|
|
1383
1530
|
}] }
|
|
1384
1531
|
];
|
|
@@ -1395,6 +1542,7 @@ FileUploadComponent.propDecorators = {
|
|
|
1395
1542
|
fileType: [{ type: Input }],
|
|
1396
1543
|
fileCount: [{ type: Input }],
|
|
1397
1544
|
oldIdList: [{ type: Input }],
|
|
1545
|
+
securityInfo: [{ type: Input }],
|
|
1398
1546
|
opCell: [{ type: ViewChild, args: ['opCell',] }]
|
|
1399
1547
|
};
|
|
1400
1548
|
|
|
@@ -1729,6 +1877,7 @@ class UploadDialogService {
|
|
|
1729
1877
|
var uploadRef = uploadFactory.create(this.injector);
|
|
1730
1878
|
if (limit != null) {
|
|
1731
1879
|
uploadRef.instance.fileCount = limit.fileCount;
|
|
1880
|
+
uploadRef.instance.securityInfo = limit.securityInfo;
|
|
1732
1881
|
if (limit.fileType != null && limit.fileType != "")
|
|
1733
1882
|
uploadRef.instance.fileType = limit.fileType;
|
|
1734
1883
|
}
|
|
@@ -1822,6 +1971,7 @@ class UploadLimit {
|
|
|
1822
1971
|
constructor() {
|
|
1823
1972
|
this.fileType = "*";
|
|
1824
1973
|
this.fileCount = 0;
|
|
1974
|
+
this.securityInfo = null;
|
|
1825
1975
|
}
|
|
1826
1976
|
}
|
|
1827
1977
|
|
|
@@ -1846,6 +1996,13 @@ class GspDocMetaProperty {
|
|
|
1846
1996
|
class FileInfo {
|
|
1847
1997
|
}
|
|
1848
1998
|
|
|
1999
|
+
/**
|
|
2000
|
+
* @fileoverview added by tsickle
|
|
2001
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2002
|
+
*/
|
|
2003
|
+
class SecurityEntity {
|
|
2004
|
+
}
|
|
2005
|
+
|
|
1849
2006
|
/**
|
|
1850
2007
|
* @fileoverview added by tsickle
|
|
1851
2008
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -1856,6 +2013,6 @@ class FileInfo {
|
|
|
1856
2013
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1857
2014
|
*/
|
|
1858
2015
|
|
|
1859
|
-
export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes, FileState, LocalLangPipe as ɵb };
|
|
2016
|
+
export { FormdocUploadService, FormdocUploadComponent, FormdocUploadModule, UploadDialogMoudle, UploadDialogComponent, UploadDialogService, UploadService, DownloadService, FileUploadComponent, UploadFileInfo, UploadModule, ɵa, UploadLimit, GspFormDocOperateEntity, GspFormRemoveListEntity, GspFormUploadListEntity, GspFormDocInfo, GspDocMetaProperty, GspFormUploadEntity, FileInfo, OperatingModes, FileState, GspDocSecurityBaseInfo, SecurityEntity, ExStorageFileInfo, LocalLangPipe as ɵb };
|
|
1860
2017
|
|
|
1861
2018
|
//# sourceMappingURL=gsp-svc-formdoc-upload.js.map
|