eoss-ui 0.5.94 → 0.5.95
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/.DS_Store +0 -0
- package/lib/data-table.js +28 -23
- package/lib/eoss-ui.common.js +433 -521
- package/lib/handler.js +201 -198
- package/lib/index.js +1 -1
- package/lib/login.js +114 -121
- package/lib/main.js +52 -144
- package/lib/table-form.js +8 -5
- package/lib/upload.js +8 -8
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/data-table/src/main.vue +7 -4
- package/packages/form/src/table.vue +3 -0
- package/packages/handler/.DS_Store +0 -0
- package/packages/handler/src/main.vue +5 -6
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +17 -36
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +36 -36
- package/packages/main/src/main.vue +2 -89
- package/packages/main/src/simplicity/index.vue +1 -2
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/upload/src/main.vue +8 -3
- package/src/index.js +1 -1
package/lib/login.js
CHANGED
|
@@ -4008,7 +4008,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
|
|
|
4008
4008
|
// ESM COMPAT FLAG
|
|
4009
4009
|
__webpack_require__.r(__webpack_exports__);
|
|
4010
4010
|
|
|
4011
|
-
// 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=
|
|
4011
|
+
// 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=1b54d530&
|
|
4012
4012
|
var render = function () {
|
|
4013
4013
|
var _vm = this
|
|
4014
4014
|
var _h = _vm.$createElement
|
|
@@ -5000,7 +5000,7 @@ var staticRenderFns = []
|
|
|
5000
5000
|
render._withStripped = true
|
|
5001
5001
|
|
|
5002
5002
|
|
|
5003
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
5003
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=1b54d530&
|
|
5004
5004
|
|
|
5005
5005
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
5006
5006
|
var regenerator_ = __webpack_require__(13);
|
|
@@ -6420,20 +6420,16 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6420
6420
|
showLaunch: false,
|
|
6421
6421
|
launchImages: this.launchImage,
|
|
6422
6422
|
launchKey: 'day',
|
|
6423
|
-
launchTime:
|
|
6424
|
-
type: Number,
|
|
6425
|
-
default: 3000
|
|
6426
|
-
}
|
|
6423
|
+
launchTime: 3000
|
|
6427
6424
|
};
|
|
6428
6425
|
},
|
|
6429
6426
|
beforeCreate: function beforeCreate() {
|
|
6430
6427
|
this.setScale = Object(external_throttle_debounce_["debounce"])(300, function () {
|
|
6431
6428
|
util["a" /* default */].setScale();
|
|
6432
6429
|
});
|
|
6433
|
-
util["a" /* default */].removeStorage(['remind', 'ssId', 'token', 'Authorization', 'deviceUnique', 'userId', 'userName', 'useCaseCodes'
|
|
6430
|
+
util["a" /* default */].removeStorage(['remind', 'ssId', 'token', 'Authorization', 'deviceUnique', 'userId', 'userName', 'useCaseCodes']);
|
|
6434
6431
|
},
|
|
6435
6432
|
created: function created() {
|
|
6436
|
-
sessionStorage.setItem('launchImage', JSON.stringify(this.launchImages));
|
|
6437
6433
|
this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
|
|
6438
6434
|
if (ceshi == 'true' || ceshi == true) {
|
|
6439
6435
|
this.loginModel = '0';
|
|
@@ -6640,7 +6636,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6640
6636
|
config = util["a" /* default */].getStorage('initLogin');
|
|
6641
6637
|
|
|
6642
6638
|
if (config) {
|
|
6643
|
-
_this4.setConfig(config);
|
|
6639
|
+
_this4.setConfig(JSON.parse(config));
|
|
6644
6640
|
}
|
|
6645
6641
|
_context.next = 4;
|
|
6646
6642
|
return util["a" /* default */].ajax({ url: _this4.initLogin }).then(function (res) {
|
|
@@ -6675,8 +6671,6 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6675
6671
|
}))();
|
|
6676
6672
|
},
|
|
6677
6673
|
setConfig: function setConfig(res) {
|
|
6678
|
-
var _this5 = this;
|
|
6679
|
-
|
|
6680
6674
|
var isLogined = localStorage.getItem('isLogined');
|
|
6681
6675
|
this.identifyingId = res.identifyingId || '';
|
|
6682
6676
|
this.getImgCode();
|
|
@@ -6700,7 +6694,6 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6700
6694
|
downloads['linux'] = res.linuxDownloadUrl;
|
|
6701
6695
|
}
|
|
6702
6696
|
this.sysName = res.subsystemName;
|
|
6703
|
-
sessionStorage.setItem('sysName', this.sysName);
|
|
6704
6697
|
this.secret = res.secret;
|
|
6705
6698
|
this.setup = res.setup;
|
|
6706
6699
|
this.downloadSetup = res.downloadSetup;
|
|
@@ -6773,19 +6766,15 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6773
6766
|
this.warningText = res.subsystemExtend.warningText;
|
|
6774
6767
|
}
|
|
6775
6768
|
if (res.subsystemExtend.launchTime) {
|
|
6776
|
-
|
|
6769
|
+
this.launchTime = parseInt(res.subsystemExtend.launchTime, 10);
|
|
6777
6770
|
}
|
|
6778
6771
|
if (res.subsystemExtend.launchImage) {
|
|
6779
6772
|
if (!this.launchShow) {
|
|
6780
6773
|
this.launchShow = true;
|
|
6781
|
-
setTimeout(function () {
|
|
6782
|
-
_this5.launchShow = false;
|
|
6783
|
-
}, res.subsystemExtend.launchTime ? parseInt(res.subsystemExtend.launchTime) : this.launchTime);
|
|
6784
6774
|
}
|
|
6785
6775
|
if (res.subsystemExtend.launchImage != 'true' && res.subsystemExtend.launchImage != true) {
|
|
6786
6776
|
this.launchImages = res.subsystemExtend.launchImage.indexOf('{') > -1 && res.subsystemExtend.launchImage.indexOf('}') > -1 ? JSON.parse(res.subsystemExtend.launchImage) : res.subsystemExtend.launchImage;
|
|
6787
6777
|
}
|
|
6788
|
-
sessionStorage.setItem('launchImage', JSON.stringify(this.launchImages));
|
|
6789
6778
|
}
|
|
6790
6779
|
}
|
|
6791
6780
|
this.passModifyModel = res.passModifyModel;
|
|
@@ -6806,7 +6795,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6806
6795
|
return this.imageCode;
|
|
6807
6796
|
},
|
|
6808
6797
|
getCode: function getCode() {
|
|
6809
|
-
var
|
|
6798
|
+
var _this5 = this;
|
|
6810
6799
|
|
|
6811
6800
|
if (this.countdown) {
|
|
6812
6801
|
return false;
|
|
@@ -6848,14 +6837,14 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6848
6837
|
}
|
|
6849
6838
|
this.countdown = 60;
|
|
6850
6839
|
this.timer = setInterval(function () {
|
|
6851
|
-
if (
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6840
|
+
if (_this5.countdown > 0) {
|
|
6841
|
+
_this5.countdown--;
|
|
6842
|
+
_this5.disabled = true;
|
|
6843
|
+
_this5.btnText = '重新获取' + _this5.countdown + 's';
|
|
6855
6844
|
} else {
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6845
|
+
_this5.btnText = '重新获取';
|
|
6846
|
+
_this5.disabled = false;
|
|
6847
|
+
_this5.submit = false;
|
|
6859
6848
|
}
|
|
6860
6849
|
}, 1000);
|
|
6861
6850
|
util["a" /* default */].ajax({
|
|
@@ -6863,26 +6852,26 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6863
6852
|
url: this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
|
|
6864
6853
|
data: data
|
|
6865
6854
|
}).then(function (res) {
|
|
6866
|
-
|
|
6855
|
+
_this5.$message({
|
|
6867
6856
|
message: res.msg,
|
|
6868
6857
|
duration: 2000,
|
|
6869
6858
|
type: res.rCode == 0 ? 'success' : 'error'
|
|
6870
6859
|
});
|
|
6871
6860
|
|
|
6872
6861
|
if (res.rCode === 2) {
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
clearInterval(
|
|
6862
|
+
_this5.btnText = '获取验证码';
|
|
6863
|
+
_this5.disabled = false;
|
|
6864
|
+
_this5.countdown = 0;
|
|
6865
|
+
clearInterval(_this5.timer);
|
|
6877
6866
|
}
|
|
6878
6867
|
}).catch(function (err) {
|
|
6879
6868
|
if (err.message && err.message !== 'canceled') {
|
|
6880
|
-
|
|
6869
|
+
_this5.$message.error(err.message);
|
|
6881
6870
|
}
|
|
6882
6871
|
});
|
|
6883
6872
|
},
|
|
6884
6873
|
handleLogin: function handleLogin() {
|
|
6885
|
-
var
|
|
6874
|
+
var _this6 = this;
|
|
6886
6875
|
|
|
6887
6876
|
if (this.submit) {
|
|
6888
6877
|
return false;
|
|
@@ -6890,40 +6879,40 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6890
6879
|
var ref = 'login' + this.active;
|
|
6891
6880
|
this.$refs[ref].validate(function (valid) {
|
|
6892
6881
|
if (valid) {
|
|
6893
|
-
|
|
6882
|
+
_this6.submit = true;
|
|
6894
6883
|
var param = util["a" /* default */].getParams() || {};
|
|
6895
|
-
var data =
|
|
6896
|
-
username:
|
|
6897
|
-
password:
|
|
6898
|
-
data:
|
|
6899
|
-
key:
|
|
6900
|
-
}) :
|
|
6901
|
-
identifyingCode:
|
|
6902
|
-
identifyingId:
|
|
6903
|
-
} :
|
|
6904
|
-
username:
|
|
6905
|
-
password:
|
|
6906
|
-
data:
|
|
6907
|
-
key:
|
|
6908
|
-
}) :
|
|
6909
|
-
targetType:
|
|
6910
|
-
verificationCode:
|
|
6884
|
+
var data = _this6.active == '0' ? {
|
|
6885
|
+
username: _this6.formData.username,
|
|
6886
|
+
password: _this6.secret && _this6.isEncrypt ? util["a" /* default */].esmEncrypt({
|
|
6887
|
+
data: _this6.formData.password,
|
|
6888
|
+
key: _this6.secret
|
|
6889
|
+
}) : _this6.formData.password,
|
|
6890
|
+
identifyingCode: _this6.formData.identifyingCode,
|
|
6891
|
+
identifyingId: _this6.identifyingId
|
|
6892
|
+
} : _this6.active == '12' ? {
|
|
6893
|
+
username: _this6.formData.username,
|
|
6894
|
+
password: _this6.secret && _this6.isEncrypt ? util["a" /* default */].esmEncrypt({
|
|
6895
|
+
data: _this6.formData.password,
|
|
6896
|
+
key: _this6.secret
|
|
6897
|
+
}) : _this6.formData.password,
|
|
6898
|
+
targetType: _this6.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
|
|
6899
|
+
verificationCode: _this6.formData.identifyingCode
|
|
6911
6900
|
} : {
|
|
6912
|
-
target:
|
|
6913
|
-
verificationCode:
|
|
6914
|
-
targetType:
|
|
6901
|
+
target: _this6.formData.target,
|
|
6902
|
+
verificationCode: _this6.formData.verificationCode,
|
|
6903
|
+
targetType: _this6.active == '6' ? 'SMS' : 'EMAIL'
|
|
6915
6904
|
};
|
|
6916
|
-
if (
|
|
6917
|
-
if (
|
|
6918
|
-
|
|
6905
|
+
if (_this6.onLogin) {
|
|
6906
|
+
if (_this6.active == '0') {
|
|
6907
|
+
_this6.onLogin(mainvue_type_script_lang_js_extends({}, param, data), _this6.getImgCode, _this6.handleRemember);
|
|
6919
6908
|
} else {
|
|
6920
|
-
|
|
6909
|
+
_this6.onLogin(mainvue_type_script_lang_js_extends({}, param, data));
|
|
6921
6910
|
}
|
|
6922
6911
|
} else {
|
|
6923
|
-
|
|
6912
|
+
_this6.handleUserLogin(mainvue_type_script_lang_js_extends({}, param, _this6.param, data));
|
|
6924
6913
|
}
|
|
6925
6914
|
} else {
|
|
6926
|
-
|
|
6915
|
+
_this6.submit = false;
|
|
6927
6916
|
return false;
|
|
6928
6917
|
}
|
|
6929
6918
|
});
|
|
@@ -6939,7 +6928,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6939
6928
|
}
|
|
6940
6929
|
},
|
|
6941
6930
|
handleUserLogin: function handleUserLogin(data) {
|
|
6942
|
-
var
|
|
6931
|
+
var _this7 = this;
|
|
6943
6932
|
|
|
6944
6933
|
var extUserBindHandleId = sessionStorage.getItem('extUserBindHandleId');
|
|
6945
6934
|
util["a" /* default */].ajax({
|
|
@@ -6947,68 +6936,68 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6947
6936
|
url: this.active == '0' ? this.actionUrl : this.active == '12' ? this.doTwoFactorLogin : this.doCodeLogin,
|
|
6948
6937
|
data: extUserBindHandleId ? mainvue_type_script_lang_js_extends({}, data, { extUserBindHandleId: extUserBindHandleId }) : data
|
|
6949
6938
|
}).then(function (res) {
|
|
6950
|
-
|
|
6939
|
+
_this7.submit = false;
|
|
6951
6940
|
if (res.rCode == 0) {
|
|
6952
6941
|
util["a" /* default */].removeStorage('extUserBindHandleId');
|
|
6953
|
-
|
|
6942
|
+
_this7.handleRemember();
|
|
6954
6943
|
var results = res.results;
|
|
6955
|
-
|
|
6956
|
-
if (
|
|
6957
|
-
|
|
6944
|
+
_this7.handleResults(results);
|
|
6945
|
+
if (_this7.onSuccess) {
|
|
6946
|
+
_this7.onSuccess(res);
|
|
6958
6947
|
}
|
|
6959
6948
|
} else {
|
|
6960
6949
|
var msg = res.results && res.results.msg ? res.results.msg : res.msg;
|
|
6961
|
-
|
|
6950
|
+
_this7.$message({
|
|
6962
6951
|
message: msg || '系统错误,请联系管理员!',
|
|
6963
6952
|
type: 'error',
|
|
6964
6953
|
duration: 1500,
|
|
6965
6954
|
onClose: function onClose() {
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
clearInterval(
|
|
6970
|
-
|
|
6955
|
+
_this7.btnText = '获取验证码';
|
|
6956
|
+
_this7.disabled = false;
|
|
6957
|
+
_this7.countdown = 0;
|
|
6958
|
+
clearInterval(_this7.timer);
|
|
6959
|
+
_this7.getImgCode();
|
|
6971
6960
|
}
|
|
6972
6961
|
});
|
|
6973
|
-
|
|
6962
|
+
_this7.onError(res);
|
|
6974
6963
|
}
|
|
6975
6964
|
}).catch(function (err) {
|
|
6976
|
-
|
|
6965
|
+
_this7.submit = false;
|
|
6977
6966
|
if (err.message && err.message !== 'canceled') {
|
|
6978
|
-
|
|
6967
|
+
_this7.$message.error(err.message);
|
|
6979
6968
|
}
|
|
6980
6969
|
});
|
|
6981
6970
|
},
|
|
6982
6971
|
caLogin: function caLogin(signedData) {
|
|
6983
|
-
var
|
|
6972
|
+
var _this8 = this;
|
|
6984
6973
|
|
|
6985
6974
|
util["a" /* default */].ajax({
|
|
6986
6975
|
method: 'post',
|
|
6987
6976
|
url: this.caAction,
|
|
6988
6977
|
data: { identifyingId: this.identifyingId, signedData: signedData }
|
|
6989
6978
|
}).then(function (res) {
|
|
6990
|
-
|
|
6979
|
+
_this8.submit = false;
|
|
6991
6980
|
if (res.rCode == 0) {
|
|
6992
6981
|
var results = res.results;
|
|
6993
|
-
|
|
6994
|
-
if (
|
|
6995
|
-
|
|
6982
|
+
_this8.handleResults(results);
|
|
6983
|
+
if (_this8.onSuccess) {
|
|
6984
|
+
_this8.onSuccess(res);
|
|
6996
6985
|
}
|
|
6997
6986
|
} else {
|
|
6998
6987
|
var msg = res.results && res.results.msg ? res.results.msg : res.msg;
|
|
6999
|
-
|
|
6988
|
+
_this8.$message({
|
|
7000
6989
|
message: msg || '系统错误,请联系管理员!',
|
|
7001
6990
|
type: 'error',
|
|
7002
6991
|
duration: 1500,
|
|
7003
6992
|
onClose: function onClose() {
|
|
7004
|
-
|
|
6993
|
+
_this8.getImgCode();
|
|
7005
6994
|
}
|
|
7006
6995
|
});
|
|
7007
|
-
|
|
6996
|
+
_this8.onError(res);
|
|
7008
6997
|
}
|
|
7009
6998
|
}).catch(function (err) {
|
|
7010
6999
|
if (err.message && err.message !== 'canceled') {
|
|
7011
|
-
|
|
7000
|
+
_this8.$message.error(err.message);
|
|
7012
7001
|
}
|
|
7013
7002
|
});
|
|
7014
7003
|
},
|
|
@@ -7025,17 +7014,17 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7025
7014
|
|
|
7026
7015
|
//获取app登录信息
|
|
7027
7016
|
loginInfo: function loginInfo(res) {
|
|
7028
|
-
var
|
|
7017
|
+
var _this9 = this;
|
|
7029
7018
|
|
|
7030
7019
|
clearTimeout(this.interval);
|
|
7031
7020
|
if (res) {
|
|
7032
7021
|
this.interval = setTimeout(function () {
|
|
7033
|
-
|
|
7022
|
+
_this9.initRequestLoginInfo();
|
|
7034
7023
|
}, this.scanIntervalTime);
|
|
7035
7024
|
}
|
|
7036
7025
|
},
|
|
7037
7026
|
initRequestLoginInfo: function initRequestLoginInfo() {
|
|
7038
|
-
var
|
|
7027
|
+
var _this10 = this;
|
|
7039
7028
|
|
|
7040
7029
|
if (this.identifyingId == '') {
|
|
7041
7030
|
return false;
|
|
@@ -7050,21 +7039,21 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7050
7039
|
if (res.rCode === 0) {
|
|
7051
7040
|
var results = res.results;
|
|
7052
7041
|
if (results.statusCode === 0) {
|
|
7053
|
-
clearTimeout(
|
|
7054
|
-
|
|
7042
|
+
clearTimeout(_this10.interval);
|
|
7043
|
+
_this10.handleResults(results, 3);
|
|
7055
7044
|
} else {
|
|
7056
|
-
|
|
7045
|
+
_this10.loginInfo(true);
|
|
7057
7046
|
}
|
|
7058
7047
|
}
|
|
7059
7048
|
}).catch(function (err) {
|
|
7060
|
-
clearTimeout(
|
|
7049
|
+
clearTimeout(_this10.interval);
|
|
7061
7050
|
if (err.message && err.message !== 'canceled') {
|
|
7062
|
-
|
|
7051
|
+
_this10.$message.error(err.message);
|
|
7063
7052
|
}
|
|
7064
7053
|
});
|
|
7065
7054
|
},
|
|
7066
7055
|
handleResults: function handleResults(results, type) {
|
|
7067
|
-
var
|
|
7056
|
+
var _this11 = this;
|
|
7068
7057
|
|
|
7069
7058
|
switch (results.statusCode) {
|
|
7070
7059
|
case 0:
|
|
@@ -7081,7 +7070,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7081
7070
|
useCaseCodes: results.resourceCodes
|
|
7082
7071
|
}
|
|
7083
7072
|
});
|
|
7084
|
-
if (this.launchShow
|
|
7073
|
+
if (this.launchShow) {
|
|
7085
7074
|
this.$message({
|
|
7086
7075
|
message: '登录成功!',
|
|
7087
7076
|
type: 'success',
|
|
@@ -7089,26 +7078,30 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7089
7078
|
});
|
|
7090
7079
|
this.showLaunch = true;
|
|
7091
7080
|
setTimeout(function () {
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7081
|
+
if (_this11.toUrl) {
|
|
7082
|
+
window.location.href = _this11.toUrl;
|
|
7083
|
+
} else if (results.doorIndex && _this11.doorIndex) {
|
|
7084
|
+
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
7085
|
+
localStorage.setItem('isLogined', true);
|
|
7086
|
+
window.location.href = results.doorIndex;
|
|
7095
7087
|
} else {
|
|
7096
|
-
|
|
7088
|
+
if (window.location.href.indexOf('login.html') > -1) {
|
|
7089
|
+
window.location.href = './main.html';
|
|
7090
|
+
} else {
|
|
7091
|
+
_this11.$router.push({ name: 'main' });
|
|
7092
|
+
}
|
|
7097
7093
|
}
|
|
7098
|
-
|
|
7099
|
-
},
|
|
7094
|
+
_this11.showLaunch = false;
|
|
7095
|
+
}, this.launchTime);
|
|
7100
7096
|
} else {
|
|
7101
|
-
if (this.launchShow) {
|
|
7102
|
-
sessionStorage.setItem('launch', this.launchShow);
|
|
7103
|
-
}
|
|
7104
7097
|
this.$message({
|
|
7105
7098
|
message: '登录成功!',
|
|
7106
7099
|
type: 'success',
|
|
7107
7100
|
duration: 1500,
|
|
7108
7101
|
onClose: function onClose() {
|
|
7109
|
-
if (
|
|
7110
|
-
window.location.href =
|
|
7111
|
-
} else if (results.doorIndex &&
|
|
7102
|
+
if (_this11.toUrl) {
|
|
7103
|
+
window.location.href = _this11.toUrl;
|
|
7104
|
+
} else if (results.doorIndex && _this11.doorIndex) {
|
|
7112
7105
|
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
7113
7106
|
localStorage.setItem('isLogined', true);
|
|
7114
7107
|
window.location.href = results.doorIndex;
|
|
@@ -7116,7 +7109,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7116
7109
|
if (window.location.href.indexOf('login.html') > -1) {
|
|
7117
7110
|
window.location.href = './main.html';
|
|
7118
7111
|
} else {
|
|
7119
|
-
|
|
7112
|
+
_this11.$router.push({ name: 'main' });
|
|
7120
7113
|
}
|
|
7121
7114
|
}
|
|
7122
7115
|
}
|
|
@@ -7129,11 +7122,11 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7129
7122
|
//cancelButtonText: '取消',
|
|
7130
7123
|
type: 'warning'
|
|
7131
7124
|
}).then(function () {
|
|
7132
|
-
|
|
7133
|
-
if (typeof
|
|
7134
|
-
util["a" /* default */].win.open(
|
|
7125
|
+
_this11.operationCheckCode = results.checkCode;
|
|
7126
|
+
if (typeof _this11.forget === 'string') {
|
|
7127
|
+
util["a" /* default */].win.open(_this11.forgetUrl);
|
|
7135
7128
|
} else {
|
|
7136
|
-
|
|
7129
|
+
_this11.showResetPassword = true;
|
|
7137
7130
|
}
|
|
7138
7131
|
}).catch(function (e) {});
|
|
7139
7132
|
break;
|
|
@@ -7174,13 +7167,13 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7174
7167
|
type: 'error',
|
|
7175
7168
|
duration: 1500,
|
|
7176
7169
|
onClose: function onClose() {
|
|
7177
|
-
if (
|
|
7170
|
+
if (_this11.code) {
|
|
7178
7171
|
window.location.href = util["a" /* default */].delUrlParam({ key: 'code' });
|
|
7179
7172
|
if (window.location.hash) {
|
|
7180
7173
|
location.reload();
|
|
7181
7174
|
}
|
|
7182
7175
|
} else {
|
|
7183
|
-
|
|
7176
|
+
_this11.getImgCode();
|
|
7184
7177
|
}
|
|
7185
7178
|
}
|
|
7186
7179
|
});
|
|
@@ -7190,15 +7183,15 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7190
7183
|
}
|
|
7191
7184
|
},
|
|
7192
7185
|
handleAssistance: function handleAssistance(data) {
|
|
7193
|
-
var
|
|
7186
|
+
var _this12 = this;
|
|
7194
7187
|
|
|
7195
7188
|
clearTimeout(this.doAssistance);
|
|
7196
7189
|
this.doAssistance = setTimeout(function () {
|
|
7197
|
-
|
|
7190
|
+
_this12.doAssistanceLogin(data);
|
|
7198
7191
|
}, this.scanIntervalTime);
|
|
7199
7192
|
},
|
|
7200
7193
|
doAssistanceLogin: function doAssistanceLogin(data) {
|
|
7201
|
-
var
|
|
7194
|
+
var _this13 = this;
|
|
7202
7195
|
|
|
7203
7196
|
util["a" /* default */].ajax({
|
|
7204
7197
|
method: 'post',
|
|
@@ -7208,19 +7201,19 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7208
7201
|
if (res.rCode === 0) {
|
|
7209
7202
|
var results = res.results;
|
|
7210
7203
|
if (results.statusCode === 0) {
|
|
7211
|
-
clearTimeout(
|
|
7212
|
-
|
|
7204
|
+
clearTimeout(_this13.doAssistance);
|
|
7205
|
+
_this13.handleResults(results, 3);
|
|
7213
7206
|
} else {
|
|
7214
|
-
|
|
7207
|
+
_this13.handleAssistance(data);
|
|
7215
7208
|
}
|
|
7216
7209
|
} else {
|
|
7217
|
-
clearTimeout(
|
|
7218
|
-
|
|
7210
|
+
clearTimeout(_this13.doAssistance);
|
|
7211
|
+
_this13.$message.error(res.msg);
|
|
7219
7212
|
}
|
|
7220
7213
|
}).catch(function (err) {
|
|
7221
|
-
clearTimeout(
|
|
7214
|
+
clearTimeout(_this13.doAssistance);
|
|
7222
7215
|
if (err.message && err.message !== 'canceled') {
|
|
7223
|
-
|
|
7216
|
+
_this13.$message.error(err.message);
|
|
7224
7217
|
}
|
|
7225
7218
|
});
|
|
7226
7219
|
},
|