eoss-ui 0.7.73 → 0.7.75
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/eoss-ui.common.js +413 -2111
- package/lib/flow.js +4 -4
- package/lib/index.js +1 -1
- package/lib/main.js +320 -2014
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/simplicity-top.css +1 -1
- package/package.json +1 -1
- package/packages/flow/src/main.vue +2 -2
- package/packages/main/src/default/index.vue +1 -0
- package/packages/main/src/simplicity/index.vue +1 -0
- package/packages/main/src/simplicityTop/handler.vue +5 -0
- package/packages/main/src/simplicityTop/index.vue +145 -281
- package/packages/theme-chalk/lib/flow.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/simplicity-top.css +1 -1
- package/packages/theme-chalk/src/flow.scss +5 -0
- package/packages/theme-chalk/src/simplicity-top.scss +14 -0
- package/src/index.js +1 -1
|
@@ -60,33 +60,31 @@
|
|
|
60
60
|
</span>
|
|
61
61
|
</div>
|
|
62
62
|
<div class="es-simplicitytop-menu-children">
|
|
63
|
-
<
|
|
63
|
+
<!-- <my-remind :list="myRemindMenu"></my-remind> -->
|
|
64
|
+
<div
|
|
65
|
+
class="es-simplicitytop-menu-children-item"
|
|
66
|
+
v-for="(child, i) in myRemindMenu"
|
|
67
|
+
:key="i"
|
|
68
|
+
@click="remindSelect(child)"
|
|
69
|
+
>
|
|
70
|
+
<div class="es-simplicitytop-menu-children-icon">
|
|
71
|
+
<i
|
|
72
|
+
:class="child.icons ? child.icons : 'es-icon-application'"
|
|
73
|
+
></i>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="es-simplicitytop-menu-children-name">
|
|
76
|
+
{{ child.text || child.name }}
|
|
77
|
+
</div>
|
|
64
78
|
<div
|
|
65
|
-
class="es-simplicitytop-menu-children-
|
|
66
|
-
v-if="child.
|
|
67
|
-
:key="i"
|
|
68
|
-
@click="handleSelect(child)"
|
|
79
|
+
class="es-simplicitytop-menu-children-badge"
|
|
80
|
+
v-if="child.num"
|
|
69
81
|
>
|
|
70
|
-
|
|
71
|
-
<i :class="child.icon"></i>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="es-simplicitytop-menu-children-name">
|
|
74
|
-
{{ child.text || child.name }}
|
|
75
|
-
</div>
|
|
76
|
-
<div
|
|
77
|
-
class="es-simplicitytop-menu-children-badge"
|
|
78
|
-
v-if="child.badge && child.num"
|
|
79
|
-
>
|
|
80
|
-
{{ child.num }}
|
|
81
|
-
</div>
|
|
82
|
+
{{ child.num }}
|
|
82
83
|
</div>
|
|
83
|
-
</
|
|
84
|
+
</div>
|
|
84
85
|
</div>
|
|
85
86
|
</div>
|
|
86
|
-
<div
|
|
87
|
-
class="es-simplicitytop-menu-item"
|
|
88
|
-
v-if="userCommonMenuList.length > 0"
|
|
89
|
-
>
|
|
87
|
+
<div class="es-simplicitytop-menu-item" v-if="myShortcut.length > 0">
|
|
90
88
|
<div class="es-simplicitytop-menu-title">
|
|
91
89
|
<span class="es-simplicitytop-menu-name">我的快捷</span>
|
|
92
90
|
</div>
|
|
@@ -94,10 +92,9 @@
|
|
|
94
92
|
<div class="es-simplicitytop-menu-children">
|
|
95
93
|
<div
|
|
96
94
|
class="es-simplicitytop-menu-children-item"
|
|
97
|
-
v-for="(child, i) in
|
|
98
|
-
v-if="child.hasPermission"
|
|
95
|
+
v-for="(child, i) in myShortcut"
|
|
99
96
|
:key="i"
|
|
100
|
-
@click="
|
|
97
|
+
@click="remindSelect(child)"
|
|
101
98
|
>
|
|
102
99
|
<div class="es-simplicitytop-menu-children-icon">
|
|
103
100
|
<i
|
|
@@ -188,7 +185,7 @@
|
|
|
188
185
|
></message>
|
|
189
186
|
<!-- 消息列表 end-->
|
|
190
187
|
<!-- 应用 -->
|
|
191
|
-
<apps
|
|
188
|
+
<!-- <apps
|
|
192
189
|
:visible.sync="showApps"
|
|
193
190
|
:menu-icon="menuIcon"
|
|
194
191
|
:color="appColor"
|
|
@@ -198,7 +195,7 @@
|
|
|
198
195
|
:systems="systems"
|
|
199
196
|
:user="user"
|
|
200
197
|
@click="handlerClickApps"
|
|
201
|
-
></apps>
|
|
198
|
+
></apps> -->
|
|
202
199
|
<!-- 应用 end -->
|
|
203
200
|
|
|
204
201
|
<!-- AI/IM -->
|
|
@@ -296,8 +293,8 @@
|
|
|
296
293
|
<script>
|
|
297
294
|
import avatar from './avatar.vue';
|
|
298
295
|
import handler from './handler.vue';
|
|
299
|
-
import subMenu from './sub-menu.vue';
|
|
300
|
-
import apps from './apps.vue';
|
|
296
|
+
// import subMenu from './sub-menu.vue';
|
|
297
|
+
// import apps from './apps.vue';
|
|
301
298
|
import user from './user.vue';
|
|
302
299
|
import message from './message.vue';
|
|
303
300
|
import notice from './notice.vue';
|
|
@@ -324,61 +321,60 @@ import store from 'eoss-ui/src/utils/store';
|
|
|
324
321
|
import util from 'eoss-ui/src/utils/util';
|
|
325
322
|
const isIE = /MSIE|Trident/.test(navigator.userAgent);
|
|
326
323
|
const systemMode = util.win.systemMode || 'default';
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
];
|
|
324
|
+
// let events = [
|
|
325
|
+
// (tabs, index, that) => {
|
|
326
|
+
// let tab = tabs[index];
|
|
327
|
+
// if (tab.method == 'iframe') {
|
|
328
|
+
// tabs[index].url = util.handlerUrl(tab.url);
|
|
329
|
+
// }
|
|
330
|
+
// if (tab.method === 'wujie' && tab.appCode) {
|
|
331
|
+
// const url = tab.url;
|
|
332
|
+
// tab.url = '';
|
|
333
|
+
// that.$nextTick(() => {
|
|
334
|
+
// tab.url = url;
|
|
335
|
+
// });
|
|
336
|
+
// }
|
|
337
|
+
// if (tab.method === 'router') {
|
|
338
|
+
// that.$set(tabs[index], 'keys', util.uuid());
|
|
339
|
+
// }
|
|
340
|
+
// return tabs;
|
|
341
|
+
// },
|
|
342
|
+
// (tabs, index, that) => {
|
|
343
|
+
// let i = util.indexOfObj(tabs, that.activeName, 'id');
|
|
344
|
+
// if (tabs.length == 1) {
|
|
345
|
+
// that.activeName = '';
|
|
346
|
+
// } else if (i == index) {
|
|
347
|
+
// if (index < tabs.length - 1) {
|
|
348
|
+
// that.activeName = tabs[index + 1].id;
|
|
349
|
+
// } else {
|
|
350
|
+
// that.activeName = tabs[index - 1].id;
|
|
351
|
+
// }
|
|
352
|
+
// }
|
|
353
|
+
// tabs.splice(index, 1);
|
|
354
|
+
// return tabs;
|
|
355
|
+
// },
|
|
356
|
+
// (tabs, index, that) => {
|
|
357
|
+
// let tab = tabs.slice(index, index + 1);
|
|
358
|
+
// that.activeName = tab[0].id;
|
|
359
|
+
// return tab;
|
|
360
|
+
// },
|
|
361
|
+
// (tabs, index, that) => {
|
|
362
|
+
// let i = util.indexOfObj(tabs, that.activeName, 'id');
|
|
363
|
+
// if (i < index) {
|
|
364
|
+
// that.activeName = tabs[index].id;
|
|
365
|
+
// }
|
|
366
|
+
// tabs.splice(0, index);
|
|
367
|
+
// return tabs;
|
|
368
|
+
// },
|
|
369
|
+
// (tabs, index, that) => {
|
|
370
|
+
// let i = util.indexOfObj(tabs, that.activeName, 'id');
|
|
371
|
+
// if (i > index) {
|
|
372
|
+
// that.activeName = tabs[index].id;
|
|
373
|
+
// }
|
|
374
|
+
// tabs.splice(index + 1, tabs.length - index);
|
|
375
|
+
// return tabs;
|
|
376
|
+
// }
|
|
377
|
+
// ];
|
|
382
378
|
export default {
|
|
383
379
|
name: 'SimplicityTop',
|
|
384
380
|
provide() {
|
|
@@ -391,8 +387,8 @@ export default {
|
|
|
391
387
|
components: {
|
|
392
388
|
avatar,
|
|
393
389
|
handler,
|
|
394
|
-
subMenu,
|
|
395
|
-
apps,
|
|
390
|
+
// subMenu,
|
|
391
|
+
// apps,
|
|
396
392
|
user,
|
|
397
393
|
message,
|
|
398
394
|
notice,
|
|
@@ -602,47 +598,7 @@ export default {
|
|
|
602
598
|
currentPage: {
|
|
603
599
|
method: ''
|
|
604
600
|
},
|
|
605
|
-
userCommonMenuList: [
|
|
606
|
-
{
|
|
607
|
-
id: '712207aec84a426c842c86f34c7293c2',
|
|
608
|
-
menutype: 1,
|
|
609
|
-
text: '新建公文',
|
|
610
|
-
menuurl: '/archives-ui/webpack/index.html#/dispatch/add',
|
|
611
|
-
systemurl: null,
|
|
612
|
-
icons: '',
|
|
613
|
-
sort: 4,
|
|
614
|
-
appCode: 'dispatch_org',
|
|
615
|
-
urlopenmode: 0,
|
|
616
|
-
defaultMenu: 1,
|
|
617
|
-
pid: 'cc529d06f2fe4c9aa5956e7f540b8cd2'
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
id: '00c9e4e6e9974a789dbf2d99620c1773',
|
|
621
|
-
menutype: 1,
|
|
622
|
-
text: '资料发送',
|
|
623
|
-
menuurl: '/oa/sharefiles/send/listYb.dhtml',
|
|
624
|
-
systemurl: null,
|
|
625
|
-
icons: '',
|
|
626
|
-
sort: 5,
|
|
627
|
-
appCode: 'sharefilesSend',
|
|
628
|
-
urlopenmode: 0,
|
|
629
|
-
defaultMenu: 1,
|
|
630
|
-
pid: 'd648a3e7ae16458a823fdbe911e4d76e'
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
id: '7588320f81dd49d09fd8832037b1c57a',
|
|
634
|
-
menutype: 0,
|
|
635
|
-
text: '收文补录',
|
|
636
|
-
menuurl: '/archives-ui/webpack/index.html#/receipt/add',
|
|
637
|
-
systemurl: null,
|
|
638
|
-
icons: '',
|
|
639
|
-
sort: 1,
|
|
640
|
-
appCode: 'receiptAdd',
|
|
641
|
-
urlopenmode: 0,
|
|
642
|
-
defaultMenu: 0,
|
|
643
|
-
pid: 'ec4a6e89b1b346a4a2e8f4245e315da3'
|
|
644
|
-
}
|
|
645
|
-
],
|
|
601
|
+
userCommonMenuList: [],
|
|
646
602
|
//是否显示头像
|
|
647
603
|
showAvatar: this.avatar,
|
|
648
604
|
// 问候语
|
|
@@ -1052,12 +1008,12 @@ export default {
|
|
|
1052
1008
|
deep: true,
|
|
1053
1009
|
handler() {
|
|
1054
1010
|
// console.log('menuTips', this.menuTips);
|
|
1055
|
-
|
|
1056
|
-
this.setTips(this.
|
|
1057
|
-
this.setTips(this.
|
|
1058
|
-
this.setTips(this.
|
|
1059
|
-
this.setTips(this.
|
|
1060
|
-
this.
|
|
1011
|
+
// this.setTips(this.userApps);
|
|
1012
|
+
// this.setTips(this.applications);
|
|
1013
|
+
// this.setTips(this.business);
|
|
1014
|
+
// this.setTips(this.systems);
|
|
1015
|
+
// this.setTips(this.menus);
|
|
1016
|
+
this.getNums();
|
|
1061
1017
|
}
|
|
1062
1018
|
},
|
|
1063
1019
|
scene(val) {
|
|
@@ -1070,20 +1026,23 @@ export default {
|
|
|
1070
1026
|
this.doorIndex = sessionStorage.getItem('doorIndex');
|
|
1071
1027
|
},
|
|
1072
1028
|
mounted() {
|
|
1073
|
-
console.log(
|
|
1074
|
-
this.menuUrl,
|
|
1075
|
-
this.topLogo,
|
|
1076
|
-
this.hides,
|
|
1077
|
-
this.showSimplicityTop,
|
|
1078
|
-
'this.menuUrl'
|
|
1079
|
-
);
|
|
1080
|
-
|
|
1081
1029
|
// this.handleListener();
|
|
1082
|
-
this.getNums();
|
|
1083
1030
|
window.top.jumpMenu = window.top.jumpTopMenu = this.handleSelect;
|
|
1084
1031
|
this.queryChildMenuData();
|
|
1085
1032
|
},
|
|
1086
1033
|
methods: {
|
|
1034
|
+
remindSelect(menu) {
|
|
1035
|
+
let fourthTabs = [];
|
|
1036
|
+
if (menu.children && menu.children.length > 0) {
|
|
1037
|
+
fourthTabs = [...menu.children];
|
|
1038
|
+
} else {
|
|
1039
|
+
fourthTabs = [...menu];
|
|
1040
|
+
}
|
|
1041
|
+
this.fourthTabs = [...fourthTabs];
|
|
1042
|
+
this.tabActiveName = fourthTabs[0].id;
|
|
1043
|
+
this.appCodes = this.fourthTabs[0].appCode;
|
|
1044
|
+
this.currentPage = this.setIframeType(this.fourthTabs[0]);
|
|
1045
|
+
},
|
|
1087
1046
|
/**
|
|
1088
1047
|
* queryChildMenu: 查询左侧我的提醒和我的快捷菜单
|
|
1089
1048
|
*/
|
|
@@ -1095,11 +1054,10 @@ export default {
|
|
|
1095
1054
|
})
|
|
1096
1055
|
.then((res) => {
|
|
1097
1056
|
if (res.rCode === 0) {
|
|
1098
|
-
console.log(res.results, 'res.results');
|
|
1099
1057
|
const tree = this.flatToNestedTree(res.results);
|
|
1100
|
-
|
|
1101
|
-
this.
|
|
1102
|
-
this.
|
|
1058
|
+
this.myRemindMenu = [...tree[0].children];
|
|
1059
|
+
this.myShortcut = [...tree[1].children];
|
|
1060
|
+
this.getNums();
|
|
1103
1061
|
}
|
|
1104
1062
|
});
|
|
1105
1063
|
},
|
|
@@ -1146,11 +1104,8 @@ export default {
|
|
|
1146
1104
|
// tab点击事件
|
|
1147
1105
|
fourthTabClick(res) {
|
|
1148
1106
|
const index = res.index;
|
|
1149
|
-
this.currentPage = {
|
|
1150
|
-
...this.fourthTabs[index]
|
|
1151
|
-
};
|
|
1107
|
+
this.currentPage = {};
|
|
1152
1108
|
this.appCodes = this.fourthTabs[index].appCode;
|
|
1153
|
-
console.log(this.currentPage, 'this.currentPage');
|
|
1154
1109
|
|
|
1155
1110
|
// console.log(this.fourthTabs[index], 'this.fourthTabs[index]');
|
|
1156
1111
|
// 增加阻塞 重载页面
|
|
@@ -1159,12 +1114,12 @@ export default {
|
|
|
1159
1114
|
}, 0);
|
|
1160
1115
|
},
|
|
1161
1116
|
//获取数量
|
|
1162
|
-
getNums() {
|
|
1163
|
-
this.getIndexCount();
|
|
1164
|
-
this.getUserTipsInstanceNum(0);
|
|
1165
|
-
this.getUserTipsInstanceNum(1);
|
|
1166
|
-
this.getShareFilesReceiveCountNew();
|
|
1167
|
-
this.getVoteMeetingNum();
|
|
1117
|
+
async getNums() {
|
|
1118
|
+
await this.getIndexCount();
|
|
1119
|
+
await this.getUserTipsInstanceNum(0);
|
|
1120
|
+
await this.getUserTipsInstanceNum(1);
|
|
1121
|
+
await this.getShareFilesReceiveCountNew();
|
|
1122
|
+
await this.getVoteMeetingNum();
|
|
1168
1123
|
this.reladding = true;
|
|
1169
1124
|
if (this.reladding) {
|
|
1170
1125
|
setTimeout(() => {
|
|
@@ -1187,7 +1142,13 @@ export default {
|
|
|
1187
1142
|
})
|
|
1188
1143
|
.then((res) => {
|
|
1189
1144
|
if (res.rCode === 0) {
|
|
1190
|
-
|
|
1145
|
+
const myRemindMenu = [...this.myRemindMenu];
|
|
1146
|
+
myRemindMenu.forEach((item) => {
|
|
1147
|
+
if (item.appCode === 'conference_meeting') {
|
|
1148
|
+
item.num = res.results > 99 ? '99+' : res.results;
|
|
1149
|
+
}
|
|
1150
|
+
});
|
|
1151
|
+
this.myRemindMenu = [...myRemindMenu];
|
|
1191
1152
|
}
|
|
1192
1153
|
});
|
|
1193
1154
|
},
|
|
@@ -1205,7 +1166,13 @@ export default {
|
|
|
1205
1166
|
})
|
|
1206
1167
|
.then((res) => {
|
|
1207
1168
|
if (res.rCode === 0) {
|
|
1208
|
-
|
|
1169
|
+
const myRemindMenu = [...this.myRemindMenu];
|
|
1170
|
+
myRemindMenu.forEach((item) => {
|
|
1171
|
+
if (item.appCode === 'favoriteCount') {
|
|
1172
|
+
item.num = res.results > 99 ? '99+' : res.results;
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
this.myRemindMenu = [...myRemindMenu];
|
|
1209
1176
|
}
|
|
1210
1177
|
});
|
|
1211
1178
|
},
|
|
@@ -1229,11 +1196,14 @@ export default {
|
|
|
1229
1196
|
})
|
|
1230
1197
|
.then((res) => {
|
|
1231
1198
|
if (res.rCode === 0) {
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1199
|
+
const appCode = type ? 'wdtxjqgw' : 'wdtxgwqssignList';
|
|
1200
|
+
const myRemindMenu = [...this.myRemindMenu];
|
|
1201
|
+
myRemindMenu.forEach((item) => {
|
|
1202
|
+
if (item.appCode === appCode) {
|
|
1203
|
+
item.num = res.results > 99 ? '99+' : res.results;
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
this.myRemindMenu = [...myRemindMenu];
|
|
1237
1207
|
} else {
|
|
1238
1208
|
console.error('查询待签收/据签收任务数量失败', res);
|
|
1239
1209
|
}
|
|
@@ -1253,11 +1223,15 @@ export default {
|
|
|
1253
1223
|
})
|
|
1254
1224
|
.then((res) => {
|
|
1255
1225
|
if (res.rCode === 0) {
|
|
1226
|
+
// 待办
|
|
1256
1227
|
const makePendingCount = res.results.makePendingCount || 0;
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1228
|
+
const myRemindMenu = [...this.myRemindMenu];
|
|
1229
|
+
myRemindMenu.forEach((item) => {
|
|
1230
|
+
if (item.appCode === 'makePendingCount') {
|
|
1231
|
+
item.num = makePendingCount > 99 ? '99+' : makePendingCount;
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
this.myRemindMenu = [...myRemindMenu];
|
|
1261
1235
|
} else {
|
|
1262
1236
|
console.error('查询待办任务数量失败', res);
|
|
1263
1237
|
}
|
|
@@ -1955,6 +1929,9 @@ export default {
|
|
|
1955
1929
|
this.$refs.message.getMsg(true);
|
|
1956
1930
|
}
|
|
1957
1931
|
}
|
|
1932
|
+
if (i === 'menuTipsMap') {
|
|
1933
|
+
this.getNums();
|
|
1934
|
+
}
|
|
1958
1935
|
if (i === 'menuTipsMap' && data[i] !== null) {
|
|
1959
1936
|
this.menuTips = data[i];
|
|
1960
1937
|
}
|
|
@@ -2000,120 +1977,6 @@ export default {
|
|
|
2000
1977
|
handleDelete(index) {
|
|
2001
1978
|
this.newApps.splice(index, 1);
|
|
2002
1979
|
},
|
|
2003
|
-
/**
|
|
2004
|
-
* @desc:储存更多应用菜单点击
|
|
2005
|
-
* @author huangbo
|
|
2006
|
-
* @date 2024年9月7日
|
|
2007
|
-
**/
|
|
2008
|
-
handlerClickApps(res) {
|
|
2009
|
-
if (res.permission === false) {
|
|
2010
|
-
return false;
|
|
2011
|
-
}
|
|
2012
|
-
let i = util.indexOfObj(this.newApps, res, 'id');
|
|
2013
|
-
if (i == -1) {
|
|
2014
|
-
this.newApps.push(res);
|
|
2015
|
-
}
|
|
2016
|
-
this.handlerClickApp(res);
|
|
2017
|
-
},
|
|
2018
|
-
/**
|
|
2019
|
-
* @desc:侧边应用菜单点击
|
|
2020
|
-
* @author huangbo
|
|
2021
|
-
* @date 2024年9月7日
|
|
2022
|
-
**/
|
|
2023
|
-
handlerClickApp(res) {
|
|
2024
|
-
this.showMsg = false;
|
|
2025
|
-
this.showSet = false;
|
|
2026
|
-
this.fold = false;
|
|
2027
|
-
this.showApps = false;
|
|
2028
|
-
this.drawer.visible = false;
|
|
2029
|
-
if (res) {
|
|
2030
|
-
if (res.permission === false) {
|
|
2031
|
-
return false;
|
|
2032
|
-
}
|
|
2033
|
-
if (
|
|
2034
|
-
(res.children && res.children.length) ||
|
|
2035
|
-
(res.fourthTabs && res.fourthTabs.length)
|
|
2036
|
-
) {
|
|
2037
|
-
this.subMenus = res;
|
|
2038
|
-
this.showMenu = true;
|
|
2039
|
-
} else {
|
|
2040
|
-
this.subMenus = null;
|
|
2041
|
-
this.showMenu = false;
|
|
2042
|
-
}
|
|
2043
|
-
let set = true;
|
|
2044
|
-
if (res.url) {
|
|
2045
|
-
if (res.urlopenmode == 1 || res.openModel == 1) {
|
|
2046
|
-
set = false;
|
|
2047
|
-
util.win.open(res.url);
|
|
2048
|
-
} else if (res.urlopenmode == 2 || res.openModel == 2) {
|
|
2049
|
-
set = false;
|
|
2050
|
-
util.win.open(res.url, '_self');
|
|
2051
|
-
} else {
|
|
2052
|
-
let i = util.indexOfObj(this.tabs, res, 'id');
|
|
2053
|
-
this.activeName = res.id;
|
|
2054
|
-
if (i == -1) {
|
|
2055
|
-
let obj = res.code
|
|
2056
|
-
? this.getMenu(this.menus, res.code, 'appCode')
|
|
2057
|
-
: null;
|
|
2058
|
-
if (obj) {
|
|
2059
|
-
obj = JSON.parse(JSON.stringify(obj));
|
|
2060
|
-
let n = util.indexOfObj(this.tabs, obj, 'id');
|
|
2061
|
-
if (n == -1) {
|
|
2062
|
-
let tab = this.setIframeType(obj);
|
|
2063
|
-
this.tabs.push(tab);
|
|
2064
|
-
this.activeName = tab.id;
|
|
2065
|
-
} else {
|
|
2066
|
-
if (obj.method == 'iframe') {
|
|
2067
|
-
obj.url = util.handlerUrl(obj.url);
|
|
2068
|
-
}
|
|
2069
|
-
}
|
|
2070
|
-
} else {
|
|
2071
|
-
let tab = this.setIframeType(res);
|
|
2072
|
-
this.tabs.push(tab);
|
|
2073
|
-
this.activeName = tab.id;
|
|
2074
|
-
}
|
|
2075
|
-
} else {
|
|
2076
|
-
if (res.method == 'iframe') {
|
|
2077
|
-
res.url = util.handlerUrl(res.url);
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
}
|
|
2081
|
-
}
|
|
2082
|
-
if (set && res.code) {
|
|
2083
|
-
let subMenus = this.getMenu(this.menus, res.code, 'appCode');
|
|
2084
|
-
if (!subMenus && !res.url) {
|
|
2085
|
-
this.$alert('没有关联菜单,请联系管理员!', '提示', {
|
|
2086
|
-
confirmButtonText: '确定',
|
|
2087
|
-
type: 'warning'
|
|
2088
|
-
}).catch(() => {});
|
|
2089
|
-
} else {
|
|
2090
|
-
this.title = res.text || res.name;
|
|
2091
|
-
this.subMenus = subMenus ? subMenus : null;
|
|
2092
|
-
this.showMenu = subMenus
|
|
2093
|
-
? (subMenus.children && subMenus.children.length > 0) ||
|
|
2094
|
-
(subMenus.fourthTabs && subMenus.fourthTabs.length > 0)
|
|
2095
|
-
: false;
|
|
2096
|
-
this.showApps = false;
|
|
2097
|
-
if (subMenus && subMenus.url) {
|
|
2098
|
-
subMenus = JSON.parse(JSON.stringify(subMenus));
|
|
2099
|
-
let i = util.indexOfObj(this.tabs, subMenus, 'id');
|
|
2100
|
-
this.activeName = subMenus.id;
|
|
2101
|
-
if (i == -1) {
|
|
2102
|
-
let tab = this.setIframeType(subMenus);
|
|
2103
|
-
this.tabs.push(tab);
|
|
2104
|
-
} else {
|
|
2105
|
-
if (subMenus.method == 'iframe') {
|
|
2106
|
-
this.tabs[i].url = util.handlerUrl(subMenus.url);
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
this.active = res.id;
|
|
2113
|
-
} else {
|
|
2114
|
-
this.showApps = !this.showApps;
|
|
2115
|
-
}
|
|
2116
|
-
},
|
|
2117
1980
|
/**
|
|
2118
1981
|
* @desc:显示Drawer界面
|
|
2119
1982
|
* @author huangbo
|
|
@@ -2488,6 +2351,7 @@ export default {
|
|
|
2488
2351
|
handleLayout(res, active) {
|
|
2489
2352
|
if (active) {
|
|
2490
2353
|
localStorage.setItem('layout', active);
|
|
2354
|
+
localStorage.setItem('layoutType', active);
|
|
2491
2355
|
}
|
|
2492
2356
|
this.$emit('chang-layout', res, active);
|
|
2493
2357
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.commonOpinion-set,.es-fenyue-buttons,.es-flow-content,.es-reset-flow{-webkit-box-direction:normal}.es-common-opinions,.es-fenyue-buttons,.es-flow-buttons,.es-flow-title,.es-opinion{padding:0 12px}.es-fenyue-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.es-fenyue-buttons-yj{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-user-defined{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.es-user-defined .el-button--primary{-webkit-box-flex:1;-ms-flex:1;flex:1}.required .el-textarea__inner::-webkit-input-placeholder{color:red}.required .el-textarea__inner::-moz-placeholder{color:red}.required .el-textarea__inner:-ms-input-placeholder{color:red}.required .el-textarea__inner::-ms-input-placeholder{color:red}.required .el-textarea__inner::placeholder{color:red}.no-checked .el-checkbox__input{display:none!important}.es-reset-flow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;height:100%}.es-reset-flow-form-box{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;margin-bottom:10px}.es-flow-content{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;padding-bottom:12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;position:relative}.es-flow-index{height:100%}.es-flow-index .em-flow-more-btn{display:block;width:100%}.es-flow-index .el-checkbox-group{display:contents}.es-flow-index .es-eidt-title{font-size:13px;color:#333;line-height:20px}.es-flow-index .es-flow-top .es-flow-title{height:40px;line-height:40px}.es-flow-index .es-flow-top .es-flow-title .es-icon{position:absolute;right:8px;top:4px}.es-flow-index .es-flow-top .es-opinion{display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .es-flow-top .es-opinion .es-opinion-file{cursor:pointer;position:relative}.es-flow-index .es-flow-top .es-opinion .es-opinion-file .es-file-num{color:red}.es-flow-index .es-button-agree{width:calc(43% - 15px)}.es-flow-index .es-button-agree-save{margin-top:10px}.commonOpinion-set{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;height:100%}.commonOpinion-set .el-table__body-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-flow-index-shrink{width:24px}.es-flow-index-shrink img{cursor:pointer;width:24px;height:24px}.es-flow-btn:hover{background-color:#f5f5f5;color:#1890ff}.es-flow-btn:hover ::v-deep .el-popover{padding:12px 0!important}.es-flow-form .el-checkbox-group{display:contents}.es-flow-index .el-input-group--prepend>.el-input__inner,.es-flow-index .select-process>.el-input__inner{display:none!important}.es-flow-form .el-textarea:first-child,.es-flow-index .el-textarea{width:100%;margin-bottom:10px!important}.es-flow-form .es-opinions .el-select,.es-flow-index .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-select .el-input{width:100%;height:40px}.es-flow-index .process .el-select{width:calc(100% + 40px)!important}.es-flow-index .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-index .select-process .el-input-group__append{height:40px}.es-flow-index .hide-flow-char .el-input-group__append{padding:0}.es-flow-index button.el-button.sub.el-button--primary.el-button--medium{width:calc(100% - 85px)}.es-flow-index .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-index .demo-dynamic .el-select{width:100%!important}.es-flow-index .demo-dynamic .select-process .el-select,.es-flow-index .demo-dynamic .selectUser,.es-flow-index.task-union-examine .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-input.el-input-group.el-input-group--append.el-input-group--prepend{margin:0!important}.es-flow-index .demo-dynamic{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-top:10px}.es-flow-index .es-footer-btn{margin-top:10px}.es-flow-index .es-footer-btn .el-button+.el-button{margin:10px 10px 0 0}.es-flow-index .el-input.is-disabled .el-input__inner{color:#606266}.es-flow-index .es-flow-btn{margin-right:10px}.es-flow-index .es-info{padding:0 12px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden}.es-flow-index .form-left .el-form-item{margin-bottom:22px!important}.es-flow-index .es-info .el-form-item{margin-bottom:0}.es-flow-index .es-info::-webkit-scrollbar{width:5px}.es-flow-index .news{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;padding:10px 0}.es-flow-index .news .sj,.show{width:10px;height:10px;border-right:1px solid #000;border-bottom:1px solid #000;margin-right:10px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg);-webkit-transition:.5s;transition:.5s}.es-flow-index .news .show{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.es-flow-index .el-checkbox{margin:0 10px 10px 0}.es-flow-index .info::-webkit-scrollbar-track{-webkit-box-shadow:inset006pxrgba(0,0,0,.3);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.1);-webkit-box-shadow:inset006pxrgba(0,0,0,.5)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{right:5px!important}.es-flow-form .input-with-select{width:100%;margin-top:0}.custom-limit-time .el-input.el-input--suffix{width:calc(100% + 40px)!important}.task-union-examine .custom-limit-time .el-input.el-input--suffix{width:unset!important}.custom-limit-time .el-input-group__append{background-color:#1890ff!important;color:#fff!important}.es-flow-form .el-select{width:100%}.es-flow-form .es-opinions .el-select{width:calc(100% + 40px)!important}.select-users .el-input-group__append .el-button span,.select-users .no-icon .el-input-group__append{display:none}.select-users .el-input-group__append{background-color:#1890ff}.select-users .el-input-group__append .el-button i{font-size:18px;color:#fff}.es-flow-form .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-form .el-input-group--prepend>.el-input__inner{display:none!important}.es-flow-form button.el-button.sub.el-button--danger.el-button--medium{width:calc(100% - 85px)}.es-flow-form .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-form .el-form-item__label{font-weight:700}.es-flow-form .el-input.is-disabled .el-input__inner{color:#000}.select-user{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.select-user .left{width:30%}.select-user .right{padding:3px;width:69%}.select-user .el-checkbox{width:170px;margin-top:11px;margin-bottom:11px}.select-user .all{margin:0!important}.es-flow-index .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner,.flow-dialog .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#1890ff!important;border-color:#1890ff!important}.es-flow-index .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after,.flow-dialog .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after{border-color:#fff}.es-flow-index .el-checkbox__input.is-disabled+span.el-checkbox__label,.flow-dialog .el-checkbox__input.is-disabled+span.el-checkbox__label{color:rgba(0,0,0,.85)}
|
|
1
|
+
@charset "UTF-8";.commonOpinion-set,.es-fenyue-buttons,.es-flow-content,.es-reset-flow{-webkit-box-direction:normal}.es-common-opinions,.es-fenyue-buttons,.es-flow-buttons,.es-flow-title,.es-opinion{padding:0 12px}.es-fenyue-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.es-fenyue-buttons-yj{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-user-defined{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.es-user-defined .el-button--primary{-webkit-box-flex:1;-ms-flex:1;flex:1}.flow-chart-dialog .el-dialog__body{overflow:auto}.required .el-textarea__inner::-webkit-input-placeholder{color:red}.required .el-textarea__inner::-moz-placeholder{color:red}.required .el-textarea__inner:-ms-input-placeholder{color:red}.required .el-textarea__inner::-ms-input-placeholder{color:red}.required .el-textarea__inner::placeholder{color:red}.no-checked .el-checkbox__input{display:none!important}.es-reset-flow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;height:100%}.es-reset-flow-form-box{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;margin-bottom:10px}.es-flow-content{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;padding-bottom:12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;position:relative}.es-flow-index{height:100%}.es-flow-index .em-flow-more-btn{display:block;width:100%}.es-flow-index .el-checkbox-group{display:contents}.es-flow-index .es-eidt-title{font-size:13px;color:#333;line-height:20px}.es-flow-index .es-flow-top .es-flow-title{height:40px;line-height:40px}.es-flow-index .es-flow-top .es-flow-title .es-icon{position:absolute;right:8px;top:4px}.es-flow-index .es-flow-top .es-opinion{display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .es-flow-top .es-opinion .es-opinion-file{cursor:pointer;position:relative}.es-flow-index .es-flow-top .es-opinion .es-opinion-file .es-file-num{color:red}.es-flow-index .es-button-agree{width:calc(43% - 15px)}.es-flow-index .es-button-agree-save{margin-top:10px}.commonOpinion-set{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;height:100%}.commonOpinion-set .el-table__body-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-flow-index-shrink{width:24px}.es-flow-index-shrink img{cursor:pointer;width:24px;height:24px}.es-flow-btn:hover{background-color:#f5f5f5;color:#1890ff}.es-flow-btn:hover ::v-deep .el-popover{padding:12px 0!important}.es-flow-form .el-checkbox-group{display:contents}.es-flow-index .el-input-group--prepend>.el-input__inner,.es-flow-index .select-process>.el-input__inner{display:none!important}.es-flow-form .el-textarea:first-child,.es-flow-index .el-textarea{width:100%;margin-bottom:10px!important}.es-flow-form .es-opinions .el-select,.es-flow-index .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-select .el-input{width:100%;height:40px}.es-flow-index .process .el-select{width:calc(100% + 40px)!important}.es-flow-index .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-index .select-process .el-input-group__append{height:40px}.es-flow-index .hide-flow-char .el-input-group__append{padding:0}.es-flow-index button.el-button.sub.el-button--primary.el-button--medium{width:calc(100% - 85px)}.es-flow-index .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-index .demo-dynamic .el-select{width:100%!important}.es-flow-index .demo-dynamic .select-process .el-select,.es-flow-index .demo-dynamic .selectUser,.es-flow-index.task-union-examine .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-input.el-input-group.el-input-group--append.el-input-group--prepend{margin:0!important}.es-flow-index .demo-dynamic{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-top:10px}.es-flow-index .es-footer-btn{margin-top:10px}.es-flow-index .es-footer-btn .el-button+.el-button{margin:10px 10px 0 0}.es-flow-index .el-input.is-disabled .el-input__inner{color:#606266}.es-flow-index .es-flow-btn{margin-right:10px}.es-flow-index .es-info{padding:0 12px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden}.es-flow-index .form-left .el-form-item{margin-bottom:22px!important}.es-flow-index .es-info .el-form-item{margin-bottom:0}.es-flow-index .es-info::-webkit-scrollbar{width:5px}.es-flow-index .news{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;padding:10px 0}.es-flow-index .news .sj,.show{width:10px;height:10px;border-right:1px solid #000;border-bottom:1px solid #000;margin-right:10px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg);-webkit-transition:.5s;transition:.5s}.es-flow-index .news .show{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.es-flow-index .el-checkbox{margin:0 10px 10px 0}.es-flow-index .info::-webkit-scrollbar-track{-webkit-box-shadow:inset006pxrgba(0,0,0,.3);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.1);-webkit-box-shadow:inset006pxrgba(0,0,0,.5)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{right:5px!important}.es-flow-form .input-with-select{width:100%;margin-top:0}.custom-limit-time .el-input.el-input--suffix{width:calc(100% + 40px)!important}.task-union-examine .custom-limit-time .el-input.el-input--suffix{width:unset!important}.custom-limit-time .el-input-group__append{background-color:#1890ff!important;color:#fff!important}.es-flow-form .el-select{width:100%}.es-flow-form .es-opinions .el-select{width:calc(100% + 40px)!important}.select-users .el-input-group__append .el-button span,.select-users .no-icon .el-input-group__append{display:none}.select-users .el-input-group__append{background-color:#1890ff}.select-users .el-input-group__append .el-button i{font-size:18px;color:#fff}.es-flow-form .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-form .el-input-group--prepend>.el-input__inner{display:none!important}.es-flow-form button.el-button.sub.el-button--danger.el-button--medium{width:calc(100% - 85px)}.es-flow-form .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-form .el-form-item__label{font-weight:700}.es-flow-form .el-input.is-disabled .el-input__inner{color:#000}.select-user{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.select-user .left{width:30%}.select-user .right{padding:3px;width:69%}.select-user .el-checkbox{width:170px;margin-top:11px;margin-bottom:11px}.select-user .all{margin:0!important}.es-flow-index .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner,.flow-dialog .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#1890ff!important;border-color:#1890ff!important}.es-flow-index .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after,.flow-dialog .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after{border-color:#fff}.es-flow-index .el-checkbox__input.is-disabled+span.el-checkbox__label,.flow-dialog .el-checkbox__input.is-disabled+span.el-checkbox__label{color:rgba(0,0,0,.85)}
|