eoss-ui 0.6.20 → 0.6.22
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 +439 -420
- package/lib/flow.js +118 -118
- package/lib/form.js +3 -3
- package/lib/index.js +1 -1
- package/lib/login.js +69 -60
- package/lib/main.js +220 -210
- package/lib/qr-code.js +13 -13
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/selector.css +1 -1
- package/package.json +157 -157
- package/packages/.DS_Store +0 -0
- package/packages/button/src/main.vue +418 -418
- package/packages/button-group/src/main.vue +298 -298
- package/packages/checkbox-group/.DS_Store +0 -0
- package/packages/checkbox-group/src/main.vue +333 -333
- package/packages/clients/src/main.vue +144 -144
- package/packages/data-table/.DS_Store +0 -0
- package/packages/data-table/src/children.vue +39 -39
- package/packages/data-table/src/column.vue +983 -983
- package/packages/data-table/src/main.vue +1812 -1812
- package/packages/data-table/src/sizer.vue +195 -195
- package/packages/date-picker/src/main.vue +236 -236
- package/packages/dialog/.DS_Store +0 -0
- package/packages/flow/src/main.vue +2731 -2731
- package/packages/flow-group/src/main.vue +684 -684
- package/packages/form/src/main.vue +3582 -3582
- package/packages/form/src/table.vue +1420 -1420
- package/packages/handle-user/src/main.vue +134 -134
- package/packages/handler/.DS_Store +0 -0
- package/packages/handler/src/main.vue +374 -374
- package/packages/icon/src/main.vue +101 -101
- package/packages/input/src/main.vue +356 -356
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +1857 -1851
- package/packages/login/src/resetPassword.vue +562 -557
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/message.vue +249 -249
- package/packages/main/src/default/notice.vue +157 -157
- package/packages/main/src/default/userinfo.vue +494 -494
- package/packages/main/src/main.vue +65 -57
- package/packages/main/src/public/online.vue +89 -89
- package/packages/main/src/public/search.vue +454 -454
- package/packages/main/src/public/settings.vue +221 -221
- package/packages/main/src/simplicity/apps.vue +388 -388
- package/packages/main/src/simplicity/avatar.vue +82 -82
- package/packages/main/src/simplicity/handler.vue +183 -183
- package/packages/main/src/simplicity/index.vue +1931 -1930
- package/packages/main/src/simplicity/lists.vue +84 -84
- package/packages/main/src/simplicity/menu-list.vue +128 -128
- package/packages/main/src/simplicity/message.vue +259 -259
- package/packages/main/src/simplicity/notice.vue +190 -190
- package/packages/main/src/simplicity/router-page.vue +45 -45
- package/packages/main/src/simplicity/sub-menu.vue +241 -241
- package/packages/main/src/simplicity/user.vue +248 -248
- package/packages/main/src/simplicity/userinfo.vue +306 -304
- package/packages/menu/src/main.vue +536 -536
- package/packages/pagination/src/main.vue +96 -96
- package/packages/qr-code/src/main.vue +170 -170
- package/packages/radio-group/src/main.vue +319 -319
- package/packages/select/src/main.vue +761 -761
- package/packages/selector/src/main.vue +677 -677
- package/packages/selector-panel/src/main.vue +1020 -1020
- package/packages/selector-panel/src/selection.vue +160 -160
- package/packages/tabs/src/main.vue +788 -788
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/selector.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/base.scss +260 -260
- package/packages/theme-chalk/src/button-group.scss +175 -175
- package/packages/theme-chalk/src/calendar.scss +113 -113
- package/packages/theme-chalk/src/clients.scss +87 -87
- package/packages/theme-chalk/src/common/var.scss +4 -1
- package/packages/theme-chalk/src/data-table.scss +276 -276
- package/packages/theme-chalk/src/dialog.scss +77 -77
- package/packages/theme-chalk/src/flow-group.scss +110 -110
- package/packages/theme-chalk/src/form.scss +496 -496
- package/packages/theme-chalk/src/handler.scss +133 -133
- package/packages/theme-chalk/src/icon.scss +1745 -1745
- package/packages/theme-chalk/src/icons.scss +99 -99
- package/packages/theme-chalk/src/login.scss +928 -917
- package/packages/theme-chalk/src/main.scss +632 -632
- package/packages/theme-chalk/src/menu.scss +222 -222
- package/packages/theme-chalk/src/nav.scss +125 -125
- package/packages/theme-chalk/src/pagination.scss +29 -29
- package/packages/theme-chalk/src/selector-panel.scss +204 -204
- package/packages/theme-chalk/src/selector.scss +1 -1
- package/packages/theme-chalk/src/simplicity.scss +1246 -1246
- package/packages/theme-chalk/src/tabs.scss +87 -87
- package/packages/theme-chalk/src/toolbar.scss +179 -179
- package/packages/theme-chalk/src/tree-group.scss +72 -72
- package/packages/theme-chalk/src/tree.scss +165 -165
- package/packages/upload/src/main.vue +1313 -1313
- package/packages/wujie/src/main.vue +145 -145
- package/src/.DS_Store +0 -0
- package/src/config/api.js +236 -236
- package/src/config/image.js +2 -2
- package/src/index.js +157 -157
|
@@ -112,71 +112,79 @@ export default {
|
|
|
112
112
|
this.params = util.getParams() || {};
|
|
113
113
|
this.sysCode = this.params.sysCode;
|
|
114
114
|
this.appCode = this.params.appCode;
|
|
115
|
+
if (
|
|
116
|
+
this.params.cookie &&
|
|
117
|
+
(this.params.cookie == true || this.params.cookie == 1)
|
|
118
|
+
) {
|
|
119
|
+
this.isLogin = true;
|
|
120
|
+
}
|
|
115
121
|
this.getConfig(this.params);
|
|
116
122
|
// 主应用监听事件
|
|
117
123
|
},
|
|
118
124
|
mounted() {
|
|
119
|
-
if (
|
|
120
|
-
util.win.$wujie
|
|
121
|
-
util.
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
if (this.isLogin) {
|
|
126
|
+
if (util.win.$wujie) {
|
|
127
|
+
util.win.$wujie.bus.$on('changeTheme', (res) => {
|
|
128
|
+
util.updateTheme(res);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
124
131
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
const bus = this.bus || this.$root.Bus;
|
|
133
|
+
if (bus) {
|
|
134
|
+
bus.$on('reLogin', this.handleReLogin);
|
|
135
|
+
bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
136
|
+
bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
137
|
+
bus.$on('emit', function (method, args) {
|
|
138
|
+
// 主应用发送事件
|
|
139
|
+
bus.$emit(method, args);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
util.win.reLogin = this.handleReLogin;
|
|
143
|
+
util.win.windowOpen = this.openPage;
|
|
144
|
+
util.win.refresh = this.$refs.main.handleRefresh;
|
|
145
|
+
util.win.jumpMenu = this.$refs.main.jumpMenu;
|
|
146
|
+
WujieVue.bus.$on('reLogin', this.handleReLogin);
|
|
147
|
+
WujieVue.bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
148
|
+
WujieVue.bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
149
|
+
WujieVue.bus.$on('emit', function (method, args) {
|
|
131
150
|
// 主应用发送事件
|
|
132
|
-
bus.$emit(method, args);
|
|
151
|
+
WujieVue.bus.$emit(method, args);
|
|
133
152
|
});
|
|
134
|
-
}
|
|
135
|
-
util.win.reLogin = this.handleReLogin;
|
|
136
|
-
util.win.windowOpen = this.openPage;
|
|
137
|
-
util.win.refresh = this.$refs.main.handleRefresh;
|
|
138
|
-
util.win.jumpMenu = this.$refs.main.jumpMenu;
|
|
139
|
-
WujieVue.bus.$on('reLogin', this.handleReLogin);
|
|
140
|
-
WujieVue.bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
141
|
-
WujieVue.bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
142
|
-
WujieVue.bus.$on('emit', function (method, args) {
|
|
143
|
-
// 主应用发送事件
|
|
144
|
-
WujieVue.bus.$emit(method, args);
|
|
145
|
-
});
|
|
146
153
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
154
|
+
window.addEventListener('message', (method, args) => {
|
|
155
|
+
switch (method) {
|
|
156
|
+
case 'reLogin':
|
|
157
|
+
this.handleReLogin(args);
|
|
158
|
+
break;
|
|
159
|
+
case 'refresh':
|
|
160
|
+
this.$refs.main.handleRefresh(args);
|
|
161
|
+
break;
|
|
162
|
+
case 'jumpMenu':
|
|
163
|
+
this.$refs.main.jumpMenu(args);
|
|
164
|
+
break;
|
|
165
|
+
case 'emit':
|
|
166
|
+
let origin = args.origin || '*';
|
|
167
|
+
window.postMessage(args, origin);
|
|
168
|
+
break;
|
|
169
|
+
case 'openDialog':
|
|
170
|
+
this.dialogs.push(args);
|
|
171
|
+
let index = this.visibles.length;
|
|
172
|
+
this.visibles.push(false);
|
|
173
|
+
this.$nextTick(() => {
|
|
174
|
+
this.$set(this.visibles, index, true);
|
|
175
|
+
});
|
|
176
|
+
break;
|
|
177
|
+
case 'closeDialog':
|
|
178
|
+
for (let i = 0; i < this.dialogs.length; i++) {
|
|
179
|
+
let item = this.dialogs[i];
|
|
180
|
+
if (item.url == args.url) {
|
|
181
|
+
this.$set(this.visibles, i, false);
|
|
182
|
+
}
|
|
175
183
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
}
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
180
188
|
},
|
|
181
189
|
methods: {
|
|
182
190
|
/**
|
|
@@ -306,7 +314,7 @@ export default {
|
|
|
306
314
|
getConfig(query) {
|
|
307
315
|
const token =
|
|
308
316
|
util.getStorage('token') || util.getStorage('Authorization');
|
|
309
|
-
this.isLogin = token ? true :
|
|
317
|
+
this.isLogin = token ? true : this.isLogin;
|
|
310
318
|
if (
|
|
311
319
|
!token &&
|
|
312
320
|
Object.prototype.hasOwnProperty.call(query, 'serverId') &&
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<es-data-table
|
|
3
|
-
numbers
|
|
4
|
-
:url="sysuseronline"
|
|
5
|
-
:thead="thead"
|
|
6
|
-
page
|
|
7
|
-
></es-data-table>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { userOnline } from 'eoss-ui/src/config/api.js';
|
|
12
|
-
export default {
|
|
13
|
-
name: 'Online',
|
|
14
|
-
components: {},
|
|
15
|
-
props: {
|
|
16
|
-
sysuseronline: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: userOnline
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
data() {
|
|
22
|
-
return {
|
|
23
|
-
thead: [
|
|
24
|
-
{
|
|
25
|
-
title: '单位',
|
|
26
|
-
field: 'orgName',
|
|
27
|
-
minWidth: 120
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: '部门',
|
|
31
|
-
field: 'depName',
|
|
32
|
-
align: 'center',
|
|
33
|
-
minWidth: 120
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
title: '姓名',
|
|
37
|
-
field: 'userName',
|
|
38
|
-
align: 'center',
|
|
39
|
-
width: 120
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
title: '职务',
|
|
43
|
-
field: 'position',
|
|
44
|
-
align: 'center',
|
|
45
|
-
width: 120
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
title: '账号',
|
|
49
|
-
field: 'loginName',
|
|
50
|
-
align: 'center',
|
|
51
|
-
width: 120
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
title: '登录时间',
|
|
55
|
-
field: 'loginDate',
|
|
56
|
-
align: 'center',
|
|
57
|
-
width: 156
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
title: '登录次数',
|
|
61
|
-
field: 'freQuency',
|
|
62
|
-
align: 'center',
|
|
63
|
-
width: 100
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
title: '登录方式',
|
|
67
|
-
field: 'loginModel',
|
|
68
|
-
align: 'center',
|
|
69
|
-
width: 100,
|
|
70
|
-
render: (h, params) => {
|
|
71
|
-
let {
|
|
72
|
-
row: { loginModel }
|
|
73
|
-
} = params;
|
|
74
|
-
let types = ['普通登录', 'CA登录', '手机登录'];
|
|
75
|
-
return h('span', {}, [types[loginModel] || types[0]]);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
computed: {},
|
|
82
|
-
watch: {},
|
|
83
|
-
created() {},
|
|
84
|
-
mounted() {},
|
|
85
|
-
methods: {}
|
|
86
|
-
};
|
|
87
|
-
</script>
|
|
88
|
-
|
|
89
|
-
<style lang="scss" scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<es-data-table
|
|
3
|
+
numbers
|
|
4
|
+
:url="sysuseronline"
|
|
5
|
+
:thead="thead"
|
|
6
|
+
page
|
|
7
|
+
></es-data-table>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { userOnline } from 'eoss-ui/src/config/api.js';
|
|
12
|
+
export default {
|
|
13
|
+
name: 'Online',
|
|
14
|
+
components: {},
|
|
15
|
+
props: {
|
|
16
|
+
sysuseronline: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: userOnline
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
thead: [
|
|
24
|
+
{
|
|
25
|
+
title: '单位',
|
|
26
|
+
field: 'orgName',
|
|
27
|
+
minWidth: 120
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: '部门',
|
|
31
|
+
field: 'depName',
|
|
32
|
+
align: 'center',
|
|
33
|
+
minWidth: 120
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: '姓名',
|
|
37
|
+
field: 'userName',
|
|
38
|
+
align: 'center',
|
|
39
|
+
width: 120
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: '职务',
|
|
43
|
+
field: 'position',
|
|
44
|
+
align: 'center',
|
|
45
|
+
width: 120
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: '账号',
|
|
49
|
+
field: 'loginName',
|
|
50
|
+
align: 'center',
|
|
51
|
+
width: 120
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: '登录时间',
|
|
55
|
+
field: 'loginDate',
|
|
56
|
+
align: 'center',
|
|
57
|
+
width: 156
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: '登录次数',
|
|
61
|
+
field: 'freQuency',
|
|
62
|
+
align: 'center',
|
|
63
|
+
width: 100
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: '登录方式',
|
|
67
|
+
field: 'loginModel',
|
|
68
|
+
align: 'center',
|
|
69
|
+
width: 100,
|
|
70
|
+
render: (h, params) => {
|
|
71
|
+
let {
|
|
72
|
+
row: { loginModel }
|
|
73
|
+
} = params;
|
|
74
|
+
let types = ['普通登录', 'CA登录', '手机登录'];
|
|
75
|
+
return h('span', {}, [types[loginModel] || types[0]]);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
computed: {},
|
|
82
|
+
watch: {},
|
|
83
|
+
created() {},
|
|
84
|
+
mounted() {},
|
|
85
|
+
methods: {}
|
|
86
|
+
};
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<style lang="scss" scoped></style>
|