eoss-ui 0.7.34 → 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 +271 -133
- 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 +229 -101
- 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 +11 -1
- 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 +6 -4
- 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,7 +24,14 @@
|
|
|
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
37
|
:title="item.name || item.title"
|
|
@@ -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);
|
|
@@ -355,6 +363,7 @@ export default {
|
|
|
355
363
|
size,
|
|
356
364
|
...config
|
|
357
365
|
}) {
|
|
366
|
+
url = typeof arguments[0] === 'string' ? arguments[0] : url;
|
|
358
367
|
id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
|
|
359
368
|
const openModel = util.getStorage('openModel');
|
|
360
369
|
let src = url;
|
|
@@ -412,7 +421,7 @@ export default {
|
|
|
412
421
|
* @author huangbo
|
|
413
422
|
* @date 2024年9月7日
|
|
414
423
|
**/
|
|
415
|
-
winClose({ url, appCode, id, index, refresh, jumpMenu }) {
|
|
424
|
+
winClose({ url, appCode, id, index, refresh, jumpMenu, callBack }) {
|
|
416
425
|
if (!appCode && !id) {
|
|
417
426
|
console.error('参数错误,缺少appCode或者id');
|
|
418
427
|
return;
|
|
@@ -430,6 +439,7 @@ export default {
|
|
|
430
439
|
this.dialogs.splice(dialog.index, 1);
|
|
431
440
|
}
|
|
432
441
|
}
|
|
442
|
+
callBack && callBack();
|
|
433
443
|
refresh && this.$refs.main.handleRefresh(refresh);
|
|
434
444
|
jumpMenu &&
|
|
435
445
|
(Array.isArray(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
|
|
@@ -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"
|