eoss-ui 0.5.92 → 0.5.93
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 +22 -19
- package/lib/index.js +1 -1
- package/lib/login.js +7 -4
- package/lib/upload.js +7 -7
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/login/src/main.vue +11 -2
- package/packages/upload/src/main.vue +2 -2
- package/src/index.js +1 -1
package/lib/login.js
CHANGED
|
@@ -3998,7 +3998,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
|
|
|
3998
3998
|
// ESM COMPAT FLAG
|
|
3999
3999
|
__webpack_require__.r(__webpack_exports__);
|
|
4000
4000
|
|
|
4001
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
4001
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=8ead4a80&
|
|
4002
4002
|
var render = function () {
|
|
4003
4003
|
var _vm = this
|
|
4004
4004
|
var _h = _vm.$createElement
|
|
@@ -4959,7 +4959,7 @@ var staticRenderFns = []
|
|
|
4959
4959
|
render._withStripped = true
|
|
4960
4960
|
|
|
4961
4961
|
|
|
4962
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
4962
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=8ead4a80&
|
|
4963
4963
|
|
|
4964
4964
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
4965
4965
|
var regenerator_ = __webpack_require__(13);
|
|
@@ -5965,6 +5965,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
5965
5965
|
type: String,
|
|
5966
5966
|
default: '0'
|
|
5967
5967
|
},
|
|
5968
|
+
firstLoginModel: String,
|
|
5968
5969
|
//是否加密传输
|
|
5969
5970
|
isEncrypt: {
|
|
5970
5971
|
type: Boolean,
|
|
@@ -6596,6 +6597,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6596
6597
|
}))();
|
|
6597
6598
|
},
|
|
6598
6599
|
setConfig: function setConfig(res) {
|
|
6600
|
+
var isLogined = localStorage.getItem('isLogined');
|
|
6599
6601
|
this.identifyingId = res.identifyingId || '';
|
|
6600
6602
|
this.getImgCode();
|
|
6601
6603
|
var downloads = {};
|
|
@@ -6629,7 +6631,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6629
6631
|
this.qrimg = res.qrimg || res.qrImg;
|
|
6630
6632
|
}
|
|
6631
6633
|
if (res.loginModel && ceshi !== 'true' && ceshi !== true) {
|
|
6632
|
-
this.loginModel = res.loginModel;
|
|
6634
|
+
this.loginModel = (res.firstLoginModel || this.firstLoginModel) && !isLogined ? res.firstLoginModel || this.firstLoginModel : res.loginModel;
|
|
6633
6635
|
}
|
|
6634
6636
|
if (res.loginBackgroundUrl) {
|
|
6635
6637
|
this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
|
|
@@ -6646,7 +6648,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6646
6648
|
this.actionUrl = res.subsystemExtend.login_url;
|
|
6647
6649
|
}
|
|
6648
6650
|
if (res.subsystemExtend.loginModel && (ceshi == 'true' || ceshi == true)) {
|
|
6649
|
-
this.loginModel = res.subsystemExtend.loginModel;
|
|
6651
|
+
this.loginModel = (res.firstLoginModel || this.firstLoginModel) && !isLogined ? res.firstLoginModel || this.firstLoginModel : res.subsystemExtend.loginModel;
|
|
6650
6652
|
}
|
|
6651
6653
|
if (res.subsystemExtend.applicationName) {
|
|
6652
6654
|
localStorage.setItem('appcode', res.subsystemExtend.applicationName);
|
|
@@ -6988,6 +6990,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6988
6990
|
window.location.href = _this11.toUrl;
|
|
6989
6991
|
} else if (results.doorIndex && _this11.doorIndex) {
|
|
6990
6992
|
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
6993
|
+
localStorage.setItem('isLogined', true);
|
|
6991
6994
|
window.location.href = results.doorIndex;
|
|
6992
6995
|
} else {
|
|
6993
6996
|
if (window.location.href.indexOf('login.html') > -1) {
|
package/lib/upload.js
CHANGED
|
@@ -3976,8 +3976,8 @@ module.exports = require("js-base64");
|
|
|
3976
3976
|
// ESM COMPAT FLAG
|
|
3977
3977
|
__webpack_require__.r(__webpack_exports__);
|
|
3978
3978
|
|
|
3979
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
3980
|
-
var
|
|
3979
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=12134e47&
|
|
3980
|
+
var mainvue_type_template_id_12134e47_render = function () {
|
|
3981
3981
|
var _vm = this
|
|
3982
3982
|
var _h = _vm.$createElement
|
|
3983
3983
|
var _c = _vm._self._c || _h
|
|
@@ -4358,10 +4358,10 @@ var mainvue_type_template_id_60e8548b_render = function () {
|
|
|
4358
4358
|
: _vm._e()
|
|
4359
4359
|
}
|
|
4360
4360
|
var staticRenderFns = []
|
|
4361
|
-
|
|
4361
|
+
mainvue_type_template_id_12134e47_render._withStripped = true
|
|
4362
4362
|
|
|
4363
4363
|
|
|
4364
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
4364
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=12134e47&
|
|
4365
4365
|
|
|
4366
4366
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4367
4367
|
var api = __webpack_require__(1);
|
|
@@ -5173,7 +5173,7 @@ var _props;
|
|
|
5173
5173
|
suffix = suffix.toLowerCase();
|
|
5174
5174
|
if (this.dochubConfig.previewDocumentUrl) {
|
|
5175
5175
|
if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
|
|
5176
|
-
this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.
|
|
5176
|
+
this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.dochubConfig.downloadDocumentUrl + '?documentId=' + file.adjunctId);
|
|
5177
5177
|
this.title = file.originalName;
|
|
5178
5178
|
this.showImg = true;
|
|
5179
5179
|
this.$nextTick(function () {
|
|
@@ -5181,7 +5181,7 @@ var _props;
|
|
|
5181
5181
|
});
|
|
5182
5182
|
} else if (suffix.includes('mp4')) {
|
|
5183
5183
|
this.source = {
|
|
5184
|
-
src: this.host + (url ? url : this.
|
|
5184
|
+
src: this.host + (url ? url : this.dochubConfig.downloadDocumentUrl + '?documentId=' + file.adjunctId)
|
|
5185
5185
|
};
|
|
5186
5186
|
this.title = file.originalName;
|
|
5187
5187
|
this.showVideo = true;
|
|
@@ -5506,7 +5506,7 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5506
5506
|
|
|
5507
5507
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5508
5508
|
src_mainvue_type_script_lang_js_,
|
|
5509
|
-
|
|
5509
|
+
mainvue_type_template_id_12134e47_render,
|
|
5510
5510
|
staticRenderFns,
|
|
5511
5511
|
false,
|
|
5512
5512
|
null,
|
package/package.json
CHANGED
package/packages/.DS_Store
CHANGED
|
Binary file
|
|
@@ -425,6 +425,7 @@ export default {
|
|
|
425
425
|
type: String,
|
|
426
426
|
default: '0'
|
|
427
427
|
},
|
|
428
|
+
firstLoginModel: String,
|
|
428
429
|
//是否加密传输
|
|
429
430
|
isEncrypt: {
|
|
430
431
|
type: Boolean,
|
|
@@ -1074,6 +1075,7 @@ export default {
|
|
|
1074
1075
|
});
|
|
1075
1076
|
},
|
|
1076
1077
|
setConfig(res) {
|
|
1078
|
+
const isLogined = localStorage.getItem('isLogined');
|
|
1077
1079
|
this.identifyingId = res.identifyingId || '';
|
|
1078
1080
|
this.getImgCode();
|
|
1079
1081
|
let downloads = {};
|
|
@@ -1107,7 +1109,10 @@ export default {
|
|
|
1107
1109
|
this.qrimg = res.qrimg || res.qrImg;
|
|
1108
1110
|
}
|
|
1109
1111
|
if (res.loginModel && ceshi !== 'true' && ceshi !== true) {
|
|
1110
|
-
this.loginModel =
|
|
1112
|
+
this.loginModel =
|
|
1113
|
+
(res.firstLoginModel || this.firstLoginModel) && !isLogined
|
|
1114
|
+
? res.firstLoginModel || this.firstLoginModel
|
|
1115
|
+
: res.loginModel;
|
|
1111
1116
|
}
|
|
1112
1117
|
if (res.loginBackgroundUrl) {
|
|
1113
1118
|
this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
|
|
@@ -1128,7 +1133,10 @@ export default {
|
|
|
1128
1133
|
res.subsystemExtend.loginModel &&
|
|
1129
1134
|
(ceshi == 'true' || ceshi == true)
|
|
1130
1135
|
) {
|
|
1131
|
-
this.loginModel =
|
|
1136
|
+
this.loginModel =
|
|
1137
|
+
(res.firstLoginModel || this.firstLoginModel) && !isLogined
|
|
1138
|
+
? res.firstLoginModel || this.firstLoginModel
|
|
1139
|
+
: res.subsystemExtend.loginModel;
|
|
1132
1140
|
}
|
|
1133
1141
|
if (res.subsystemExtend.applicationName) {
|
|
1134
1142
|
localStorage.setItem('appcode', res.subsystemExtend.applicationName);
|
|
@@ -1506,6 +1514,7 @@ export default {
|
|
|
1506
1514
|
window.location.href = this.toUrl;
|
|
1507
1515
|
} else if (results.doorIndex && this.doorIndex) {
|
|
1508
1516
|
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
1517
|
+
localStorage.setItem('isLogined', true);
|
|
1509
1518
|
window.location.href = results.doorIndex;
|
|
1510
1519
|
} else {
|
|
1511
1520
|
if (window.location.href.indexOf('login.html') > -1) {
|
|
@@ -875,7 +875,7 @@ export default {
|
|
|
875
875
|
: this.host +
|
|
876
876
|
(url
|
|
877
877
|
? url
|
|
878
|
-
: `${this.
|
|
878
|
+
: `${this.dochubConfig.downloadDocumentUrl}?documentId=${file.adjunctId}`);
|
|
879
879
|
this.title = file.originalName;
|
|
880
880
|
this.showImg = true;
|
|
881
881
|
this.$nextTick(() => {
|
|
@@ -887,7 +887,7 @@ export default {
|
|
|
887
887
|
this.host +
|
|
888
888
|
(url
|
|
889
889
|
? url
|
|
890
|
-
: `${this.
|
|
890
|
+
: `${this.dochubConfig.downloadDocumentUrl}?documentId=${file.adjunctId}`)
|
|
891
891
|
};
|
|
892
892
|
this.title = file.originalName;
|
|
893
893
|
this.showVideo = true;
|