eoss-ui 0.6.40 → 0.6.41
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/button-group.js +5 -0
- package/lib/button.js +5 -0
- package/lib/checkbox-group.js +5 -0
- package/lib/data-table-form.js +5 -0
- package/lib/data-table.js +11 -6
- package/lib/date-picker.js +5 -0
- package/lib/dialog.js +5 -0
- package/lib/eoss-ui.common.js +831 -433
- package/lib/flow-group.js +5 -0
- package/lib/flow-list.js +5 -0
- package/lib/flow.js +37 -35
- package/lib/form.js +5 -0
- package/lib/handle-user.js +5 -0
- package/lib/handler.js +152 -76
- package/lib/icon.js +5 -0
- package/lib/icons.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +5 -0
- package/lib/input.js +5 -0
- package/lib/login.js +248 -160
- package/lib/main.js +329 -113
- package/lib/nav.js +5 -0
- package/lib/page.js +5 -0
- package/lib/pagination.js +5 -0
- package/lib/player.js +5 -0
- package/lib/qr-code.js +5 -0
- package/lib/radio-group.js +5 -0
- package/lib/retrial-auth.js +5 -0
- package/lib/select-ganged.js +5 -0
- package/lib/select.js +5 -0
- package/lib/selector-panel.js +7 -3
- package/lib/selector.js +42 -5
- package/lib/sizer.js +5 -0
- package/lib/steps.js +5 -0
- package/lib/switch.js +5 -0
- package/lib/table-form.js +5 -0
- package/lib/tabs.js +5 -0
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +5 -0
- package/lib/tree-group.js +5 -0
- package/lib/tree.js +5 -0
- package/lib/upload.js +5 -0
- package/lib/utils/util.js +5 -0
- package/lib/wujie.js +5 -0
- package/lib/wxlogin.js +5 -0
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/data-table/.DS_Store +0 -0
- package/packages/data-table/src/main.vue +3 -1
- package/packages/flow/.DS_Store +0 -0
- package/packages/flow/src/component/taskUnionExamine.vue +34 -26
- package/packages/flow/src/main.vue +0 -2
- package/packages/flow/src/processForm.vue +29 -18
- package/packages/flow/src/reset.vue +0 -2
- package/packages/handler/src/main.vue +163 -77
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +61 -18
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +32 -3
- package/packages/main/src/public/search.vue +14 -7
- package/packages/main/src/simplicity/handler.vue +64 -26
- package/packages/main/src/simplicity/index.vue +80 -26
- package/packages/selector/.DS_Store +0 -0
- package/packages/selector/src/main.vue +17 -5
- package/packages/selector-panel/.DS_Store +0 -0
- package/packages/selector-panel/src/main.vue +0 -1
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/icon.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/icon.scss +29 -0
- package/packages/theme-chalk/src/login.scss +8 -0
- package/packages/theme-chalk/src/main.scss +7 -0
- package/src/.DS_Store +0 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +5 -0
package/lib/login.js
CHANGED
|
@@ -559,6 +559,7 @@ var ajaxStream = function ajaxStream(_ref2) {
|
|
|
559
559
|
var lastProcessedIndex = 0;
|
|
560
560
|
var done = false;
|
|
561
561
|
var finishThink = false;
|
|
562
|
+
var hasThink = false;
|
|
562
563
|
ajax(_extends({
|
|
563
564
|
timeout: 990000,
|
|
564
565
|
format: false,
|
|
@@ -612,8 +613,12 @@ var ajaxStream = function ajaxStream(_ref2) {
|
|
|
612
613
|
var start = parsedData.message.match(startRegex);
|
|
613
614
|
var end = parsedData.message.match(endRegex);
|
|
614
615
|
if (start) {
|
|
616
|
+
hasThink = true;
|
|
615
617
|
var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
|
|
616
618
|
info.thinkContent += _thinkContent;
|
|
619
|
+
} else if (hasThink === false) {
|
|
620
|
+
info.content += parsedData.message;
|
|
621
|
+
chunks += parsedData.message;
|
|
617
622
|
} else {
|
|
618
623
|
if (end) {
|
|
619
624
|
finishThink = true;
|
|
@@ -4235,7 +4240,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
|
|
|
4235
4240
|
// ESM COMPAT FLAG
|
|
4236
4241
|
__webpack_require__.r(__webpack_exports__);
|
|
4237
4242
|
|
|
4238
|
-
// 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=
|
|
4243
|
+
// 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=68362bbf&
|
|
4239
4244
|
var render = function () {
|
|
4240
4245
|
var _vm = this
|
|
4241
4246
|
var _h = _vm.$createElement
|
|
@@ -4332,7 +4337,8 @@ var render = function () {
|
|
|
4332
4337
|
},
|
|
4333
4338
|
},
|
|
4334
4339
|
[
|
|
4335
|
-
this.mode == "complex"
|
|
4340
|
+
this.mode == "complex" &&
|
|
4341
|
+
_vm.loginModel.indexOf("3") > -1
|
|
4336
4342
|
? [
|
|
4337
4343
|
_vm._l(_vm.switchs, function (item) {
|
|
4338
4344
|
return [
|
|
@@ -4344,9 +4350,10 @@ var render = function () {
|
|
|
4344
4350
|
{
|
|
4345
4351
|
name: "show",
|
|
4346
4352
|
rawName: "v-show",
|
|
4347
|
-
value:
|
|
4353
|
+
value:
|
|
4354
|
+
_vm.switchActive != item.type,
|
|
4348
4355
|
expression:
|
|
4349
|
-
"
|
|
4356
|
+
"switchActive != item.type",
|
|
4350
4357
|
},
|
|
4351
4358
|
],
|
|
4352
4359
|
key: item.type + "_0",
|
|
@@ -4400,42 +4407,76 @@ var render = function () {
|
|
|
4400
4407
|
]
|
|
4401
4408
|
}),
|
|
4402
4409
|
]
|
|
4403
|
-
:
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4410
|
+
: [
|
|
4411
|
+
_vm._l(_vm.icons, function (item) {
|
|
4412
|
+
return [
|
|
4413
|
+
_c(
|
|
4414
|
+
"div",
|
|
4408
4415
|
{
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
+
directives: [
|
|
4417
|
+
{
|
|
4418
|
+
name: "show",
|
|
4419
|
+
rawName: "v-show",
|
|
4420
|
+
value:
|
|
4421
|
+
_vm.modelLength == 2 &&
|
|
4422
|
+
_vm.active != item.type &&
|
|
4423
|
+
_vm.modelTips,
|
|
4424
|
+
expression:
|
|
4425
|
+
"modelLength == 2 && active != item.type && modelTips",
|
|
4426
|
+
},
|
|
4427
|
+
],
|
|
4428
|
+
key: item.type,
|
|
4429
|
+
staticClass: "es-login-model-item-tips",
|
|
4416
4430
|
},
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4431
|
+
[
|
|
4432
|
+
_vm._v(
|
|
4433
|
+
"\n " +
|
|
4434
|
+
_vm._s(item.name) +
|
|
4435
|
+
"点这里"
|
|
4436
|
+
),
|
|
4437
|
+
_c("i", {
|
|
4438
|
+
staticClass: "es-icon-zhixiangyou",
|
|
4439
|
+
}),
|
|
4440
|
+
]
|
|
4441
|
+
),
|
|
4442
|
+
_c(
|
|
4443
|
+
"span",
|
|
4421
4444
|
{
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4445
|
+
directives: [
|
|
4446
|
+
{
|
|
4447
|
+
name: "show",
|
|
4448
|
+
rawName: "v-show",
|
|
4449
|
+
value:
|
|
4450
|
+
_vm.modelLength > 2 ||
|
|
4451
|
+
_vm.active != item.type,
|
|
4452
|
+
expression:
|
|
4453
|
+
"modelLength > 2 || active != item.type",
|
|
4454
|
+
},
|
|
4455
|
+
],
|
|
4456
|
+
key: item.name,
|
|
4457
|
+
staticClass: "es-icon-box",
|
|
4458
|
+
class: [
|
|
4459
|
+
{
|
|
4460
|
+
"es-icon-active":
|
|
4461
|
+
_vm.active == item.type,
|
|
4462
|
+
},
|
|
4463
|
+
],
|
|
4464
|
+
attrs: { title: item.name },
|
|
4465
|
+
on: {
|
|
4466
|
+
click: function ($event) {
|
|
4467
|
+
_vm.switchLogin(item)
|
|
4468
|
+
},
|
|
4469
|
+
},
|
|
4433
4470
|
},
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4471
|
+
[
|
|
4472
|
+
_c("i", {
|
|
4473
|
+
class: [item.icon, "es-icon"],
|
|
4474
|
+
}),
|
|
4475
|
+
]
|
|
4476
|
+
),
|
|
4477
|
+
]
|
|
4478
|
+
}),
|
|
4479
|
+
],
|
|
4439
4480
|
],
|
|
4440
4481
|
2
|
|
4441
4482
|
)
|
|
@@ -4956,7 +4997,9 @@ var render = function () {
|
|
|
4956
4997
|
]
|
|
4957
4998
|
)
|
|
4958
4999
|
: _vm._e(),
|
|
4959
|
-
_vm.active == 3 &&
|
|
5000
|
+
_vm.active == 3 &&
|
|
5001
|
+
_vm.loginModel.indexOf("0") > -1 &&
|
|
5002
|
+
_vm.mode == "complex"
|
|
4960
5003
|
? _c("div", { staticClass: "es-to-login" }, [
|
|
4961
5004
|
_c(
|
|
4962
5005
|
"span",
|
|
@@ -5387,7 +5430,7 @@ var staticRenderFns = [
|
|
|
5387
5430
|
render._withStripped = true
|
|
5388
5431
|
|
|
5389
5432
|
|
|
5390
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
5433
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=68362bbf&
|
|
5391
5434
|
|
|
5392
5435
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
5393
5436
|
var regenerator_ = __webpack_require__(14);
|
|
@@ -6433,6 +6476,23 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
6433
6476
|
//
|
|
6434
6477
|
//
|
|
6435
6478
|
//
|
|
6479
|
+
//
|
|
6480
|
+
//
|
|
6481
|
+
//
|
|
6482
|
+
//
|
|
6483
|
+
//
|
|
6484
|
+
//
|
|
6485
|
+
//
|
|
6486
|
+
//
|
|
6487
|
+
//
|
|
6488
|
+
//
|
|
6489
|
+
//
|
|
6490
|
+
//
|
|
6491
|
+
//
|
|
6492
|
+
//
|
|
6493
|
+
//
|
|
6494
|
+
//
|
|
6495
|
+
//
|
|
6436
6496
|
|
|
6437
6497
|
|
|
6438
6498
|
|
|
@@ -6500,6 +6560,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6500
6560
|
type: Boolean,
|
|
6501
6561
|
default: true
|
|
6502
6562
|
},
|
|
6563
|
+
modelTips: Boolean,
|
|
6503
6564
|
model: {
|
|
6504
6565
|
type: Object,
|
|
6505
6566
|
default: function _default() {
|
|
@@ -6746,10 +6807,14 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6746
6807
|
0: { type: '0', icon: 'es-icon-zhanghaodenglu', name: '账号登录' },
|
|
6747
6808
|
1: { type: '1', icon: 'es-icon-ca', name: '证书登录' },
|
|
6748
6809
|
3: { type: '3', icon: 'es-icon-saomadenglu', name: '扫码登录' },
|
|
6749
|
-
6: { type: '6', icon: 'es-icon-
|
|
6810
|
+
6: { type: '6', icon: 'es-icon-duanxindenglu', name: '短信登录' },
|
|
6750
6811
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
6751
6812
|
9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
|
|
6752
|
-
11: {
|
|
6813
|
+
11: {
|
|
6814
|
+
type: '11',
|
|
6815
|
+
icon: 'es-icon-youxiangdenglu',
|
|
6816
|
+
name: '邮箱登录'
|
|
6817
|
+
},
|
|
6753
6818
|
12: { type: '12', icon: 'es-icon-zhanghaodenglu', name: '账号登录' //双因素
|
|
6754
6819
|
} };
|
|
6755
6820
|
},
|
|
@@ -6784,8 +6849,16 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6784
6849
|
loginModel: {
|
|
6785
6850
|
immediate: true,
|
|
6786
6851
|
handler: function handler(val) {
|
|
6852
|
+
var _this2 = this;
|
|
6853
|
+
|
|
6787
6854
|
this.active = val.split(',')[0];
|
|
6788
6855
|
this.title = this.iconfonts[this.active].name;
|
|
6856
|
+
this.switchs.forEach(function (item) {
|
|
6857
|
+
if (item.type == _this2.active) {
|
|
6858
|
+
_this2.switchActive = item.type;
|
|
6859
|
+
return;
|
|
6860
|
+
}
|
|
6861
|
+
});
|
|
6789
6862
|
}
|
|
6790
6863
|
},
|
|
6791
6864
|
active: {
|
|
@@ -6951,7 +7024,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6951
7024
|
loginBoxAlign && (this.align = loginBoxAlign);
|
|
6952
7025
|
},
|
|
6953
7026
|
doWechatLogin: function doWechatLogin(code) {
|
|
6954
|
-
var
|
|
7027
|
+
var _this3 = this;
|
|
6955
7028
|
|
|
6956
7029
|
util["a" /* default */].ajax({
|
|
6957
7030
|
method: 'post',
|
|
@@ -6960,10 +7033,10 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6960
7033
|
}).then(function (res) {
|
|
6961
7034
|
if (res.rCode == 0) {
|
|
6962
7035
|
var results = res.results;
|
|
6963
|
-
|
|
7036
|
+
_this3.handleResults(results);
|
|
6964
7037
|
} else {
|
|
6965
7038
|
var msg = res.results && res.results.msg ? res.results.msg : res.msg;
|
|
6966
|
-
|
|
7039
|
+
_this3.$message({
|
|
6967
7040
|
message: msg || '系统错误,请联系管理员!',
|
|
6968
7041
|
type: 'error',
|
|
6969
7042
|
duration: 1500,
|
|
@@ -6977,7 +7050,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6977
7050
|
}
|
|
6978
7051
|
}).catch(function (err) {
|
|
6979
7052
|
if (err.message && err.message !== 'canceled') {
|
|
6980
|
-
|
|
7053
|
+
_this3.$message.error(err.message);
|
|
6981
7054
|
}
|
|
6982
7055
|
});
|
|
6983
7056
|
},
|
|
@@ -7106,7 +7179,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7106
7179
|
}
|
|
7107
7180
|
},
|
|
7108
7181
|
switchLogin: function switchLogin(res) {
|
|
7109
|
-
var
|
|
7182
|
+
var _this4 = this;
|
|
7110
7183
|
|
|
7111
7184
|
if (res != 1) {
|
|
7112
7185
|
this.active = res.type;
|
|
@@ -7116,18 +7189,33 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7116
7189
|
this.countdown = 0;
|
|
7117
7190
|
this.$emit('change-type', res, this.identifyingId);
|
|
7118
7191
|
this.$nextTick(function () {
|
|
7119
|
-
var ref = 'login' +
|
|
7120
|
-
|
|
7192
|
+
var ref = 'login' + _this4.active;
|
|
7193
|
+
_this4.$refs[ref] && _this4.$refs[ref].clearValidate();
|
|
7121
7194
|
});
|
|
7122
7195
|
},
|
|
7123
7196
|
switchLoginType: function switchLoginType(res) {
|
|
7124
|
-
var
|
|
7197
|
+
var _this5 = this;
|
|
7125
7198
|
|
|
7126
7199
|
this.countdown = 0;
|
|
7127
7200
|
if (res) {
|
|
7128
|
-
this.active = res.type;
|
|
7129
|
-
this.title = res.name || '';
|
|
7130
7201
|
this.switchActive = res.type;
|
|
7202
|
+
this.title = res.name || '';
|
|
7203
|
+
if (this.loginModel.indexOf(res.type) > -1) {
|
|
7204
|
+
this.active = res.type;
|
|
7205
|
+
} else {
|
|
7206
|
+
var other = this.switchs.filter(function (item) {
|
|
7207
|
+
return item.type != res.type;
|
|
7208
|
+
})[0];
|
|
7209
|
+
var model = this.loginModel.split(',').filter(function (item) {
|
|
7210
|
+
return item != res.type && item != other.type;
|
|
7211
|
+
})[0];
|
|
7212
|
+
if (model) {
|
|
7213
|
+
this.active = model;
|
|
7214
|
+
this.title = this.iconfonts[model].name;
|
|
7215
|
+
} else {
|
|
7216
|
+
console.error('complex风格的登录方式,loginModel配置错误!');
|
|
7217
|
+
}
|
|
7218
|
+
}
|
|
7131
7219
|
} else {
|
|
7132
7220
|
this.active = this.switchs[0].type;
|
|
7133
7221
|
this.title = '';
|
|
@@ -7135,15 +7223,15 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7135
7223
|
}
|
|
7136
7224
|
this.$emit('change-type', res, this.identifyingId);
|
|
7137
7225
|
this.$nextTick(function () {
|
|
7138
|
-
var ref = 'login' +
|
|
7139
|
-
|
|
7226
|
+
var ref = 'login' + _this5.active;
|
|
7227
|
+
_this5.$refs[ref] && _this5.$refs[ref].clearValidate();
|
|
7140
7228
|
});
|
|
7141
7229
|
},
|
|
7142
7230
|
isShow: function isShow(res) {
|
|
7143
7231
|
return this.loginModel.indexOf(res) > -1;
|
|
7144
7232
|
},
|
|
7145
7233
|
getLogin: function getLogin() {
|
|
7146
|
-
var
|
|
7234
|
+
var _this6 = this;
|
|
7147
7235
|
|
|
7148
7236
|
return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
|
|
7149
7237
|
var config;
|
|
@@ -7154,10 +7242,10 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7154
7242
|
config = util["a" /* default */].getStorage('initLogin');
|
|
7155
7243
|
|
|
7156
7244
|
if (config) {
|
|
7157
|
-
|
|
7245
|
+
_this6.setConfig(JSON.parse(config));
|
|
7158
7246
|
}
|
|
7159
7247
|
_context.next = 4;
|
|
7160
|
-
return util["a" /* default */].ajax({ url:
|
|
7248
|
+
return util["a" /* default */].ajax({ url: _this6.initLogin }).then(function (res) {
|
|
7161
7249
|
if (res && res.rCode === 0) {
|
|
7162
7250
|
store["a" /* default */].set('initLogin', res.results);
|
|
7163
7251
|
util["a" /* default */].setStorage({
|
|
@@ -7165,10 +7253,10 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7165
7253
|
key: 'initLogin',
|
|
7166
7254
|
value: JSON.stringify(res.results)
|
|
7167
7255
|
});
|
|
7168
|
-
|
|
7169
|
-
|
|
7256
|
+
_this6.$emit('initLogin', res.results);
|
|
7257
|
+
_this6.setConfig(res.results);
|
|
7170
7258
|
} else {
|
|
7171
|
-
|
|
7259
|
+
_this6.$message({
|
|
7172
7260
|
message: res.msg || '系统错误,请联系管理员!',
|
|
7173
7261
|
type: 'error',
|
|
7174
7262
|
duration: 2000
|
|
@@ -7176,7 +7264,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7176
7264
|
}
|
|
7177
7265
|
}).catch(function (err) {
|
|
7178
7266
|
if (err.message && err.message !== 'canceled') {
|
|
7179
|
-
|
|
7267
|
+
_this6.$message.error(err.message);
|
|
7180
7268
|
}
|
|
7181
7269
|
});
|
|
7182
7270
|
|
|
@@ -7185,7 +7273,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7185
7273
|
return _context.stop();
|
|
7186
7274
|
}
|
|
7187
7275
|
}
|
|
7188
|
-
}, _callee,
|
|
7276
|
+
}, _callee, _this6);
|
|
7189
7277
|
}))();
|
|
7190
7278
|
},
|
|
7191
7279
|
setConfig: function setConfig(res) {
|
|
@@ -7320,7 +7408,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7320
7408
|
return this.imageCode;
|
|
7321
7409
|
},
|
|
7322
7410
|
getCode: function getCode() {
|
|
7323
|
-
var
|
|
7411
|
+
var _this7 = this;
|
|
7324
7412
|
|
|
7325
7413
|
if (this.countdown) {
|
|
7326
7414
|
return false;
|
|
@@ -7362,14 +7450,14 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7362
7450
|
}
|
|
7363
7451
|
this.countdown = 60;
|
|
7364
7452
|
this.timer = setInterval(function () {
|
|
7365
|
-
if (
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7453
|
+
if (_this7.countdown > 0) {
|
|
7454
|
+
_this7.countdown--;
|
|
7455
|
+
_this7.disabled = true;
|
|
7456
|
+
_this7.btnText = '重新获取' + _this7.countdown + 's';
|
|
7369
7457
|
} else {
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7458
|
+
_this7.btnText = '重新获取';
|
|
7459
|
+
_this7.disabled = false;
|
|
7460
|
+
_this7.submit = false;
|
|
7373
7461
|
}
|
|
7374
7462
|
}, 1000);
|
|
7375
7463
|
util["a" /* default */].ajax({
|
|
@@ -7377,26 +7465,26 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7377
7465
|
url: this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
|
|
7378
7466
|
data: data
|
|
7379
7467
|
}).then(function (res) {
|
|
7380
|
-
|
|
7468
|
+
_this7.$message({
|
|
7381
7469
|
message: res.msg,
|
|
7382
7470
|
duration: 2000,
|
|
7383
7471
|
type: res.rCode == 0 ? 'success' : 'error'
|
|
7384
7472
|
});
|
|
7385
7473
|
|
|
7386
7474
|
if (res.rCode === 2) {
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
clearInterval(
|
|
7475
|
+
_this7.btnText = '获取验证码';
|
|
7476
|
+
_this7.disabled = false;
|
|
7477
|
+
_this7.countdown = 0;
|
|
7478
|
+
clearInterval(_this7.timer);
|
|
7391
7479
|
}
|
|
7392
7480
|
}).catch(function (err) {
|
|
7393
7481
|
if (err.message && err.message !== 'canceled') {
|
|
7394
|
-
|
|
7482
|
+
_this7.$message.error(err.message);
|
|
7395
7483
|
}
|
|
7396
7484
|
});
|
|
7397
7485
|
},
|
|
7398
7486
|
handleLogin: function handleLogin() {
|
|
7399
|
-
var
|
|
7487
|
+
var _this8 = this;
|
|
7400
7488
|
|
|
7401
7489
|
if (this.submit) {
|
|
7402
7490
|
return false;
|
|
@@ -7404,40 +7492,40 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7404
7492
|
var ref = 'login' + this.active;
|
|
7405
7493
|
this.$refs[ref].validate(function (valid) {
|
|
7406
7494
|
if (valid) {
|
|
7407
|
-
|
|
7495
|
+
_this8.submit = true;
|
|
7408
7496
|
var param = util["a" /* default */].getParams() || {};
|
|
7409
|
-
var data =
|
|
7410
|
-
username:
|
|
7411
|
-
password:
|
|
7412
|
-
data:
|
|
7413
|
-
key:
|
|
7414
|
-
}) :
|
|
7415
|
-
identifyingCode:
|
|
7416
|
-
identifyingId:
|
|
7417
|
-
} :
|
|
7418
|
-
username:
|
|
7419
|
-
password:
|
|
7420
|
-
data:
|
|
7421
|
-
key:
|
|
7422
|
-
}) :
|
|
7423
|
-
targetType:
|
|
7424
|
-
verificationCode:
|
|
7497
|
+
var data = _this8.active == '0' ? {
|
|
7498
|
+
username: _this8.formData.username,
|
|
7499
|
+
password: _this8.secret && _this8.isEncrypt ? util["a" /* default */].esmEncrypt({
|
|
7500
|
+
data: _this8.formData.password,
|
|
7501
|
+
key: _this8.secret
|
|
7502
|
+
}) : _this8.formData.password,
|
|
7503
|
+
identifyingCode: _this8.formData.identifyingCode,
|
|
7504
|
+
identifyingId: _this8.identifyingId
|
|
7505
|
+
} : _this8.active == '12' ? {
|
|
7506
|
+
username: _this8.formData.username,
|
|
7507
|
+
password: _this8.secret && _this8.isEncrypt ? util["a" /* default */].esmEncrypt({
|
|
7508
|
+
data: _this8.formData.password,
|
|
7509
|
+
key: _this8.secret
|
|
7510
|
+
}) : _this8.formData.password,
|
|
7511
|
+
targetType: _this8.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
|
|
7512
|
+
verificationCode: _this8.formData.identifyingCode
|
|
7425
7513
|
} : {
|
|
7426
|
-
target:
|
|
7427
|
-
verificationCode:
|
|
7428
|
-
targetType:
|
|
7514
|
+
target: _this8.formData.target,
|
|
7515
|
+
verificationCode: _this8.formData.verificationCode,
|
|
7516
|
+
targetType: _this8.active == '6' ? 'SMS' : 'EMAIL'
|
|
7429
7517
|
};
|
|
7430
|
-
if (
|
|
7431
|
-
if (
|
|
7432
|
-
|
|
7518
|
+
if (_this8.onLogin) {
|
|
7519
|
+
if (_this8.active == '0') {
|
|
7520
|
+
_this8.onLogin(mainvue_type_script_lang_js_extends({}, param, data), _this8.getImgCode, _this8.handleRemember);
|
|
7433
7521
|
} else {
|
|
7434
|
-
|
|
7522
|
+
_this8.onLogin(mainvue_type_script_lang_js_extends({}, param, data));
|
|
7435
7523
|
}
|
|
7436
7524
|
} else {
|
|
7437
|
-
|
|
7525
|
+
_this8.handleUserLogin(mainvue_type_script_lang_js_extends({}, param, _this8.param, data));
|
|
7438
7526
|
}
|
|
7439
7527
|
} else {
|
|
7440
|
-
|
|
7528
|
+
_this8.submit = false;
|
|
7441
7529
|
return false;
|
|
7442
7530
|
}
|
|
7443
7531
|
});
|
|
@@ -7453,7 +7541,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7453
7541
|
}
|
|
7454
7542
|
},
|
|
7455
7543
|
handleUserLogin: function handleUserLogin(data) {
|
|
7456
|
-
var
|
|
7544
|
+
var _this9 = this;
|
|
7457
7545
|
|
|
7458
7546
|
var extUserBindHandleId = sessionStorage.getItem('extUserBindHandleId');
|
|
7459
7547
|
util["a" /* default */].ajax({
|
|
@@ -7461,68 +7549,68 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7461
7549
|
url: this.active == '0' ? this.actionUrl : this.active == '12' ? this.doTwoFactorLogin : this.doCodeLogin,
|
|
7462
7550
|
data: extUserBindHandleId ? mainvue_type_script_lang_js_extends({}, data, { extUserBindHandleId: extUserBindHandleId }) : data
|
|
7463
7551
|
}).then(function (res) {
|
|
7464
|
-
|
|
7552
|
+
_this9.submit = false;
|
|
7465
7553
|
if (res.rCode == 0) {
|
|
7466
7554
|
util["a" /* default */].removeStorage('extUserBindHandleId');
|
|
7467
|
-
|
|
7555
|
+
_this9.handleRemember();
|
|
7468
7556
|
var results = res.results;
|
|
7469
|
-
|
|
7470
|
-
if (
|
|
7471
|
-
|
|
7557
|
+
_this9.handleResults(results);
|
|
7558
|
+
if (_this9.onSuccess) {
|
|
7559
|
+
_this9.onSuccess(res);
|
|
7472
7560
|
}
|
|
7473
7561
|
} else {
|
|
7474
7562
|
var msg = res.results && res.results.msg ? res.results.msg : res.msg;
|
|
7475
|
-
|
|
7563
|
+
_this9.$message({
|
|
7476
7564
|
message: msg || '系统错误,请联系管理员!',
|
|
7477
7565
|
type: 'error',
|
|
7478
7566
|
duration: 1500,
|
|
7479
7567
|
onClose: function onClose() {
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
clearInterval(
|
|
7484
|
-
|
|
7568
|
+
_this9.btnText = '获取验证码';
|
|
7569
|
+
_this9.disabled = false;
|
|
7570
|
+
_this9.countdown = 0;
|
|
7571
|
+
clearInterval(_this9.timer);
|
|
7572
|
+
_this9.getImgCode();
|
|
7485
7573
|
}
|
|
7486
7574
|
});
|
|
7487
|
-
|
|
7575
|
+
_this9.onError(res);
|
|
7488
7576
|
}
|
|
7489
7577
|
}).catch(function (err) {
|
|
7490
|
-
|
|
7578
|
+
_this9.submit = false;
|
|
7491
7579
|
if (err.message && err.message !== 'canceled') {
|
|
7492
|
-
|
|
7580
|
+
_this9.$message.error(err.message);
|
|
7493
7581
|
}
|
|
7494
7582
|
});
|
|
7495
7583
|
},
|
|
7496
7584
|
caLogin: function caLogin(signedData) {
|
|
7497
|
-
var
|
|
7585
|
+
var _this10 = this;
|
|
7498
7586
|
|
|
7499
7587
|
util["a" /* default */].ajax({
|
|
7500
7588
|
method: 'post',
|
|
7501
7589
|
url: this.caAction,
|
|
7502
7590
|
data: { identifyingId: this.identifyingId, signedData: signedData }
|
|
7503
7591
|
}).then(function (res) {
|
|
7504
|
-
|
|
7592
|
+
_this10.submit = false;
|
|
7505
7593
|
if (res.rCode == 0) {
|
|
7506
7594
|
var results = res.results;
|
|
7507
|
-
|
|
7508
|
-
if (
|
|
7509
|
-
|
|
7595
|
+
_this10.handleResults(results);
|
|
7596
|
+
if (_this10.onSuccess) {
|
|
7597
|
+
_this10.onSuccess(res);
|
|
7510
7598
|
}
|
|
7511
7599
|
} else {
|
|
7512
7600
|
var msg = res.results && res.results.msg ? res.results.msg : res.msg;
|
|
7513
|
-
|
|
7601
|
+
_this10.$message({
|
|
7514
7602
|
message: msg || '系统错误,请联系管理员!',
|
|
7515
7603
|
type: 'error',
|
|
7516
7604
|
duration: 1500,
|
|
7517
7605
|
onClose: function onClose() {
|
|
7518
|
-
|
|
7606
|
+
_this10.getImgCode();
|
|
7519
7607
|
}
|
|
7520
7608
|
});
|
|
7521
|
-
|
|
7609
|
+
_this10.onError(res);
|
|
7522
7610
|
}
|
|
7523
7611
|
}).catch(function (err) {
|
|
7524
7612
|
if (err.message && err.message !== 'canceled') {
|
|
7525
|
-
|
|
7613
|
+
_this10.$message.error(err.message);
|
|
7526
7614
|
}
|
|
7527
7615
|
});
|
|
7528
7616
|
},
|
|
@@ -7539,17 +7627,17 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7539
7627
|
|
|
7540
7628
|
//获取app登录信息
|
|
7541
7629
|
loginInfo: function loginInfo(res) {
|
|
7542
|
-
var
|
|
7630
|
+
var _this11 = this;
|
|
7543
7631
|
|
|
7544
7632
|
clearTimeout(this.interval);
|
|
7545
7633
|
if (res) {
|
|
7546
7634
|
this.interval = setTimeout(function () {
|
|
7547
|
-
|
|
7635
|
+
_this11.initRequestLoginInfo();
|
|
7548
7636
|
}, this.scanIntervalTime);
|
|
7549
7637
|
}
|
|
7550
7638
|
},
|
|
7551
7639
|
initRequestLoginInfo: function initRequestLoginInfo() {
|
|
7552
|
-
var
|
|
7640
|
+
var _this12 = this;
|
|
7553
7641
|
|
|
7554
7642
|
if (this.identifyingId == '') {
|
|
7555
7643
|
return false;
|
|
@@ -7564,21 +7652,21 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7564
7652
|
if (res.rCode === 0) {
|
|
7565
7653
|
var results = res.results;
|
|
7566
7654
|
if (results.statusCode === 0) {
|
|
7567
|
-
clearTimeout(
|
|
7568
|
-
|
|
7655
|
+
clearTimeout(_this12.interval);
|
|
7656
|
+
_this12.handleResults(results, 3);
|
|
7569
7657
|
} else {
|
|
7570
|
-
|
|
7658
|
+
_this12.loginInfo(true);
|
|
7571
7659
|
}
|
|
7572
7660
|
}
|
|
7573
7661
|
}).catch(function (err) {
|
|
7574
|
-
clearTimeout(
|
|
7662
|
+
clearTimeout(_this12.interval);
|
|
7575
7663
|
if (err.message && err.message !== 'canceled') {
|
|
7576
|
-
|
|
7664
|
+
_this12.$message.error(err.message);
|
|
7577
7665
|
}
|
|
7578
7666
|
});
|
|
7579
7667
|
},
|
|
7580
7668
|
handleResults: function handleResults(results, type) {
|
|
7581
|
-
var
|
|
7669
|
+
var _this13 = this;
|
|
7582
7670
|
|
|
7583
7671
|
switch (results.statusCode) {
|
|
7584
7672
|
case 0:
|
|
@@ -7603,9 +7691,9 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7603
7691
|
});
|
|
7604
7692
|
this.showLaunch = true;
|
|
7605
7693
|
setTimeout(function () {
|
|
7606
|
-
if (
|
|
7607
|
-
window.location.href =
|
|
7608
|
-
} else if (results.doorIndex &&
|
|
7694
|
+
if (_this13.toUrl) {
|
|
7695
|
+
window.location.href = _this13.toUrl;
|
|
7696
|
+
} else if (results.doorIndex && _this13.doorIndex) {
|
|
7609
7697
|
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
7610
7698
|
localStorage.setItem('isLogined', true);
|
|
7611
7699
|
window.location.href = results.doorIndex;
|
|
@@ -7613,9 +7701,9 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7613
7701
|
if (window.location.href.indexOf('login.html') > -1) {
|
|
7614
7702
|
window.location.href = './main.html';
|
|
7615
7703
|
} else {
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7704
|
+
_this13.$router.push({ name: 'main' });
|
|
7705
|
+
_this13.$nextTick(function () {
|
|
7706
|
+
_this13.showLaunch = false;
|
|
7619
7707
|
});
|
|
7620
7708
|
}
|
|
7621
7709
|
}
|
|
@@ -7626,9 +7714,9 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7626
7714
|
type: 'success',
|
|
7627
7715
|
duration: 1500,
|
|
7628
7716
|
onClose: function onClose() {
|
|
7629
|
-
if (
|
|
7630
|
-
window.location.href =
|
|
7631
|
-
} else if (results.doorIndex &&
|
|
7717
|
+
if (_this13.toUrl) {
|
|
7718
|
+
window.location.href = _this13.toUrl;
|
|
7719
|
+
} else if (results.doorIndex && _this13.doorIndex) {
|
|
7632
7720
|
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
7633
7721
|
localStorage.setItem('isLogined', true);
|
|
7634
7722
|
window.location.href = results.doorIndex;
|
|
@@ -7636,7 +7724,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7636
7724
|
if (window.location.href.indexOf('login.html') > -1) {
|
|
7637
7725
|
window.location.href = './main.html';
|
|
7638
7726
|
} else {
|
|
7639
|
-
|
|
7727
|
+
_this13.$router.push({ name: 'main' });
|
|
7640
7728
|
}
|
|
7641
7729
|
}
|
|
7642
7730
|
}
|
|
@@ -7649,11 +7737,11 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7649
7737
|
//cancelButtonText: '取消',
|
|
7650
7738
|
type: 'warning'
|
|
7651
7739
|
}).then(function () {
|
|
7652
|
-
|
|
7653
|
-
if (typeof
|
|
7654
|
-
util["a" /* default */].win.open(
|
|
7740
|
+
_this13.operationCheckCode = results.checkCode;
|
|
7741
|
+
if (typeof _this13.forgetUrl === 'string') {
|
|
7742
|
+
util["a" /* default */].win.open(_this13.forgetUrl);
|
|
7655
7743
|
} else {
|
|
7656
|
-
|
|
7744
|
+
_this13.showResetPassword = true;
|
|
7657
7745
|
}
|
|
7658
7746
|
}).catch(function (e) {});
|
|
7659
7747
|
break;
|
|
@@ -7694,13 +7782,13 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7694
7782
|
type: 'error',
|
|
7695
7783
|
duration: 1500,
|
|
7696
7784
|
onClose: function onClose() {
|
|
7697
|
-
if (
|
|
7785
|
+
if (_this13.code) {
|
|
7698
7786
|
window.location.href = util["a" /* default */].delUrlParam({ key: 'code' });
|
|
7699
7787
|
if (window.location.hash) {
|
|
7700
7788
|
location.reload();
|
|
7701
7789
|
}
|
|
7702
7790
|
} else {
|
|
7703
|
-
|
|
7791
|
+
_this13.getImgCode();
|
|
7704
7792
|
}
|
|
7705
7793
|
}
|
|
7706
7794
|
});
|
|
@@ -7710,15 +7798,15 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7710
7798
|
}
|
|
7711
7799
|
},
|
|
7712
7800
|
handleAssistance: function handleAssistance(data) {
|
|
7713
|
-
var
|
|
7801
|
+
var _this14 = this;
|
|
7714
7802
|
|
|
7715
7803
|
clearTimeout(this.doAssistance);
|
|
7716
7804
|
this.doAssistance = setTimeout(function () {
|
|
7717
|
-
|
|
7805
|
+
_this14.doAssistanceLogin(data);
|
|
7718
7806
|
}, this.scanIntervalTime);
|
|
7719
7807
|
},
|
|
7720
7808
|
doAssistanceLogin: function doAssistanceLogin(data) {
|
|
7721
|
-
var
|
|
7809
|
+
var _this15 = this;
|
|
7722
7810
|
|
|
7723
7811
|
util["a" /* default */].ajax({
|
|
7724
7812
|
method: 'post',
|
|
@@ -7728,19 +7816,19 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
7728
7816
|
if (res.rCode === 0) {
|
|
7729
7817
|
var results = res.results;
|
|
7730
7818
|
if (results.statusCode === 0) {
|
|
7731
|
-
clearTimeout(
|
|
7732
|
-
|
|
7819
|
+
clearTimeout(_this15.doAssistance);
|
|
7820
|
+
_this15.handleResults(results, 3);
|
|
7733
7821
|
} else {
|
|
7734
|
-
|
|
7822
|
+
_this15.handleAssistance(data);
|
|
7735
7823
|
}
|
|
7736
7824
|
} else {
|
|
7737
|
-
clearTimeout(
|
|
7738
|
-
|
|
7825
|
+
clearTimeout(_this15.doAssistance);
|
|
7826
|
+
_this15.$message.error(res.msg);
|
|
7739
7827
|
}
|
|
7740
7828
|
}).catch(function (err) {
|
|
7741
|
-
clearTimeout(
|
|
7829
|
+
clearTimeout(_this15.doAssistance);
|
|
7742
7830
|
if (err.message && err.message !== 'canceled') {
|
|
7743
|
-
|
|
7831
|
+
_this15.$message.error(err.message);
|
|
7744
7832
|
}
|
|
7745
7833
|
});
|
|
7746
7834
|
},
|