eoss-ui 0.4.96 → 0.4.97
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 +160 -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 +39 -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 +56 -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
|
+
this.kkfileview = res.results.kkViewRootPath
|
|
727
|
+
? res.results.kkViewRootPath
|
|
728
|
+
: null;
|
|
724
729
|
this.fileSize = res.results.limitFileSize
|
|
725
730
|
? res.results.limitFileSize
|
|
726
731
|
: 0;
|
|
@@ -796,6 +801,19 @@ export default {
|
|
|
796
801
|
handleUpload() {
|
|
797
802
|
this.$refs.upload.submit();
|
|
798
803
|
},
|
|
804
|
+
openKkfileview(file) {
|
|
805
|
+
let url = encodeURIComponent(
|
|
806
|
+
Base64.encode(
|
|
807
|
+
(typeof this.download === 'string'
|
|
808
|
+
? this.download
|
|
809
|
+
: downloadByAdjunctId) +
|
|
810
|
+
`?adjunctId=${
|
|
811
|
+
file.adjunctId || file.response.adjunctId
|
|
812
|
+
}&fullfilename=${file.originalName}`
|
|
813
|
+
)
|
|
814
|
+
);
|
|
815
|
+
util.win.top.open(`${this.kkfileview}?url=${url}`);
|
|
816
|
+
},
|
|
799
817
|
handlePreview(res) {
|
|
800
818
|
if (this.preview) {
|
|
801
819
|
if (this.onPreview) {
|
|
@@ -818,25 +836,33 @@ export default {
|
|
|
818
836
|
suffix.includes('xlsx') ||
|
|
819
837
|
suffix.includes('ppt')
|
|
820
838
|
) {
|
|
821
|
-
|
|
822
|
-
this.
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
839
|
+
if (this.kkfileview) {
|
|
840
|
+
this.openKkfileview(file);
|
|
841
|
+
} else {
|
|
842
|
+
util.win.top.open(
|
|
843
|
+
this.host +
|
|
844
|
+
(url ? url : previewAdjunctOffice) +
|
|
845
|
+
'?cmd=view&bucketName=' +
|
|
846
|
+
file.absolutePath +
|
|
847
|
+
'&fileId=' +
|
|
848
|
+
file.adjunctId +
|
|
849
|
+
'&fileName=' +
|
|
850
|
+
file.newName
|
|
851
|
+
);
|
|
852
|
+
}
|
|
831
853
|
} else if (suffix.includes('pdf')) {
|
|
832
|
-
|
|
833
|
-
this.
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
854
|
+
if (this.kkfileview) {
|
|
855
|
+
this.openKkfileview(file);
|
|
856
|
+
} else {
|
|
857
|
+
util.win.top.open(
|
|
858
|
+
this.host +
|
|
859
|
+
(url ? url : previewAdjunct2) +
|
|
860
|
+
'/' +
|
|
861
|
+
file.originalName +
|
|
862
|
+
'?adjunctId=' +
|
|
863
|
+
file.adjunctId
|
|
864
|
+
);
|
|
865
|
+
}
|
|
840
866
|
} else if (
|
|
841
867
|
suffix.includes('jpge') ||
|
|
842
868
|
suffix.includes('jpg') ||
|
|
@@ -866,15 +892,19 @@ export default {
|
|
|
866
892
|
this.title = file.originalName;
|
|
867
893
|
this.showVideo = true;
|
|
868
894
|
} else {
|
|
869
|
-
|
|
870
|
-
this.
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
895
|
+
if (this.kkfileview) {
|
|
896
|
+
this.openKkfileview(file);
|
|
897
|
+
} else {
|
|
898
|
+
util.win.top.open(
|
|
899
|
+
this.host +
|
|
900
|
+
(url ? url : this.previewAdjunct) +
|
|
901
|
+
'?adjunctId=' +
|
|
902
|
+
file.adjunctId
|
|
903
|
+
);
|
|
904
|
+
}
|
|
875
905
|
}
|
|
876
906
|
} else {
|
|
877
|
-
util.win.open(URL.createObjectURL(file.raw));
|
|
907
|
+
util.win.top.open(URL.createObjectURL(file.raw));
|
|
878
908
|
}
|
|
879
909
|
}
|
|
880
910
|
}
|