eoss-ui 0.7.33 → 0.7.35
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 +2 -0
- package/lib/button.js +2 -0
- package/lib/calogin.js +2 -0
- package/lib/checkbox-group.js +2 -0
- package/lib/data-table-form.js +2 -0
- package/lib/data-table.js +2 -0
- package/lib/date-picker.js +2 -0
- package/lib/dialog.js +6 -4
- package/lib/eoss-ui.common.js +320 -171
- package/lib/flow-group.js +2 -0
- package/lib/flow-list.js +2 -0
- package/lib/flow.js +2 -0
- package/lib/form.js +2 -0
- package/lib/handle-user.js +2 -0
- package/lib/handler.js +2 -0
- package/lib/icon.js +2 -0
- package/lib/index.js +1 -1
- package/lib/input-number.js +2 -0
- package/lib/input.js +2 -0
- package/lib/login.js +15 -5
- package/lib/main.js +278 -139
- package/lib/nav.js +2 -0
- package/lib/page.js +2 -0
- package/lib/pagination.js +2 -0
- package/lib/player.js +2 -0
- package/lib/qr-code.js +2 -0
- package/lib/radio-group.js +2 -0
- package/lib/retrial-auth.js +2 -0
- package/lib/select-ganged.js +2 -0
- package/lib/select.js +2 -0
- package/lib/selector-panel.js +2 -0
- package/lib/selector.js +2 -0
- package/lib/sizer.js +2 -0
- package/lib/steps.js +2 -0
- package/lib/switch.js +2 -0
- package/lib/table-form.js +2 -0
- package/lib/tabs.js +2 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/tips.js +2 -0
- package/lib/tree-group.js +2 -0
- package/lib/tree.js +2 -0
- package/lib/upload.js +9 -5
- package/lib/utils/util.js +2 -0
- package/lib/wujie.js +2 -0
- package/lib/wxlogin.js +2 -0
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/dialog/.DS_Store +0 -0
- package/packages/dialog/src/main.vue +2 -2
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +13 -3
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/main.vue +36 -5
- package/packages/main/src/public/online.vue +1 -1
- package/packages/main/src/simplicity/handler.vue +17 -3
- package/packages/main/src/simplicity/index.vue +29 -30
- package/packages/main/src/simplicity/message.vue +27 -0
- package/packages/main/src/simplicity/notice.vue +26 -0
- package/packages/main/src/simplicity/sub-menu.vue +11 -3
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/src/simplicity.scss +11 -1
- package/packages/upload/.DS_Store +0 -0
- package/packages/upload/src/main.vue +1 -0
- package/src/.DS_Store +0 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +2 -0
package/lib/utils/util.js
CHANGED
|
@@ -609,6 +609,8 @@ var busEmit = function busEmit(that, _ref3) {
|
|
|
609
609
|
}
|
|
610
610
|
return;
|
|
611
611
|
}
|
|
612
|
+
console.log('busEmit', method, args);
|
|
613
|
+
|
|
612
614
|
var _bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
|
|
613
615
|
_bus && (Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args));
|
|
614
616
|
}
|
package/lib/wujie.js
CHANGED
|
@@ -693,6 +693,8 @@ var busEmit = function busEmit(that, _ref3) {
|
|
|
693
693
|
}
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
+
console.log('busEmit', method, args);
|
|
697
|
+
|
|
696
698
|
var _bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
|
|
697
699
|
_bus && (Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args));
|
|
698
700
|
}
|
package/lib/wxlogin.js
CHANGED
|
@@ -693,6 +693,8 @@ var busEmit = function busEmit(that, _ref3) {
|
|
|
693
693
|
}
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
+
console.log('busEmit', method, args);
|
|
697
|
+
|
|
696
698
|
var _bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
|
|
697
699
|
_bus && (Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args));
|
|
698
700
|
}
|
package/package.json
CHANGED
package/packages/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
package/packages/login/.DS_Store
CHANGED
|
Binary file
|
|
@@ -778,7 +778,11 @@ export default {
|
|
|
778
778
|
},
|
|
779
779
|
caModel: String,
|
|
780
780
|
caInstallPath: String,
|
|
781
|
-
showKeySelect: Boolean
|
|
781
|
+
showKeySelect: Boolean,
|
|
782
|
+
alertCallback: {
|
|
783
|
+
type: Function,
|
|
784
|
+
default: () => {}
|
|
785
|
+
}
|
|
782
786
|
},
|
|
783
787
|
computed: {
|
|
784
788
|
transform() {
|
|
@@ -1498,9 +1502,15 @@ export default {
|
|
|
1498
1502
|
this.$alert(content, title, {
|
|
1499
1503
|
dangerouslyUseHTMLString: isMarkdown,
|
|
1500
1504
|
setHeight: isMarkdown,
|
|
1501
|
-
|
|
1505
|
+
customClass: 'es-login-alert',
|
|
1502
1506
|
...config
|
|
1503
|
-
})
|
|
1507
|
+
})
|
|
1508
|
+
.then(() => {
|
|
1509
|
+
this.alertCallback(1, { content, title, ...config });
|
|
1510
|
+
})
|
|
1511
|
+
.catch(() => {
|
|
1512
|
+
this.alertCallback(0, { content, title, ...config });
|
|
1513
|
+
});
|
|
1504
1514
|
},
|
|
1505
1515
|
async downloadMdFile(url) {
|
|
1506
1516
|
try {
|
package/packages/main/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -24,10 +24,17 @@
|
|
|
24
24
|
|
|
25
25
|
<!-- 公用弹窗 -->
|
|
26
26
|
<es-dialog
|
|
27
|
+
class="es-main-public-dialog"
|
|
27
28
|
v-for="(item, index) in dialogs"
|
|
29
|
+
:custom-class="
|
|
30
|
+
'es-public-dialog' +
|
|
31
|
+
(item.customClassNames ? ` ${item.customClassNames}` : '')
|
|
32
|
+
"
|
|
33
|
+
modal-class="es-main-public-dialog-modal"
|
|
34
|
+
:class="item.classNames"
|
|
28
35
|
:visible.sync="item.visible"
|
|
29
36
|
:key="item.appCode || item.id || item.name || index"
|
|
30
|
-
:title="item.name"
|
|
37
|
+
:title="item.name || item.title"
|
|
31
38
|
:width="item.width"
|
|
32
39
|
:height="item.height"
|
|
33
40
|
:size="item.size"
|
|
@@ -149,6 +156,7 @@ export default {
|
|
|
149
156
|
this.$nextTick(() => {
|
|
150
157
|
this.getConfig();
|
|
151
158
|
const bus = this.bus || this.$root.Bus;
|
|
159
|
+
console.log('bus', bus);
|
|
152
160
|
if (bus) {
|
|
153
161
|
bus.$on('reLogin', this.handleReLogin);
|
|
154
162
|
bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
@@ -345,7 +353,17 @@ export default {
|
|
|
345
353
|
* @author huangbo
|
|
346
354
|
* @date 2024年9月7日
|
|
347
355
|
**/
|
|
348
|
-
winOpen({
|
|
356
|
+
winOpen({
|
|
357
|
+
url,
|
|
358
|
+
name,
|
|
359
|
+
width = '100%',
|
|
360
|
+
height = '100%',
|
|
361
|
+
appCode,
|
|
362
|
+
id,
|
|
363
|
+
size,
|
|
364
|
+
...config
|
|
365
|
+
}) {
|
|
366
|
+
url = typeof arguments[0] === 'string' ? arguments[0] : url;
|
|
349
367
|
id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
|
|
350
368
|
const openModel = util.getStorage('openModel');
|
|
351
369
|
let src = url;
|
|
@@ -367,7 +385,8 @@ export default {
|
|
|
367
385
|
height,
|
|
368
386
|
appCode,
|
|
369
387
|
visible: false,
|
|
370
|
-
size
|
|
388
|
+
size,
|
|
389
|
+
...config
|
|
371
390
|
};
|
|
372
391
|
let n = this.dialogs.push(dialog);
|
|
373
392
|
this.$nextTick(() => {
|
|
@@ -402,7 +421,7 @@ export default {
|
|
|
402
421
|
* @author huangbo
|
|
403
422
|
* @date 2024年9月7日
|
|
404
423
|
**/
|
|
405
|
-
winClose({ url, appCode, id, index, refresh, jumpMenu }) {
|
|
424
|
+
winClose({ url, appCode, id, index, refresh, jumpMenu, callBack }) {
|
|
406
425
|
if (!appCode && !id) {
|
|
407
426
|
console.error('参数错误,缺少appCode或者id');
|
|
408
427
|
return;
|
|
@@ -420,6 +439,7 @@ export default {
|
|
|
420
439
|
this.dialogs.splice(dialog.index, 1);
|
|
421
440
|
}
|
|
422
441
|
}
|
|
442
|
+
callBack && callBack();
|
|
423
443
|
refresh && this.$refs.main.handleRefresh(refresh);
|
|
424
444
|
jumpMenu &&
|
|
425
445
|
(Array.isArray(jumpMenu)
|
|
@@ -496,7 +516,9 @@ export default {
|
|
|
496
516
|
* @date 2024年9月7日
|
|
497
517
|
**/
|
|
498
518
|
handleClosed(res, index) {
|
|
499
|
-
this
|
|
519
|
+
this.$nextTick(() => {
|
|
520
|
+
this.dialogs.splice(index, 1);
|
|
521
|
+
});
|
|
500
522
|
},
|
|
501
523
|
/**
|
|
502
524
|
* @desc:主应用向子应用发送事件
|
|
@@ -524,6 +546,15 @@ export default {
|
|
|
524
546
|
},
|
|
525
547
|
beforeDestroy() {
|
|
526
548
|
window.removeEventListener('message', this.handleMessage);
|
|
549
|
+
const bus = this.bus || this.$root.Bus;
|
|
550
|
+
if (bus) {
|
|
551
|
+
bus.$off('reLogin');
|
|
552
|
+
bus.$off('refresh');
|
|
553
|
+
bus.$off('windowOpen');
|
|
554
|
+
bus.$off('windowClose');
|
|
555
|
+
bus.$off('jumpMenu');
|
|
556
|
+
bus.$off('emit');
|
|
557
|
+
}
|
|
527
558
|
WujieVue.bus.$off('reLogin');
|
|
528
559
|
WujieVue.bus.$off('refresh');
|
|
529
560
|
WujieVue.bus.$off('jumpMenu');
|
|
@@ -58,7 +58,15 @@
|
|
|
58
58
|
></es-icon>
|
|
59
59
|
</el-badge>
|
|
60
60
|
</el-tooltip>
|
|
61
|
-
<div
|
|
61
|
+
<div
|
|
62
|
+
class="es-simplicity-handler-item"
|
|
63
|
+
:class="{
|
|
64
|
+
'es-simplicity-handler-item-hover': showTitleType === 'text'
|
|
65
|
+
}"
|
|
66
|
+
v-else
|
|
67
|
+
:key="item.type"
|
|
68
|
+
@click.stop="handleClick(item)"
|
|
69
|
+
>
|
|
62
70
|
<el-badge
|
|
63
71
|
class="es-simplicity-handler-item"
|
|
64
72
|
:hidden="!nums[item.type] && !item.num"
|
|
@@ -67,11 +75,17 @@
|
|
|
67
75
|
>
|
|
68
76
|
<es-icon
|
|
69
77
|
class="es-simplicity-handler-icon"
|
|
70
|
-
|
|
78
|
+
:class="{
|
|
79
|
+
'es-simplicity-handler-icon-hover': showTitleType !== 'text'
|
|
80
|
+
}"
|
|
71
81
|
:contents="item.icon"
|
|
72
82
|
></es-icon>
|
|
73
83
|
</el-badge>
|
|
74
|
-
<span
|
|
84
|
+
<span
|
|
85
|
+
class="es-simplicity-handler-text"
|
|
86
|
+
v-if="showTitleType === 'text'"
|
|
87
|
+
>{{ item.title }}</span
|
|
88
|
+
>
|
|
75
89
|
</div>
|
|
76
90
|
</template>
|
|
77
91
|
</div>
|
|
@@ -460,7 +460,7 @@ export default {
|
|
|
460
460
|
//是否显示头像
|
|
461
461
|
avatar: {
|
|
462
462
|
type: Boolean,
|
|
463
|
-
default:
|
|
463
|
+
default: true
|
|
464
464
|
},
|
|
465
465
|
//im用例编码
|
|
466
466
|
imUseCaseCode: String,
|
|
@@ -705,7 +705,7 @@ export default {
|
|
|
705
705
|
dialog: {},
|
|
706
706
|
handleNums: {
|
|
707
707
|
//消息数
|
|
708
|
-
notice:
|
|
708
|
+
notice: 0,
|
|
709
709
|
//在线人数
|
|
710
710
|
online: 1
|
|
711
711
|
},
|
|
@@ -746,15 +746,16 @@ export default {
|
|
|
746
746
|
},
|
|
747
747
|
computed: {
|
|
748
748
|
_handleDatas() {
|
|
749
|
-
|
|
749
|
+
const handleDatas = this.handleDatas.filter((item, index) => {
|
|
750
750
|
if (item.type === 'contact' && this.contact) {
|
|
751
|
-
|
|
751
|
+
this.$set(this.handleDatas, index, { ...item, ...this.contact });
|
|
752
752
|
}
|
|
753
753
|
if (item.type === 'contact' && !this.contact) {
|
|
754
754
|
return false;
|
|
755
755
|
}
|
|
756
756
|
return !item.hide && !this.hide[item.type];
|
|
757
757
|
});
|
|
758
|
+
return handleDatas;
|
|
758
759
|
},
|
|
759
760
|
//菜单接口
|
|
760
761
|
_menuUrl() {
|
|
@@ -1043,6 +1044,7 @@ export default {
|
|
|
1043
1044
|
if (results[i].contact) {
|
|
1044
1045
|
let contact = JSON.parse(results[i].contact);
|
|
1045
1046
|
let content = contact.content.split(',');
|
|
1047
|
+
this;
|
|
1046
1048
|
this.contact = {
|
|
1047
1049
|
...contact,
|
|
1048
1050
|
content
|
|
@@ -1809,34 +1811,31 @@ export default {
|
|
|
1809
1811
|
? util.indexOfObj(this.tabs, arg, 'appCode,code,id,url')
|
|
1810
1812
|
: util.indexOfObj(this.tabs, this.activeName, 'id');
|
|
1811
1813
|
let tab = this.tabs[i];
|
|
1812
|
-
if (tab.method === 'iframe') {
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
const iframe = document.getElementById(tab.id || tab.appCode);
|
|
1819
|
-
iframe.contentWindow.postMessage({ method: 'refresh' }, tab.url);
|
|
1820
|
-
} else {
|
|
1821
|
-
this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
|
|
1822
|
-
}
|
|
1814
|
+
if (isIE || tab.method === 'iframe') {
|
|
1815
|
+
if (arg && arg === 'pageData') {
|
|
1816
|
+
const iframe = document.getElementById(tab.id || tab.appCode);
|
|
1817
|
+
iframe.contentWindow.postMessage({ method: 'refresh' }, tab.url);
|
|
1818
|
+
} else {
|
|
1819
|
+
this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
|
|
1823
1820
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1821
|
+
return;
|
|
1822
|
+
}
|
|
1823
|
+
if (tab.method === 'wujie' && tab.appCode) {
|
|
1824
|
+
if (arg && arg === 'pageData') {
|
|
1825
|
+
WujieVue.$emit('refresh', tab);
|
|
1826
|
+
} else {
|
|
1827
|
+
window.document
|
|
1828
|
+
.querySelector(`iframe[name=${tab.appCode}]`)
|
|
1829
|
+
.contentWindow.location.reload(true);
|
|
1832
1830
|
}
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
if (tab.method === 'router') {
|
|
1834
|
+
if (arg && arg === 'pageData') {
|
|
1835
|
+
const bus = this.bus || this.$root.Bus;
|
|
1836
|
+
bus.$emit('refresh', tab);
|
|
1837
|
+
} else {
|
|
1838
|
+
this.$set(this.tabs[i], 'keys', util.uuid());
|
|
1840
1839
|
}
|
|
1841
1840
|
}
|
|
1842
1841
|
},
|
|
@@ -215,6 +215,33 @@ export default {
|
|
|
215
215
|
},
|
|
216
216
|
//处理消息
|
|
217
217
|
handleMessage(item, index) {
|
|
218
|
+
const openModel = util.getStorage('openModel');
|
|
219
|
+
if (openModel && openModel == 'dialog') {
|
|
220
|
+
let { handlerUrl, title, id, metaData } = item;
|
|
221
|
+
metaData &&
|
|
222
|
+
(title =
|
|
223
|
+
metaData.title ||
|
|
224
|
+
metaData.pendtitle ||
|
|
225
|
+
metaData.meetName ||
|
|
226
|
+
title ||
|
|
227
|
+
'办理');
|
|
228
|
+
const jsonData =
|
|
229
|
+
metaData && metaData.jsonData ? JSON.parse(metaData.jsonData) : {};
|
|
230
|
+
util.busEmit(this, {
|
|
231
|
+
method: 'windowOpen',
|
|
232
|
+
args: {
|
|
233
|
+
url: handlerUrl,
|
|
234
|
+
title: title,
|
|
235
|
+
id: id,
|
|
236
|
+
...jsonData,
|
|
237
|
+
callBack: () => {
|
|
238
|
+
this.count -= 1;
|
|
239
|
+
this.msgs.splice(index, 1);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
218
245
|
this.count -= 1;
|
|
219
246
|
this.msgs.splice(index, 1);
|
|
220
247
|
if (this.winopen) {
|
|
@@ -152,6 +152,32 @@ export default {
|
|
|
152
152
|
},
|
|
153
153
|
//处理消息
|
|
154
154
|
handleMessage(item, index) {
|
|
155
|
+
const openModel = util.getStorage('openModel');
|
|
156
|
+
if (openModel && openModel == 'dialog') {
|
|
157
|
+
let { handlerUrl, title, id, metaData } = item;
|
|
158
|
+
metaData &&
|
|
159
|
+
(title =
|
|
160
|
+
metaData.title ||
|
|
161
|
+
metaData.pendtitle ||
|
|
162
|
+
metaData.meetName ||
|
|
163
|
+
title ||
|
|
164
|
+
'办理');
|
|
165
|
+
const jsonData =
|
|
166
|
+
metaData && metaData.jsonData ? JSON.parse(metaData.jsonData) : {};
|
|
167
|
+
util.busEmit(this, {
|
|
168
|
+
method: 'windowOpen',
|
|
169
|
+
args: {
|
|
170
|
+
url: handlerUrl,
|
|
171
|
+
title: title,
|
|
172
|
+
id: id,
|
|
173
|
+
...jsonData,
|
|
174
|
+
callBack: () => {
|
|
175
|
+
this.index = index;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
155
181
|
if (item.urlopenmode === 1 || this.winopen) {
|
|
156
182
|
const mywin = util.win.open(item.handlerUrl);
|
|
157
183
|
if (mywin) {
|
|
@@ -17,9 +17,17 @@
|
|
|
17
17
|
>
|
|
18
18
|
<div class="es-simplicity-menus-box" :style="{ width: width + 'px' }">
|
|
19
19
|
<div class="es-simplicity-menus-title">
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
<el-tooltip
|
|
21
|
+
class="item"
|
|
22
|
+
effect="dark"
|
|
23
|
+
placement="right"
|
|
24
|
+
:content="title || text"
|
|
25
|
+
:auto="true"
|
|
26
|
+
>
|
|
27
|
+
<span class="es-simplicity-menus-title-text" v-if="!fold">{{
|
|
28
|
+
title || text
|
|
29
|
+
}}</span>
|
|
30
|
+
</el-tooltip>
|
|
23
31
|
<i
|
|
24
32
|
class="es-icon-shouqicaidan es-simplicity-menus-title-icon"
|
|
25
33
|
v-show="!fold"
|