@gsp-svc/formdoc-upload 0.2.20 → 1.1.0
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 +121 -32
- 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/lib/upload/entity/doctype.js +3 -1
- package/esm2015/lib/upload/entity/fileinfo.js +3 -1
- package/esm2015/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm2015/lib/upload/file-upload/file-upload.component.js +113 -24
- package/esm2015/lib/uploaddialog.service.js +1 -1
- package/esm5/lib/upload/entity/doctype.js +3 -1
- package/esm5/lib/upload/entity/fileinfo.js +3 -1
- package/esm5/lib/upload/entity/uploadfileinfo.js +3 -1
- package/esm5/lib/upload/file-upload/file-upload.component.js +128 -32
- package/esm5/lib/uploaddialog.service.js +1 -1
- package/fesm2015/gsp-svc-formdoc-upload.js +111 -24
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +127 -33
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/gsp-svc-formdoc-upload.metadata.json +1 -1
- package/lib/upload/entity/doctype.d.ts +2 -1
- package/lib/upload/entity/fileinfo.d.ts +1 -0
- package/lib/upload/entity/uploadfileinfo.d.ts +1 -0
- package/lib/upload/file-upload/file-upload.component.d.ts +4 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { ComboListModule } from '@farris/ui-combo-list';
|
|
|
12
12
|
import { FarrisFormsModule } from '@farris/ui-forms';
|
|
13
13
|
import { BasePathService, FarrisRTFModule } from '@farris/rtf';
|
|
14
14
|
import { CacheService, HttpService, LanguageService, SessionService } from '@ecp-caf/caf-common';
|
|
15
|
-
import { Injectable, Pipe, Inject, LOCALE_ID,
|
|
15
|
+
import { Injectable, Pipe, Inject, LOCALE_ID, Injector, ComponentFactoryResolver, Component, ViewChild, Input, NgModule, defineInjectable } from '@angular/core';
|
|
16
16
|
import { BsModalService } from '@farris/ui-modal';
|
|
17
17
|
import { of as of$1 } from 'rxjs';
|
|
18
18
|
import { HttpClientModule, HttpClient } from '@angular/common/http';
|
|
@@ -97,6 +97,7 @@ var DocType = {
|
|
|
97
97
|
Txt: 4,
|
|
98
98
|
Image: 5,
|
|
99
99
|
Other: 6,
|
|
100
|
+
Zip: 7,
|
|
100
101
|
};
|
|
101
102
|
DocType[DocType.Word] = 'Word';
|
|
102
103
|
DocType[DocType.Excel] = 'Excel';
|
|
@@ -104,7 +105,8 @@ DocType[DocType.Powerpoint] = 'Powerpoint';
|
|
|
104
105
|
DocType[DocType.Pdf] = 'Pdf';
|
|
105
106
|
DocType[DocType.Txt] = 'Txt';
|
|
106
107
|
DocType[DocType.Image] = 'Image';
|
|
107
|
-
DocType[DocType.Other] = 'Other';
|
|
108
|
+
DocType[DocType.Other] = 'Other';
|
|
109
|
+
DocType[DocType.Zip] = 'Zip';
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
112
|
* @fileoverview added by tsickle
|
|
@@ -827,6 +829,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
827
829
|
this.isWhiteList = false;
|
|
828
830
|
this.bufferSize = 5 * 1024 * 1024;
|
|
829
831
|
this.selectedFileCount = 0;
|
|
832
|
+
this.uploadBtnDisabled = false;
|
|
830
833
|
this.uploadIconAddress = this.createBaseUrl('/platform/runtime/dfs/images/upload.svg');
|
|
831
834
|
this.uploadLittleIconAddress = this.createBaseUrl('/platform/runtime/dfs/images/uploadIcon.svg');
|
|
832
835
|
this.hasSelectedFile = false;
|
|
@@ -848,6 +851,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
848
851
|
this.uploadedFileInfoList = [];
|
|
849
852
|
this.oldUploadedFileList = [];
|
|
850
853
|
//uploadedNameList = [];
|
|
854
|
+
this.uploadInfoErrorMessage = "";
|
|
851
855
|
this.sameNameAllowed = true;
|
|
852
856
|
this.maxFileSize = 0;
|
|
853
857
|
this.checkboxPos = { top: '0px' };
|
|
@@ -922,7 +926,13 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
922
926
|
* @return {?}
|
|
923
927
|
*/
|
|
924
928
|
function (res) {
|
|
925
|
-
if (res
|
|
929
|
+
if (res.error != null) {
|
|
930
|
+
_this.uploadInfoErrorMessage = res.error.Message;
|
|
931
|
+
// console.log('获取上传信息报错,错误信息为:',errMsg);
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
else {
|
|
935
|
+
_this.uploadBtnDisabled = false;
|
|
926
936
|
_this.sameNameAllowed = res.sameNameAllowed;
|
|
927
937
|
_this.maxFileSize = parseInt(JSON.parse(res.validateConfiguration).maxFileSize);
|
|
928
938
|
_this.isWhiteList = JSON.parse(res.validateConfiguration).whiteList;
|
|
@@ -959,6 +969,20 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
959
969
|
// message: this.localepipe.transform('uploading')
|
|
960
970
|
// });
|
|
961
971
|
};
|
|
972
|
+
/**
|
|
973
|
+
* @return {?}
|
|
974
|
+
*/
|
|
975
|
+
FileUploadComponent.prototype.getRightClass = /**
|
|
976
|
+
* @return {?}
|
|
977
|
+
*/
|
|
978
|
+
function () {
|
|
979
|
+
if (this.uploadBtnDisabled) {
|
|
980
|
+
return 'btn btn-primary btn-lg disabled';
|
|
981
|
+
}
|
|
982
|
+
else {
|
|
983
|
+
return 'btn btn-primary btn-lg';
|
|
984
|
+
}
|
|
985
|
+
};
|
|
962
986
|
/**
|
|
963
987
|
* @param {?} name
|
|
964
988
|
* @return {?}
|
|
@@ -1001,6 +1025,11 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1001
1025
|
*/
|
|
1002
1026
|
function ($event) {
|
|
1003
1027
|
var _this = this;
|
|
1028
|
+
if (this.uploadInfoErrorMessage) {
|
|
1029
|
+
this.msgService.error(this.uploadInfoErrorMessage);
|
|
1030
|
+
this.uploadBtnDisabled = true;
|
|
1031
|
+
return;
|
|
1032
|
+
}
|
|
1004
1033
|
this.hasSelectedFile = true;
|
|
1005
1034
|
this.selectedFiles = document.querySelector('#file');
|
|
1006
1035
|
if (this.fileCount > 0) {
|
|
@@ -1035,9 +1064,17 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1035
1064
|
/** @type {?} */
|
|
1036
1065
|
var invalidCharList = this_1.findInvalidCharacter(selectedFile.name);
|
|
1037
1066
|
/** @type {?} */
|
|
1067
|
+
var invalidCharListFilter = invalidCharList.filter((/**
|
|
1068
|
+
* @param {?} s
|
|
1069
|
+
* @return {?}
|
|
1070
|
+
*/
|
|
1071
|
+
function (s) {
|
|
1072
|
+
return s && s.trim();
|
|
1073
|
+
}));
|
|
1074
|
+
/** @type {?} */
|
|
1038
1075
|
var errorMessage = "";
|
|
1039
|
-
if (
|
|
1040
|
-
|
|
1076
|
+
if (invalidCharListFilter.length > 0) {
|
|
1077
|
+
invalidCharListFilter.forEach((/**
|
|
1041
1078
|
* @param {?} element
|
|
1042
1079
|
* @param {?} index
|
|
1043
1080
|
* @return {?}
|
|
@@ -1046,7 +1083,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1046
1083
|
errorMessage += "\"";
|
|
1047
1084
|
errorMessage += element;
|
|
1048
1085
|
errorMessage += "\"";
|
|
1049
|
-
errorMessage += (index ===
|
|
1086
|
+
errorMessage += (index === invalidCharListFilter.length - 1) ? "" : ",";
|
|
1050
1087
|
}));
|
|
1051
1088
|
if (this_1.selectedFiles.files.length === 1) {
|
|
1052
1089
|
selectedFile.isAllowedUpload = false;
|
|
@@ -1292,7 +1329,8 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1292
1329
|
extensionDropListId: 0,
|
|
1293
1330
|
extensionName: "",
|
|
1294
1331
|
securityDropListId: 0,
|
|
1295
|
-
securityInfo: this.securityInfoList[0]
|
|
1332
|
+
securityInfo: this.securityInfoList[0],
|
|
1333
|
+
style: {}
|
|
1296
1334
|
};
|
|
1297
1335
|
if (this.storageExtension != null)
|
|
1298
1336
|
fileInfo.extensionName = this.defaultPropertyName;
|
|
@@ -1319,6 +1357,9 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1319
1357
|
else if (type.includes("powerpoint") || type.includes("presentation")) {
|
|
1320
1358
|
this.addDocInfo(selectedFile, fileInfo, DocType.Powerpoint);
|
|
1321
1359
|
}
|
|
1360
|
+
else if (type.includes("zip") || selectedFile.name.includes(".rar")) {
|
|
1361
|
+
this.addDocInfo(selectedFile, fileInfo, DocType.Zip);
|
|
1362
|
+
}
|
|
1322
1363
|
else {
|
|
1323
1364
|
this.addDocInfo(selectedFile, fileInfo, DocType.Other);
|
|
1324
1365
|
// let name: string = selectedFile.name;
|
|
@@ -1351,6 +1392,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1351
1392
|
uploadFileInfo.metadataId = uuid;
|
|
1352
1393
|
uploadFileInfo.fileName = fileInfo.name;
|
|
1353
1394
|
uploadFileInfo.fileSize = fileInfo.size;
|
|
1395
|
+
uploadFileInfo.originalSize = fileInfo.fileSize;
|
|
1354
1396
|
uploadFileInfo.state = state;
|
|
1355
1397
|
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
1356
1398
|
//判断是否支持分片上传
|
|
@@ -1462,19 +1504,21 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1462
1504
|
}
|
|
1463
1505
|
else {
|
|
1464
1506
|
/** @type {?} */
|
|
1465
|
-
var
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1507
|
+
var entity_1 = new GspFormStreamEntity;
|
|
1508
|
+
entity_1.formId = this.formId;
|
|
1509
|
+
entity_1.metadataId = uuid;
|
|
1510
|
+
entity_1.mode = OperatingModes.Temp;
|
|
1511
|
+
entity_1.rootId = this.rootId;
|
|
1512
|
+
entity_1.size = selectedFile.size;
|
|
1513
|
+
entity_1.fileName = fileName;
|
|
1472
1514
|
if (this.haveExtensionProperty)
|
|
1473
|
-
|
|
1515
|
+
entity_1.exPropertyName = this.defaultPropertyName;
|
|
1474
1516
|
/** @type {?} */
|
|
1475
1517
|
var formData = new FormData();
|
|
1476
|
-
formData.append('uploadEntity', JSON.stringify(
|
|
1518
|
+
formData.append('uploadEntity', JSON.stringify(entity_1));
|
|
1477
1519
|
formData.append('file', selectedFile);
|
|
1520
|
+
/** @type {?} */
|
|
1521
|
+
var intervalId_1;
|
|
1478
1522
|
this.uploadSingleFile(formData).subscribe((/**
|
|
1479
1523
|
* @param {?} res
|
|
1480
1524
|
* @return {?}
|
|
@@ -1492,26 +1536,70 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1492
1536
|
_this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1493
1537
|
_this.uploadedFileTotal++;
|
|
1494
1538
|
}
|
|
1539
|
+
clearInterval(intervalId_1);
|
|
1495
1540
|
}));
|
|
1541
|
+
/** @type {?} */
|
|
1542
|
+
var index_1 = -1;
|
|
1543
|
+
this.files.forEach((/**
|
|
1544
|
+
* @param {?} x
|
|
1545
|
+
* @return {?}
|
|
1546
|
+
*/
|
|
1547
|
+
function (x) {
|
|
1548
|
+
if (x.name == fileInfo.name) {
|
|
1549
|
+
if (index_1 == -1)
|
|
1550
|
+
index_1 = _this.files.indexOf(x);
|
|
1551
|
+
}
|
|
1552
|
+
}));
|
|
1553
|
+
if (index_1 != -1 && index_1 != this.files.length - 1) {
|
|
1554
|
+
this.files.splice(index_1, 1);
|
|
1555
|
+
this.uploadFileInfoList.splice(index_1, 1);
|
|
1556
|
+
this.uploadedFileInfoList.splice(index_1, 1);
|
|
1557
|
+
this.uploadedFileTotal--;
|
|
1558
|
+
}
|
|
1559
|
+
intervalId_1 = setInterval((/**
|
|
1560
|
+
* @return {?}
|
|
1561
|
+
*/
|
|
1562
|
+
function () {
|
|
1563
|
+
_this.getUploadProcess(entity_1.metadataId).subscribe((/**
|
|
1564
|
+
* @param {?} res
|
|
1565
|
+
* @return {?}
|
|
1566
|
+
*/
|
|
1567
|
+
function (res) {
|
|
1568
|
+
if (res.error != null)
|
|
1569
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadProcess = 10;
|
|
1570
|
+
else {
|
|
1571
|
+
if (res < 10)
|
|
1572
|
+
res = 10;
|
|
1573
|
+
if (res > 90)
|
|
1574
|
+
res = 90;
|
|
1575
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadProcess = res;
|
|
1576
|
+
}
|
|
1577
|
+
}));
|
|
1578
|
+
}), 200);
|
|
1496
1579
|
}
|
|
1580
|
+
};
|
|
1581
|
+
/**
|
|
1582
|
+
* @param {?} metadataId
|
|
1583
|
+
* @return {?}
|
|
1584
|
+
*/
|
|
1585
|
+
FileUploadComponent.prototype.getUploadProcess = /**
|
|
1586
|
+
* @param {?} metadataId
|
|
1587
|
+
* @return {?}
|
|
1588
|
+
*/
|
|
1589
|
+
function (metadataId) {
|
|
1497
1590
|
/** @type {?} */
|
|
1498
|
-
var
|
|
1499
|
-
this.
|
|
1500
|
-
* @param {?}
|
|
1591
|
+
var url = "/api/runtime/dfs/v1.0/formdoc/upload/process?metadataid=" + metadataId;
|
|
1592
|
+
return this.httpclient.get(url).pipe(tap((/**
|
|
1593
|
+
* @param {?} res
|
|
1501
1594
|
* @return {?}
|
|
1502
1595
|
*/
|
|
1503
|
-
function (
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
this.files.splice(index, 1);
|
|
1511
|
-
this.uploadFileInfoList.splice(index, 1);
|
|
1512
|
-
this.uploadedFileInfoList.splice(index, 1);
|
|
1513
|
-
//this.uploadedFileTotal--;
|
|
1514
|
-
}
|
|
1596
|
+
function (res) { })), catchError((/**
|
|
1597
|
+
* @param {?} error
|
|
1598
|
+
* @return {?}
|
|
1599
|
+
*/
|
|
1600
|
+
function (error) {
|
|
1601
|
+
return of$1(error);
|
|
1602
|
+
})));
|
|
1515
1603
|
};
|
|
1516
1604
|
/**
|
|
1517
1605
|
* @param {?} formdata
|
|
@@ -1841,6 +1929,11 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1841
1929
|
this.files.push(fileInfo);
|
|
1842
1930
|
break;
|
|
1843
1931
|
}
|
|
1932
|
+
case DocType.Zip: {
|
|
1933
|
+
fileInfo.source = this.createBaseUrl("/platform/runtime/dfs/images/zip.png");
|
|
1934
|
+
this.files.push(fileInfo);
|
|
1935
|
+
break;
|
|
1936
|
+
}
|
|
1844
1937
|
case DocType.Powerpoint: {
|
|
1845
1938
|
fileInfo.source = this.createBaseUrl("/platform/runtime/dfs/images/ppt.png");
|
|
1846
1939
|
this.files.push(fileInfo);
|
|
@@ -1868,6 +1961,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
1868
1961
|
imgUrl = sanitizer.bypassSecurityTrustResourceUrl(imgUrl);
|
|
1869
1962
|
}
|
|
1870
1963
|
fileInfo.source = imgUrl;
|
|
1964
|
+
fileInfo.style = { "max-width": "120px", "max-height": "118px" };
|
|
1871
1965
|
_this.files.push(fileInfo);
|
|
1872
1966
|
//因为异步处理的差异,补偿一次删除
|
|
1873
1967
|
/** @type {?} */
|
|
@@ -2154,8 +2248,8 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
2154
2248
|
FileUploadComponent.decorators = [
|
|
2155
2249
|
{ type: Component, args: [{
|
|
2156
2250
|
selector: 'app-file-upload',
|
|
2157
|
-
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 <farris-radio-group class=\"button_group_upload\" [(model)]=\"radioButtonGroupValue\" [horizontal]=\"false\">\n <farris-radio-button [label]=\"'showByGroup'\" (click)=\"showByGroup()\">\n <span class=\"f-icon f-icon-sudoku-new\"> </span>\n </farris-radio-button>\n <farris-radio-button [label]=\"'showByList'\" (click)=\"showByList()\">\n <span class=\"f-icon f-icon-page-title-define\"> </span>\n </farris-radio-button>\n\n </farris-radio-group>\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; border: none;\"\n (click)=\"listDeleteFile(file)\">\n <span style=\"position: relative; right: 2px; \" class=\"f-icon f-icon-delete\"> </span>\n </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>",
|
|
2158
|
-
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:90px}.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:
|
|
2251
|
+
template: "<div *ngIf=\"hasSelectedFile\">\r\n\r\n <div class=\"farris-header\" style=\"height: 50px; width: 100%\">\r\n <div class=\"btn btn-secondary upload_button\">\r\n <img [src]=\"uploadLittleIconAddress\">\r\n <span>{{'uploadFile' | locale}} </span>\r\n <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\"\r\n title=\"\" [accept]=\"fileType\" [disabled]=\"uploadBtnDisabled\">\r\n </div>\r\n\r\n\r\n <button *ngIf=\"showType==0 && !fileAllSelected && files.length >0 \" style=\"padding-left: 20px\"\r\n class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectAll' | locale}}</button>\r\n <button *ngIf=\"showType==0 && fileAllSelected && files.length >0 \" style=\"padding-left: 20px\"\r\n class=\"btn-link btn ng-star-inserted\" (click)=\"selectAllFile()\">{{'selectNull' | locale}}</button>\r\n <button *ngIf=\"showType==0 && selectedFileCount>0\" style=\"padding-left: 20px\"\r\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\r\n\r\n <button *ngIf=\"showType==1 && selectedFileCount>0\" style=\"padding-left: 20px\"\r\n class=\"btn-link btn ng-star-inserted\" (click)=\"listMultipleDeleteFile()\">{{'delete' | locale}}</button>\r\n <span class=\"help_text\" *ngIf=\"files.length >0\">\u6587\u4EF6\u4E2A\u6570\uFF1A{{files.length}}</span>\r\n\r\n <farris-radio-group class=\"button_group_upload\" [(model)]=\"radioButtonGroupValue\" [horizontal]=\"false\">\r\n <farris-radio-button [label]=\"'showByGroup'\" (click)=\"showByGroup()\">\r\n <span class=\"f-icon f-icon-sudoku-new\"> </span>\r\n </farris-radio-button>\r\n <farris-radio-button [label]=\"'showByList'\" (click)=\"showByList()\">\r\n <span class=\"f-icon f-icon-page-title-define\"> </span>\r\n </farris-radio-button>\r\n\r\n </farris-radio-group>\r\n\r\n <!-- <kendo-buttongroup [selection]=\"'single'\" class=\"button_group_upload \"\r\n style=\"background-color: #ffffff; color: #388FFF;border: 1px solid #ddd;\" look=\"flat\">\r\n <button kendoButton [selected]=\"true\" [toggleable]=\"true\"\r\n [imageUrl]=\"'/platform/runtime/dfs/images/piclist.png'\" (click)=\"showByGroup()\"></button>\r\n <button kendoButton [toggleable]=\"true\" [imageUrl]=\"'/platform/runtime/dfs/images/queuelist.png'\"\r\n (click)=\"showByList()\"></button>\r\n </kendo-buttongroup> -->\r\n\r\n\r\n </div>\r\n\r\n <!-- <div class=\"progress\" style=\"height: 12px;\">\r\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"uploadProcess\"></div>\r\n </div> -->\r\n\r\n <div class=\"pic_list\" *ngIf=\"showType==0\">\r\n <ul *ngFor=\"let file of files\">\r\n <li (mouseenter)=\"mouseOver(file)\" (mouseleave)=\"mouseOut(file)\">\r\n <div *ngIf=\"file.isUploading\">\r\n <farris-progress [type]=\"'circle'\" [percent]=\"file.uploadProcess\" [strokeLinecap]=\"'square'\"\r\n [status]=\"'active'\"></farris-progress>\r\n </div>\r\n\r\n <table *ngIf=\"!file.uploadResult && !file.isUploading\"\r\n style=\"margin: 0 auto; border: 1px solid #ddd; width: 135px; height: 160px;\">\r\n <tr style=\"margin: 0 auto ; height: 80px;\">\r\n <td style=\"text-align: center\"><span class=\"f-icon f-icon-warn\"></span></td>\r\n </tr>\r\n <tr style=\"margin: 0 auto ; height: 30px;\">\r\n <td style=\"text-align: center\"> {{'uploadFailure' | locale}} </td>\r\n </tr>\r\n <tr>\r\n <td style=\"text-align: center\"><button style=\"margin: 0 auto ; height: 20px; \"\r\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">{{'detail' |\r\n locale}}</button></td>\r\n </tr>\r\n </table>\r\n <div *ngIf=\"!file.isUploading && file.uploadResult\" style=\"border: 1px solid #ddd;\">\r\n <img [src]='file.source' [ngStyle]=\"file.style\">\r\n <div *ngIf=\"haveExtensionProperty\"\r\n style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\r\n\r\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\r\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\"\r\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\r\n [enableClear]=\"false\">\r\n <!-- <ng-template #itemTemp let-item>\r\n <div class=\"combo-list\">\r\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\r\n <span class=\"combo-list-label\">{{item.label}}</span>\r\n </div>\r\n </ng-template> -->\r\n </farris-combo-list>\r\n </div>\r\n </div>\r\n <div *ngIf=\"haveSecurityInfo\"\r\n style=\"width: 133px; height: 25px; background-color: white; position: absolute;bottom: 0; \">\r\n\r\n <div style=\"width: 100px;height: 25px;position:absolute;margin: 0 17px;\">\r\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"securityInfoList\"\r\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\r\n [enableClear]=\"false\">\r\n <!-- <ng-template #itemTemp let-item>\r\n <div class=\"combo-list\">\r\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\r\n <span class=\"combo-list-label\">{{item.label}}</span>\r\n </div>\r\n </ng-template> -->\r\n </farris-combo-list>\r\n </div>\r\n </div>\r\n </div>\r\n <table *ngIf=\"!file.isUploading\">\r\n <tr style=\"height: 20px\">\r\n <td style=\"width: 15px; vertical-align: middle; text-align: center\">\r\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\r\n <div class=\"farris-input-wrap\" style=\"height: 20px\" (click)=\"checkoutSelectFile(file)\">\r\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0;height: 20px;\"\r\n [ngStyle]=\"checkboxPos\">\r\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\"\r\n [(ngModel)]=\"file.selectd\">\r\n <label class=\"custom-control-label\"\r\n style=\"padding: 0 0 10px 0; position: relative; top: -8px;\"></label>\r\n </div>\r\n </div>\r\n </td>\r\n <td style=\"width: 120px; vertical-align: middle; text-align: center\" [title]=\"file.name\">\r\n {{file.picListDisplayName}}</td>\r\n </tr>\r\n </table>\r\n <!-- <span>{{file.picListDisplayName}}</span> -->\r\n <!-- <p class=\"filename\">{{file.picListDisplayName}}</p> -->\r\n <button *ngIf=\"!file.isUploading && file.mouseOn\"\r\n style=\"position: absolute; top: 0; right: 0px; width: 24px; height: 24px; border: none;\"\r\n (click)=\"listDeleteFile(file)\">\r\n <span style=\"position: relative; right: 2px; \" class=\"f-icon f-icon-delete\"> </span>\r\n </button>\r\n <!-- <button *ngIf=\"file.hasUploaded\" class=\"k-primary\" kendoButton [icon]=\"'check'\" [disabled]=\"true\"></button> -->\r\n </li>\r\n </ul>\r\n <br>\r\n </div>\r\n\r\n <div class=\"queue_list\" *ngIf=\"showType==1\">\r\n <table>\r\n <tr style=\"height: 50px; table-layout:fixed;\">\r\n <th style=\"width: 40px; vertical-align: middle; text-align: center\">\r\n <!-- <input type=\"checkbox\" id=\"allCheckBox\" (click)=\"selectAllFile()\"> -->\r\n <div class=\"farris-input-wrap\" (click)=\"selectAllFile()\">\r\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\r\n <input class=\"custom-control-input\" type=\"checkbox\" id=\"allCheckBox\"\r\n [(ngModel)]=\"fileAllSelected\">\r\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\r\n </div>\r\n </div>\r\n </th>\r\n <th style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">{{'fileName' | locale}}</th>\r\n <th style=\"width: 100px; vertical-align: middle\">{{'size' | locale}}</th>\r\n <th style=\"width: 170px; vertical-align: middle; text-align: center\">{{'state' | locale}}</th>\r\n <th *ngIf=\"haveExtensionProperty\" style=\"width: 100px; vertical-align: middle; text-align: center\">\r\n {{storageExtension.extensionName}}\r\n </th>\r\n <th style=\"width: 140px; vertical-align: middle; text-align: center\">{{'operation' | locale}}</th>\r\n </tr>\r\n </table>\r\n <div style=\"height: 370px; overflow: auto;\">\r\n <table>\r\n <tr *ngFor=\"let file of files\" style=\"height: 40px\">\r\n <td colspan=\"5\" *ngIf=\"file.isUploading\">\r\n <!-- <div style=\"width:100%; display: table-cell; vertical-align: middle; text-align: center; \"> -->\r\n <div style=\"width: 500px;margin:0 auto\">\r\n <farris-progress [percent]=\"file.uploadProcess\" [status]=\"'active'\">\r\n </farris-progress>\r\n </div>\r\n\r\n </td>\r\n <td *ngIf=\"!file.isUploading\" style=\" width: 40px; vertical-align: middle; text-align: center\">\r\n <!-- <input type=\"checkbox\" [id]=\"file.name\" (click)=\"checkoutSelectFile(file.name)\"> -->\r\n <div class=\"farris-input-wrap\" (click)=\"checkoutSelectFile(file)\">\r\n <div class=\"custom-control custom-checkbox\" style=\"margin: 4px 0 0\">\r\n <input class=\"custom-control-input\" type=\"checkbox\" [id]=\"file.name\"\r\n [(ngModel)]=\"file.selectd\">\r\n <label class=\"custom-control-label\" style=\"padding: 0\"></label>\r\n </div>\r\n </div>\r\n </td>\r\n <td *ngIf=\"!file.isUploading\" style=\"vertical-align: middle\" [ngStyle]=\"queueListStyle\">\r\n {{file.queueListDisplayName}}</td>\r\n <td *ngIf=\"!file.isUploading\" style=\"width: 100px; vertical-align: middle\">{{file.size}}</td>\r\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 170px; vertical-align: middle;\">\r\n <table *ngIf=\"!file.uploadResult\" style=\"margin: 0 auto\">\r\n <tr style=\"margin: 0 auto\">\r\n <td><span class=\"f-icon f-icon-error\"></span></td>\r\n <td> {{'uploadFailure' | locale}} </td>\r\n <td><button style=\"height: 24px\" class=\"btn-link btn ng-star-inserted\"\r\n (click)=\"showErrorMessage(file)\">{{'detail' | locale}}</button></td>\r\n </tr>\r\n </table>\r\n <!-- <span *ngIf=\"!file.uploadResult\"><span class=\"f-icon f-icon-error\"></span> \u4E0A\u4F20\u5931\u8D25 <button\r\n class=\"btn-link btn ng-star-inserted\" (click)=\"showErrorMessage(file)\">\u8BE6\u60C5</button></span> -->\r\n <span *ngIf=\"file.uploadResult\"><span class=\"f-icon f-icon-success\"></span> {{'uploadSucceed' |\r\n locale}}</span>\r\n </td>\r\n <td *ngIf=\"!file.isUploading&&haveExtensionProperty\"\r\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\r\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"propertiesNames\"\r\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"typeChange($event,file)\"\r\n [enableClear]=\"false\">\r\n <!-- <ng-template #itemTemp let-item>\r\n <div class=\"combo-list\">\r\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\r\n <span class=\"combo-list-label\">{{item.label}}</span>\r\n </div>\r\n </ng-template> -->\r\n </farris-combo-list>\r\n </td>\r\n <td *ngIf=\"!file.isUploading&&haveSecurityInfo\"\r\n style=\"text-align: center; width: 100px; vertical-align: middle;\">\r\n <farris-combo-list [(ngModel)]=\"file.extensionDropListId\" [data]=\"securityInfoList\"\r\n [idField]=\"'id'\" [textField]=\"'name'\" (selectChange)=\"securityChange($event,file)\"\r\n [enableClear]=\"false\">\r\n <!-- <ng-template #itemTemp let-item>\r\n <div class=\"combo-list\">\r\n <span [class]=\"'combo-list-circle combo-list-'+item.state\"></span>\r\n <span class=\"combo-list-label\">{{item.label}}</span>\r\n </div>\r\n </ng-template> -->\r\n </farris-combo-list>\r\n </td>\r\n\r\n <td *ngIf=\"!file.isUploading\" style=\"text-align: center; width: 140px; vertical-align: middle;\">\r\n <!-- <button *ngIf=\"file.uploadResult\" class=\"btn-link btn ng-star-inserted\" (click)=\"retryUploadFile(file.name)\">\u91CD\u8BD5</button> -->\r\n <button class=\"btn-link btn ng-star-inserted\" style=\"margin: 0 auto\"\r\n (click)=\"listDeleteFile(file)\">{{'delete' | locale}}</button>\r\n </td>\r\n\r\n </tr>\r\n </table>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"!hasSelectedFile\" class='home_page'>\r\n <img [src]=\"uploadIconAddress\">\r\n <div>\r\n <span [class]=\"getRightClass()\">{{'uploadFile' | locale}} </span>\r\n <input type=\"file\" style=\"height: 32px;\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\" [disabled]=\"uploadBtnDisabled\">\r\n <!-- <input type=\"file\" (focus)=\"showLoading()\" (change)=\"fileSelected($event)\" id=\"file\" multiple=\"multiple\" title=\"\" [accept]=\"fileType\"> -->\r\n </div>\r\n</div>\r\n",
|
|
2252
|
+
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:90px}.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:400px;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:179px;width:135px;margin:8px 0 8px 12px;float:left;overflow:hidden;align-items:center;position:relative}.pic_list ul li div{width:135px;height:159px;margin:auto;display:table-cell;vertical-align:middle;text-align:center;position:relative}.pic_list ul li div img{max-width:60px;max-height:60px;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}input#file:disabled{cursor:not-allowed}.help_text{color:rgba(0,0,0,.35);position:absolute;top:16px;right:120px}"]
|
|
2159
2253
|
}] }
|
|
2160
2254
|
];
|
|
2161
2255
|
/** @nocollapse */
|