eoss-ui 0.5.92 → 0.5.94
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 +198 -210
- package/lib/button.js +2 -2
- package/lib/calendar.js +2 -2
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +3 -2
- package/lib/clients.js +2 -2
- package/lib/config/image.js +3 -0
- package/lib/data-table-form.js +3 -2
- package/lib/data-table.js +3 -2
- package/lib/date-picker.js +2 -2
- package/lib/dialog.js +6 -5
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +388 -158
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +2 -2
- package/lib/flow-list.js +4 -4
- package/lib/flow.js +6 -5
- package/lib/form.js +6 -5
- package/lib/handle-user.js +2 -2
- package/lib/handler.js +2 -2
- package/lib/icon.js +9 -9
- package/lib/icons.js +4 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +2 -2
- package/lib/input.js +2 -2
- package/lib/label.js +2 -2
- package/lib/layout.js +2 -2
- package/lib/login.js +239 -115
- package/lib/main.js +153 -24
- package/lib/menu.js +2 -2
- package/lib/nav.js +2 -2
- package/lib/notify.js +2 -2
- package/lib/page.js +2 -2
- package/lib/pagination.js +2 -2
- package/lib/player.js +8 -8
- package/lib/qr-code.js +4 -4
- package/lib/radio-group.js +2 -2
- package/lib/retrial-auth.js +2 -2
- package/lib/select-ganged.js +2 -2
- package/lib/select.js +2 -2
- package/lib/selector-panel.js +6 -5
- package/lib/selector.js +11 -11
- package/lib/sizer.js +2 -2
- package/lib/steps.js +2 -2
- package/lib/switch.js +9 -9
- package/lib/table-form.js +2 -2
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +2 -2
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/index.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 +2 -2
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +2 -2
- package/lib/tree.js +2 -2
- package/lib/upload.js +13 -12
- package/lib/wujie.js +2 -2
- package/lib/wxlogin.js +145 -145
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/form/src/main.vue +1 -1
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +126 -20
- package/packages/main/src/main.vue +113 -3
- package/packages/main/src/simplicity/index.vue +1 -1
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/index.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/base.scss +41 -0
- package/packages/theme-chalk/src/main.scss +3 -0
- package/packages/theme-chalk/src/menu.scss +8 -0
- package/packages/upload/src/main.vue +2 -2
- package/src/.DS_Store +0 -0
- package/src/config/image.js +2 -0
- package/src/index.js +1 -1
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
<slot name="button"></slot>
|
|
312
312
|
<span @click="downloadExe">初次使用请下载一键安装包</span>
|
|
313
313
|
</div>
|
|
314
|
-
<div class="es-warning" v-if="
|
|
314
|
+
<div class="es-warning" v-if="warnInfo">
|
|
315
315
|
{{ warnInfo }}
|
|
316
316
|
</div>
|
|
317
317
|
</div>
|
|
@@ -371,6 +371,14 @@
|
|
|
371
371
|
>
|
|
372
372
|
<es-qr-code :content="checkCode" v-if="checkCode"></es-qr-code>
|
|
373
373
|
</es-dialog>
|
|
374
|
+
<transition name="launch-fade">
|
|
375
|
+
<div class="es-launch-image" :style="_launchImage" v-show="showLaunch">
|
|
376
|
+
<p class="es-launch-text es-launch-user-name">{{ userName }},你好!</p>
|
|
377
|
+
<p class="es-launch-text es-launch-system-name">
|
|
378
|
+
欢迎进入{{ sysName }}
|
|
379
|
+
</p>
|
|
380
|
+
</div>
|
|
381
|
+
</transition>
|
|
374
382
|
</div>
|
|
375
383
|
</template>
|
|
376
384
|
<script>
|
|
@@ -393,6 +401,7 @@ import {
|
|
|
393
401
|
doAssistanceQrLogin
|
|
394
402
|
} from 'eoss-ui/src/config/api.js';
|
|
395
403
|
const ceshi = util.getParams('ceshi');
|
|
404
|
+
import { dayImg, nightImg } from 'eoss-ui/src/config/image';
|
|
396
405
|
export default {
|
|
397
406
|
name: 'EsLogin',
|
|
398
407
|
inheritAttrs: false,
|
|
@@ -410,6 +419,7 @@ export default {
|
|
|
410
419
|
type: String,
|
|
411
420
|
default: 'default'
|
|
412
421
|
},
|
|
422
|
+
launch: Boolean,
|
|
413
423
|
param: {
|
|
414
424
|
type: Object,
|
|
415
425
|
default() {
|
|
@@ -425,6 +435,7 @@ export default {
|
|
|
425
435
|
type: String,
|
|
426
436
|
default: '0'
|
|
427
437
|
},
|
|
438
|
+
firstLoginModel: String,
|
|
428
439
|
//是否加密传输
|
|
429
440
|
isEncrypt: {
|
|
430
441
|
type: Boolean,
|
|
@@ -597,7 +608,16 @@ export default {
|
|
|
597
608
|
},
|
|
598
609
|
isScale: Boolean,
|
|
599
610
|
showIosTips: Boolean,
|
|
600
|
-
safe: Boolean
|
|
611
|
+
safe: Boolean,
|
|
612
|
+
launchImage: {
|
|
613
|
+
type: [String, Object],
|
|
614
|
+
default() {
|
|
615
|
+
return {
|
|
616
|
+
day: dayImg,
|
|
617
|
+
night: nightImg
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
}
|
|
601
621
|
},
|
|
602
622
|
computed: {
|
|
603
623
|
transform() {
|
|
@@ -706,6 +726,12 @@ export default {
|
|
|
706
726
|
(this.passModifyModel.indexOf('6') > -1 ||
|
|
707
727
|
this.passModifyModel.indexOf('11') > -1)
|
|
708
728
|
);
|
|
729
|
+
},
|
|
730
|
+
_launchImage() {
|
|
731
|
+
let img = util.isObject(this.launchImages)
|
|
732
|
+
? this.launchImages[this.launchKey]
|
|
733
|
+
: this.launchImages;
|
|
734
|
+
return { 'background-image': `url(${img})` };
|
|
709
735
|
}
|
|
710
736
|
},
|
|
711
737
|
watch: {
|
|
@@ -830,6 +856,15 @@ export default {
|
|
|
830
856
|
event.preventDefault();
|
|
831
857
|
return false;
|
|
832
858
|
}
|
|
859
|
+
},
|
|
860
|
+
userName: '',
|
|
861
|
+
launchShow: this.launch,
|
|
862
|
+
showLaunch: false,
|
|
863
|
+
launchImages: this.launchImage,
|
|
864
|
+
launchKey: 'day',
|
|
865
|
+
launchTime: {
|
|
866
|
+
type: Number,
|
|
867
|
+
default: 3000
|
|
833
868
|
}
|
|
834
869
|
};
|
|
835
870
|
},
|
|
@@ -850,6 +885,8 @@ export default {
|
|
|
850
885
|
]);
|
|
851
886
|
},
|
|
852
887
|
created() {
|
|
888
|
+
sessionStorage.setItem('launchImage', JSON.stringify(this.launchImages));
|
|
889
|
+
this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
|
|
853
890
|
if (ceshi == 'true' || ceshi == true) {
|
|
854
891
|
this.loginModel = '0';
|
|
855
892
|
}
|
|
@@ -1074,6 +1111,7 @@ export default {
|
|
|
1074
1111
|
});
|
|
1075
1112
|
},
|
|
1076
1113
|
setConfig(res) {
|
|
1114
|
+
const isLogined = localStorage.getItem('isLogined');
|
|
1077
1115
|
this.identifyingId = res.identifyingId || '';
|
|
1078
1116
|
this.getImgCode();
|
|
1079
1117
|
let downloads = {};
|
|
@@ -1095,9 +1133,10 @@ export default {
|
|
|
1095
1133
|
if (res.linuxDownloadUrl) {
|
|
1096
1134
|
downloads['linux'] = res.linuxDownloadUrl;
|
|
1097
1135
|
}
|
|
1136
|
+
this.sysName = res.subsystemName;
|
|
1137
|
+
sessionStorage.setItem('sysName', this.sysName);
|
|
1098
1138
|
this.secret = res.secret;
|
|
1099
1139
|
this.setup = res.setup;
|
|
1100
|
-
this.sysName = res.subsystemName;
|
|
1101
1140
|
this.downloadSetup = res.downloadSetup;
|
|
1102
1141
|
if (res.subsystemName) {
|
|
1103
1142
|
document.title = res.subsystemName;
|
|
@@ -1107,7 +1146,10 @@ export default {
|
|
|
1107
1146
|
this.qrimg = res.qrimg || res.qrImg;
|
|
1108
1147
|
}
|
|
1109
1148
|
if (res.loginModel && ceshi !== 'true' && ceshi !== true) {
|
|
1110
|
-
this.loginModel =
|
|
1149
|
+
this.loginModel =
|
|
1150
|
+
(res.firstLoginModel || this.firstLoginModel) && !isLogined
|
|
1151
|
+
? res.firstLoginModel || this.firstLoginModel
|
|
1152
|
+
: res.loginModel;
|
|
1111
1153
|
}
|
|
1112
1154
|
if (res.loginBackgroundUrl) {
|
|
1113
1155
|
this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
|
|
@@ -1128,7 +1170,10 @@ export default {
|
|
|
1128
1170
|
res.subsystemExtend.loginModel &&
|
|
1129
1171
|
(ceshi == 'true' || ceshi == true)
|
|
1130
1172
|
) {
|
|
1131
|
-
this.loginModel =
|
|
1173
|
+
this.loginModel =
|
|
1174
|
+
(res.firstLoginModel || this.firstLoginModel) && !isLogined
|
|
1175
|
+
? res.firstLoginModel || this.firstLoginModel
|
|
1176
|
+
: res.subsystemExtend.loginModel;
|
|
1132
1177
|
}
|
|
1133
1178
|
if (res.subsystemExtend.applicationName) {
|
|
1134
1179
|
localStorage.setItem('appcode', res.subsystemExtend.applicationName);
|
|
@@ -1171,6 +1216,39 @@ export default {
|
|
|
1171
1216
|
if (res.subsystemExtend.uosDownloadUrl) {
|
|
1172
1217
|
downloads.uos = res.subsystemExtend.uosDownloadUrl;
|
|
1173
1218
|
}
|
|
1219
|
+
if (res.subsystemExtend.warningText) {
|
|
1220
|
+
this.warningText = res.subsystemExtend.warningText;
|
|
1221
|
+
}
|
|
1222
|
+
if (res.subsystemExtend.launchTime) {
|
|
1223
|
+
sessionStorage.setItem('launchTime', res.subsystemExtend.launchTime);
|
|
1224
|
+
}
|
|
1225
|
+
if (res.subsystemExtend.launchImage) {
|
|
1226
|
+
if (!this.launchShow) {
|
|
1227
|
+
this.launchShow = true;
|
|
1228
|
+
setTimeout(
|
|
1229
|
+
() => {
|
|
1230
|
+
this.launchShow = false;
|
|
1231
|
+
},
|
|
1232
|
+
res.subsystemExtend.launchTime
|
|
1233
|
+
? parseInt(res.subsystemExtend.launchTime)
|
|
1234
|
+
: this.launchTime
|
|
1235
|
+
);
|
|
1236
|
+
}
|
|
1237
|
+
if (
|
|
1238
|
+
res.subsystemExtend.launchImage != 'true' &&
|
|
1239
|
+
res.subsystemExtend.launchImage != true
|
|
1240
|
+
) {
|
|
1241
|
+
this.launchImages =
|
|
1242
|
+
res.subsystemExtend.launchImage.indexOf('{') > -1 &&
|
|
1243
|
+
res.subsystemExtend.launchImage.indexOf('}') > -1
|
|
1244
|
+
? JSON.parse(res.subsystemExtend.launchImage)
|
|
1245
|
+
: res.subsystemExtend.launchImage;
|
|
1246
|
+
}
|
|
1247
|
+
sessionStorage.setItem(
|
|
1248
|
+
'launchImage',
|
|
1249
|
+
JSON.stringify(this.launchImages)
|
|
1250
|
+
);
|
|
1251
|
+
}
|
|
1174
1252
|
}
|
|
1175
1253
|
this.passModifyModel = res.passModifyModel;
|
|
1176
1254
|
this.wechatAppid = res.wechatAppid;
|
|
@@ -1485,6 +1563,7 @@ export default {
|
|
|
1485
1563
|
handleResults(results, type) {
|
|
1486
1564
|
switch (results.statusCode) {
|
|
1487
1565
|
case 0:
|
|
1566
|
+
this.userName = results.userName;
|
|
1488
1567
|
util.setStorage({
|
|
1489
1568
|
type: this.storage,
|
|
1490
1569
|
key: {
|
|
@@ -1497,25 +1576,52 @@ export default {
|
|
|
1497
1576
|
useCaseCodes: results.resourceCodes
|
|
1498
1577
|
}
|
|
1499
1578
|
});
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1579
|
+
if (
|
|
1580
|
+
this.launchShow &&
|
|
1581
|
+
!this.toUrl &&
|
|
1582
|
+
!results.doorIndex &&
|
|
1583
|
+
!this.doorIndex
|
|
1584
|
+
) {
|
|
1585
|
+
this.$message({
|
|
1586
|
+
message: '登录成功!',
|
|
1587
|
+
type: 'success',
|
|
1588
|
+
duration: 1000
|
|
1589
|
+
});
|
|
1590
|
+
this.showLaunch = true;
|
|
1591
|
+
setTimeout(() => {
|
|
1592
|
+
sessionStorage.setItem('showLaunch', 1);
|
|
1593
|
+
if (window.location.href.indexOf('login.html') > -1) {
|
|
1594
|
+
window.location.href = './main.html';
|
|
1510
1595
|
} else {
|
|
1511
|
-
|
|
1512
|
-
|
|
1596
|
+
this.$router.push({ name: 'main' });
|
|
1597
|
+
}
|
|
1598
|
+
this.showLaunch = false;
|
|
1599
|
+
}, 3000);
|
|
1600
|
+
} else {
|
|
1601
|
+
if (this.launchShow) {
|
|
1602
|
+
sessionStorage.setItem('launch', this.launchShow);
|
|
1603
|
+
}
|
|
1604
|
+
this.$message({
|
|
1605
|
+
message: '登录成功!',
|
|
1606
|
+
type: 'success',
|
|
1607
|
+
duration: 1500,
|
|
1608
|
+
onClose: () => {
|
|
1609
|
+
if (this.toUrl) {
|
|
1610
|
+
window.location.href = this.toUrl;
|
|
1611
|
+
} else if (results.doorIndex && this.doorIndex) {
|
|
1612
|
+
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
1613
|
+
localStorage.setItem('isLogined', true);
|
|
1614
|
+
window.location.href = results.doorIndex;
|
|
1513
1615
|
} else {
|
|
1514
|
-
|
|
1616
|
+
if (window.location.href.indexOf('login.html') > -1) {
|
|
1617
|
+
window.location.href = './main.html';
|
|
1618
|
+
} else {
|
|
1619
|
+
this.$router.push({ name: 'main' });
|
|
1620
|
+
}
|
|
1515
1621
|
}
|
|
1516
1622
|
}
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1519
1625
|
break;
|
|
1520
1626
|
case 2:
|
|
1521
1627
|
this.$confirm(
|
|
@@ -37,9 +37,19 @@
|
|
|
37
37
|
></iframe>
|
|
38
38
|
</es-dialog>
|
|
39
39
|
<!-- 公用弹窗 end -->
|
|
40
|
+
|
|
41
|
+
<transition name="launch-fade">
|
|
42
|
+
<div class="es-launch-image" :style="_launchImage" v-show="launchShow">
|
|
43
|
+
<p class="es-launch-text es-launch-user-name">{{ userName }},你好!</p>
|
|
44
|
+
<p class="es-launch-text es-launch-system-name">
|
|
45
|
+
欢迎进入{{ sysName }}
|
|
46
|
+
</p>
|
|
47
|
+
</div>
|
|
48
|
+
</transition>
|
|
40
49
|
</div>
|
|
41
50
|
</template>
|
|
42
51
|
<script>
|
|
52
|
+
import { dayImg, nightImg } from 'eoss-ui/src/config/image';
|
|
43
53
|
import Simplicity from './simplicity/index.vue';
|
|
44
54
|
import MainDefault from './default/index.vue';
|
|
45
55
|
import util from 'eoss-ui/src/utils/util';
|
|
@@ -58,9 +68,30 @@ export default {
|
|
|
58
68
|
MainDefault
|
|
59
69
|
},
|
|
60
70
|
props: {
|
|
61
|
-
|
|
71
|
+
launch: Boolean,
|
|
72
|
+
type: String,
|
|
73
|
+
launchImage: {
|
|
74
|
+
type: [String, Object],
|
|
75
|
+
default() {
|
|
76
|
+
return {
|
|
77
|
+
day: dayImg,
|
|
78
|
+
night: nightImg
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
launchTime: {
|
|
83
|
+
type: Number,
|
|
84
|
+
default: 3000
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
computed: {
|
|
88
|
+
_launchImage() {
|
|
89
|
+
let img = util.isObject(this.launchImages)
|
|
90
|
+
? this.launchImages[this.launchKey]
|
|
91
|
+
: this.launchImages;
|
|
92
|
+
return { 'background-image': `url(${img})` };
|
|
93
|
+
}
|
|
62
94
|
},
|
|
63
|
-
computed: {},
|
|
64
95
|
watch: {},
|
|
65
96
|
data() {
|
|
66
97
|
return {
|
|
@@ -68,10 +99,18 @@ export default {
|
|
|
68
99
|
appCode: '',
|
|
69
100
|
params: {},
|
|
70
101
|
dialogs: [],
|
|
71
|
-
visibles: []
|
|
102
|
+
visibles: [],
|
|
103
|
+
sysName: '',
|
|
104
|
+
userName: '',
|
|
105
|
+
launchShow: this.launch,
|
|
106
|
+
showLaunch: false,
|
|
107
|
+
launchImages: this.launchImage,
|
|
108
|
+
launchKey: 'day',
|
|
109
|
+
launchTimer: null
|
|
72
110
|
};
|
|
73
111
|
},
|
|
74
112
|
created() {
|
|
113
|
+
this.init();
|
|
75
114
|
this.params = util.getParams() || {};
|
|
76
115
|
this.sysCode = this.params.sysCode;
|
|
77
116
|
this.appCode = this.params.appCode;
|
|
@@ -132,6 +171,40 @@ export default {
|
|
|
132
171
|
});
|
|
133
172
|
},
|
|
134
173
|
methods: {
|
|
174
|
+
/**
|
|
175
|
+
* @desc:初始化
|
|
176
|
+
* @author huangbo
|
|
177
|
+
* @date 2024年9月7日
|
|
178
|
+
**/
|
|
179
|
+
init() {
|
|
180
|
+
this.userName = util.getStorage('userName');
|
|
181
|
+
this.sysName = util.getStorage('sysName');
|
|
182
|
+
this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
|
|
183
|
+
const showLaunch = sessionStorage.getItem('showLaunch');
|
|
184
|
+
const launch = sessionStorage.getItem('launch');
|
|
185
|
+
const launchImage = sessionStorage.getItem('launchImage');
|
|
186
|
+
const launchTime = util.getStorage('launchTime');
|
|
187
|
+
if (launchImage) {
|
|
188
|
+
this.launchImages = JSON.parse(launchImage);
|
|
189
|
+
}
|
|
190
|
+
if (showLaunch) {
|
|
191
|
+
this.launchShow = false;
|
|
192
|
+
} else if (launch) {
|
|
193
|
+
if (launch == 'true') {
|
|
194
|
+
this.launchShow = true;
|
|
195
|
+
clearTimeout(this.launchTimer);
|
|
196
|
+
this.launchTimer = setTimeout(
|
|
197
|
+
() => {
|
|
198
|
+
this.launchShow = false;
|
|
199
|
+
sessionStorage.setItem('showLaunch', 1);
|
|
200
|
+
},
|
|
201
|
+
launchTime ? parseInt(launchTime, 10) : this.launchTime
|
|
202
|
+
);
|
|
203
|
+
} else {
|
|
204
|
+
this.launchShow = false;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
135
208
|
/**
|
|
136
209
|
* @desc:重新登录
|
|
137
210
|
* @author huangbo
|
|
@@ -244,8 +317,45 @@ export default {
|
|
|
244
317
|
let mainConfig = util.getStorage('mainConfig');
|
|
245
318
|
if (!mainConfig || mainConfig == '{}') {
|
|
246
319
|
util.getMainConfig((res) => {
|
|
320
|
+
this.userName =
|
|
321
|
+
res.results.userModel.username || res.userModel.userName;
|
|
322
|
+
this.sysName = res.subsystemName;
|
|
323
|
+
if (res.subsystemExtend && res.subsystemExtend.launchImage) {
|
|
324
|
+
if (!this.launchShow) {
|
|
325
|
+
this.launchShow = true;
|
|
326
|
+
clearTimeout(this.launchTimer);
|
|
327
|
+
this.launchTimer = setTimeout(
|
|
328
|
+
() => {
|
|
329
|
+
this.launchShow = false;
|
|
330
|
+
sessionStorage.setItem('showLaunch', 1);
|
|
331
|
+
},
|
|
332
|
+
res.subsystemExtend.launchTime
|
|
333
|
+
? parseInt(res.subsystemExtend.launchTime, 10)
|
|
334
|
+
: this.launchTime
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
if (
|
|
338
|
+
res.subsystemExtend.launchImage != 'true' &&
|
|
339
|
+
res.subsystemExtend.launchImage != true
|
|
340
|
+
) {
|
|
341
|
+
this.launchImages =
|
|
342
|
+
res.subsystemExtend.launchImage.indexOf('{') > -1 &&
|
|
343
|
+
res.subsystemExtend.launchImage.indexOf('}') > -1
|
|
344
|
+
? JSON.parse(res.subsystemExtend.launchImage)
|
|
345
|
+
: res.subsystemExtend.launchImage;
|
|
346
|
+
}
|
|
347
|
+
sessionStorage.setItem(
|
|
348
|
+
'launchImage',
|
|
349
|
+
JSON.stringify(this.launchImages)
|
|
350
|
+
);
|
|
351
|
+
}
|
|
247
352
|
this.$refs.main.init(res);
|
|
248
353
|
});
|
|
354
|
+
} else {
|
|
355
|
+
mainConfig = JSON.parse(mainConfig);
|
|
356
|
+
this.userName =
|
|
357
|
+
mainConfig.userModel.username || mainConfig.userModel.userName;
|
|
358
|
+
this.sysName = mainConfig.subsystemName;
|
|
249
359
|
}
|
|
250
360
|
},
|
|
251
361
|
/**
|
|
@@ -765,7 +765,7 @@ export default {
|
|
|
765
765
|
depId: results.userModel.depId,
|
|
766
766
|
orgId: results.userModel.orgId,
|
|
767
767
|
userId: results.userModel.userId,
|
|
768
|
-
userName: results.userModel.username,
|
|
768
|
+
userName: results.userModel.username || results.userModel.userName,
|
|
769
769
|
useCaseCodes: results.resourceCodes || results.userModel.resourceCodes
|
|
770
770
|
}
|
|
771
771
|
});
|