ecinc-cloud-mappaio 9.7.14 → 9.7.16
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/ecmappaio.common.js +39 -22
- package/lib/ecmappaio.umd.js +39 -22
- package/lib/ecmappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -908,17 +908,23 @@ var actions = {
|
|
|
908
908
|
sysCode = userInfo.sysCode,
|
|
909
909
|
imei = userInfo.imei,
|
|
910
910
|
enjwt = userInfo.enjwt;
|
|
911
|
+
var reqData = {
|
|
912
|
+
username: username.trim(),
|
|
913
|
+
password: password,
|
|
914
|
+
kaptcha: kaptcha,
|
|
915
|
+
encrypt: encrypt,
|
|
916
|
+
productCode: productCode,
|
|
917
|
+
sysCode: sysCode,
|
|
918
|
+
imei: imei,
|
|
919
|
+
enjwt: enjwt
|
|
920
|
+
};
|
|
921
|
+
if (userInfo.captchaType === 'tencent') {
|
|
922
|
+
reqData.captchaType = 'tencent';
|
|
923
|
+
reqData.tencentTicket = userInfo.tencentTicket;
|
|
924
|
+
reqData.tencentRandstr = userInfo.tencentRandstr;
|
|
925
|
+
}
|
|
911
926
|
return new Promise(function (resolve, reject) {
|
|
912
|
-
window.$user.formLogin({
|
|
913
|
-
username: username.trim(),
|
|
914
|
-
password: password,
|
|
915
|
-
kaptcha: kaptcha,
|
|
916
|
-
encrypt: encrypt,
|
|
917
|
-
productCode: productCode,
|
|
918
|
-
sysCode: sysCode,
|
|
919
|
-
imei: imei,
|
|
920
|
-
enjwt: enjwt
|
|
921
|
-
}).then( /*#__PURE__*/function () {
|
|
927
|
+
window.$user.formLogin(reqData).then( /*#__PURE__*/function () {
|
|
922
928
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
923
929
|
var data, jwtToken, loginUser;
|
|
924
930
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -18608,7 +18614,8 @@ module.exports = {
|
|
|
18608
18614
|
writReviewComments: 'Please fill in review comments',
|
|
18609
18615
|
noWritReview: 'Your reading record does not exist; you cannot fill in review comments.',
|
|
18610
18616
|
success: 'Processed successfully',
|
|
18611
|
-
failed: 'Processing failed'
|
|
18617
|
+
failed: 'Processing failed',
|
|
18618
|
+
notSupportMobile: 'This file does not support processing on mobile devices.'
|
|
18612
18619
|
}
|
|
18613
18620
|
}
|
|
18614
18621
|
};
|
|
@@ -18845,7 +18852,8 @@ module.exports = {
|
|
|
18845
18852
|
noWritReview: '您的阅文记录不存在,不能填写批阅意见',
|
|
18846
18853
|
submitToNet: '您是否确认提交下一环节?',
|
|
18847
18854
|
success: '处理成功',
|
|
18848
|
-
failed: '处理失败'
|
|
18855
|
+
failed: '处理失败',
|
|
18856
|
+
notSupportMobile: '此文件不支持在手机端办理。'
|
|
18849
18857
|
}
|
|
18850
18858
|
}
|
|
18851
18859
|
};
|
|
@@ -18881,7 +18889,7 @@ var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
|
|
18881
18889
|
|
|
18882
18890
|
|
|
18883
18891
|
// ========== 配置 ==========
|
|
18884
|
-
var DEFAULT_CHUNK_SIZE =
|
|
18892
|
+
var DEFAULT_CHUNK_SIZE = 3; // 默认分片大小(MB)
|
|
18885
18893
|
var MAX_RETRY = 3; // 单分片最大重试次数
|
|
18886
18894
|
var RETRY_DELAYS = [1000, 2000, 4000]; // 指数退避延迟(ms)
|
|
18887
18895
|
var STORAGE_PREFIX = 'chunk_upload_'; // localStorage key 前缀
|
|
@@ -19455,6 +19463,15 @@ var install = function install(Vue) {
|
|
|
19455
19463
|
}
|
|
19456
19464
|
});
|
|
19457
19465
|
}
|
|
19466
|
+
if (window.vType === 'mapp' && $scope.curTN.h5TodoDisabled === 1) {
|
|
19467
|
+
$scope.$notify({
|
|
19468
|
+
title: '提示',
|
|
19469
|
+
message: $scope.$tx('ecmapp.wflowform.notSupportMobile'),
|
|
19470
|
+
offset: 60,
|
|
19471
|
+
duration: 10 * 1000,
|
|
19472
|
+
type: 'warning'
|
|
19473
|
+
});
|
|
19474
|
+
}
|
|
19458
19475
|
|
|
19459
19476
|
// 更新vo.flContent中<img>元素的src
|
|
19460
19477
|
if ($scope.vo.flContent !== undefined && $scope.vo.flContent != null && $scope.vo.flContent.indexOf('/workflow/wfBusiAttach/downloadById') !== -1) {
|
|
@@ -55682,7 +55699,7 @@ service.interceptors.request.use(function (config) {
|
|
|
55682
55699
|
}
|
|
55683
55700
|
if (config.method === 'put' || config.method === 'delete') {
|
|
55684
55701
|
if (window.forbidPut) {
|
|
55685
|
-
config.headers
|
|
55702
|
+
config.headers.set('X-HTTP-Method-Override', config.method.toUpperCase());
|
|
55686
55703
|
config.method = 'post';
|
|
55687
55704
|
}
|
|
55688
55705
|
}
|
|
@@ -55690,11 +55707,11 @@ service.interceptors.request.use(function (config) {
|
|
|
55690
55707
|
// let each request carry token
|
|
55691
55708
|
// ['X-Token'] is a custom headers key
|
|
55692
55709
|
// please modify it according to the actual situation
|
|
55693
|
-
config.headers
|
|
55710
|
+
config.headers.set('httpPort', window.$tempPort || location.port);
|
|
55694
55711
|
if (sessionStorage.getItem('productCode')) {
|
|
55695
|
-
config.headers
|
|
55712
|
+
config.headers.set('productCode', sessionStorage.getItem('productCode'));
|
|
55696
55713
|
} else if (window.productCode && location.href.indexOf('productCode') === -1) {
|
|
55697
|
-
config.headers
|
|
55714
|
+
config.headers.set('productCode', window.productCode);
|
|
55698
55715
|
}
|
|
55699
55716
|
var domain = '';
|
|
55700
55717
|
if (location.href.indexOf('windwx.html') > 0) {
|
|
@@ -55705,13 +55722,13 @@ service.interceptors.request.use(function (config) {
|
|
|
55705
55722
|
if (domain.substring(domain.length - 1) === '/') {
|
|
55706
55723
|
domain = domain.substring(0, domain.length - 1);
|
|
55707
55724
|
}
|
|
55708
|
-
config.headers
|
|
55725
|
+
config.headers.set('apigw', domain + "/apigw");
|
|
55709
55726
|
} else if (window.productCode && location.href.indexOf('productCode') === -1) {
|
|
55710
|
-
config.headers
|
|
55727
|
+
config.headers.set('productCode', window.productCode);
|
|
55711
55728
|
}
|
|
55712
|
-
config.headers
|
|
55729
|
+
config.headers.set('ecweb-csrf-token', decodeURIComponent(sessionStorage.getItem('ecweb-csrf-token') || ''));
|
|
55713
55730
|
if (window.$auth && window.$auth.getTicket()) {
|
|
55714
|
-
config.headers
|
|
55731
|
+
config.headers.set('ecweb-ticket-' + config.headers.get('productCode'), decodeURIComponent(window.$auth.getTicket()));
|
|
55715
55732
|
}
|
|
55716
55733
|
var language = (0,lang/* getLanguage */.Z0)();
|
|
55717
55734
|
if (language === 'en') {
|
|
@@ -55719,7 +55736,7 @@ service.interceptors.request.use(function (config) {
|
|
|
55719
55736
|
} else if (language === 'zhCN') {
|
|
55720
55737
|
language = 'zh-CN';
|
|
55721
55738
|
}
|
|
55722
|
-
config.headers
|
|
55739
|
+
config.headers.set('accept-language', language);
|
|
55723
55740
|
return config;
|
|
55724
55741
|
}, function (error) {
|
|
55725
55742
|
console.log(error); // for debug
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -918,17 +918,23 @@ var actions = {
|
|
|
918
918
|
sysCode = userInfo.sysCode,
|
|
919
919
|
imei = userInfo.imei,
|
|
920
920
|
enjwt = userInfo.enjwt;
|
|
921
|
+
var reqData = {
|
|
922
|
+
username: username.trim(),
|
|
923
|
+
password: password,
|
|
924
|
+
kaptcha: kaptcha,
|
|
925
|
+
encrypt: encrypt,
|
|
926
|
+
productCode: productCode,
|
|
927
|
+
sysCode: sysCode,
|
|
928
|
+
imei: imei,
|
|
929
|
+
enjwt: enjwt
|
|
930
|
+
};
|
|
931
|
+
if (userInfo.captchaType === 'tencent') {
|
|
932
|
+
reqData.captchaType = 'tencent';
|
|
933
|
+
reqData.tencentTicket = userInfo.tencentTicket;
|
|
934
|
+
reqData.tencentRandstr = userInfo.tencentRandstr;
|
|
935
|
+
}
|
|
921
936
|
return new Promise(function (resolve, reject) {
|
|
922
|
-
window.$user.formLogin({
|
|
923
|
-
username: username.trim(),
|
|
924
|
-
password: password,
|
|
925
|
-
kaptcha: kaptcha,
|
|
926
|
-
encrypt: encrypt,
|
|
927
|
-
productCode: productCode,
|
|
928
|
-
sysCode: sysCode,
|
|
929
|
-
imei: imei,
|
|
930
|
-
enjwt: enjwt
|
|
931
|
-
}).then( /*#__PURE__*/function () {
|
|
937
|
+
window.$user.formLogin(reqData).then( /*#__PURE__*/function () {
|
|
932
938
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
933
939
|
var data, jwtToken, loginUser;
|
|
934
940
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -18618,7 +18624,8 @@ module.exports = {
|
|
|
18618
18624
|
writReviewComments: 'Please fill in review comments',
|
|
18619
18625
|
noWritReview: 'Your reading record does not exist; you cannot fill in review comments.',
|
|
18620
18626
|
success: 'Processed successfully',
|
|
18621
|
-
failed: 'Processing failed'
|
|
18627
|
+
failed: 'Processing failed',
|
|
18628
|
+
notSupportMobile: 'This file does not support processing on mobile devices.'
|
|
18622
18629
|
}
|
|
18623
18630
|
}
|
|
18624
18631
|
};
|
|
@@ -18855,7 +18862,8 @@ module.exports = {
|
|
|
18855
18862
|
noWritReview: '您的阅文记录不存在,不能填写批阅意见',
|
|
18856
18863
|
submitToNet: '您是否确认提交下一环节?',
|
|
18857
18864
|
success: '处理成功',
|
|
18858
|
-
failed: '处理失败'
|
|
18865
|
+
failed: '处理失败',
|
|
18866
|
+
notSupportMobile: '此文件不支持在手机端办理。'
|
|
18859
18867
|
}
|
|
18860
18868
|
}
|
|
18861
18869
|
};
|
|
@@ -18891,7 +18899,7 @@ var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
|
|
18891
18899
|
|
|
18892
18900
|
|
|
18893
18901
|
// ========== 配置 ==========
|
|
18894
|
-
var DEFAULT_CHUNK_SIZE =
|
|
18902
|
+
var DEFAULT_CHUNK_SIZE = 3; // 默认分片大小(MB)
|
|
18895
18903
|
var MAX_RETRY = 3; // 单分片最大重试次数
|
|
18896
18904
|
var RETRY_DELAYS = [1000, 2000, 4000]; // 指数退避延迟(ms)
|
|
18897
18905
|
var STORAGE_PREFIX = 'chunk_upload_'; // localStorage key 前缀
|
|
@@ -19465,6 +19473,15 @@ var install = function install(Vue) {
|
|
|
19465
19473
|
}
|
|
19466
19474
|
});
|
|
19467
19475
|
}
|
|
19476
|
+
if (window.vType === 'mapp' && $scope.curTN.h5TodoDisabled === 1) {
|
|
19477
|
+
$scope.$notify({
|
|
19478
|
+
title: '提示',
|
|
19479
|
+
message: $scope.$tx('ecmapp.wflowform.notSupportMobile'),
|
|
19480
|
+
offset: 60,
|
|
19481
|
+
duration: 10 * 1000,
|
|
19482
|
+
type: 'warning'
|
|
19483
|
+
});
|
|
19484
|
+
}
|
|
19468
19485
|
|
|
19469
19486
|
// 更新vo.flContent中<img>元素的src
|
|
19470
19487
|
if ($scope.vo.flContent !== undefined && $scope.vo.flContent != null && $scope.vo.flContent.indexOf('/workflow/wfBusiAttach/downloadById') !== -1) {
|
|
@@ -55692,7 +55709,7 @@ service.interceptors.request.use(function (config) {
|
|
|
55692
55709
|
}
|
|
55693
55710
|
if (config.method === 'put' || config.method === 'delete') {
|
|
55694
55711
|
if (window.forbidPut) {
|
|
55695
|
-
config.headers
|
|
55712
|
+
config.headers.set('X-HTTP-Method-Override', config.method.toUpperCase());
|
|
55696
55713
|
config.method = 'post';
|
|
55697
55714
|
}
|
|
55698
55715
|
}
|
|
@@ -55700,11 +55717,11 @@ service.interceptors.request.use(function (config) {
|
|
|
55700
55717
|
// let each request carry token
|
|
55701
55718
|
// ['X-Token'] is a custom headers key
|
|
55702
55719
|
// please modify it according to the actual situation
|
|
55703
|
-
config.headers
|
|
55720
|
+
config.headers.set('httpPort', window.$tempPort || location.port);
|
|
55704
55721
|
if (sessionStorage.getItem('productCode')) {
|
|
55705
|
-
config.headers
|
|
55722
|
+
config.headers.set('productCode', sessionStorage.getItem('productCode'));
|
|
55706
55723
|
} else if (window.productCode && location.href.indexOf('productCode') === -1) {
|
|
55707
|
-
config.headers
|
|
55724
|
+
config.headers.set('productCode', window.productCode);
|
|
55708
55725
|
}
|
|
55709
55726
|
var domain = '';
|
|
55710
55727
|
if (location.href.indexOf('windwx.html') > 0) {
|
|
@@ -55715,13 +55732,13 @@ service.interceptors.request.use(function (config) {
|
|
|
55715
55732
|
if (domain.substring(domain.length - 1) === '/') {
|
|
55716
55733
|
domain = domain.substring(0, domain.length - 1);
|
|
55717
55734
|
}
|
|
55718
|
-
config.headers
|
|
55735
|
+
config.headers.set('apigw', domain + "/apigw");
|
|
55719
55736
|
} else if (window.productCode && location.href.indexOf('productCode') === -1) {
|
|
55720
|
-
config.headers
|
|
55737
|
+
config.headers.set('productCode', window.productCode);
|
|
55721
55738
|
}
|
|
55722
|
-
config.headers
|
|
55739
|
+
config.headers.set('ecweb-csrf-token', decodeURIComponent(sessionStorage.getItem('ecweb-csrf-token') || ''));
|
|
55723
55740
|
if (window.$auth && window.$auth.getTicket()) {
|
|
55724
|
-
config.headers
|
|
55741
|
+
config.headers.set('ecweb-ticket-' + config.headers.get('productCode'), decodeURIComponent(window.$auth.getTicket()));
|
|
55725
55742
|
}
|
|
55726
55743
|
var language = (0,lang/* getLanguage */.Z0)();
|
|
55727
55744
|
if (language === 'en') {
|
|
@@ -55729,7 +55746,7 @@ service.interceptors.request.use(function (config) {
|
|
|
55729
55746
|
} else if (language === 'zhCN') {
|
|
55730
55747
|
language = 'zh-CN';
|
|
55731
55748
|
}
|
|
55732
|
-
config.headers
|
|
55749
|
+
config.headers.set('accept-language', language);
|
|
55733
55750
|
return config;
|
|
55734
55751
|
}, function (error) {
|
|
55735
55752
|
console.log(error); // for debug
|