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
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
'background-image': getImgUrl(loginImageUrl)
|
|
25
25
|
}"
|
|
26
26
|
>
|
|
27
|
+
<div v-if="loginTitleUrl" class="es-login-title-image">
|
|
28
|
+
<img class="es-login-title-img" :src="loginTitleUrl" />
|
|
29
|
+
</div>
|
|
27
30
|
<div
|
|
28
31
|
v-if="switchs > 1"
|
|
29
32
|
:class="{
|
|
@@ -47,7 +50,7 @@
|
|
|
47
50
|
<div class="es-login-form-box">
|
|
48
51
|
<template v-if="isShow(active) && (active == 0 || active == 12)">
|
|
49
52
|
<el-form ref="login" class="es-login-form" :model="formData">
|
|
50
|
-
<div class="es-login-title">
|
|
53
|
+
<div class="es-login-title" v-if="!loginTitleUrl">
|
|
51
54
|
<span class="es-login-title-content">{{ title }}</span>
|
|
52
55
|
</div>
|
|
53
56
|
<el-form-item
|
|
@@ -155,7 +158,7 @@
|
|
|
155
158
|
v-if="isShow(active) && (active == 3 || active == 7 || active == 9)"
|
|
156
159
|
>
|
|
157
160
|
<div class="es-login-qrcode">
|
|
158
|
-
<div class="es-login-title">
|
|
161
|
+
<div class="es-login-title" v-if="!loginTitleUrl">
|
|
159
162
|
<div class="es-login-title-content">
|
|
160
163
|
{{ iconfonts[active].name }}
|
|
161
164
|
</div>
|
|
@@ -202,7 +205,7 @@
|
|
|
202
205
|
class="es-login-form es-login-verify"
|
|
203
206
|
:model="formData"
|
|
204
207
|
>
|
|
205
|
-
<div class="es-login-title">
|
|
208
|
+
<div class="es-login-title" v-if="!loginTitleUrl">
|
|
206
209
|
<span class="es-login-title-content">{{
|
|
207
210
|
iconfonts[active].name
|
|
208
211
|
}}</span>
|
|
@@ -291,12 +294,12 @@
|
|
|
291
294
|
<span class="es-login-icp-item" :style="_copyrightStyle">{{
|
|
292
295
|
icpInfo.copyright_unit
|
|
293
296
|
}}</span>
|
|
294
|
-
<
|
|
297
|
+
<a
|
|
295
298
|
class="es-login-icp-item"
|
|
296
299
|
target="_blank"
|
|
297
300
|
:style="_copyrightStyle"
|
|
298
301
|
:href="icpInfo.copyright_icp_url"
|
|
299
|
-
>{{ icpInfo.copyright_icp }}</
|
|
302
|
+
>{{ icpInfo.copyright_icp }}</a
|
|
300
303
|
>
|
|
301
304
|
</div>
|
|
302
305
|
<es-dialog
|
|
@@ -377,11 +380,21 @@ export default {
|
|
|
377
380
|
type: String,
|
|
378
381
|
default: '账号登录'
|
|
379
382
|
},
|
|
383
|
+
param: {
|
|
384
|
+
type: Object,
|
|
385
|
+
default() {
|
|
386
|
+
return {};
|
|
387
|
+
}
|
|
388
|
+
},
|
|
380
389
|
loginBackground: [String, Array],
|
|
381
390
|
loginImage: [String, Array],
|
|
382
391
|
loginLogo: String,
|
|
392
|
+
loginTitle: String,
|
|
383
393
|
loginName: String,
|
|
384
|
-
type:
|
|
394
|
+
type: {
|
|
395
|
+
type: String,
|
|
396
|
+
default: '0'
|
|
397
|
+
},
|
|
385
398
|
//是否加密传输
|
|
386
399
|
isEncrypt: {
|
|
387
400
|
type: Boolean,
|
|
@@ -554,6 +567,13 @@ export default {
|
|
|
554
567
|
},
|
|
555
568
|
computed: {
|
|
556
569
|
transform() {
|
|
570
|
+
if (this.align.indexOf('%') > -1) {
|
|
571
|
+
return {
|
|
572
|
+
left: this.align,
|
|
573
|
+
top: '50%',
|
|
574
|
+
transform: 'translateY(-51%)'
|
|
575
|
+
};
|
|
576
|
+
}
|
|
557
577
|
if (this.align === 'left') {
|
|
558
578
|
return {
|
|
559
579
|
left: '30%',
|
|
@@ -592,6 +612,9 @@ export default {
|
|
|
592
612
|
loginNameUrl() {
|
|
593
613
|
return this.loginNameImg ? this.loginNameImg : this.loginName;
|
|
594
614
|
},
|
|
615
|
+
loginTitleUrl() {
|
|
616
|
+
return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
|
|
617
|
+
},
|
|
595
618
|
loginLogoUrl() {
|
|
596
619
|
return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
|
|
597
620
|
},
|
|
@@ -602,22 +625,13 @@ export default {
|
|
|
602
625
|
? this.warning
|
|
603
626
|
: '本系统为非涉密系统,禁止上传和处理任何涉密文件';
|
|
604
627
|
},
|
|
605
|
-
loginType() {
|
|
606
|
-
if (this.type) {
|
|
607
|
-
return this.type;
|
|
608
|
-
}
|
|
609
|
-
if (this.loginModel) {
|
|
610
|
-
return this.loginModel;
|
|
611
|
-
}
|
|
612
|
-
return '0';
|
|
613
|
-
},
|
|
614
628
|
switchs() {
|
|
615
|
-
return Array.isArray(this.
|
|
616
|
-
? this.
|
|
617
|
-
: this.
|
|
629
|
+
return Array.isArray(this.loginModel)
|
|
630
|
+
? this.loginModel.length
|
|
631
|
+
: this.loginModel.split(',').length;
|
|
618
632
|
},
|
|
619
633
|
iconfonts() {
|
|
620
|
-
const types = this.
|
|
634
|
+
const types = this.loginModel.split(',');
|
|
621
635
|
return types.length > 2
|
|
622
636
|
? {
|
|
623
637
|
0: { type: '0', icon: 'es-icon-shuru', name: '账号登录' },
|
|
@@ -646,7 +660,7 @@ export default {
|
|
|
646
660
|
},
|
|
647
661
|
icons() {
|
|
648
662
|
let icon = [];
|
|
649
|
-
const types = this.
|
|
663
|
+
const types = this.loginModel.split(',');
|
|
650
664
|
types.forEach((item) => {
|
|
651
665
|
icon.push(this.iconfonts[item]);
|
|
652
666
|
});
|
|
@@ -668,7 +682,7 @@ export default {
|
|
|
668
682
|
}
|
|
669
683
|
},
|
|
670
684
|
watch: {
|
|
671
|
-
|
|
685
|
+
loginModel: {
|
|
672
686
|
immediate: true,
|
|
673
687
|
handler(val) {
|
|
674
688
|
this.active = val.split(',')[0];
|
|
@@ -719,8 +733,9 @@ export default {
|
|
|
719
733
|
loginBackgroundImg: null,
|
|
720
734
|
loginMainImg: null,
|
|
721
735
|
loginNameImg: null,
|
|
736
|
+
loginTitleImg: null,
|
|
722
737
|
loginLogoImg: null,
|
|
723
|
-
loginModel:
|
|
738
|
+
loginModel: this.type,
|
|
724
739
|
passModifyModel: null,
|
|
725
740
|
active: 0,
|
|
726
741
|
submit: false,
|
|
@@ -936,7 +951,7 @@ export default {
|
|
|
936
951
|
this.$emit('change-type', res, this.identifyingId);
|
|
937
952
|
},
|
|
938
953
|
isShow(res) {
|
|
939
|
-
return this.
|
|
954
|
+
return this.loginModel.indexOf(res) > -1;
|
|
940
955
|
},
|
|
941
956
|
getLogin() {
|
|
942
957
|
const config = util.getStorage('initLogin');
|
|
@@ -975,8 +990,11 @@ export default {
|
|
|
975
990
|
if (res.androidDownloadUrl) {
|
|
976
991
|
downloads['android'] = res.androidDownloadUrl;
|
|
977
992
|
}
|
|
978
|
-
if (res.iosDownloadUrl
|
|
979
|
-
downloads['ios'] = res.iosDownloadUrl
|
|
993
|
+
if (res.iosDownloadUrl) {
|
|
994
|
+
downloads['ios'] = res.iosDownloadUrl;
|
|
995
|
+
}
|
|
996
|
+
if (res.iosDownloadUrl2) {
|
|
997
|
+
downloads['pad'] = res.iosDownloadUrl2;
|
|
980
998
|
}
|
|
981
999
|
if (res.macDownloadUrl) {
|
|
982
1000
|
downloads['mac'] = res.macDownloadUrl;
|
|
@@ -994,7 +1012,9 @@ export default {
|
|
|
994
1012
|
document.title = res.subsystemName;
|
|
995
1013
|
this.app = res.appName || res.subsystemName;
|
|
996
1014
|
this.qrimg = res.qrimg || res.qrImg;
|
|
997
|
-
|
|
1015
|
+
if (res.loginModel) {
|
|
1016
|
+
this.loginModel = res.loginModel;
|
|
1017
|
+
}
|
|
998
1018
|
this.loginBackgroundImg = res.loginBackgroundUrl
|
|
999
1019
|
? res.loginBackgroundUrl.split(',')
|
|
1000
1020
|
: null;
|
|
@@ -1011,12 +1031,15 @@ export default {
|
|
|
1011
1031
|
if (res.subsystemExtend.applicationName) {
|
|
1012
1032
|
localStorage.setItem('appcode', res.subsystemExtend.applicationName);
|
|
1013
1033
|
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1034
|
+
if (res.subsystemExtend.loginBoxBackgroun) {
|
|
1035
|
+
this.loginMainImg = res.subsystemExtend.loginBoxBackground.split(',');
|
|
1036
|
+
}
|
|
1037
|
+
if (res.subsystemExtend.loginBoxTitle) {
|
|
1038
|
+
this.loginTitleImg = res.subsystemExtend.loginBoxTitle;
|
|
1039
|
+
}
|
|
1040
|
+
if (res.subsystemExtend.loginBoxName) {
|
|
1041
|
+
this.loginNameImg = res.subsystemExtend.loginBoxName;
|
|
1042
|
+
}
|
|
1020
1043
|
if (res.subsystemExtend.loginBoxAlign && this.useResults) {
|
|
1021
1044
|
this.align = res.subsystemExtend.loginBoxAlign;
|
|
1022
1045
|
}
|
|
@@ -1151,6 +1174,7 @@ export default {
|
|
|
1151
1174
|
this.$refs['login'].validate((valid) => {
|
|
1152
1175
|
if (valid) {
|
|
1153
1176
|
this.submit = true;
|
|
1177
|
+
let param = util.getParams() || {};
|
|
1154
1178
|
const data =
|
|
1155
1179
|
this.active == '0'
|
|
1156
1180
|
? {
|
|
@@ -1186,12 +1210,16 @@ export default {
|
|
|
1186
1210
|
};
|
|
1187
1211
|
if (this.onLogin) {
|
|
1188
1212
|
if (this.active == '0') {
|
|
1189
|
-
this.onLogin(
|
|
1213
|
+
this.onLogin(
|
|
1214
|
+
{ ...param, ...data },
|
|
1215
|
+
this.getImgCode,
|
|
1216
|
+
this.handleRemember
|
|
1217
|
+
);
|
|
1190
1218
|
} else {
|
|
1191
|
-
this.onLogin(data);
|
|
1219
|
+
this.onLogin({ ...param, ...data });
|
|
1192
1220
|
}
|
|
1193
1221
|
} else {
|
|
1194
|
-
this.handleUserLogin(data);
|
|
1222
|
+
this.handleUserLogin({ ...param, ...this.param, ...data });
|
|
1195
1223
|
}
|
|
1196
1224
|
} else {
|
|
1197
1225
|
this.submit = false;
|
|
@@ -237,6 +237,7 @@
|
|
|
237
237
|
<slot name="user">
|
|
238
238
|
<userinfo
|
|
239
239
|
v-bind="$attrs"
|
|
240
|
+
:contents="userInfoContents"
|
|
240
241
|
@change="handleUserModel"
|
|
241
242
|
@reGetConfig="reGetConfig"
|
|
242
243
|
>
|
|
@@ -649,6 +650,7 @@ export default {
|
|
|
649
650
|
color: util.getStorage('theme') ? util.getStorage('theme') : this.theme,
|
|
650
651
|
//显示用户信息
|
|
651
652
|
showUserInfo: false,
|
|
653
|
+
userInfoContents: undefined,
|
|
652
654
|
//是否展示侧边导航
|
|
653
655
|
showMenu: true,
|
|
654
656
|
props: {},
|
|
@@ -950,7 +952,13 @@ export default {
|
|
|
950
952
|
this.color = unescape(results[i].themeColor).toLowerCase();
|
|
951
953
|
}
|
|
952
954
|
if (i === 'userStyle' && results[i].color) {
|
|
953
|
-
|
|
955
|
+
let color = unescape(results[i].color).toLowerCase();
|
|
956
|
+
if (util.startWith(color, '#')) {
|
|
957
|
+
this.color = color;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
if (i === 'subsystemExtend' && results[i].userInfoContents) {
|
|
961
|
+
this.userInfoContents = results[i].userInfoContents;
|
|
954
962
|
}
|
|
955
963
|
if (i === 'subsystemExtend' && results[i].webPageWatermark) {
|
|
956
964
|
try {
|
|
@@ -1676,13 +1684,13 @@ export default {
|
|
|
1676
1684
|
case 'user':
|
|
1677
1685
|
this.showUserInfo = true;
|
|
1678
1686
|
break;
|
|
1679
|
-
case 'online':
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1687
|
+
// case 'online':
|
|
1688
|
+
// this.dialog = {
|
|
1689
|
+
// title: '查看在线人员',
|
|
1690
|
+
// show: true,
|
|
1691
|
+
// url: '/main/sysuseronline/list.dhtml'
|
|
1692
|
+
// };
|
|
1693
|
+
// break;
|
|
1686
1694
|
case 'notice':
|
|
1687
1695
|
this.showMsg = !this.showMsg;
|
|
1688
1696
|
break;
|
|
@@ -1985,9 +1993,9 @@ export default {
|
|
|
1985
1993
|
clearTimeout(this.sysMsgOut);
|
|
1986
1994
|
}
|
|
1987
1995
|
},
|
|
1988
|
-
handleDialog(obj) {
|
|
1989
|
-
|
|
1990
|
-
},
|
|
1996
|
+
// handleDialog(obj) {
|
|
1997
|
+
// this.dialog = obj;
|
|
1998
|
+
// },
|
|
1991
1999
|
handleUserModel(name, val) {
|
|
1992
2000
|
this.$set(this.userModel, name, val);
|
|
1993
2001
|
},
|
|
@@ -32,6 +32,117 @@ export default {
|
|
|
32
32
|
secret: {
|
|
33
33
|
type: Boolean,
|
|
34
34
|
default: true
|
|
35
|
+
},
|
|
36
|
+
contents: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default() {
|
|
39
|
+
return [
|
|
40
|
+
{
|
|
41
|
+
title: '用户信息',
|
|
42
|
+
contents: [
|
|
43
|
+
{
|
|
44
|
+
type: 'upload',
|
|
45
|
+
name: 'userHeadUrl',
|
|
46
|
+
label: '头像',
|
|
47
|
+
portrait: true,
|
|
48
|
+
code: 'USER_IMG',
|
|
49
|
+
col: 12,
|
|
50
|
+
weixinQrcode: true,
|
|
51
|
+
class: 'es-flex-none'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: 'select',
|
|
55
|
+
name: 'job',
|
|
56
|
+
label: '切换职务',
|
|
57
|
+
valueType: 'object',
|
|
58
|
+
class: 'es-user-info-job',
|
|
59
|
+
row: true,
|
|
60
|
+
col: 12
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'orgName',
|
|
64
|
+
label: '所属机构',
|
|
65
|
+
type: 'text',
|
|
66
|
+
disabled: true,
|
|
67
|
+
col: 6
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'depName',
|
|
71
|
+
label: '所属部门',
|
|
72
|
+
type: 'text',
|
|
73
|
+
disabled: true,
|
|
74
|
+
col: 6
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'idCard',
|
|
78
|
+
label: '身份证号',
|
|
79
|
+
type: 'text',
|
|
80
|
+
disabled: true,
|
|
81
|
+
col: 6
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'outCode',
|
|
85
|
+
label: '工号',
|
|
86
|
+
type: 'text',
|
|
87
|
+
disabled: true,
|
|
88
|
+
col: 6
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'phone',
|
|
92
|
+
placeholder: '联系电话',
|
|
93
|
+
label: '联系电话',
|
|
94
|
+
type: 'text',
|
|
95
|
+
col: 6
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'email',
|
|
99
|
+
placeholder: '电子邮箱',
|
|
100
|
+
label: '电子邮箱',
|
|
101
|
+
type: 'text',
|
|
102
|
+
rules: {
|
|
103
|
+
type: 'email',
|
|
104
|
+
message: '请输入正确的邮箱地址',
|
|
105
|
+
trigger: 'blur'
|
|
106
|
+
},
|
|
107
|
+
col: 6
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'officetel',
|
|
111
|
+
placeholder: '座机号',
|
|
112
|
+
label: '座机号',
|
|
113
|
+
type: 'text',
|
|
114
|
+
rules: {
|
|
115
|
+
type: 'telephone'
|
|
116
|
+
//message: '请输入正确的邮箱地址',
|
|
117
|
+
//trigger: 'blur'
|
|
118
|
+
},
|
|
119
|
+
col: 6
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'oldpassword',
|
|
123
|
+
placeholder: '旧密码',
|
|
124
|
+
label: '旧密码',
|
|
125
|
+
type: 'text',
|
|
126
|
+
col: 6
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'password',
|
|
130
|
+
placeholder: '新密码',
|
|
131
|
+
label: '新密码',
|
|
132
|
+
type: 'text',
|
|
133
|
+
col: 6
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'repassword',
|
|
137
|
+
placeholder: '确认新密码',
|
|
138
|
+
label: '确认新密码',
|
|
139
|
+
type: 'text',
|
|
140
|
+
col: 6
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
}
|
|
35
146
|
}
|
|
36
147
|
},
|
|
37
148
|
data() {
|
|
@@ -61,153 +172,56 @@ export default {
|
|
|
61
172
|
},
|
|
62
173
|
computed: {
|
|
63
174
|
forms() {
|
|
64
|
-
let page =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: 'orgName',
|
|
110
|
-
label: '所属机构',
|
|
111
|
-
type: 'text',
|
|
112
|
-
disabled: true,
|
|
113
|
-
col: 6
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'depName',
|
|
117
|
-
label: '所属部门',
|
|
118
|
-
type: 'text',
|
|
119
|
-
disabled: true,
|
|
120
|
-
col: 6
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'idCard',
|
|
124
|
-
label: '身份证号',
|
|
125
|
-
type: 'text',
|
|
126
|
-
disabled: true,
|
|
127
|
-
row: true,
|
|
128
|
-
col: 12
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: 'phone',
|
|
132
|
-
placeholder: '联系电话',
|
|
133
|
-
label: '联系电话',
|
|
134
|
-
type: 'text',
|
|
135
|
-
col: 6
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'email',
|
|
139
|
-
placeholder: '电子邮箱',
|
|
140
|
-
label: '电子邮箱',
|
|
141
|
-
type: 'text',
|
|
142
|
-
rules: {
|
|
143
|
-
type: 'email',
|
|
144
|
-
message: '请输入正确的邮箱地址',
|
|
175
|
+
let page = JSON.parse(JSON.stringify(this.contents));
|
|
176
|
+
for (let i = 0; i < page.length; i++) {
|
|
177
|
+
for (let x = 0; x < page[i].contents.length; x++) {
|
|
178
|
+
let item = page[i].contents[x];
|
|
179
|
+
if (item.name == 'userHeadUrl') {
|
|
180
|
+
page[i].contents[x].ownId = store.get('userModel').personId;
|
|
181
|
+
page[i].contents[x].onSuccess = this.handleUploadSuccess;
|
|
182
|
+
if (item.weixinQrcode && this.qrcode) {
|
|
183
|
+
page[i].contents[x].inline = {
|
|
184
|
+
range: false,
|
|
185
|
+
class: 'weixinQrcode',
|
|
186
|
+
type: 'image',
|
|
187
|
+
url: this.qrcode,
|
|
188
|
+
event: this.getQrcode
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (item.name == 'job') {
|
|
193
|
+
page[i].contents[x].data = store.get('userModel').identityList;
|
|
194
|
+
}
|
|
195
|
+
if (item.name == 'oldpassword') {
|
|
196
|
+
page[i].contents[x].rules = {
|
|
197
|
+
required: true,
|
|
198
|
+
message: '请输入旧密码'
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
if (item.name == 'password' && this.checkPassword) {
|
|
202
|
+
page[i].contents[x].rules = {
|
|
203
|
+
pattern: this.checkPassword,
|
|
204
|
+
message: this.checkPasswordMsg
|
|
205
|
+
? this.checkPasswordMsg
|
|
206
|
+
: '密码格式不合法',
|
|
207
|
+
trigger: 'blur'
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
if (item.name == 'repassword') {
|
|
211
|
+
let rules = [{ validator: this.repassword, trigger: 'blur' }];
|
|
212
|
+
if (this.checkPassword) {
|
|
213
|
+
rules.push({
|
|
214
|
+
pattern: this.checkPassword,
|
|
215
|
+
message: this.checkPasswordMsg
|
|
216
|
+
? this.checkPasswordMsg
|
|
217
|
+
: '密码格式不合法',
|
|
145
218
|
trigger: 'blur'
|
|
146
|
-
}
|
|
147
|
-
col: 6
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'officetel',
|
|
151
|
-
placeholder: '座机号',
|
|
152
|
-
label: '座机号',
|
|
153
|
-
type: 'text',
|
|
154
|
-
rules: {
|
|
155
|
-
type: 'telephone'
|
|
156
|
-
//message: '请输入正确的邮箱地址',
|
|
157
|
-
//trigger: 'blur'
|
|
158
|
-
},
|
|
159
|
-
col: 6
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: 'oldpassword',
|
|
163
|
-
placeholder: '旧密码',
|
|
164
|
-
label: '旧密码',
|
|
165
|
-
rules: this.values.password
|
|
166
|
-
? { required: true, message: '请输入旧密码' }
|
|
167
|
-
: {},
|
|
168
|
-
type: 'text',
|
|
169
|
-
col: 6
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: 'password',
|
|
173
|
-
placeholder: '新密码',
|
|
174
|
-
label: '新密码',
|
|
175
|
-
type: 'text',
|
|
176
|
-
rules: [
|
|
177
|
-
this.checkPassword
|
|
178
|
-
? {
|
|
179
|
-
pattern: this.checkPassword,
|
|
180
|
-
message: this.checkPasswordMsg
|
|
181
|
-
? this.checkPasswordMsg
|
|
182
|
-
: '密码格式不合法',
|
|
183
|
-
trigger: 'blur'
|
|
184
|
-
}
|
|
185
|
-
: {}
|
|
186
|
-
],
|
|
187
|
-
col: 6
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: 'repassword',
|
|
191
|
-
placeholder: '确认新密码',
|
|
192
|
-
label: '确认新密码',
|
|
193
|
-
type: 'text',
|
|
194
|
-
rules: [
|
|
195
|
-
this.checkPassword
|
|
196
|
-
? {
|
|
197
|
-
pattern: this.checkPassword,
|
|
198
|
-
message: this.checkPasswordMsg
|
|
199
|
-
? this.checkPasswordMsg
|
|
200
|
-
: '密码格式不合法',
|
|
201
|
-
trigger: 'blur'
|
|
202
|
-
}
|
|
203
|
-
: {},
|
|
204
|
-
{ validator: this.repassword, trigger: 'blur' }
|
|
205
|
-
],
|
|
206
|
-
col: 6
|
|
219
|
+
});
|
|
207
220
|
}
|
|
208
|
-
|
|
221
|
+
page[i].contents[x].rules = rules;
|
|
222
|
+
}
|
|
209
223
|
}
|
|
210
|
-
|
|
224
|
+
}
|
|
211
225
|
if (this.showNotify) {
|
|
212
226
|
page.push({
|
|
213
227
|
title: '接收消息类型',
|
|
@@ -270,12 +284,13 @@ export default {
|
|
|
270
284
|
this.checkPasswordMsg = results.checkPasswordMsg;
|
|
271
285
|
}
|
|
272
286
|
this.results = results.simpleUserInfo;
|
|
273
|
-
this.values
|
|
274
|
-
this.values.
|
|
275
|
-
this.values.
|
|
276
|
-
this.values.
|
|
277
|
-
this.values.
|
|
278
|
-
this.values.
|
|
287
|
+
this.values = { ...this.values, ...results.simpleUserInfo };
|
|
288
|
+
// this.values.orgName = results.simpleUserInfo.orgName;
|
|
289
|
+
// this.values.depName = results.simpleUserInfo.depName;
|
|
290
|
+
// this.values.idCard = results.simpleUserInfo.idCard;
|
|
291
|
+
// this.values.phone = results.simpleUserInfo.phone;
|
|
292
|
+
// this.values.email = results.simpleUserInfo.email;
|
|
293
|
+
// this.values.officeTel = results.simpleUserInfo.officeTel;
|
|
279
294
|
if (results.userScanBindImgUrl) {
|
|
280
295
|
this.userScanBindImgUrl = results.userScanBindImgUrl;
|
|
281
296
|
this.qrcode =
|
|
@@ -239,7 +239,7 @@ export default {
|
|
|
239
239
|
item.icons
|
|
240
240
|
? this.unicode(item.icons)
|
|
241
241
|
? item.icons
|
|
242
|
-
: 'es-
|
|
242
|
+
: 'es-icon iconfont'
|
|
243
243
|
: 'es-icon-application',
|
|
244
244
|
'es-menu-item-icon'
|
|
245
245
|
],
|
|
@@ -411,7 +411,7 @@ export default {
|
|
|
411
411
|
item.icons
|
|
412
412
|
? this.unicode(item.icons)
|
|
413
413
|
? item.icons
|
|
414
|
-
: 'es-
|
|
414
|
+
: 'es-icon iconfont'
|
|
415
415
|
: 'es-icon-application',
|
|
416
416
|
'es-menu-item-icon'
|
|
417
417
|
],
|
|
@@ -210,7 +210,6 @@
|
|
|
210
210
|
import util from 'eoss-ui/src/utils/util.js';
|
|
211
211
|
import { getSelectorOrgDetail } from 'eoss-ui/src/config/api.js';
|
|
212
212
|
import Clickoutside from 'eoss-element/src/utils/clickoutside';
|
|
213
|
-
import { debounce } from 'eoss-element/src/utils/util';
|
|
214
213
|
export default {
|
|
215
214
|
name: 'EsSelector',
|
|
216
215
|
inheritAttrs: false,
|