eoss-ui 0.4.62 → 0.4.64
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/README.md +0 -2
- package/lib/button-group.js +11 -11
- package/lib/button.js +11 -11
- package/lib/checkbox-group.js +27 -37
- package/lib/data-table-form.js +11 -11
- package/lib/data-table.js +72 -57
- package/lib/date-picker.js +11 -11
- package/lib/dialog.js +10 -10
- package/lib/eoss-ui.common.js +1806 -749
- package/lib/flow-group.js +89 -29
- package/lib/flow-list.js +1122 -427
- package/lib/flow.js +19 -20
- package/lib/form.js +222 -40
- package/lib/handle-user.js +12 -12
- package/lib/handler.js +15 -15
- package/lib/index.js +1 -1
- package/lib/input-number.js +11 -11
- package/lib/input.js +36 -36
- package/lib/login.js +41 -41
- package/lib/main.js +211 -104
- package/lib/menu.js +5 -3
- package/lib/nav.js +13 -15
- package/lib/notify.js +2 -2
- package/lib/page.js +11 -11
- package/lib/player.js +18 -18
- package/lib/qr-code.js +11 -11
- package/lib/radio-group.js +15 -15
- package/lib/retrial-auth.js +12 -12
- package/lib/select-ganged.js +11 -11
- package/lib/select.js +13 -13
- package/lib/selector-panel.js +12 -12
- package/lib/selector.js +29 -18
- package/lib/sizer.js +12 -12
- package/lib/steps.js +11 -11
- package/lib/switch.js +11 -11
- package/lib/table-form.js +36 -36
- package/lib/tabs.js +11 -11
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/flow-list.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/tips.js +12 -12
- package/lib/toolbar.js +1 -3
- package/lib/tree-group.js +11 -11
- package/lib/tree.js +12 -12
- package/lib/upload.js +18 -18
- package/lib/utils/util.js +2 -2
- package/lib/wujie.js +11 -11
- package/lib/wxlogin.js +11 -11
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +16 -25
- package/packages/data-table/src/column.vue +15 -1
- package/packages/data-table/src/main.vue +58 -47
- package/packages/flow/src/component/taskUnionExamine.vue +0 -1
- package/packages/flow-group/src/main.vue +31 -14
- package/packages/flow-list/src/flow-table.vue +5 -1
- package/packages/flow-list/src/main.vue +780 -43
- package/packages/form/src/main.vue +63 -1
- package/packages/handler/src/main.vue +1 -1
- package/packages/login/src/main.vue +11 -2
- package/packages/main/src/main.vue +177 -58
- package/packages/main/src/userinfo.vue +10 -4
- package/packages/menu/src/main.vue +5 -3
- package/packages/nav/src/main.vue +0 -2
- package/packages/radio-group/src/main.vue +9 -5
- package/packages/select/src/main.vue +1 -1
- package/packages/selector/src/main.vue +12 -4
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/flow-list.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/src/data-table.scss +10 -17
- package/packages/theme-chalk/src/flow-list.scss +29 -34
- package/packages/theme-chalk/src/menu.scss +3 -0
- package/packages/toolbar/src/main.vue +1 -3
- package/packages/upload/src/main.vue +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +2 -2
|
@@ -545,6 +545,21 @@
|
|
|
545
545
|
>
|
|
546
546
|
</es-data-table>
|
|
547
547
|
</template>
|
|
548
|
+
<es-flow-list
|
|
549
|
+
v-else-if="
|
|
550
|
+
(item.type === 'flow-list' ||
|
|
551
|
+
item.type === 'flowList') &&
|
|
552
|
+
_businessId
|
|
553
|
+
"
|
|
554
|
+
:businessId="_businessId"
|
|
555
|
+
v-bind="
|
|
556
|
+
handleExclAttribute({
|
|
557
|
+
data: item,
|
|
558
|
+
attrs: ['events', 'visible', 'type']
|
|
559
|
+
})
|
|
560
|
+
"
|
|
561
|
+
v-on="item.events"
|
|
562
|
+
></es-flow-list>
|
|
548
563
|
<es-icons
|
|
549
564
|
v-else-if="item.type === 'icon'"
|
|
550
565
|
v-bind="
|
|
@@ -1390,6 +1405,20 @@
|
|
|
1390
1405
|
>
|
|
1391
1406
|
</es-data-table>
|
|
1392
1407
|
</template>
|
|
1408
|
+
<es-flow-list
|
|
1409
|
+
v-else-if="
|
|
1410
|
+
(item.type === 'flow-list' || item.type === 'flowList') &&
|
|
1411
|
+
_businessId
|
|
1412
|
+
"
|
|
1413
|
+
:businessId="_businessId"
|
|
1414
|
+
v-bind="
|
|
1415
|
+
handleExclAttribute({
|
|
1416
|
+
data: item,
|
|
1417
|
+
attrs: ['events', 'visible', 'type']
|
|
1418
|
+
})
|
|
1419
|
+
"
|
|
1420
|
+
v-on="item.events"
|
|
1421
|
+
></es-flow-list>
|
|
1393
1422
|
<es-icons
|
|
1394
1423
|
v-else-if="item.type === 'icon'"
|
|
1395
1424
|
v-bind="
|
|
@@ -2306,6 +2335,21 @@
|
|
|
2306
2335
|
>
|
|
2307
2336
|
</es-data-table>
|
|
2308
2337
|
</template>
|
|
2338
|
+
<es-flow-list
|
|
2339
|
+
v-else-if="
|
|
2340
|
+
(item.type === 'flow-list' ||
|
|
2341
|
+
item.type === 'flowList') &&
|
|
2342
|
+
_businessId
|
|
2343
|
+
"
|
|
2344
|
+
:businessId="_businessId"
|
|
2345
|
+
v-bind="
|
|
2346
|
+
handleExclAttribute({
|
|
2347
|
+
data: item,
|
|
2348
|
+
attrs: ['events', 'visible', 'type']
|
|
2349
|
+
})
|
|
2350
|
+
"
|
|
2351
|
+
v-on="item.events"
|
|
2352
|
+
></es-flow-list>
|
|
2309
2353
|
<es-icons
|
|
2310
2354
|
v-else-if="item.type === 'icon'"
|
|
2311
2355
|
v-bind="
|
|
@@ -3095,6 +3139,20 @@
|
|
|
3095
3139
|
>
|
|
3096
3140
|
</es-data-table>
|
|
3097
3141
|
</template>
|
|
3142
|
+
<es-flow-list
|
|
3143
|
+
v-else-if="
|
|
3144
|
+
(item.type === 'flow-list' || item.type === 'flowList') &&
|
|
3145
|
+
_businessId
|
|
3146
|
+
"
|
|
3147
|
+
:businessId="_businessId"
|
|
3148
|
+
v-bind="
|
|
3149
|
+
handleExclAttribute({
|
|
3150
|
+
data: item,
|
|
3151
|
+
attrs: ['events', 'visible', 'type']
|
|
3152
|
+
})
|
|
3153
|
+
"
|
|
3154
|
+
v-on="item.events"
|
|
3155
|
+
></es-flow-list>
|
|
3098
3156
|
<es-icons
|
|
3099
3157
|
v-else-if="item.type === 'icon'"
|
|
3100
3158
|
v-bind="
|
|
@@ -3789,7 +3847,6 @@ export default {
|
|
|
3789
3847
|
return this.values;
|
|
3790
3848
|
},
|
|
3791
3849
|
set(val) {
|
|
3792
|
-
console.log(val, 666);
|
|
3793
3850
|
return val;
|
|
3794
3851
|
}
|
|
3795
3852
|
},
|
|
@@ -3911,6 +3968,11 @@ export default {
|
|
|
3911
3968
|
}
|
|
3912
3969
|
}
|
|
3913
3970
|
return buttons;
|
|
3971
|
+
},
|
|
3972
|
+
_businessId() {
|
|
3973
|
+
return typeof this.autoId === 'string'
|
|
3974
|
+
? this.models[this.autoId]
|
|
3975
|
+
: this.models['id'];
|
|
3914
3976
|
}
|
|
3915
3977
|
},
|
|
3916
3978
|
watch: {
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
287
287
|
util.getStorage('login') || util.getStorage('loginPage');
|
|
288
288
|
if (loginPage) {
|
|
289
289
|
let src;
|
|
290
|
-
if (!util.startWith(loginPage, ['http', '/'])) {
|
|
290
|
+
if (!util.startWith(loginPage, ['http', '/'], true)) {
|
|
291
291
|
let pathname = util.win.top.location.pathname;
|
|
292
292
|
if (pathname !== '/') {
|
|
293
293
|
pathname = pathname.split('/');
|
|
@@ -740,6 +740,16 @@ export default {
|
|
|
740
740
|
};
|
|
741
741
|
},
|
|
742
742
|
created() {
|
|
743
|
+
util.removeStorage([
|
|
744
|
+
'remind',
|
|
745
|
+
'ssId',
|
|
746
|
+
'token',
|
|
747
|
+
'Authorization',
|
|
748
|
+
'deviceUnique',
|
|
749
|
+
'userId',
|
|
750
|
+
'userName',
|
|
751
|
+
'useCaseCodes'
|
|
752
|
+
]);
|
|
743
753
|
this.code = util.getParams('code');
|
|
744
754
|
if (this.code) {
|
|
745
755
|
this.doWechatLogin(this.code);
|
|
@@ -1024,7 +1034,7 @@ export default {
|
|
|
1024
1034
|
? '&' + util.queryParams(this.imgCode)
|
|
1025
1035
|
: '') +
|
|
1026
1036
|
'&heightflag=' +
|
|
1027
|
-
Math.random();
|
|
1037
|
+
Math.random().toString().split('.')[1];
|
|
1028
1038
|
|
|
1029
1039
|
return this.imageCode;
|
|
1030
1040
|
},
|
|
@@ -1314,7 +1324,6 @@ export default {
|
|
|
1314
1324
|
type: 'success',
|
|
1315
1325
|
duration: 1500,
|
|
1316
1326
|
onClose: () => {
|
|
1317
|
-
sessionStorage.removeItem('remind');
|
|
1318
1327
|
if (this.toUrl) {
|
|
1319
1328
|
window.location.href = this.toUrl;
|
|
1320
1329
|
} else if (results.doorIndex && this.doorIndex) {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
:popperClass="`el-menu--popup-${layout}`"
|
|
27
27
|
:data="navs"
|
|
28
28
|
:deep="layout === 'topnav'"
|
|
29
|
+
:height="layout === 'topnav' ? '370px' : undefined"
|
|
29
30
|
:default-active="topActive"
|
|
30
31
|
@select="
|
|
31
32
|
(res) => {
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
:theme="color"
|
|
222
223
|
:predefine="themes"
|
|
223
224
|
:visible.sync="showSet"
|
|
224
|
-
:layout
|
|
225
|
+
:layout="layout"
|
|
225
226
|
@change="handleChange"
|
|
226
227
|
@layout="handleLayout"
|
|
227
228
|
></settings>
|
|
@@ -389,6 +390,10 @@ export default {
|
|
|
389
390
|
userHeight: {
|
|
390
391
|
type: String,
|
|
391
392
|
default: '740px'
|
|
393
|
+
},
|
|
394
|
+
history: {
|
|
395
|
+
type: Boolean,
|
|
396
|
+
default: true
|
|
392
397
|
}
|
|
393
398
|
},
|
|
394
399
|
computed: {
|
|
@@ -415,7 +420,6 @@ export default {
|
|
|
415
420
|
return true;
|
|
416
421
|
},
|
|
417
422
|
navWidth() {
|
|
418
|
-
console.log(this.layout === 'topside' ? '230px' : undefined, 9000);
|
|
419
423
|
return this.layout === 'topside' ? '230px' : undefined;
|
|
420
424
|
},
|
|
421
425
|
showNavTitle() {
|
|
@@ -603,7 +607,8 @@ export default {
|
|
|
603
607
|
isHeader: '',
|
|
604
608
|
isSide: null,
|
|
605
609
|
navIds: null,
|
|
606
|
-
timer: null
|
|
610
|
+
timer: null,
|
|
611
|
+
pid: null
|
|
607
612
|
};
|
|
608
613
|
},
|
|
609
614
|
created() {
|
|
@@ -701,6 +706,15 @@ export default {
|
|
|
701
706
|
thalk.innerText = globalThalk;
|
|
702
707
|
}
|
|
703
708
|
},
|
|
709
|
+
setTitle(id) {
|
|
710
|
+
for (let i = 0; i < this.menus.length; i++) {
|
|
711
|
+
let item = this.menus[i];
|
|
712
|
+
if (item.id == id) {
|
|
713
|
+
this.title = item.text;
|
|
714
|
+
return item;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
},
|
|
704
718
|
renderMenu() {
|
|
705
719
|
if (this.data !== undefined && this.data.length) {
|
|
706
720
|
this.menus = JSON.parse(JSON.stringify(this.data));
|
|
@@ -710,6 +724,8 @@ export default {
|
|
|
710
724
|
var ids = this.getId(this.menus, applicationid);
|
|
711
725
|
if (ids) {
|
|
712
726
|
this.defaultActive = ids;
|
|
727
|
+
this.navIds = ids;
|
|
728
|
+
this.setTitle(ids[0]);
|
|
713
729
|
}
|
|
714
730
|
} else if (util.win.location.hash) {
|
|
715
731
|
let hash = util.win.location.hash;
|
|
@@ -720,8 +736,10 @@ export default {
|
|
|
720
736
|
let ids = this.getId(this.menus, util.win.location.hash, true);
|
|
721
737
|
if (ids) {
|
|
722
738
|
this.defaultActive = ids;
|
|
739
|
+
this.navIds = ids;
|
|
740
|
+
this.setTitle(ids[0]);
|
|
723
741
|
}
|
|
724
|
-
} else if (sessionStorage.getItem('jump')) {
|
|
742
|
+
} else if (sessionStorage.getItem('jump') && this.history) {
|
|
725
743
|
let ids = this.getId(
|
|
726
744
|
this.menus,
|
|
727
745
|
sessionStorage.getItem('jump'),
|
|
@@ -729,9 +747,11 @@ export default {
|
|
|
729
747
|
);
|
|
730
748
|
if (ids) {
|
|
731
749
|
this.defaultActive = ids;
|
|
750
|
+
this.navIds = ids;
|
|
751
|
+
this.setTitle(ids[0]);
|
|
732
752
|
}
|
|
733
753
|
}
|
|
734
|
-
} else if (sessionStorage.getItem('jump')) {
|
|
754
|
+
} else if (sessionStorage.getItem('jump') && this.history) {
|
|
735
755
|
let ids = this.getId(
|
|
736
756
|
this.menus,
|
|
737
757
|
sessionStorage.getItem('jump'),
|
|
@@ -739,6 +759,8 @@ export default {
|
|
|
739
759
|
);
|
|
740
760
|
if (ids) {
|
|
741
761
|
this.defaultActive = ids;
|
|
762
|
+
this.navIds = ids;
|
|
763
|
+
this.setTitle(ids[0]);
|
|
742
764
|
}
|
|
743
765
|
}
|
|
744
766
|
this.setMenu(this.menus);
|
|
@@ -791,7 +813,8 @@ export default {
|
|
|
791
813
|
key: {
|
|
792
814
|
userId: results.userModel.userId,
|
|
793
815
|
userName: results.userModel.username,
|
|
794
|
-
useCaseCodes:
|
|
816
|
+
useCaseCodes:
|
|
817
|
+
results.resourceCodes || results.userModel.resourceCodes
|
|
795
818
|
}
|
|
796
819
|
});
|
|
797
820
|
}
|
|
@@ -831,9 +854,6 @@ export default {
|
|
|
831
854
|
if (i === 'subsystemName') {
|
|
832
855
|
document.title = results[i];
|
|
833
856
|
}
|
|
834
|
-
if (i === 'resourceCodes') {
|
|
835
|
-
sessionStorage.setItem('useCaseCodes', results[i]);
|
|
836
|
-
}
|
|
837
857
|
if (i === 'sysLogoIco' && results[i]) {
|
|
838
858
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
839
859
|
util.setFavicon(results[i]);
|
|
@@ -989,8 +1009,10 @@ export default {
|
|
|
989
1009
|
let ids = this.getId(this.menus, util.win.location.hash, true);
|
|
990
1010
|
if (ids) {
|
|
991
1011
|
this.defaultActive = ids;
|
|
1012
|
+
this.navIds = ids;
|
|
1013
|
+
this.setTitle(ids[0]);
|
|
992
1014
|
}
|
|
993
|
-
} else if (sessionStorage.getItem('jump')) {
|
|
1015
|
+
} else if (sessionStorage.getItem('jump') && this.history) {
|
|
994
1016
|
let ids = this.getId(
|
|
995
1017
|
this.menus,
|
|
996
1018
|
sessionStorage.getItem('jump'),
|
|
@@ -998,9 +1020,11 @@ export default {
|
|
|
998
1020
|
);
|
|
999
1021
|
if (ids) {
|
|
1000
1022
|
this.defaultActive = ids;
|
|
1023
|
+
this.navIds = ids;
|
|
1024
|
+
this.setTitle(ids[0]);
|
|
1001
1025
|
}
|
|
1002
1026
|
}
|
|
1003
|
-
} else if (sessionStorage.getItem('jump')) {
|
|
1027
|
+
} else if (sessionStorage.getItem('jump') && this.history) {
|
|
1004
1028
|
let ids = this.getId(
|
|
1005
1029
|
this.menus,
|
|
1006
1030
|
sessionStorage.getItem('jump'),
|
|
@@ -1008,6 +1032,8 @@ export default {
|
|
|
1008
1032
|
);
|
|
1009
1033
|
if (ids) {
|
|
1010
1034
|
this.defaultActive = ids;
|
|
1035
|
+
this.navIds = ids;
|
|
1036
|
+
this.setTitle(ids[0]);
|
|
1011
1037
|
}
|
|
1012
1038
|
}
|
|
1013
1039
|
this.setTips(this.menus);
|
|
@@ -1026,7 +1052,6 @@ export default {
|
|
|
1026
1052
|
},
|
|
1027
1053
|
//设置默认左侧导航
|
|
1028
1054
|
setMenu(res) {
|
|
1029
|
-
console.log(9000);
|
|
1030
1055
|
if (this.defaultActive && this.defaultActive.length) {
|
|
1031
1056
|
this.isDefault = false;
|
|
1032
1057
|
this.setDefault(res, this.defaultActive);
|
|
@@ -1116,11 +1141,21 @@ export default {
|
|
|
1116
1141
|
if (!obj) {
|
|
1117
1142
|
return '';
|
|
1118
1143
|
}
|
|
1144
|
+
let openIdex = 0;
|
|
1145
|
+
if (
|
|
1146
|
+
obj.extendData &&
|
|
1147
|
+
(obj.extendData.subDefOpenIndex || obj.extendData.subDefOpen)
|
|
1148
|
+
) {
|
|
1149
|
+
openIdex = parseInt(
|
|
1150
|
+
obj.extendData.subDefOpenIndex || obj.extendData.subDefOpen,
|
|
1151
|
+
10
|
|
1152
|
+
);
|
|
1153
|
+
}
|
|
1119
1154
|
if (obj.children && obj.children.length) {
|
|
1120
|
-
return this.getFirst(obj.children[
|
|
1155
|
+
return this.getFirst(obj.children[openIdex]);
|
|
1121
1156
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
1122
1157
|
if (this.layout === 'topnav') {
|
|
1123
|
-
return this.getFirst(obj.fourthTabs[
|
|
1158
|
+
return this.getFirst(obj.fourthTabs[openIdex]);
|
|
1124
1159
|
} else {
|
|
1125
1160
|
this.tabs = obj.fourthTabs;
|
|
1126
1161
|
if (obj.url) {
|
|
@@ -1297,13 +1332,20 @@ export default {
|
|
|
1297
1332
|
let _url = params._baseUrl ? params._baseUrl : './primary.html';
|
|
1298
1333
|
return util.urlJoinParams({ url: _url, param: obj });
|
|
1299
1334
|
},
|
|
1300
|
-
handleOpenNav(res) {
|
|
1301
|
-
console.log(res, 777);
|
|
1302
|
-
},
|
|
1303
1335
|
//应用导航交互
|
|
1304
1336
|
handleSelect(res, type, open) {
|
|
1305
|
-
console.log(type);
|
|
1306
|
-
const { node } = res;
|
|
1337
|
+
console.log(type, 11);
|
|
1338
|
+
const { node, fourthTabs } = res;
|
|
1339
|
+
let openIdex = 0;
|
|
1340
|
+
if (
|
|
1341
|
+
node.extendData &&
|
|
1342
|
+
(node.extendData.subDefOpenIndex || node.extendData.subDefOpen)
|
|
1343
|
+
) {
|
|
1344
|
+
openIdex = parseInt(
|
|
1345
|
+
node.extendData.subDefOpenIndex || node.extendData.subDefOpen,
|
|
1346
|
+
10
|
|
1347
|
+
);
|
|
1348
|
+
}
|
|
1307
1349
|
if (!open) {
|
|
1308
1350
|
if (
|
|
1309
1351
|
node.extendData &&
|
|
@@ -1326,32 +1368,20 @@ export default {
|
|
|
1326
1368
|
this.navIds = [node.id];
|
|
1327
1369
|
this.menu = node.children;
|
|
1328
1370
|
this.title = node.text;
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1371
|
+
if (this.setFirstAsDefault) {
|
|
1372
|
+
let subNode = this.getFirst(node.children[openIdex]);
|
|
1373
|
+
if (subNode) {
|
|
1374
|
+
this.active = subNode.id;
|
|
1375
|
+
this.navIds = [
|
|
1376
|
+
node.id,
|
|
1377
|
+
...this.getId(node.children, subNode.url, true)
|
|
1378
|
+
];
|
|
1379
|
+
}
|
|
1333
1380
|
}
|
|
1334
1381
|
} else {
|
|
1335
1382
|
this.navIds = this.getId(this.menus, node.url, true);
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
return item.url === node.url;
|
|
1339
|
-
})[0];
|
|
1340
|
-
if (tab) {
|
|
1341
|
-
this.tabs = node.fourthTabs;
|
|
1342
|
-
this.tabsId = tab.id;
|
|
1343
|
-
}
|
|
1344
|
-
} else {
|
|
1345
|
-
if (node.fourthTabs.length) {
|
|
1346
|
-
this.tabs = node.fourthTabs;
|
|
1347
|
-
this.tabsId = this.tabs[0].id;
|
|
1348
|
-
this.handleJump(
|
|
1349
|
-
this.tabs[0].url,
|
|
1350
|
-
this.tabs[0].urlopenmode,
|
|
1351
|
-
this.tabs[0]
|
|
1352
|
-
);
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1383
|
+
this.setTitle(ids[0]);
|
|
1384
|
+
this.tabsId = fourthTabs ? node.id : '';
|
|
1355
1385
|
}
|
|
1356
1386
|
break;
|
|
1357
1387
|
case 'sys':
|
|
@@ -1360,7 +1390,9 @@ export default {
|
|
|
1360
1390
|
this.tabs = [];
|
|
1361
1391
|
this.menu = node.children;
|
|
1362
1392
|
this.title = node.text;
|
|
1363
|
-
|
|
1393
|
+
if (this.setFirstAsDefault) {
|
|
1394
|
+
this.active = this.getFirst(node.children[openIdex]).id;
|
|
1395
|
+
}
|
|
1364
1396
|
this.isSide = true;
|
|
1365
1397
|
}
|
|
1366
1398
|
break;
|
|
@@ -1371,10 +1403,9 @@ export default {
|
|
|
1371
1403
|
}
|
|
1372
1404
|
if (this.setFirstAsDefault) {
|
|
1373
1405
|
let subNode = this.getFirst(node);
|
|
1374
|
-
this
|
|
1406
|
+
this.active = [node.id];
|
|
1375
1407
|
if (subNode && node.id !== subNode.id) {
|
|
1376
|
-
|
|
1377
|
-
console.log(this.getId(this.menus, subNode.url, true));
|
|
1408
|
+
this.navIds = this.getId(this.menus, subNode.url, true);
|
|
1378
1409
|
this.$set(this.active, 1, subNode.id);
|
|
1379
1410
|
}
|
|
1380
1411
|
}
|
|
@@ -1401,6 +1432,7 @@ export default {
|
|
|
1401
1432
|
} else {
|
|
1402
1433
|
this.active = tab.id;
|
|
1403
1434
|
}
|
|
1435
|
+
this.navIds = this.getId(this.menus, tab.url, true);
|
|
1404
1436
|
}
|
|
1405
1437
|
} else {
|
|
1406
1438
|
let tab = (node.fourthTabs || []).filter((item) => {
|
|
@@ -1409,6 +1441,9 @@ export default {
|
|
|
1409
1441
|
if (tab) {
|
|
1410
1442
|
this.tabs = node.fourthTabs;
|
|
1411
1443
|
this.tabsId = tab.id;
|
|
1444
|
+
this.navIds = this.getId(this.menus, tab.url, true);
|
|
1445
|
+
} else {
|
|
1446
|
+
this.navIds = this.getId(this.menus, node.url, true);
|
|
1412
1447
|
}
|
|
1413
1448
|
}
|
|
1414
1449
|
} else if (node.fourthTabs.length) {
|
|
@@ -1419,10 +1454,12 @@ export default {
|
|
|
1419
1454
|
this.tabs[0].urlopenmode,
|
|
1420
1455
|
this.tabs[0]
|
|
1421
1456
|
);
|
|
1457
|
+
this.navIds = this.getId(this.menus, this.tabs[0].url, true);
|
|
1422
1458
|
}
|
|
1423
1459
|
break;
|
|
1424
1460
|
case 'tabs':
|
|
1425
1461
|
this.tabsId = node.id;
|
|
1462
|
+
this.navIds = this.getId(this.menus, node.url, true);
|
|
1426
1463
|
break;
|
|
1427
1464
|
}
|
|
1428
1465
|
if (node.url) {
|
|
@@ -1521,6 +1558,13 @@ export default {
|
|
|
1521
1558
|
handleJump(page, type, res) {
|
|
1522
1559
|
console.log(page);
|
|
1523
1560
|
sessionStorage.setItem('jump', page);
|
|
1561
|
+
if (res) {
|
|
1562
|
+
if (res.fourthTabs && res.fourthTabs.length) {
|
|
1563
|
+
this.pid = res.id;
|
|
1564
|
+
} else {
|
|
1565
|
+
this.pid = res.pid;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1524
1568
|
if (util.win.location.hash === page) {
|
|
1525
1569
|
this.refresh = true;
|
|
1526
1570
|
return;
|
|
@@ -1617,26 +1661,101 @@ export default {
|
|
|
1617
1661
|
break;
|
|
1618
1662
|
}
|
|
1619
1663
|
},
|
|
1664
|
+
getFourthTabs(menus, id) {
|
|
1665
|
+
if (Array.isArray(menus)) {
|
|
1666
|
+
for (let i = 0; i < menus.length; i++) {
|
|
1667
|
+
let fourth = this.getFourthTabs(menus[i], id);
|
|
1668
|
+
if (fourth) {
|
|
1669
|
+
return fourth;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
} else {
|
|
1673
|
+
if (menus.fourthTabs && menus.fourthTabs.length) {
|
|
1674
|
+
for (let i = 0; i < menus.fourthTabs.length; i++) {
|
|
1675
|
+
let item = menus.fourthTabs[i];
|
|
1676
|
+
if (item.id === id) {
|
|
1677
|
+
return item;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
if (menus.children && menus.children.length) {
|
|
1682
|
+
for (let i = 0; i < menus.children.length; i++) {
|
|
1683
|
+
let fourth = this.getFourthTabs(menus.children[i], id);
|
|
1684
|
+
if (fourth) {
|
|
1685
|
+
return fourth;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
return false;
|
|
1691
|
+
},
|
|
1620
1692
|
handleLayout(res, old) {
|
|
1693
|
+
this.layout = res;
|
|
1621
1694
|
switch (res) {
|
|
1622
1695
|
case 'topnav':
|
|
1623
1696
|
this.navs = this.menus;
|
|
1624
1697
|
this.tabs = [];
|
|
1625
1698
|
this.subsystem = [];
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1699
|
+
this.topActive =
|
|
1700
|
+
this.navIds && this.navIds.length
|
|
1701
|
+
? this.navIds[this.navIds.length - 1]
|
|
1702
|
+
: '';
|
|
1703
|
+
break;
|
|
1704
|
+
case 'subsystem':
|
|
1705
|
+
this.subsystem = this.menus;
|
|
1706
|
+
this.navs = [];
|
|
1707
|
+
this.tabs = [];
|
|
1708
|
+
if (this.navIds && this.navIds.length) {
|
|
1709
|
+
let node = this.setTitle(this.navIds[0]);
|
|
1710
|
+
this.active = JSON.parse(JSON.stringify(this.navIds)).slice(1);
|
|
1711
|
+
let tabs = this.getFourthTabs(this.menus, this.pid);
|
|
1712
|
+
if (tabs) {
|
|
1713
|
+
this.active.pop();
|
|
1714
|
+
this.tabs = tabs.fourthTabs;
|
|
1715
|
+
this.tabsId = this.navIds[this.navIds.length - 1];
|
|
1716
|
+
}
|
|
1717
|
+
this.menu = node.children;
|
|
1718
|
+
this.title = node.text;
|
|
1719
|
+
} else {
|
|
1720
|
+
//this.navIds = [this.menus[0].id]
|
|
1721
|
+
this.menu = this.menus[0].children;
|
|
1722
|
+
this.title = this.menus[0].text;
|
|
1723
|
+
}
|
|
1724
|
+
break;
|
|
1725
|
+
case 'topside':
|
|
1726
|
+
this.navs = this.menus;
|
|
1727
|
+
this.subsystem = [];
|
|
1728
|
+
this.tabs = [];
|
|
1729
|
+
if (this.navIds && this.navIds.length) {
|
|
1730
|
+
let node = this.setTitle(this.navIds[0]);
|
|
1731
|
+
this.active = JSON.parse(JSON.stringify(this.navIds)).slice(1);
|
|
1732
|
+
let tabs = this.getFourthTabs(this.menus, this.pid);
|
|
1733
|
+
if (tabs) {
|
|
1734
|
+
this.active.pop();
|
|
1735
|
+
this.tabs = tabs.fourthTabs;
|
|
1736
|
+
this.tabsId = this.navIds[this.navIds.length - 1];
|
|
1737
|
+
}
|
|
1738
|
+
this.topActive = this.navIds[0];
|
|
1739
|
+
this.menu = node.children;
|
|
1740
|
+
} else {
|
|
1741
|
+
this.menu = this.menus[0].children;
|
|
1742
|
+
this.topActive = this.menus[0].id;
|
|
1634
1743
|
}
|
|
1635
1744
|
break;
|
|
1745
|
+
default:
|
|
1746
|
+
this.navs = [];
|
|
1747
|
+
this.subsystem = [];
|
|
1748
|
+
this.menu = this.menus;
|
|
1749
|
+
if (this.navIds && this.navIds.length) {
|
|
1750
|
+
this.active = JSON.parse(JSON.stringify(this.navIds));
|
|
1751
|
+
let tabs = this.getFourthTabs(this.menus, this.pid);
|
|
1752
|
+
if (tabs) {
|
|
1753
|
+
this.active.pop();
|
|
1754
|
+
this.tabs = tabs.fourthTabs;
|
|
1755
|
+
this.tabsId = this.navIds[this.navIds.length - 1];
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1636
1758
|
}
|
|
1637
|
-
console.log(this.sysId, this.topActive, this.active, this.tabsId);
|
|
1638
|
-
//this.setMenu(this.menus);
|
|
1639
|
-
console.log(this.layout, old, this.hide);
|
|
1640
1759
|
},
|
|
1641
1760
|
//监听改变菜单
|
|
1642
1761
|
handleListener() {
|
|
@@ -1781,7 +1900,7 @@ export default {
|
|
|
1781
1900
|
util.getStorage('login') || util.getStorage('loginPage');
|
|
1782
1901
|
if (loginPage) {
|
|
1783
1902
|
let src;
|
|
1784
|
-
if (!util.startWith(loginPage, ['http', '/'])) {
|
|
1903
|
+
if (!util.startWith(loginPage, ['http', '/'], true)) {
|
|
1785
1904
|
let pathname = util.win.top.location.pathname;
|
|
1786
1905
|
if (pathname !== '/') {
|
|
1787
1906
|
pathname = pathname.split('/');
|
|
@@ -33,6 +33,7 @@ export default {
|
|
|
33
33
|
data() {
|
|
34
34
|
return {
|
|
35
35
|
results: '',
|
|
36
|
+
userScanBindImgUrl: '',
|
|
36
37
|
qrcode: '',
|
|
37
38
|
notify: store.get('userStyle') ? store.get('userStyle').notify : '',
|
|
38
39
|
checkPassword: '',
|
|
@@ -244,7 +245,11 @@ export default {
|
|
|
244
245
|
},
|
|
245
246
|
methods: {
|
|
246
247
|
getQrcode() {
|
|
247
|
-
this.
|
|
248
|
+
this.qrcode =
|
|
249
|
+
util.getStorage('host') +
|
|
250
|
+
this.userScanBindImgUrl +
|
|
251
|
+
'&_tt=' +
|
|
252
|
+
Math.random().toString().split('.')[1];
|
|
248
253
|
},
|
|
249
254
|
getData() {
|
|
250
255
|
util
|
|
@@ -268,6 +273,7 @@ export default {
|
|
|
268
273
|
this.values.email = results.simpleUserInfo.email;
|
|
269
274
|
this.values.officetel = results.simpleUserInfo.officetel;
|
|
270
275
|
if (results.userScanBindImgUrl) {
|
|
276
|
+
this.userScanBindImgUrl = results.userScanBindImgUrl;
|
|
271
277
|
this.qrcode =
|
|
272
278
|
util.getStorage('host') + results.userScanBindImgUrl;
|
|
273
279
|
} else {
|
|
@@ -345,14 +351,14 @@ export default {
|
|
|
345
351
|
officeTel: this.values.officetel,
|
|
346
352
|
phone: this.values.phone,
|
|
347
353
|
oldPassword:
|
|
348
|
-
initLogin && initLogin.secret
|
|
354
|
+
initLogin && initLogin.secret && this.values.oldpassword
|
|
349
355
|
? util.esmEncrypt({
|
|
350
356
|
data: this.values.oldpassword,
|
|
351
357
|
key: initLogin.secret
|
|
352
358
|
})
|
|
353
359
|
: this.values.oldpassword,
|
|
354
360
|
password:
|
|
355
|
-
initLogin && initLogin.secret
|
|
361
|
+
initLogin && initLogin.secret && this.values.password
|
|
356
362
|
? util.esmEncrypt({
|
|
357
363
|
data: this.values.password,
|
|
358
364
|
key: initLogin.secret
|
|
@@ -374,7 +380,7 @@ export default {
|
|
|
374
380
|
util.getStorage('login') || util.getStorage('loginPage');
|
|
375
381
|
if (loginPage) {
|
|
376
382
|
let src;
|
|
377
|
-
if (!util.startWith(loginPage, ['http', '/'])) {
|
|
383
|
+
if (!util.startWith(loginPage, ['http', '/'], true)) {
|
|
378
384
|
let pathname = util.win.top.location.pathname;
|
|
379
385
|
if (pathname !== '/') {
|
|
380
386
|
pathname = pathname.split('/');
|
|
@@ -124,6 +124,7 @@ export default {
|
|
|
124
124
|
key: key,
|
|
125
125
|
path: keyPath,
|
|
126
126
|
node: item.$attrs.data,
|
|
127
|
+
fourthTabs: item.$attrs.fourthTabs,
|
|
127
128
|
item: item,
|
|
128
129
|
mode: this.mode
|
|
129
130
|
});
|
|
@@ -148,7 +149,7 @@ export default {
|
|
|
148
149
|
mode: this.mode
|
|
149
150
|
});
|
|
150
151
|
},
|
|
151
|
-
getSub(item, h, popper) {
|
|
152
|
+
getSub(item, h, popper, fourthTabs) {
|
|
152
153
|
if (popper) {
|
|
153
154
|
popper +=
|
|
154
155
|
this.popperClass !== undefined
|
|
@@ -255,7 +256,7 @@ export default {
|
|
|
255
256
|
if (!ele) {
|
|
256
257
|
console.error(`对象子数据中第[${index}]条数据错误`, item);
|
|
257
258
|
} else {
|
|
258
|
-
return this.getSub(ele, h, popper);
|
|
259
|
+
return this.getSub(ele, h, popper, true);
|
|
259
260
|
}
|
|
260
261
|
})
|
|
261
262
|
);
|
|
@@ -290,7 +291,8 @@ export default {
|
|
|
290
291
|
attrs: {
|
|
291
292
|
data: item,
|
|
292
293
|
index: item.id,
|
|
293
|
-
key: item.id
|
|
294
|
+
key: item.id,
|
|
295
|
+
fourthTabs: fourthTabs
|
|
294
296
|
}
|
|
295
297
|
},
|
|
296
298
|
this.titleIcons ? title : [title[1]]
|
|
@@ -103,7 +103,6 @@ export default {
|
|
|
103
103
|
this.defaultActive.length
|
|
104
104
|
? this.defaultActive[0]
|
|
105
105
|
: undefined;
|
|
106
|
-
console.log(active, 555);
|
|
107
106
|
return active;
|
|
108
107
|
},
|
|
109
108
|
menuActive() {
|
|
@@ -113,7 +112,6 @@ export default {
|
|
|
113
112
|
: this.defaultActive.length
|
|
114
113
|
? this.defaultActive[this.defaultActive.length - 1]
|
|
115
114
|
: undefined;
|
|
116
|
-
console.log(active, 444);
|
|
117
115
|
return active;
|
|
118
116
|
},
|
|
119
117
|
boxWidth() {
|