eoss-ui 0.5.61 → 0.5.63
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 +147 -129
- package/lib/button.js +14 -8
- package/lib/checkbox-group.js +14 -8
- package/lib/data-table-form.js +14 -8
- package/lib/data-table.js +129 -104
- package/lib/date-picker.js +14 -8
- package/lib/dialog.js +17 -11
- package/lib/eoss-ui.common.js +688 -545
- package/lib/flow-group.js +14 -8
- package/lib/flow-list.js +14 -8
- package/lib/flow.js +17 -11
- package/lib/form.js +14 -8
- package/lib/handle-user.js +14 -8
- package/lib/handler.js +17 -11
- package/lib/icon.js +19 -15
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +14 -8
- package/lib/input.js +14 -8
- package/lib/label.js +2 -2
- package/lib/login.js +139 -68
- package/lib/main.js +208 -164
- package/lib/menu.js +2 -2
- package/lib/nav.js +14 -8
- package/lib/page.js +14 -8
- package/lib/player.js +18 -12
- package/lib/qr-code.js +16 -10
- package/lib/radio-group.js +14 -8
- package/lib/retrial-auth.js +14 -8
- package/lib/select-ganged.js +14 -8
- package/lib/select.js +14 -8
- package/lib/selector-panel.js +17 -11
- package/lib/selector.js +18 -23
- package/lib/sizer.js +14 -8
- package/lib/steps.js +14 -8
- package/lib/switch.js +14 -8
- package/lib/table-form.js +14 -8
- package/lib/tabs.js +14 -8
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/card.css +1 -1
- package/lib/theme-chalk/form.css +1 -1
- 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/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +14 -8
- package/lib/toolbar.js +4 -1
- package/lib/tree-group.js +28 -11
- package/lib/tree.js +14 -8
- package/lib/upload.js +17 -11
- package/lib/utils/util.js +14 -8
- package/lib/wujie.js +14 -8
- package/lib/wxlogin.js +14 -8
- package/package.json +3 -2
- package/packages/button-group/src/main.vue +71 -58
- package/packages/data-table/src/main.vue +11 -2
- package/packages/flow/src/main.vue +1 -1
- package/packages/handler/src/main.vue +1 -1
- package/packages/icon/src/main.vue +2 -2
- package/packages/label/src/main.vue +2 -2
- package/packages/login/src/main.vue +63 -35
- package/packages/main/src/main.vue +19 -11
- package/packages/main/src/userinfo.vue +165 -150
- package/packages/menu/src/main.vue +2 -2
- package/packages/selector/src/main.vue +0 -1
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/card.css +1 -1
- package/packages/theme-chalk/lib/form.css +1 -1
- 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/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/card.scss +2 -2
- package/packages/theme-chalk/src/form.scss +5 -3
- package/packages/theme-chalk/src/icon.scss +3 -3
- package/packages/theme-chalk/src/login.scss +6 -0
- package/packages/theme-chalk/src/menu.scss +1 -1
- package/packages/toolbar/src/main.vue +4 -1
- package/packages/tree-group/src/main.vue +12 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +14 -9
package/lib/input-number.js
CHANGED
|
@@ -370,7 +370,7 @@ var ajax = function ajax(_ref) {
|
|
|
370
370
|
error.message = '未授权,请重新登录';
|
|
371
371
|
break;
|
|
372
372
|
case 403:
|
|
373
|
-
error.message = '
|
|
373
|
+
error.message = '服务器错误';
|
|
374
374
|
break;
|
|
375
375
|
case 404:
|
|
376
376
|
error.message = '网络请求不存在';
|
|
@@ -382,7 +382,7 @@ var ajax = function ajax(_ref) {
|
|
|
382
382
|
error.message = '请求超时';
|
|
383
383
|
break;
|
|
384
384
|
case 500:
|
|
385
|
-
error.message = '
|
|
385
|
+
error.message = '服务器错误';
|
|
386
386
|
break;
|
|
387
387
|
case 501:
|
|
388
388
|
error.message = '网络未实现';
|
|
@@ -738,18 +738,23 @@ var dayOfMonth = function dayOfMonth(date) {
|
|
|
738
738
|
* @desc:添加js内容
|
|
739
739
|
* @author huangbo
|
|
740
740
|
* @date 2022年5月7日
|
|
741
|
-
* @param {Function} [
|
|
741
|
+
* @param {Function} [callback] - 函数
|
|
742
742
|
* @param {Number} [wait] - 延迟毫秒数
|
|
743
743
|
* @param {Boolean} [immediate] - 是否首次触发执行
|
|
744
744
|
**/
|
|
745
745
|
|
|
746
|
-
var debounce = function debounce(callback,
|
|
747
|
-
var timeout =
|
|
746
|
+
var debounce = function debounce(callback, wait) {
|
|
747
|
+
var timeout = void 0;
|
|
748
748
|
return function () {
|
|
749
|
-
|
|
750
|
-
|
|
749
|
+
var context = this;
|
|
750
|
+
var args = arguments;
|
|
751
|
+
if (timeout) clearTimeout(timeout);
|
|
752
|
+
timeout = setTimeout(function () {
|
|
753
|
+
callback.apply(context, args);
|
|
754
|
+
}, wait || 500);
|
|
751
755
|
};
|
|
752
756
|
};
|
|
757
|
+
|
|
753
758
|
/**
|
|
754
759
|
* delUrlParam
|
|
755
760
|
* @desc:删除url指定参数
|
|
@@ -2886,7 +2891,8 @@ var toFunction = function toFunction(str) {
|
|
|
2886
2891
|
* @param {string} [$color] - 颜色值
|
|
2887
2892
|
**/
|
|
2888
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2889
|
-
color = color ? color : '#409eff';
|
|
2894
|
+
color = color && startWith(color, '#') ? color : '#409eff';
|
|
2895
|
+
|
|
2890
2896
|
if (send === undefined) {
|
|
2891
2897
|
send = true;
|
|
2892
2898
|
}
|
package/lib/input.js
CHANGED
|
@@ -370,7 +370,7 @@ var ajax = function ajax(_ref) {
|
|
|
370
370
|
error.message = '未授权,请重新登录';
|
|
371
371
|
break;
|
|
372
372
|
case 403:
|
|
373
|
-
error.message = '
|
|
373
|
+
error.message = '服务器错误';
|
|
374
374
|
break;
|
|
375
375
|
case 404:
|
|
376
376
|
error.message = '网络请求不存在';
|
|
@@ -382,7 +382,7 @@ var ajax = function ajax(_ref) {
|
|
|
382
382
|
error.message = '请求超时';
|
|
383
383
|
break;
|
|
384
384
|
case 500:
|
|
385
|
-
error.message = '
|
|
385
|
+
error.message = '服务器错误';
|
|
386
386
|
break;
|
|
387
387
|
case 501:
|
|
388
388
|
error.message = '网络未实现';
|
|
@@ -738,18 +738,23 @@ var dayOfMonth = function dayOfMonth(date) {
|
|
|
738
738
|
* @desc:添加js内容
|
|
739
739
|
* @author huangbo
|
|
740
740
|
* @date 2022年5月7日
|
|
741
|
-
* @param {Function} [
|
|
741
|
+
* @param {Function} [callback] - 函数
|
|
742
742
|
* @param {Number} [wait] - 延迟毫秒数
|
|
743
743
|
* @param {Boolean} [immediate] - 是否首次触发执行
|
|
744
744
|
**/
|
|
745
745
|
|
|
746
|
-
var debounce = function debounce(callback,
|
|
747
|
-
var timeout =
|
|
746
|
+
var debounce = function debounce(callback, wait) {
|
|
747
|
+
var timeout = void 0;
|
|
748
748
|
return function () {
|
|
749
|
-
|
|
750
|
-
|
|
749
|
+
var context = this;
|
|
750
|
+
var args = arguments;
|
|
751
|
+
if (timeout) clearTimeout(timeout);
|
|
752
|
+
timeout = setTimeout(function () {
|
|
753
|
+
callback.apply(context, args);
|
|
754
|
+
}, wait || 500);
|
|
751
755
|
};
|
|
752
756
|
};
|
|
757
|
+
|
|
753
758
|
/**
|
|
754
759
|
* delUrlParam
|
|
755
760
|
* @desc:删除url指定参数
|
|
@@ -2886,7 +2891,8 @@ var toFunction = function toFunction(str) {
|
|
|
2886
2891
|
* @param {string} [$color] - 颜色值
|
|
2887
2892
|
**/
|
|
2888
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2889
|
-
color = color ? color : '#409eff';
|
|
2894
|
+
color = color && startWith(color, '#') ? color : '#409eff';
|
|
2895
|
+
|
|
2890
2896
|
if (send === undefined) {
|
|
2891
2897
|
send = true;
|
|
2892
2898
|
}
|
package/lib/label.js
CHANGED
|
@@ -363,7 +363,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
363
363
|
}));
|
|
364
364
|
} else if (this.icon.indexOf('&#') > -1) {
|
|
365
365
|
doms.push(h('i', {
|
|
366
|
-
class: ['es-label-icon', 'es-
|
|
366
|
+
class: ['es-label-icon', 'es-icon', this.events && this.events['icon'] ? 'es-pointer' : ''],
|
|
367
367
|
on: {
|
|
368
368
|
click: function click(e) {
|
|
369
369
|
_this.handleClick(e, 'icon');
|
|
@@ -460,7 +460,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
460
460
|
}));
|
|
461
461
|
} else if (this.contents[_i].indexOf('&#') > -1) {
|
|
462
462
|
doms.push(h('i', {
|
|
463
|
-
class: ['es-label-icon', 'es-
|
|
463
|
+
class: ['es-label-icon', 'es-icon', this.events && this.events['icon'] ? 'es-pointer' : ''],
|
|
464
464
|
on: {
|
|
465
465
|
click: function click(e) {
|
|
466
466
|
_this.handleClick(e, 'icon');
|
package/lib/login.js
CHANGED
|
@@ -369,7 +369,7 @@ var ajax = function ajax(_ref) {
|
|
|
369
369
|
error.message = '未授权,请重新登录';
|
|
370
370
|
break;
|
|
371
371
|
case 403:
|
|
372
|
-
error.message = '
|
|
372
|
+
error.message = '服务器错误';
|
|
373
373
|
break;
|
|
374
374
|
case 404:
|
|
375
375
|
error.message = '网络请求不存在';
|
|
@@ -381,7 +381,7 @@ var ajax = function ajax(_ref) {
|
|
|
381
381
|
error.message = '请求超时';
|
|
382
382
|
break;
|
|
383
383
|
case 500:
|
|
384
|
-
error.message = '
|
|
384
|
+
error.message = '服务器错误';
|
|
385
385
|
break;
|
|
386
386
|
case 501:
|
|
387
387
|
error.message = '网络未实现';
|
|
@@ -737,18 +737,23 @@ var dayOfMonth = function dayOfMonth(date) {
|
|
|
737
737
|
* @desc:添加js内容
|
|
738
738
|
* @author huangbo
|
|
739
739
|
* @date 2022年5月7日
|
|
740
|
-
* @param {Function} [
|
|
740
|
+
* @param {Function} [callback] - 函数
|
|
741
741
|
* @param {Number} [wait] - 延迟毫秒数
|
|
742
742
|
* @param {Boolean} [immediate] - 是否首次触发执行
|
|
743
743
|
**/
|
|
744
744
|
|
|
745
|
-
var debounce = function debounce(callback,
|
|
746
|
-
var timeout =
|
|
745
|
+
var debounce = function debounce(callback, wait) {
|
|
746
|
+
var timeout = void 0;
|
|
747
747
|
return function () {
|
|
748
|
-
|
|
749
|
-
|
|
748
|
+
var context = this;
|
|
749
|
+
var args = arguments;
|
|
750
|
+
if (timeout) clearTimeout(timeout);
|
|
751
|
+
timeout = setTimeout(function () {
|
|
752
|
+
callback.apply(context, args);
|
|
753
|
+
}, wait || 500);
|
|
750
754
|
};
|
|
751
755
|
};
|
|
756
|
+
|
|
752
757
|
/**
|
|
753
758
|
* delUrlParam
|
|
754
759
|
* @desc:删除url指定参数
|
|
@@ -2885,7 +2890,8 @@ var toFunction = function toFunction(str) {
|
|
|
2885
2890
|
* @param {string} [$color] - 颜色值
|
|
2886
2891
|
**/
|
|
2887
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2888
|
-
color = color ? color : '#409eff';
|
|
2893
|
+
color = color && startWith(color, '#') ? color : '#409eff';
|
|
2894
|
+
|
|
2889
2895
|
if (send === undefined) {
|
|
2890
2896
|
send = true;
|
|
2891
2897
|
}
|
|
@@ -3837,7 +3843,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
|
|
|
3837
3843
|
// ESM COMPAT FLAG
|
|
3838
3844
|
__webpack_require__.r(__webpack_exports__);
|
|
3839
3845
|
|
|
3840
|
-
// 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=
|
|
3846
|
+
// 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=e5e62fc8&
|
|
3841
3847
|
var render = function () {
|
|
3842
3848
|
var _vm = this
|
|
3843
3849
|
var _h = _vm.$createElement
|
|
@@ -3896,6 +3902,14 @@ var render = function () {
|
|
|
3896
3902
|
},
|
|
3897
3903
|
},
|
|
3898
3904
|
[
|
|
3905
|
+
_vm.loginTitleUrl
|
|
3906
|
+
? _c("div", { staticClass: "es-login-title-image" }, [
|
|
3907
|
+
_c("img", {
|
|
3908
|
+
staticClass: "es-login-title-img",
|
|
3909
|
+
attrs: { src: _vm.loginTitleUrl },
|
|
3910
|
+
}),
|
|
3911
|
+
])
|
|
3912
|
+
: _vm._e(),
|
|
3899
3913
|
_vm.switchs > 1
|
|
3900
3914
|
? _c(
|
|
3901
3915
|
"div",
|
|
@@ -3949,13 +3963,22 @@ var render = function () {
|
|
|
3949
3963
|
attrs: { model: _vm.formData },
|
|
3950
3964
|
},
|
|
3951
3965
|
[
|
|
3952
|
-
|
|
3953
|
-
_c(
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3966
|
+
!_vm.loginTitleUrl
|
|
3967
|
+
? _c(
|
|
3968
|
+
"div",
|
|
3969
|
+
{ staticClass: "es-login-title" },
|
|
3970
|
+
[
|
|
3971
|
+
_c(
|
|
3972
|
+
"span",
|
|
3973
|
+
{
|
|
3974
|
+
staticClass:
|
|
3975
|
+
"es-login-title-content",
|
|
3976
|
+
},
|
|
3977
|
+
[_vm._v(_vm._s(_vm.title))]
|
|
3978
|
+
),
|
|
3979
|
+
]
|
|
3980
|
+
)
|
|
3981
|
+
: _vm._e(),
|
|
3959
3982
|
_c(
|
|
3960
3983
|
"el-form-item",
|
|
3961
3984
|
{
|
|
@@ -4251,21 +4274,30 @@ var render = function () {
|
|
|
4251
4274
|
"div",
|
|
4252
4275
|
{ staticClass: "es-login-qrcode" },
|
|
4253
4276
|
[
|
|
4254
|
-
|
|
4255
|
-
_c(
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4277
|
+
!_vm.loginTitleUrl
|
|
4278
|
+
? _c(
|
|
4279
|
+
"div",
|
|
4280
|
+
{ staticClass: "es-login-title" },
|
|
4281
|
+
[
|
|
4282
|
+
_c(
|
|
4283
|
+
"div",
|
|
4284
|
+
{
|
|
4285
|
+
staticClass:
|
|
4286
|
+
"es-login-title-content",
|
|
4287
|
+
},
|
|
4288
|
+
[
|
|
4289
|
+
_vm._v(
|
|
4290
|
+
"\n " +
|
|
4291
|
+
_vm._s(
|
|
4292
|
+
_vm.iconfonts[_vm.active].name
|
|
4293
|
+
) +
|
|
4294
|
+
"\n "
|
|
4295
|
+
),
|
|
4296
|
+
]
|
|
4297
|
+
),
|
|
4298
|
+
]
|
|
4299
|
+
)
|
|
4300
|
+
: _vm._e(),
|
|
4269
4301
|
_c(
|
|
4270
4302
|
"div",
|
|
4271
4303
|
{ staticClass: "es-login-down-app" },
|
|
@@ -4366,17 +4398,28 @@ var render = function () {
|
|
|
4366
4398
|
attrs: { model: _vm.formData },
|
|
4367
4399
|
},
|
|
4368
4400
|
[
|
|
4369
|
-
|
|
4370
|
-
_c(
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4401
|
+
!_vm.loginTitleUrl
|
|
4402
|
+
? _c(
|
|
4403
|
+
"div",
|
|
4404
|
+
{ staticClass: "es-login-title" },
|
|
4405
|
+
[
|
|
4406
|
+
_c(
|
|
4407
|
+
"span",
|
|
4408
|
+
{
|
|
4409
|
+
staticClass:
|
|
4410
|
+
"es-login-title-content",
|
|
4411
|
+
},
|
|
4412
|
+
[
|
|
4413
|
+
_vm._v(
|
|
4414
|
+
_vm._s(
|
|
4415
|
+
_vm.iconfonts[_vm.active].name
|
|
4416
|
+
)
|
|
4417
|
+
),
|
|
4418
|
+
]
|
|
4419
|
+
),
|
|
4420
|
+
]
|
|
4421
|
+
)
|
|
4422
|
+
: _vm._e(),
|
|
4380
4423
|
_c(
|
|
4381
4424
|
"el-form-item",
|
|
4382
4425
|
{
|
|
@@ -4618,7 +4661,7 @@ var render = function () {
|
|
|
4618
4661
|
[_vm._v(_vm._s(_vm.icpInfo.copyright_unit))]
|
|
4619
4662
|
),
|
|
4620
4663
|
_c(
|
|
4621
|
-
"
|
|
4664
|
+
"a",
|
|
4622
4665
|
{
|
|
4623
4666
|
staticClass: "es-login-icp-item",
|
|
4624
4667
|
style: _vm._copyrightStyle,
|
|
@@ -4721,7 +4764,7 @@ var staticRenderFns = []
|
|
|
4721
4764
|
render._withStripped = true
|
|
4722
4765
|
|
|
4723
4766
|
|
|
4724
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
4767
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=e5e62fc8&
|
|
4725
4768
|
|
|
4726
4769
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
|
|
4727
4770
|
var resetPasswordvue_type_template_id_28f463b9_render = function () {
|
|
@@ -5639,6 +5682,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5639
5682
|
//
|
|
5640
5683
|
//
|
|
5641
5684
|
//
|
|
5685
|
+
//
|
|
5686
|
+
//
|
|
5687
|
+
//
|
|
5642
5688
|
|
|
5643
5689
|
|
|
5644
5690
|
|
|
@@ -5665,11 +5711,21 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5665
5711
|
type: String,
|
|
5666
5712
|
default: '账号登录'
|
|
5667
5713
|
},
|
|
5714
|
+
param: {
|
|
5715
|
+
type: Object,
|
|
5716
|
+
default: function _default() {
|
|
5717
|
+
return {};
|
|
5718
|
+
}
|
|
5719
|
+
},
|
|
5668
5720
|
loginBackground: [String, Array],
|
|
5669
5721
|
loginImage: [String, Array],
|
|
5670
5722
|
loginLogo: String,
|
|
5723
|
+
loginTitle: String,
|
|
5671
5724
|
loginName: String,
|
|
5672
|
-
type:
|
|
5725
|
+
type: {
|
|
5726
|
+
type: String,
|
|
5727
|
+
default: '0'
|
|
5728
|
+
},
|
|
5673
5729
|
//是否加密传输
|
|
5674
5730
|
isEncrypt: {
|
|
5675
5731
|
type: Boolean,
|
|
@@ -5831,6 +5887,13 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5831
5887
|
},
|
|
5832
5888
|
computed: {
|
|
5833
5889
|
transform: function transform() {
|
|
5890
|
+
if (this.align.indexOf('%') > -1) {
|
|
5891
|
+
return {
|
|
5892
|
+
left: this.align,
|
|
5893
|
+
top: '50%',
|
|
5894
|
+
transform: 'translateY(-51%)'
|
|
5895
|
+
};
|
|
5896
|
+
}
|
|
5834
5897
|
if (this.align === 'left') {
|
|
5835
5898
|
return {
|
|
5836
5899
|
left: '30%',
|
|
@@ -5867,26 +5930,20 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5867
5930
|
loginNameUrl: function loginNameUrl() {
|
|
5868
5931
|
return this.loginNameImg ? this.loginNameImg : this.loginName;
|
|
5869
5932
|
},
|
|
5933
|
+
loginTitleUrl: function loginTitleUrl() {
|
|
5934
|
+
return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
|
|
5935
|
+
},
|
|
5870
5936
|
loginLogoUrl: function loginLogoUrl() {
|
|
5871
5937
|
return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
|
|
5872
5938
|
},
|
|
5873
5939
|
warnInfo: function warnInfo() {
|
|
5874
5940
|
return this.warning === false ? false : typeof this.warning === 'string' ? this.warning : '本系统为非涉密系统,禁止上传和处理任何涉密文件';
|
|
5875
5941
|
},
|
|
5876
|
-
loginType: function loginType() {
|
|
5877
|
-
if (this.type) {
|
|
5878
|
-
return this.type;
|
|
5879
|
-
}
|
|
5880
|
-
if (this.loginModel) {
|
|
5881
|
-
return this.loginModel;
|
|
5882
|
-
}
|
|
5883
|
-
return '0';
|
|
5884
|
-
},
|
|
5885
5942
|
switchs: function switchs() {
|
|
5886
|
-
return Array.isArray(this.
|
|
5943
|
+
return Array.isArray(this.loginModel) ? this.loginModel.length : this.loginModel.split(',').length;
|
|
5887
5944
|
},
|
|
5888
5945
|
iconfonts: function iconfonts() {
|
|
5889
|
-
var types = this.
|
|
5946
|
+
var types = this.loginModel.split(',');
|
|
5890
5947
|
return types.length > 2 ? {
|
|
5891
5948
|
0: { type: '0', icon: 'es-icon-shuru', name: '账号登录' },
|
|
5892
5949
|
1: { type: '1', icon: 'es-icon-usb-key', name: '证书登录' },
|
|
@@ -5915,7 +5972,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5915
5972
|
var _this = this;
|
|
5916
5973
|
|
|
5917
5974
|
var icon = [];
|
|
5918
|
-
var types = this.
|
|
5975
|
+
var types = this.loginModel.split(',');
|
|
5919
5976
|
types.forEach(function (item) {
|
|
5920
5977
|
icon.push(_this.iconfonts[item]);
|
|
5921
5978
|
});
|
|
@@ -5932,7 +5989,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5932
5989
|
}
|
|
5933
5990
|
},
|
|
5934
5991
|
watch: {
|
|
5935
|
-
|
|
5992
|
+
loginModel: {
|
|
5936
5993
|
immediate: true,
|
|
5937
5994
|
handler: function handler(val) {
|
|
5938
5995
|
this.active = val.split(',')[0];
|
|
@@ -5984,8 +6041,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5984
6041
|
loginBackgroundImg: null,
|
|
5985
6042
|
loginMainImg: null,
|
|
5986
6043
|
loginNameImg: null,
|
|
6044
|
+
loginTitleImg: null,
|
|
5987
6045
|
loginLogoImg: null,
|
|
5988
|
-
loginModel:
|
|
6046
|
+
loginModel: this.type,
|
|
5989
6047
|
passModifyModel: null,
|
|
5990
6048
|
active: 0,
|
|
5991
6049
|
submit: false,
|
|
@@ -6189,7 +6247,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6189
6247
|
this.$emit('change-type', res, this.identifyingId);
|
|
6190
6248
|
},
|
|
6191
6249
|
isShow: function isShow(res) {
|
|
6192
|
-
return this.
|
|
6250
|
+
return this.loginModel.indexOf(res) > -1;
|
|
6193
6251
|
},
|
|
6194
6252
|
getLogin: function getLogin() {
|
|
6195
6253
|
var _this3 = this;
|
|
@@ -6227,8 +6285,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6227
6285
|
if (res.androidDownloadUrl) {
|
|
6228
6286
|
downloads['android'] = res.androidDownloadUrl;
|
|
6229
6287
|
}
|
|
6230
|
-
if (res.iosDownloadUrl
|
|
6231
|
-
downloads['ios'] = res.iosDownloadUrl
|
|
6288
|
+
if (res.iosDownloadUrl) {
|
|
6289
|
+
downloads['ios'] = res.iosDownloadUrl;
|
|
6290
|
+
}
|
|
6291
|
+
if (res.iosDownloadUrl2) {
|
|
6292
|
+
downloads['pad'] = res.iosDownloadUrl2;
|
|
6232
6293
|
}
|
|
6233
6294
|
if (res.macDownloadUrl) {
|
|
6234
6295
|
downloads['mac'] = res.macDownloadUrl;
|
|
@@ -6246,7 +6307,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6246
6307
|
document.title = res.subsystemName;
|
|
6247
6308
|
this.app = res.appName || res.subsystemName;
|
|
6248
6309
|
this.qrimg = res.qrimg || res.qrImg;
|
|
6249
|
-
|
|
6310
|
+
if (res.loginModel) {
|
|
6311
|
+
this.loginModel = res.loginModel;
|
|
6312
|
+
}
|
|
6250
6313
|
this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
|
|
6251
6314
|
this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
|
|
6252
6315
|
res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
|
|
@@ -6260,8 +6323,15 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6260
6323
|
if (res.subsystemExtend.applicationName) {
|
|
6261
6324
|
localStorage.setItem('appcode', res.subsystemExtend.applicationName);
|
|
6262
6325
|
}
|
|
6263
|
-
|
|
6264
|
-
|
|
6326
|
+
if (res.subsystemExtend.loginBoxBackgroun) {
|
|
6327
|
+
this.loginMainImg = res.subsystemExtend.loginBoxBackground.split(',');
|
|
6328
|
+
}
|
|
6329
|
+
if (res.subsystemExtend.loginBoxTitle) {
|
|
6330
|
+
this.loginTitleImg = res.subsystemExtend.loginBoxTitle;
|
|
6331
|
+
}
|
|
6332
|
+
if (res.subsystemExtend.loginBoxName) {
|
|
6333
|
+
this.loginNameImg = res.subsystemExtend.loginBoxName;
|
|
6334
|
+
}
|
|
6265
6335
|
if (res.subsystemExtend.loginBoxAlign && this.useResults) {
|
|
6266
6336
|
this.align = res.subsystemExtend.loginBoxAlign;
|
|
6267
6337
|
}
|
|
@@ -6386,6 +6456,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6386
6456
|
this.$refs['login'].validate(function (valid) {
|
|
6387
6457
|
if (valid) {
|
|
6388
6458
|
_this5.submit = true;
|
|
6459
|
+
var param = util["a" /* default */].getParams() || {};
|
|
6389
6460
|
var data = _this5.active == '0' ? {
|
|
6390
6461
|
username: _this5.formData.username,
|
|
6391
6462
|
password: _this5.secret && _this5.isEncrypt ? util["a" /* default */].esmEncrypt({
|
|
@@ -6409,12 +6480,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6409
6480
|
};
|
|
6410
6481
|
if (_this5.onLogin) {
|
|
6411
6482
|
if (_this5.active == '0') {
|
|
6412
|
-
_this5.onLogin(data, _this5.getImgCode, _this5.handleRemember);
|
|
6483
|
+
_this5.onLogin(mainvue_type_script_lang_js_extends({}, param, data), _this5.getImgCode, _this5.handleRemember);
|
|
6413
6484
|
} else {
|
|
6414
|
-
_this5.onLogin(data);
|
|
6485
|
+
_this5.onLogin(mainvue_type_script_lang_js_extends({}, param, data));
|
|
6415
6486
|
}
|
|
6416
6487
|
} else {
|
|
6417
|
-
_this5.handleUserLogin(data);
|
|
6488
|
+
_this5.handleUserLogin(mainvue_type_script_lang_js_extends({}, param, _this5.param, data));
|
|
6418
6489
|
}
|
|
6419
6490
|
} else {
|
|
6420
6491
|
_this5.submit = false;
|