eoss-ui 0.5.79 → 0.5.81-beta
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 +279 -265
- package/lib/button.js +71 -69
- package/lib/calendar.js +2 -2
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +71 -70
- package/lib/clients.js +11 -11
- package/lib/config/api.js +1 -0
- package/lib/data-table-form.js +69 -67
- package/lib/data-table.js +87 -80
- package/lib/date-picker.js +71 -69
- package/lib/dialog.js +71 -70
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +5966 -986
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +71 -69
- package/lib/flow-list.js +74 -72
- package/lib/flow.js +95 -93
- package/lib/form.js +179 -98
- package/lib/handle-user.js +72 -70
- package/lib/handler.js +75 -73
- package/lib/icon.js +3731 -12
- package/lib/icons.js +3 -3
- package/lib/index.js +1 -1
- package/lib/input-number.js +71 -69
- package/lib/input.js +71 -73
- package/lib/label.js +2 -2
- package/lib/layout.js +2 -2
- package/lib/login.js +146 -106
- package/lib/main.js +5663 -844
- package/lib/menu.js +2 -2
- package/lib/nav.js +71 -69
- package/lib/notify.js +72 -70
- package/lib/page.js +71 -69
- package/lib/pagination.js +2 -2
- package/lib/player.js +75 -73
- package/lib/qr-code.js +73 -71
- package/lib/radio-group.js +71 -69
- package/lib/retrial-auth.js +73 -71
- package/lib/select-ganged.js +71 -69
- package/lib/select.js +71 -69
- package/lib/selector-panel.js +74 -73
- package/lib/selector.js +80 -78
- package/lib/sizer.js +71 -69
- package/lib/steps.js +71 -69
- package/lib/switch.js +78 -76
- package/lib/table-form.js +71 -69
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +71 -69
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/clients.css +1 -1
- package/lib/theme-chalk/data-table.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/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/simplicity.css +1 -0
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +72 -70
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +71 -69
- package/lib/tree.js +71 -69
- package/lib/upload.js +146 -118
- package/lib/utils/util.js +2 -2
- package/lib/wujie.js +71 -69
- package/lib/wxlogin.js +214 -212
- package/package.json +3 -3
- package/packages/clients/src/main.vue +7 -7
- package/packages/data-table/src/main.vue +17 -5
- package/packages/form/src/main.vue +27 -13
- package/packages/handler/src/main.vue +3 -1
- package/packages/icon/src/main.vue +31 -10
- package/packages/icons/src/icon.json +1 -1
- package/packages/input/src/main.vue +0 -4
- package/packages/login/src/main.vue +13 -7
- package/packages/main/src/default/index.vue +2199 -0
- package/packages/main/src/main.vue +30 -2209
- package/packages/main/src/simplicity/apps.vue +301 -0
- package/packages/main/src/simplicity/avatar.vue +68 -0
- package/packages/main/src/simplicity/handler.vue +148 -0
- package/packages/main/src/simplicity/index.vue +1515 -0
- package/packages/main/src/simplicity/lists.vue +84 -0
- package/packages/main/src/simplicity/menu-list.vue +74 -0
- package/packages/main/src/simplicity/message.vue +237 -0
- package/packages/main/src/simplicity/notice.vue +145 -0
- package/packages/main/src/simplicity/settings.vue +119 -0
- package/packages/main/src/simplicity/sub-menu.vue +120 -0
- package/packages/main/src/simplicity/user.vue +243 -0
- package/packages/main/src/simplicity/userinfo.vue +302 -0
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/clients.css +1 -1
- package/packages/theme-chalk/lib/data-table.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/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/simplicity.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/base.scss +1 -0
- package/packages/theme-chalk/src/clients.scss +1 -1
- package/packages/theme-chalk/src/common/var.scss +4 -0
- package/packages/theme-chalk/src/data-table.scss +3 -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/form.scss +2 -2
- package/packages/theme-chalk/src/icon.scss +4 -4
- package/packages/theme-chalk/src/login.scss +644 -632
- package/packages/theme-chalk/src/main.scss +6 -2
- package/packages/theme-chalk/src/simplicity.scss +545 -0
- package/packages/upload/src/main.vue +132 -80
- package/src/config/api.js +1 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +2 -2
- package/lib/theme-chalk/mainComp.css +0 -0
- package/packages/main/src/async-component/index.vue +0 -87
- package/packages/theme-chalk/lib/mainComp.css +0 -0
- package/packages/theme-chalk/src/mainComp.scss +0 -0
- /package/packages/main/src/{message.vue → default/message.vue} +0 -0
- /package/packages/main/src/{notice.vue → default/notice.vue} +0 -0
- /package/packages/main/src/{settings.vue → default/settings.vue} +0 -0
- /package/packages/main/src/{userinfo.vue → default/userinfo.vue} +0 -0
|
@@ -562,7 +562,13 @@ export default {
|
|
|
562
562
|
if (this.list && this.list.length) {
|
|
563
563
|
return this.list;
|
|
564
564
|
}
|
|
565
|
-
if (
|
|
565
|
+
if (
|
|
566
|
+
this.page &&
|
|
567
|
+
((typeof this.page === 'object' &&
|
|
568
|
+
(!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') ||
|
|
569
|
+
this.page.totalCount == 0)) ||
|
|
570
|
+
this.page === true)
|
|
571
|
+
) {
|
|
566
572
|
this.config.totalCount = this.data.length - this.lose;
|
|
567
573
|
}
|
|
568
574
|
if (this.page && this.data.length > this.config.pageSize) {
|
|
@@ -641,10 +647,15 @@ export default {
|
|
|
641
647
|
this.doLayout();
|
|
642
648
|
},
|
|
643
649
|
// data: {
|
|
644
|
-
// immediate: true,
|
|
645
650
|
// deep: true,
|
|
646
651
|
// handler(val) {
|
|
647
|
-
//
|
|
652
|
+
// if (
|
|
653
|
+
// this.page &&
|
|
654
|
+
// typeof this.page === 'object' &&
|
|
655
|
+
// !Object.prototype.hasOwnProperty.call(this.page, 'totalCount')
|
|
656
|
+
// ) {
|
|
657
|
+
// this.config.totalCount = val.length - this.lose;
|
|
658
|
+
// }
|
|
648
659
|
// }
|
|
649
660
|
// },
|
|
650
661
|
page() {
|
|
@@ -1013,7 +1024,7 @@ export default {
|
|
|
1013
1024
|
if (where) {
|
|
1014
1025
|
reqData = util.extend({}, reqData, where);
|
|
1015
1026
|
}
|
|
1016
|
-
if (this.retainSearh) {
|
|
1027
|
+
if (this.retainSearh || first === false) {
|
|
1017
1028
|
reqData = util.extend({}, reqData, this.wheres);
|
|
1018
1029
|
}
|
|
1019
1030
|
if (this.isJoin) {
|
|
@@ -1258,7 +1269,7 @@ export default {
|
|
|
1258
1269
|
}
|
|
1259
1270
|
let thead = this.theads;
|
|
1260
1271
|
if (this.$refs.oaTable) {
|
|
1261
|
-
thead = this.$refs.oaTable.getThead();
|
|
1272
|
+
thead = this.$refs.oaTable.getThead().thead;
|
|
1262
1273
|
}
|
|
1263
1274
|
if (handle.action) {
|
|
1264
1275
|
let isConfirm = handle.confirm || true;
|
|
@@ -1449,6 +1460,7 @@ export default {
|
|
|
1449
1460
|
data: JSON.parse(JSON.stringify(data))
|
|
1450
1461
|
})
|
|
1451
1462
|
: data;
|
|
1463
|
+
|
|
1452
1464
|
if (this.url && this.executeFilter) {
|
|
1453
1465
|
this.getTableData({ where: this.wheres });
|
|
1454
1466
|
}
|
|
@@ -54,10 +54,12 @@
|
|
|
54
54
|
class="es-collapse-item"
|
|
55
55
|
v-if="!items.hide"
|
|
56
56
|
v-show="items.show !== false"
|
|
57
|
+
v-bind="items.config"
|
|
57
58
|
:class="{
|
|
58
59
|
'es-collapse-readonly': accordion ? false : !collapse,
|
|
59
60
|
'es-collapse-caption': items.caption
|
|
60
61
|
}"
|
|
62
|
+
:show-title="items.showTitle"
|
|
61
63
|
:name="items.name || String(indexs)"
|
|
62
64
|
:key="indexs"
|
|
63
65
|
:readonly="accordion ? false : !collapse"
|
|
@@ -591,7 +593,10 @@
|
|
|
591
593
|
v-else-if="item.type === 'component'"
|
|
592
594
|
v-model="models[item.name]"
|
|
593
595
|
v-bind="
|
|
594
|
-
handleExclAttribute({
|
|
596
|
+
handleExclAttribute({
|
|
597
|
+
data: item,
|
|
598
|
+
attrs: ['value', 'type']
|
|
599
|
+
})
|
|
595
600
|
"
|
|
596
601
|
v-on="item.events"
|
|
597
602
|
></component>
|
|
@@ -657,6 +662,7 @@
|
|
|
657
662
|
</div>
|
|
658
663
|
<el-form-item
|
|
659
664
|
label-width="0"
|
|
665
|
+
:class="{ 'fixed-width': inline.width }"
|
|
660
666
|
:prop="inline.name"
|
|
661
667
|
:rules="getRules(inline)"
|
|
662
668
|
>
|
|
@@ -845,7 +851,7 @@
|
|
|
845
851
|
v-bind="
|
|
846
852
|
handleExclAttribute({
|
|
847
853
|
data: inline,
|
|
848
|
-
attrs: ['value']
|
|
854
|
+
attrs: ['value', 'type']
|
|
849
855
|
})
|
|
850
856
|
"
|
|
851
857
|
v-on="inline.events"
|
|
@@ -900,6 +906,7 @@
|
|
|
900
906
|
</div>
|
|
901
907
|
<el-form-item
|
|
902
908
|
label-width="0"
|
|
909
|
+
:class="{ 'fixed-width': item.inline.width }"
|
|
903
910
|
:prop="item.inline.name"
|
|
904
911
|
:rules="getRules(item.inline)"
|
|
905
912
|
>
|
|
@@ -1093,7 +1100,7 @@
|
|
|
1093
1100
|
v-bind="
|
|
1094
1101
|
handleExclAttribute({
|
|
1095
1102
|
data: inline,
|
|
1096
|
-
attrs: ['value']
|
|
1103
|
+
attrs: ['value', 'type']
|
|
1097
1104
|
})
|
|
1098
1105
|
"
|
|
1099
1106
|
v-on="inline.events"
|
|
@@ -1549,7 +1556,7 @@
|
|
|
1549
1556
|
v-bind="
|
|
1550
1557
|
handleExclAttribute({
|
|
1551
1558
|
data: item,
|
|
1552
|
-
attrs: ['value']
|
|
1559
|
+
attrs: ['value', 'type']
|
|
1553
1560
|
})
|
|
1554
1561
|
"
|
|
1555
1562
|
v-on="item.events"
|
|
@@ -1609,6 +1616,7 @@
|
|
|
1609
1616
|
</div>
|
|
1610
1617
|
<el-form-item
|
|
1611
1618
|
label-width="0"
|
|
1619
|
+
:class="{ 'fixed-width': inline.width }"
|
|
1612
1620
|
:prop="inline.name"
|
|
1613
1621
|
:rules="getRules(inline)"
|
|
1614
1622
|
>
|
|
@@ -1776,7 +1784,7 @@
|
|
|
1776
1784
|
v-bind="
|
|
1777
1785
|
handleExclAttribute({
|
|
1778
1786
|
data: inline,
|
|
1779
|
-
attrs: ['value']
|
|
1787
|
+
attrs: ['value', 'type']
|
|
1780
1788
|
})
|
|
1781
1789
|
"
|
|
1782
1790
|
v-on="inline.events"
|
|
@@ -1824,6 +1832,7 @@
|
|
|
1824
1832
|
</div>
|
|
1825
1833
|
<el-form-item
|
|
1826
1834
|
label-width="0"
|
|
1835
|
+
:class="{ 'fixed-width': item.inline.width }"
|
|
1827
1836
|
:prop="item.inline.name"
|
|
1828
1837
|
:rules="getRules(item.inline)"
|
|
1829
1838
|
>
|
|
@@ -1983,7 +1992,7 @@
|
|
|
1983
1992
|
v-bind="
|
|
1984
1993
|
handleExclAttribute({
|
|
1985
1994
|
data: item.inline,
|
|
1986
|
-
attrs: ['value']
|
|
1995
|
+
attrs: ['value', 'type']
|
|
1987
1996
|
})
|
|
1988
1997
|
"
|
|
1989
1998
|
v-on="item.inline.events"
|
|
@@ -2554,7 +2563,7 @@
|
|
|
2554
2563
|
v-bind="
|
|
2555
2564
|
handleExclAttribute({
|
|
2556
2565
|
data: item,
|
|
2557
|
-
attrs: ['value']
|
|
2566
|
+
attrs: ['value', 'type']
|
|
2558
2567
|
})
|
|
2559
2568
|
"
|
|
2560
2569
|
v-on="item.events"
|
|
@@ -2618,6 +2627,7 @@
|
|
|
2618
2627
|
</div>
|
|
2619
2628
|
<el-form-item
|
|
2620
2629
|
label-width="0"
|
|
2630
|
+
:class="{ 'fixed-width': inline.width }"
|
|
2621
2631
|
:prop="inline.name"
|
|
2622
2632
|
:rules="getRules(inline)"
|
|
2623
2633
|
>
|
|
@@ -2805,7 +2815,7 @@
|
|
|
2805
2815
|
v-bind="
|
|
2806
2816
|
handleExclAttribute({
|
|
2807
2817
|
data: inline,
|
|
2808
|
-
attrs: ['value']
|
|
2818
|
+
attrs: ['value', 'type']
|
|
2809
2819
|
})
|
|
2810
2820
|
"
|
|
2811
2821
|
v-on="inline.events"
|
|
@@ -2860,6 +2870,7 @@
|
|
|
2860
2870
|
</div>
|
|
2861
2871
|
<el-form-item
|
|
2862
2872
|
label-width="0"
|
|
2873
|
+
:class="{ 'fixed-width': item.inline.width }"
|
|
2863
2874
|
:prop="item.inline.name"
|
|
2864
2875
|
:rules="getRules(item.inline)"
|
|
2865
2876
|
>
|
|
@@ -3034,7 +3045,7 @@
|
|
|
3034
3045
|
v-bind="
|
|
3035
3046
|
handleExclAttribute({
|
|
3036
3047
|
data: item.inline,
|
|
3037
|
-
attrs: ['value']
|
|
3048
|
+
attrs: ['value', 'type']
|
|
3038
3049
|
})
|
|
3039
3050
|
"
|
|
3040
3051
|
v-on="item.inline.events"
|
|
@@ -3468,7 +3479,7 @@
|
|
|
3468
3479
|
v-bind="
|
|
3469
3480
|
handleExclAttribute({
|
|
3470
3481
|
data: item,
|
|
3471
|
-
attrs: ['value']
|
|
3482
|
+
attrs: ['value', 'type']
|
|
3472
3483
|
})
|
|
3473
3484
|
"
|
|
3474
3485
|
v-on="item.events"
|
|
@@ -3544,6 +3555,7 @@
|
|
|
3544
3555
|
>
|
|
3545
3556
|
<el-form-item
|
|
3546
3557
|
label-width="0"
|
|
3558
|
+
:class="{ 'fixed-width': inline.width }"
|
|
3547
3559
|
:prop="inline.name"
|
|
3548
3560
|
:rules="getRules(inline)"
|
|
3549
3561
|
>
|
|
@@ -3711,7 +3723,7 @@
|
|
|
3711
3723
|
v-bind="
|
|
3712
3724
|
handleExclAttribute({
|
|
3713
3725
|
data: inline,
|
|
3714
|
-
attrs: ['value']
|
|
3726
|
+
attrs: ['value', 'type']
|
|
3715
3727
|
})
|
|
3716
3728
|
"
|
|
3717
3729
|
v-on="inline.events"
|
|
@@ -3759,6 +3771,7 @@
|
|
|
3759
3771
|
</div>
|
|
3760
3772
|
<el-form-item
|
|
3761
3773
|
label-width="0"
|
|
3774
|
+
:class="{ 'fixed-width': item.inline.width }"
|
|
3762
3775
|
:prop="item.inline.name"
|
|
3763
3776
|
:rules="getRules(item.inline)"
|
|
3764
3777
|
>
|
|
@@ -3918,7 +3931,7 @@
|
|
|
3918
3931
|
v-bind="
|
|
3919
3932
|
handleExclAttribute({
|
|
3920
3933
|
data: item.inline,
|
|
3921
|
-
attrs: ['value']
|
|
3934
|
+
attrs: ['value', 'type']
|
|
3922
3935
|
})
|
|
3923
3936
|
"
|
|
3924
3937
|
v-on="item.inline.events"
|
|
@@ -4524,7 +4537,8 @@ export default {
|
|
|
4524
4537
|
mounted() {
|
|
4525
4538
|
this.$nextTick(() => {
|
|
4526
4539
|
!this.height && this.getHeight();
|
|
4527
|
-
this.$refs.esForm
|
|
4540
|
+
this.$refs.esForm &&
|
|
4541
|
+
this.$refs.esForm.$el.addEventListener('keyup', this.handleEnter);
|
|
4528
4542
|
});
|
|
4529
4543
|
},
|
|
4530
4544
|
methods: {
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
:
|
|
2
|
+
<component
|
|
3
|
+
:is="tag"
|
|
4
|
+
:class="[
|
|
5
|
+
className,
|
|
6
|
+
{ 'es-pointer': Object.keys(event).length, 'es-icon_image': tag == 'img' }
|
|
7
|
+
]"
|
|
8
|
+
:src="tag == 'img' ? contents : ''"
|
|
4
9
|
v-on="event"
|
|
5
10
|
v-html="code"
|
|
6
|
-
|
|
7
|
-
</i>
|
|
11
|
+
/>
|
|
8
12
|
</template>
|
|
9
13
|
<script>
|
|
14
|
+
import util from 'eoss-ui/src/utils/util';
|
|
10
15
|
export default {
|
|
11
16
|
name: 'EsIcon',
|
|
12
17
|
inheritAttrs: false,
|
|
@@ -19,13 +24,28 @@ export default {
|
|
|
19
24
|
deep: true,
|
|
20
25
|
handler(val) {
|
|
21
26
|
if (val) {
|
|
22
|
-
if (typeof val == 'string') {
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
if (typeof val == 'string' && val) {
|
|
28
|
+
if (
|
|
29
|
+
val.indexOf('.jpge') > 1 ||
|
|
30
|
+
val.indexOf('.jpg') > 1 ||
|
|
31
|
+
val.indexOf('.gif') > 1 ||
|
|
32
|
+
val.indexOf('.png') > 1 ||
|
|
33
|
+
val.indexOf('data:image/jpge;base64') > -1 ||
|
|
34
|
+
val.indexOf('data:image/jpg;base64') > -1 ||
|
|
35
|
+
val.indexOf('data:image/gif;base64') > -1 ||
|
|
36
|
+
val.indexOf('data:image/png;base64') > -1 ||
|
|
37
|
+
util.startWith(val, ['http', 'https', '/'])
|
|
38
|
+
) {
|
|
39
|
+
this.tag = 'img';
|
|
26
40
|
} else {
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
41
|
+
this.tag = 'i';
|
|
42
|
+
if (!this.unicode(val)) {
|
|
43
|
+
this.code = val;
|
|
44
|
+
this.className = 'es-icon';
|
|
45
|
+
} else {
|
|
46
|
+
this.code = '';
|
|
47
|
+
this.className = val;
|
|
48
|
+
}
|
|
29
49
|
}
|
|
30
50
|
} else {
|
|
31
51
|
this.code = val.code;
|
|
@@ -38,6 +58,7 @@ export default {
|
|
|
38
58
|
},
|
|
39
59
|
data() {
|
|
40
60
|
return {
|
|
61
|
+
tag: 'i',
|
|
41
62
|
code: '',
|
|
42
63
|
className: '',
|
|
43
64
|
event: {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","
|
|
1
|
+
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home"]
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
<div
|
|
3
3
|
v-if="!code"
|
|
4
4
|
class="es-login-screen"
|
|
5
|
+
:class="{
|
|
6
|
+
'es-login-medium': size == 'medium',
|
|
7
|
+
'es-login-small': size == 'small',
|
|
8
|
+
'es-login-mini': size == 'mini'
|
|
9
|
+
}"
|
|
5
10
|
:style="getBackground(loginBackgroundImg)"
|
|
6
11
|
>
|
|
7
12
|
<img v-if="loginLogoImg" class="es-login-logo" :src="loginLogoImg" />
|
|
@@ -79,7 +84,6 @@
|
|
|
79
84
|
:focusShow="focusShow"
|
|
80
85
|
:data="users"
|
|
81
86
|
@select="handleBlur"
|
|
82
|
-
:autocomplete="true"
|
|
83
87
|
>
|
|
84
88
|
<template slot="prefix">
|
|
85
89
|
<i class="es-icon-zhanghao es-label-user"></i>
|
|
@@ -394,6 +398,7 @@ export default {
|
|
|
394
398
|
type: String,
|
|
395
399
|
default: initLogin
|
|
396
400
|
},
|
|
401
|
+
size: String,
|
|
397
402
|
mode: {
|
|
398
403
|
type: String,
|
|
399
404
|
default: 'default'
|
|
@@ -988,12 +993,12 @@ export default {
|
|
|
988
993
|
isShow(res) {
|
|
989
994
|
return this.loginModel.indexOf(res) > -1;
|
|
990
995
|
},
|
|
991
|
-
getLogin() {
|
|
996
|
+
async getLogin() {
|
|
992
997
|
const config = util.getStorage('initLogin');
|
|
993
998
|
if (config) {
|
|
994
999
|
this.setConfig(config);
|
|
995
1000
|
}
|
|
996
|
-
util
|
|
1001
|
+
await util
|
|
997
1002
|
.ajax({ url: this.initLogin })
|
|
998
1003
|
.then((res) => {
|
|
999
1004
|
if (res && res.rCode === 0) {
|
|
@@ -1144,12 +1149,13 @@ export default {
|
|
|
1144
1149
|
}
|
|
1145
1150
|
let data = {};
|
|
1146
1151
|
let flag = false;
|
|
1152
|
+
let ref = 'login' + this.active;
|
|
1147
1153
|
if (this.active == 12) {
|
|
1148
1154
|
if (!this.formData.username) {
|
|
1149
|
-
this.$refs.
|
|
1155
|
+
this.$refs[ref].validateField('username');
|
|
1150
1156
|
return false;
|
|
1151
1157
|
}
|
|
1152
|
-
this.$refs.
|
|
1158
|
+
this.$refs[ref].validateField('username', (res) => {
|
|
1153
1159
|
flag = res != '';
|
|
1154
1160
|
});
|
|
1155
1161
|
if (flag) {
|
|
@@ -1162,10 +1168,10 @@ export default {
|
|
|
1162
1168
|
};
|
|
1163
1169
|
} else {
|
|
1164
1170
|
if (!this.formData.target) {
|
|
1165
|
-
this.$refs.
|
|
1171
|
+
this.$refs[ref].validateField('target');
|
|
1166
1172
|
return false;
|
|
1167
1173
|
}
|
|
1168
|
-
this.$refs.
|
|
1174
|
+
this.$refs[ref].validateField('target', (res) => {
|
|
1169
1175
|
flag = res != '';
|
|
1170
1176
|
});
|
|
1171
1177
|
if (flag) {
|