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.
Files changed (100) hide show
  1. package/lib/eoss-ui.common.js +439 -420
  2. package/lib/flow.js +118 -118
  3. package/lib/form.js +3 -3
  4. package/lib/index.js +1 -1
  5. package/lib/login.js +69 -60
  6. package/lib/main.js +220 -210
  7. package/lib/qr-code.js +13 -13
  8. package/lib/theme-chalk/index.css +1 -1
  9. package/lib/theme-chalk/login.css +1 -1
  10. package/lib/theme-chalk/selector.css +1 -1
  11. package/package.json +157 -157
  12. package/packages/.DS_Store +0 -0
  13. package/packages/button/src/main.vue +418 -418
  14. package/packages/button-group/src/main.vue +298 -298
  15. package/packages/checkbox-group/.DS_Store +0 -0
  16. package/packages/checkbox-group/src/main.vue +333 -333
  17. package/packages/clients/src/main.vue +144 -144
  18. package/packages/data-table/.DS_Store +0 -0
  19. package/packages/data-table/src/children.vue +39 -39
  20. package/packages/data-table/src/column.vue +983 -983
  21. package/packages/data-table/src/main.vue +1812 -1812
  22. package/packages/data-table/src/sizer.vue +195 -195
  23. package/packages/date-picker/src/main.vue +236 -236
  24. package/packages/dialog/.DS_Store +0 -0
  25. package/packages/flow/src/main.vue +2731 -2731
  26. package/packages/flow-group/src/main.vue +684 -684
  27. package/packages/form/src/main.vue +3582 -3582
  28. package/packages/form/src/table.vue +1420 -1420
  29. package/packages/handle-user/src/main.vue +134 -134
  30. package/packages/handler/.DS_Store +0 -0
  31. package/packages/handler/src/main.vue +374 -374
  32. package/packages/icon/src/main.vue +101 -101
  33. package/packages/input/src/main.vue +356 -356
  34. package/packages/login/.DS_Store +0 -0
  35. package/packages/login/src/main.vue +1857 -1851
  36. package/packages/login/src/resetPassword.vue +562 -557
  37. package/packages/main/.DS_Store +0 -0
  38. package/packages/main/src/.DS_Store +0 -0
  39. package/packages/main/src/default/message.vue +249 -249
  40. package/packages/main/src/default/notice.vue +157 -157
  41. package/packages/main/src/default/userinfo.vue +494 -494
  42. package/packages/main/src/main.vue +65 -57
  43. package/packages/main/src/public/online.vue +89 -89
  44. package/packages/main/src/public/search.vue +454 -454
  45. package/packages/main/src/public/settings.vue +221 -221
  46. package/packages/main/src/simplicity/apps.vue +388 -388
  47. package/packages/main/src/simplicity/avatar.vue +82 -82
  48. package/packages/main/src/simplicity/handler.vue +183 -183
  49. package/packages/main/src/simplicity/index.vue +1931 -1930
  50. package/packages/main/src/simplicity/lists.vue +84 -84
  51. package/packages/main/src/simplicity/menu-list.vue +128 -128
  52. package/packages/main/src/simplicity/message.vue +259 -259
  53. package/packages/main/src/simplicity/notice.vue +190 -190
  54. package/packages/main/src/simplicity/router-page.vue +45 -45
  55. package/packages/main/src/simplicity/sub-menu.vue +241 -241
  56. package/packages/main/src/simplicity/user.vue +248 -248
  57. package/packages/main/src/simplicity/userinfo.vue +306 -304
  58. package/packages/menu/src/main.vue +536 -536
  59. package/packages/pagination/src/main.vue +96 -96
  60. package/packages/qr-code/src/main.vue +170 -170
  61. package/packages/radio-group/src/main.vue +319 -319
  62. package/packages/select/src/main.vue +761 -761
  63. package/packages/selector/src/main.vue +677 -677
  64. package/packages/selector-panel/src/main.vue +1020 -1020
  65. package/packages/selector-panel/src/selection.vue +160 -160
  66. package/packages/tabs/src/main.vue +788 -788
  67. package/packages/theme-chalk/lib/index.css +1 -1
  68. package/packages/theme-chalk/lib/login.css +1 -1
  69. package/packages/theme-chalk/lib/selector.css +1 -1
  70. package/packages/theme-chalk/src/.DS_Store +0 -0
  71. package/packages/theme-chalk/src/base.scss +260 -260
  72. package/packages/theme-chalk/src/button-group.scss +175 -175
  73. package/packages/theme-chalk/src/calendar.scss +113 -113
  74. package/packages/theme-chalk/src/clients.scss +87 -87
  75. package/packages/theme-chalk/src/common/var.scss +4 -1
  76. package/packages/theme-chalk/src/data-table.scss +276 -276
  77. package/packages/theme-chalk/src/dialog.scss +77 -77
  78. package/packages/theme-chalk/src/flow-group.scss +110 -110
  79. package/packages/theme-chalk/src/form.scss +496 -496
  80. package/packages/theme-chalk/src/handler.scss +133 -133
  81. package/packages/theme-chalk/src/icon.scss +1745 -1745
  82. package/packages/theme-chalk/src/icons.scss +99 -99
  83. package/packages/theme-chalk/src/login.scss +928 -917
  84. package/packages/theme-chalk/src/main.scss +632 -632
  85. package/packages/theme-chalk/src/menu.scss +222 -222
  86. package/packages/theme-chalk/src/nav.scss +125 -125
  87. package/packages/theme-chalk/src/pagination.scss +29 -29
  88. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  89. package/packages/theme-chalk/src/selector.scss +1 -1
  90. package/packages/theme-chalk/src/simplicity.scss +1246 -1246
  91. package/packages/theme-chalk/src/tabs.scss +87 -87
  92. package/packages/theme-chalk/src/toolbar.scss +179 -179
  93. package/packages/theme-chalk/src/tree-group.scss +72 -72
  94. package/packages/theme-chalk/src/tree.scss +165 -165
  95. package/packages/upload/src/main.vue +1313 -1313
  96. package/packages/wujie/src/main.vue +145 -145
  97. package/src/.DS_Store +0 -0
  98. package/src/config/api.js +236 -236
  99. package/src/config/image.js +2 -2
  100. 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 (util.win.$wujie) {
120
- util.win.$wujie.bus.$on('changeTheme', (res) => {
121
- util.updateTheme(res);
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
- const bus = this.bus || this.$root.Bus;
126
- if (bus) {
127
- bus.$on('reLogin', this.handleReLogin);
128
- bus.$on('refresh', this.$refs.main.handleRefresh);
129
- bus.$on('jumpMenu', this.$refs.main.jumpMenu);
130
- bus.$on('emit', function (method, args) {
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
- window.addEventListener('message', (method, args) => {
148
- switch (method) {
149
- case 'reLogin':
150
- this.handleReLogin(args);
151
- break;
152
- case 'refresh':
153
- this.$refs.main.handleRefresh(args);
154
- break;
155
- case 'jumpMenu':
156
- this.$refs.main.jumpMenu(args);
157
- break;
158
- case 'emit':
159
- let origin = args.origin || '*';
160
- window.postMessage(args, origin);
161
- break;
162
- case 'openDialog':
163
- this.dialogs.push(args);
164
- let index = this.visibles.length;
165
- this.visibles.push(false);
166
- this.$nextTick(() => {
167
- this.$set(this.visibles, index, true);
168
- });
169
- break;
170
- case 'closeDialog':
171
- for (let i = 0; i < this.dialogs.length; i++) {
172
- let item = this.dialogs[i];
173
- if (item.url == args.url) {
174
- this.$set(this.visibles, i, false);
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
- break;
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 : false;
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>