eoss-ui 0.7.22 → 0.7.24
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 +48 -7
- package/lib/button.js +48 -7
- package/lib/calogin.js +48 -7
- package/lib/checkbox-group.js +48 -7
- package/lib/data-table-form.js +48 -7
- package/lib/data-table.js +48 -7
- package/lib/date-picker.js +48 -7
- package/lib/dialog.js +48 -7
- package/lib/eoss-ui.common.js +608 -525
- package/lib/flow-group.js +70 -9
- package/lib/flow-list.js +129 -88
- package/lib/flow.js +340 -294
- package/lib/form.js +48 -7
- package/lib/handle-user.js +48 -7
- package/lib/handler.js +48 -7
- package/lib/icon.js +48 -7
- package/lib/index.js +1 -1
- package/lib/input-number.js +48 -7
- package/lib/input.js +48 -7
- package/lib/login.js +74 -16
- package/lib/main.js +176 -135
- package/lib/nav.js +48 -7
- package/lib/page.js +48 -7
- package/lib/pagination.js +48 -7
- package/lib/player.js +48 -7
- package/lib/qr-code.js +48 -7
- package/lib/radio-group.js +48 -7
- package/lib/retrial-auth.js +48 -7
- package/lib/select-ganged.js +48 -7
- package/lib/select.js +48 -7
- package/lib/selector-panel.js +48 -7
- package/lib/selector.js +48 -7
- package/lib/sizer.js +48 -7
- package/lib/steps.js +48 -7
- package/lib/switch.js +48 -7
- package/lib/table-form.js +48 -7
- package/lib/tabs.js +48 -7
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/tips.js +48 -7
- package/lib/tree-group.js +48 -7
- package/lib/tree.js +48 -7
- package/lib/upload.js +48 -7
- package/lib/utils/util.js +48 -7
- package/lib/wujie.js +48 -7
- package/lib/wxlogin.js +48 -7
- package/package.json +160 -160
- package/packages/.DS_Store +0 -0
- package/packages/button-group/src/main.vue +346 -346
- package/packages/calogin/.DS_Store +0 -0
- package/packages/calogin/src/main.vue +412 -412
- package/packages/data-table/src/column.vue +988 -988
- package/packages/data-table/src/main.vue +1831 -1831
- package/packages/date-picker/.DS_Store +0 -0
- package/packages/date-picker/src/.DS_Store +0 -0
- package/packages/flow/.DS_Store +0 -0
- package/packages/flow/src/.DS_Store +0 -0
- package/packages/flow/src/component/Circulate.vue +413 -413
- package/packages/flow/src/component/CommonOpinions.vue +373 -373
- package/packages/flow/src/component/FileList.vue +97 -97
- package/packages/flow/src/component/FreeCirculation.vue +240 -240
- package/packages/flow/src/component/SendMsg.vue +242 -242
- package/packages/flow/src/component/taskUnionExamine.vue +738 -738
- package/packages/flow/src/freeStartFlow.vue +2847 -2847
- package/packages/flow/src/main.vue +3843 -3843
- package/packages/flow/src/processForm.vue +1370 -1366
- package/packages/flow/src/processReject.vue +308 -308
- package/packages/flow/src/reset.vue +941 -941
- package/packages/flow/src/startTaskRead.vue +691 -691
- package/packages/flow/src/supervise.vue +159 -159
- package/packages/flow-group/src/main.vue +717 -696
- package/packages/flow-list/.DS_Store +0 -0
- package/packages/flow-list/src/main.vue +1770 -1770
- package/packages/form/.DS_Store +0 -0
- package/packages/form/src/main.vue +3901 -3901
- package/packages/form/src/table.vue +1512 -1512
- package/packages/handle-user/src/main.vue +137 -137
- package/packages/handler/src/main.vue +496 -496
- package/packages/icon/src/main.vue +104 -104
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +2020 -1994
- package/packages/login/src/resetPassword.vue +557 -557
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/userinfo.vue +502 -502
- package/packages/main/src/public/search.vue +464 -464
- package/packages/main/src/simplicity/avatar.vue +82 -82
- package/packages/main/src/simplicity/handler.vue +263 -263
- package/packages/main/src/simplicity/index.vue +2125 -2125
- package/packages/main/src/simplicity/user.vue +259 -259
- package/packages/main/src/simplicity/userinfo.vue +398 -398
- package/packages/menu/.DS_Store +0 -0
- package/packages/select/.DS_Store +0 -0
- package/packages/select/src/main.vue +782 -782
- package/packages/selector/.DS_Store +0 -0
- package/packages/selector/src/main.vue +761 -761
- package/packages/selector-panel/.DS_Store +0 -0
- package/packages/selector-panel/src/main.vue +1027 -1027
- package/packages/selector-panel/src/selection.vue +170 -170
- package/packages/switch/src/main.vue +170 -170
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/flow.scss +351 -351
- package/packages/theme-chalk/src/form.scss +501 -501
- package/packages/theme-chalk/src/handler.scss +148 -148
- package/packages/theme-chalk/src/icon.scss +1817 -1817
- package/packages/theme-chalk/src/login.scss +987 -984
- package/packages/theme-chalk/src/selector.scss +92 -92
- package/packages/theme-chalk/src/simplicity.scss +1366 -1366
- package/packages/theme-chalk/src/upload.scss +172 -172
- package/packages/upload/.DS_Store +0 -0
- package/packages/upload/src/main.vue +1343 -1343
- package/src/.DS_Store +0 -0
- package/src/config/api.js +315 -315
- package/src/index.js +163 -163
- package/src/utils/.DS_Store +0 -0
- package/src/utils/rules.js +18 -18
- package/src/utils/util.js +49 -9
|
@@ -1,263 +1,263 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="es-simplicity-handler">
|
|
3
|
-
<template v-for="item in lists">
|
|
4
|
-
<div
|
|
5
|
-
v-if="item.type == 'contact'"
|
|
6
|
-
class="es-simplicity-contact"
|
|
7
|
-
:key="item.type"
|
|
8
|
-
>
|
|
9
|
-
<div class="es-contact-label">{{ item.label }}</div>
|
|
10
|
-
<div class="es-contact-content">
|
|
11
|
-
<div v-for="ele in item.content" :key="ele">{{ ele }}</div>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div
|
|
15
|
-
class="es-simplicity-date-time"
|
|
16
|
-
v-else-if="item.type === 'dateTime'"
|
|
17
|
-
:key="item.type"
|
|
18
|
-
>
|
|
19
|
-
<div class="es-simplicity-handler-time">
|
|
20
|
-
{{ time }}
|
|
21
|
-
</div>
|
|
22
|
-
<div class="es-simplicity-handler-date">
|
|
23
|
-
{{ date }}
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<div
|
|
27
|
-
v-else-if="item.type === 'online' || item.type === 'onlineUser'"
|
|
28
|
-
class="es-simplicity-online"
|
|
29
|
-
:key="item.type"
|
|
30
|
-
>
|
|
31
|
-
当前
|
|
32
|
-
<span
|
|
33
|
-
class="es-simplicity-online-num"
|
|
34
|
-
@click="isClick ? handleClick({ type: 'online' }) : ''"
|
|
35
|
-
:class="{ 'es-pointer': isClick }"
|
|
36
|
-
>
|
|
37
|
-
{{ online }}
|
|
38
|
-
</span>
|
|
39
|
-
人在线
|
|
40
|
-
</div>
|
|
41
|
-
<el-tooltip
|
|
42
|
-
v-else
|
|
43
|
-
:key="item.type"
|
|
44
|
-
effect="dark"
|
|
45
|
-
:content="item.title"
|
|
46
|
-
placement="bottom"
|
|
47
|
-
>
|
|
48
|
-
<el-badge
|
|
49
|
-
class="es-simplicity-handler-item"
|
|
50
|
-
v-if="item.type === 'notice' || item.type === 'messsage'"
|
|
51
|
-
:value="noticeNum"
|
|
52
|
-
:max="99"
|
|
53
|
-
:hidden="noticeNum < 1"
|
|
54
|
-
>
|
|
55
|
-
<es-icon
|
|
56
|
-
class="es-simplicity-handler-icon"
|
|
57
|
-
@click.stop="handleClick(item)"
|
|
58
|
-
:contents="item.icon"
|
|
59
|
-
></es-icon>
|
|
60
|
-
</el-badge>
|
|
61
|
-
<es-icon
|
|
62
|
-
v-else
|
|
63
|
-
class="es-simplicity-handler-item es-simplicity-handler-icon"
|
|
64
|
-
@click.stop="handleClick(item)"
|
|
65
|
-
:contents="item.icon"
|
|
66
|
-
></es-icon>
|
|
67
|
-
</el-tooltip>
|
|
68
|
-
</template>
|
|
69
|
-
</div>
|
|
70
|
-
</template>
|
|
71
|
-
|
|
72
|
-
<script>
|
|
73
|
-
import util from 'eoss-ui/src/utils/util';
|
|
74
|
-
export default {
|
|
75
|
-
name: 'Handler',
|
|
76
|
-
components: {},
|
|
77
|
-
props: {
|
|
78
|
-
contact: Object,
|
|
79
|
-
dateTime: {
|
|
80
|
-
type: [Boolean, Object],
|
|
81
|
-
default() {
|
|
82
|
-
return { type: 'dateTime' };
|
|
83
|
-
},
|
|
84
|
-
validator: (val) => {
|
|
85
|
-
return val === false || typeof val === 'object';
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
onlineUser: {
|
|
89
|
-
type: [Boolean, Object],
|
|
90
|
-
default() {
|
|
91
|
-
return { type: 'onlineUser' };
|
|
92
|
-
},
|
|
93
|
-
validator: (val) => {
|
|
94
|
-
return val === false || typeof val === 'object';
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
search: {
|
|
98
|
-
type: [Boolean, Object],
|
|
99
|
-
default() {
|
|
100
|
-
return {
|
|
101
|
-
type: 'search',
|
|
102
|
-
icon: 'es-icon-magnifier',
|
|
103
|
-
title: '搜索'
|
|
104
|
-
};
|
|
105
|
-
},
|
|
106
|
-
validator: (val) => {
|
|
107
|
-
return val === false || typeof val === 'object';
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
im: {
|
|
111
|
-
type: [Boolean, Object],
|
|
112
|
-
default() {
|
|
113
|
-
return {
|
|
114
|
-
type: 'im',
|
|
115
|
-
icon: 'es-icon-liaotian',
|
|
116
|
-
title: 'IM'
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
validator: (val) => {
|
|
120
|
-
return val === false || typeof val === 'object';
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
index: {
|
|
124
|
-
type: [Boolean, Object],
|
|
125
|
-
default() {
|
|
126
|
-
return {
|
|
127
|
-
type: 'index',
|
|
128
|
-
icon: 'es-icon-home',
|
|
129
|
-
title: '门户'
|
|
130
|
-
};
|
|
131
|
-
},
|
|
132
|
-
validator: (val) => {
|
|
133
|
-
return val === false || typeof val === 'object';
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
home: {
|
|
137
|
-
type: [Boolean, Object],
|
|
138
|
-
default() {
|
|
139
|
-
return {
|
|
140
|
-
type: 'home',
|
|
141
|
-
icon: 'es-icon-zuomian',
|
|
142
|
-
title: '个人工作台'
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
notice: {
|
|
147
|
-
type: [Boolean, Object],
|
|
148
|
-
default() {
|
|
149
|
-
return {
|
|
150
|
-
type: 'notice',
|
|
151
|
-
icon: 'es-icon-tongzhi',
|
|
152
|
-
title: '通知消息'
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
quit: {
|
|
157
|
-
type: [Boolean, Object],
|
|
158
|
-
default() {
|
|
159
|
-
return {
|
|
160
|
-
type: 'quit',
|
|
161
|
-
icon: 'es-icon-guanji',
|
|
162
|
-
title: '退出'
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
set: {
|
|
167
|
-
type: [Boolean, Object],
|
|
168
|
-
default() {
|
|
169
|
-
return {
|
|
170
|
-
type: 'set',
|
|
171
|
-
icon: 'es-icon-xitongguanli',
|
|
172
|
-
title: '设置'
|
|
173
|
-
};
|
|
174
|
-
},
|
|
175
|
-
validator: (val) => {
|
|
176
|
-
return val === false || typeof val === 'object';
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
data: Array,
|
|
180
|
-
hide: {
|
|
181
|
-
type: Object,
|
|
182
|
-
default() {
|
|
183
|
-
return {};
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
msgNum: {
|
|
187
|
-
type: Number,
|
|
188
|
-
default: 0
|
|
189
|
-
},
|
|
190
|
-
noticeNum: {
|
|
191
|
-
type: Number,
|
|
192
|
-
default: 0
|
|
193
|
-
},
|
|
194
|
-
online: {
|
|
195
|
-
type: Number,
|
|
196
|
-
default: 1
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
data() {
|
|
200
|
-
return {
|
|
201
|
-
time: '',
|
|
202
|
-
date: '',
|
|
203
|
-
timer: null
|
|
204
|
-
};
|
|
205
|
-
},
|
|
206
|
-
computed: {
|
|
207
|
-
lists() {
|
|
208
|
-
let hide = {
|
|
209
|
-
old: true,
|
|
210
|
-
im: true,
|
|
211
|
-
...this.hide
|
|
212
|
-
};
|
|
213
|
-
let data = this.data
|
|
214
|
-
? this.data
|
|
215
|
-
: [
|
|
216
|
-
this.contact ? { ...this.contact, type: 'contact' } : {},
|
|
217
|
-
this.dateTime,
|
|
218
|
-
this.onlineUser,
|
|
219
|
-
this.search,
|
|
220
|
-
this.im,
|
|
221
|
-
this.index,
|
|
222
|
-
this.home,
|
|
223
|
-
this.notice,
|
|
224
|
-
this.quit,
|
|
225
|
-
this.set
|
|
226
|
-
];
|
|
227
|
-
return data.filter((item) => {
|
|
228
|
-
return (
|
|
229
|
-
item && Object.keys(item).length && !item.hide && !hide[item.type]
|
|
230
|
-
);
|
|
231
|
-
});
|
|
232
|
-
},
|
|
233
|
-
isClick() {
|
|
234
|
-
let useCaseCodes = util.getStorage('useCaseCodes');
|
|
235
|
-
return useCaseCodes && useCaseCodes.includes('sys_user_onlineList');
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
watch: {},
|
|
239
|
-
created() {
|
|
240
|
-
//this.time = util.timeCycle() + '好!';
|
|
241
|
-
this.date = util.formatDate('', 'yyyy年M月d日');
|
|
242
|
-
},
|
|
243
|
-
mounted() {
|
|
244
|
-
this.getTime();
|
|
245
|
-
},
|
|
246
|
-
methods: {
|
|
247
|
-
getTime() {
|
|
248
|
-
this.timer && clearInterval(this.timer);
|
|
249
|
-
this.timer = setInterval(() => {
|
|
250
|
-
this.time = util.formatDate('', 'HH:mm:ss');
|
|
251
|
-
});
|
|
252
|
-
},
|
|
253
|
-
handleClick(res) {
|
|
254
|
-
this.$emit('click', res);
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
beforeDestroy() {
|
|
258
|
-
clearInterval(this.timer);
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
</script>
|
|
262
|
-
|
|
263
|
-
<style lang="scss" scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="es-simplicity-handler">
|
|
3
|
+
<template v-for="item in lists">
|
|
4
|
+
<div
|
|
5
|
+
v-if="item.type == 'contact'"
|
|
6
|
+
class="es-simplicity-contact"
|
|
7
|
+
:key="item.type"
|
|
8
|
+
>
|
|
9
|
+
<div class="es-contact-label">{{ item.label }}</div>
|
|
10
|
+
<div class="es-contact-content">
|
|
11
|
+
<div v-for="ele in item.content" :key="ele">{{ ele }}</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div
|
|
15
|
+
class="es-simplicity-date-time"
|
|
16
|
+
v-else-if="item.type === 'dateTime'"
|
|
17
|
+
:key="item.type"
|
|
18
|
+
>
|
|
19
|
+
<div class="es-simplicity-handler-time">
|
|
20
|
+
{{ time }}
|
|
21
|
+
</div>
|
|
22
|
+
<div class="es-simplicity-handler-date">
|
|
23
|
+
{{ date }}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div
|
|
27
|
+
v-else-if="item.type === 'online' || item.type === 'onlineUser'"
|
|
28
|
+
class="es-simplicity-online"
|
|
29
|
+
:key="item.type"
|
|
30
|
+
>
|
|
31
|
+
当前
|
|
32
|
+
<span
|
|
33
|
+
class="es-simplicity-online-num"
|
|
34
|
+
@click="isClick ? handleClick({ type: 'online' }) : ''"
|
|
35
|
+
:class="{ 'es-pointer': isClick }"
|
|
36
|
+
>
|
|
37
|
+
{{ online }}
|
|
38
|
+
</span>
|
|
39
|
+
人在线
|
|
40
|
+
</div>
|
|
41
|
+
<el-tooltip
|
|
42
|
+
v-else
|
|
43
|
+
:key="item.type"
|
|
44
|
+
effect="dark"
|
|
45
|
+
:content="item.title"
|
|
46
|
+
placement="bottom"
|
|
47
|
+
>
|
|
48
|
+
<el-badge
|
|
49
|
+
class="es-simplicity-handler-item"
|
|
50
|
+
v-if="item.type === 'notice' || item.type === 'messsage'"
|
|
51
|
+
:value="noticeNum"
|
|
52
|
+
:max="99"
|
|
53
|
+
:hidden="noticeNum < 1"
|
|
54
|
+
>
|
|
55
|
+
<es-icon
|
|
56
|
+
class="es-simplicity-handler-icon"
|
|
57
|
+
@click.stop="handleClick(item)"
|
|
58
|
+
:contents="item.icon"
|
|
59
|
+
></es-icon>
|
|
60
|
+
</el-badge>
|
|
61
|
+
<es-icon
|
|
62
|
+
v-else
|
|
63
|
+
class="es-simplicity-handler-item es-simplicity-handler-icon"
|
|
64
|
+
@click.stop="handleClick(item)"
|
|
65
|
+
:contents="item.icon"
|
|
66
|
+
></es-icon>
|
|
67
|
+
</el-tooltip>
|
|
68
|
+
</template>
|
|
69
|
+
</div>
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<script>
|
|
73
|
+
import util from 'eoss-ui/src/utils/util';
|
|
74
|
+
export default {
|
|
75
|
+
name: 'Handler',
|
|
76
|
+
components: {},
|
|
77
|
+
props: {
|
|
78
|
+
contact: Object,
|
|
79
|
+
dateTime: {
|
|
80
|
+
type: [Boolean, Object],
|
|
81
|
+
default() {
|
|
82
|
+
return { type: 'dateTime' };
|
|
83
|
+
},
|
|
84
|
+
validator: (val) => {
|
|
85
|
+
return val === false || typeof val === 'object';
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
onlineUser: {
|
|
89
|
+
type: [Boolean, Object],
|
|
90
|
+
default() {
|
|
91
|
+
return { type: 'onlineUser' };
|
|
92
|
+
},
|
|
93
|
+
validator: (val) => {
|
|
94
|
+
return val === false || typeof val === 'object';
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
search: {
|
|
98
|
+
type: [Boolean, Object],
|
|
99
|
+
default() {
|
|
100
|
+
return {
|
|
101
|
+
type: 'search',
|
|
102
|
+
icon: 'es-icon-magnifier',
|
|
103
|
+
title: '搜索'
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
validator: (val) => {
|
|
107
|
+
return val === false || typeof val === 'object';
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
im: {
|
|
111
|
+
type: [Boolean, Object],
|
|
112
|
+
default() {
|
|
113
|
+
return {
|
|
114
|
+
type: 'im',
|
|
115
|
+
icon: 'es-icon-liaotian',
|
|
116
|
+
title: 'IM'
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
validator: (val) => {
|
|
120
|
+
return val === false || typeof val === 'object';
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
index: {
|
|
124
|
+
type: [Boolean, Object],
|
|
125
|
+
default() {
|
|
126
|
+
return {
|
|
127
|
+
type: 'index',
|
|
128
|
+
icon: 'es-icon-home',
|
|
129
|
+
title: '门户'
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
validator: (val) => {
|
|
133
|
+
return val === false || typeof val === 'object';
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
home: {
|
|
137
|
+
type: [Boolean, Object],
|
|
138
|
+
default() {
|
|
139
|
+
return {
|
|
140
|
+
type: 'home',
|
|
141
|
+
icon: 'es-icon-zuomian',
|
|
142
|
+
title: '个人工作台'
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
notice: {
|
|
147
|
+
type: [Boolean, Object],
|
|
148
|
+
default() {
|
|
149
|
+
return {
|
|
150
|
+
type: 'notice',
|
|
151
|
+
icon: 'es-icon-tongzhi',
|
|
152
|
+
title: '通知消息'
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
quit: {
|
|
157
|
+
type: [Boolean, Object],
|
|
158
|
+
default() {
|
|
159
|
+
return {
|
|
160
|
+
type: 'quit',
|
|
161
|
+
icon: 'es-icon-guanji',
|
|
162
|
+
title: '退出'
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
set: {
|
|
167
|
+
type: [Boolean, Object],
|
|
168
|
+
default() {
|
|
169
|
+
return {
|
|
170
|
+
type: 'set',
|
|
171
|
+
icon: 'es-icon-xitongguanli',
|
|
172
|
+
title: '设置'
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
validator: (val) => {
|
|
176
|
+
return val === false || typeof val === 'object';
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
data: Array,
|
|
180
|
+
hide: {
|
|
181
|
+
type: Object,
|
|
182
|
+
default() {
|
|
183
|
+
return {};
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
msgNum: {
|
|
187
|
+
type: Number,
|
|
188
|
+
default: 0
|
|
189
|
+
},
|
|
190
|
+
noticeNum: {
|
|
191
|
+
type: Number,
|
|
192
|
+
default: 0
|
|
193
|
+
},
|
|
194
|
+
online: {
|
|
195
|
+
type: Number,
|
|
196
|
+
default: 1
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
data() {
|
|
200
|
+
return {
|
|
201
|
+
time: '',
|
|
202
|
+
date: '',
|
|
203
|
+
timer: null
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
computed: {
|
|
207
|
+
lists() {
|
|
208
|
+
let hide = {
|
|
209
|
+
old: true,
|
|
210
|
+
im: true,
|
|
211
|
+
...this.hide
|
|
212
|
+
};
|
|
213
|
+
let data = this.data
|
|
214
|
+
? this.data
|
|
215
|
+
: [
|
|
216
|
+
this.contact ? { ...this.contact, type: 'contact' } : {},
|
|
217
|
+
this.dateTime,
|
|
218
|
+
this.onlineUser,
|
|
219
|
+
this.search,
|
|
220
|
+
this.im,
|
|
221
|
+
this.index,
|
|
222
|
+
this.home,
|
|
223
|
+
this.notice,
|
|
224
|
+
this.quit,
|
|
225
|
+
this.set
|
|
226
|
+
];
|
|
227
|
+
return data.filter((item) => {
|
|
228
|
+
return (
|
|
229
|
+
item && Object.keys(item).length && !item.hide && !hide[item.type]
|
|
230
|
+
);
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
isClick() {
|
|
234
|
+
let useCaseCodes = util.getStorage('useCaseCodes');
|
|
235
|
+
return useCaseCodes && useCaseCodes.includes('sys_user_onlineList');
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
watch: {},
|
|
239
|
+
created() {
|
|
240
|
+
//this.time = util.timeCycle() + '好!';
|
|
241
|
+
this.date = util.formatDate('', 'yyyy年M月d日');
|
|
242
|
+
},
|
|
243
|
+
mounted() {
|
|
244
|
+
this.getTime();
|
|
245
|
+
},
|
|
246
|
+
methods: {
|
|
247
|
+
getTime() {
|
|
248
|
+
this.timer && clearInterval(this.timer);
|
|
249
|
+
this.timer = setInterval(() => {
|
|
250
|
+
this.time = util.formatDate('', 'HH:mm:ss');
|
|
251
|
+
});
|
|
252
|
+
},
|
|
253
|
+
handleClick(res) {
|
|
254
|
+
this.$emit('click', res);
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
beforeDestroy() {
|
|
258
|
+
clearInterval(this.timer);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
</script>
|
|
262
|
+
|
|
263
|
+
<style lang="scss" scoped></style>
|