eoss-ui 0.4.95 → 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 +174 -83
- package/lib/flow-group.js +59 -5
- package/lib/flow.js +9 -4
- 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/theme-chalk/toolbar.css +1 -1
- package/lib/upload.js +39 -10
- package/package.json +3 -2
- package/packages/flow/src/main.vue +58 -51
- 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/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/selector.scss +9 -3
- package/packages/theme-chalk/src/toolbar.scss +7 -0
- 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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content,.es-toolbar .el-form-item__label{line-height:32px!important}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
|
|
1
|
+
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content,.es-toolbar .el-form-item__label{line-height:32px!important}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
|
|
@@ -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
|
}
|