eoss-ui 0.4.96 → 0.4.98
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/lib/eoss-ui.common.js +171 -74
- package/lib/flow-group.js +59 -5
- package/lib/index.js +1 -1
- package/lib/login.js +10 -6
- package/lib/main.js +7 -10
- package/lib/player.js +2 -2
- package/lib/qr-code.js +2 -2
- package/lib/select.js +0 -11
- package/lib/selector.js +17 -4
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/selector.css +1 -1
- package/lib/upload.js +50 -10
- package/package.json +3 -2
- package/packages/flow-group/src/main.vue +29 -3
- package/packages/login/src/main.vue +8 -4
- package/packages/main/src/main.vue +3 -6
- package/packages/select/src/main.vue +0 -1
- package/packages/selector/src/main.vue +10 -2
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/selector.css +1 -1
- package/packages/theme-chalk/src/selector.scss +9 -3
- package/packages/upload/src/main.vue +66 -26
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-selector,.es-selector .es-selector-tags{position:relative}.es-selector{line-height:normal}.es-selector .el-select__tags{max-width:100%;padding-left:4px}.es-selector .el-select__tags.es-selector-edit>span{padding-top:4px}.es-selector .el-select__tags .el-tag{margin-right:4px;margin-bottom:4px}.es-selector .es-selector-search .el-select__tags{max-width:calc(100% - 71px)}.es-selector .es-selector-tags.es-selector-more{padding-right:50px;width:100%}.es-selector .es-selector-tags.es-selector-more .el-tag{display:block}.es-selector .es-selector-tags.es-selector-more .es-tags-more{width:40px;padding:0 4px;position:absolute;top:0;right:6px;text-align:center}.es-selector .es-selector-tags-box{line-height:0}.es-selector .es-pointer .el-input__inner{cursor:pointer}.es-selector
|
|
1
|
+
@charset "UTF-8";.es-selector,.es-selector .es-selector-tags{position:relative}.es-selector{line-height:normal}.es-selector .el-select__tags{max-width:100%;padding-left:4px}.es-selector .el-select__tags.es-selector-edit>span{padding-top:4px}.es-selector .el-select__tags .el-tag{margin-right:4px;margin-bottom:4px}.es-selector .es-selector-search .el-select__tags{max-width:calc(100% - 71px)}.es-selector .es-selector-tags.es-selector-more{padding-right:50px;width:100%}.es-selector .es-selector-tags.es-selector-more .el-tag{display:block}.es-selector .es-selector-tags.es-selector-more .es-tags-more{width:40px;padding:0 4px;position:absolute;top:0;right:6px;text-align:center}.es-selector .es-selector-tags-box{line-height:0}.es-selector .es-pointer .el-input__inner{cursor:pointer}.es-selector-dropdown-item.hover,.es-selector-dropdown-item:hover{background-color:#f5f7fa}.es-selector-popover{padding:0}.es-selector-popover .es-selector-dropdown__list{padding:12px}.es-selector-popover .es-selector-dropdown-item{font-size:14px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#606266;height:34px;line-height:34px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.es-selector-popover .es-selector-dropdown-item.es-selected{color:#1890ff}.es-zindex-2{z-index:2}.es-selector-dialog .el-dialog__header{padding:12px 20px 8px}.es-selector-dialog .el-dialog__header .el-dialog__title{font-size:14px}.es-selector-dialog .el-dialog__headerbtn{top:14px;right:16px}.es-selector-dialog .el-dialog__body{padding:4px}
|
|
@@ -44,9 +44,15 @@
|
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
}
|
|
48
|
+
.es-selector-dropdown-item.hover,
|
|
49
|
+
.es-selector-dropdown-item:hover {
|
|
50
|
+
background-color: #f5f7fa;
|
|
51
|
+
}
|
|
52
|
+
.es-selector-popover {
|
|
53
|
+
padding: 0;
|
|
54
|
+
.es-selector-dropdown__list {
|
|
55
|
+
padding: 12px;
|
|
50
56
|
}
|
|
51
57
|
.es-selector-dropdown-item {
|
|
52
58
|
font-size: 14px;
|
|
@@ -191,6 +191,7 @@ import {
|
|
|
191
191
|
import util from 'eoss-ui/src/utils/util.js';
|
|
192
192
|
import picture from './picture.js';
|
|
193
193
|
import store from 'eoss-ui/src/utils/store';
|
|
194
|
+
import { Base64 } from 'js-base64';
|
|
194
195
|
export default {
|
|
195
196
|
name: 'EsUpload',
|
|
196
197
|
components: {
|
|
@@ -431,7 +432,8 @@ export default {
|
|
|
431
432
|
source: '',
|
|
432
433
|
excludeNames: '',
|
|
433
434
|
previewAdjunct: previewAdjunct,
|
|
434
|
-
boxHeight: this.listHeight
|
|
435
|
+
boxHeight: this.listHeight,
|
|
436
|
+
kkfileview: null
|
|
435
437
|
};
|
|
436
438
|
},
|
|
437
439
|
computed: {
|
|
@@ -721,6 +723,9 @@ export default {
|
|
|
721
723
|
})
|
|
722
724
|
.join(',');
|
|
723
725
|
}
|
|
726
|
+
if (res.results.kkViewRootPath) {
|
|
727
|
+
this.kkfileview = res.results.kkViewRootPath;
|
|
728
|
+
}
|
|
724
729
|
this.fileSize = res.results.limitFileSize
|
|
725
730
|
? res.results.limitFileSize
|
|
726
731
|
: 0;
|
|
@@ -796,6 +801,29 @@ export default {
|
|
|
796
801
|
handleUpload() {
|
|
797
802
|
this.$refs.upload.submit();
|
|
798
803
|
},
|
|
804
|
+
openKkfileview(file) {
|
|
805
|
+
let host = util.win.top.location.origin;
|
|
806
|
+
if (this.host) {
|
|
807
|
+
if (util.startWith(this.host, 'http')) {
|
|
808
|
+
host = this.host;
|
|
809
|
+
} else {
|
|
810
|
+
host += this.host;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
console.log(host);
|
|
814
|
+
let url = encodeURIComponent(
|
|
815
|
+
Base64.encode(
|
|
816
|
+
host +
|
|
817
|
+
(typeof this.download === 'string'
|
|
818
|
+
? this.download
|
|
819
|
+
: downloadByAdjunctId) +
|
|
820
|
+
`?adjunctId=${
|
|
821
|
+
file.adjunctId || file.response.adjunctId
|
|
822
|
+
}&fullfilename=${file.originalName}`
|
|
823
|
+
)
|
|
824
|
+
);
|
|
825
|
+
util.win.top.open(`${this.kkfileview}?url=${url}`);
|
|
826
|
+
},
|
|
799
827
|
handlePreview(res) {
|
|
800
828
|
if (this.preview) {
|
|
801
829
|
if (this.onPreview) {
|
|
@@ -818,25 +846,33 @@ export default {
|
|
|
818
846
|
suffix.includes('xlsx') ||
|
|
819
847
|
suffix.includes('ppt')
|
|
820
848
|
) {
|
|
821
|
-
|
|
822
|
-
this.
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
849
|
+
if (this.kkfileview) {
|
|
850
|
+
this.openKkfileview(file);
|
|
851
|
+
} else {
|
|
852
|
+
util.win.top.open(
|
|
853
|
+
this.host +
|
|
854
|
+
(url ? url : previewAdjunctOffice) +
|
|
855
|
+
'?cmd=view&bucketName=' +
|
|
856
|
+
file.absolutePath +
|
|
857
|
+
'&fileId=' +
|
|
858
|
+
file.adjunctId +
|
|
859
|
+
'&fileName=' +
|
|
860
|
+
file.newName
|
|
861
|
+
);
|
|
862
|
+
}
|
|
831
863
|
} else if (suffix.includes('pdf')) {
|
|
832
|
-
|
|
833
|
-
this.
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
864
|
+
if (this.kkfileview) {
|
|
865
|
+
this.openKkfileview(file);
|
|
866
|
+
} else {
|
|
867
|
+
util.win.top.open(
|
|
868
|
+
this.host +
|
|
869
|
+
(url ? url : previewAdjunct2) +
|
|
870
|
+
'/' +
|
|
871
|
+
file.originalName +
|
|
872
|
+
'?adjunctId=' +
|
|
873
|
+
file.adjunctId
|
|
874
|
+
);
|
|
875
|
+
}
|
|
840
876
|
} else if (
|
|
841
877
|
suffix.includes('jpge') ||
|
|
842
878
|
suffix.includes('jpg') ||
|
|
@@ -866,15 +902,19 @@ export default {
|
|
|
866
902
|
this.title = file.originalName;
|
|
867
903
|
this.showVideo = true;
|
|
868
904
|
} else {
|
|
869
|
-
|
|
870
|
-
this.
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
905
|
+
if (this.kkfileview) {
|
|
906
|
+
this.openKkfileview(file);
|
|
907
|
+
} else {
|
|
908
|
+
util.win.top.open(
|
|
909
|
+
this.host +
|
|
910
|
+
(url ? url : this.previewAdjunct) +
|
|
911
|
+
'?adjunctId=' +
|
|
912
|
+
file.adjunctId
|
|
913
|
+
);
|
|
914
|
+
}
|
|
875
915
|
}
|
|
876
916
|
} else {
|
|
877
|
-
util.win.open(URL.createObjectURL(file.raw));
|
|
917
|
+
util.win.top.open(URL.createObjectURL(file.raw));
|
|
878
918
|
}
|
|
879
919
|
}
|
|
880
920
|
}
|