eoss-ui 0.6.19 → 0.6.20

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 (102) hide show
  1. package/lib/eoss-ui.common.js +780 -678
  2. package/lib/flow.js +619 -515
  3. package/lib/index.js +1 -1
  4. package/lib/login.js +3 -2
  5. package/lib/main.js +143 -146
  6. package/lib/qr-code.js +13 -13
  7. package/lib/theme-chalk/index.css +1 -1
  8. package/lib/theme-chalk/login.css +1 -1
  9. package/package.json +157 -157
  10. package/packages/button/src/main.vue +418 -418
  11. package/packages/button-group/src/main.vue +298 -298
  12. package/packages/checkbox-group/src/main.vue +333 -333
  13. package/packages/clients/src/main.vue +144 -144
  14. package/packages/data-table/src/children.vue +39 -39
  15. package/packages/data-table/src/column.vue +983 -983
  16. package/packages/data-table/src/main.vue +1812 -1812
  17. package/packages/data-table/src/sizer.vue +195 -195
  18. package/packages/date-picker/src/main.vue +236 -236
  19. package/packages/flow/src/component/CustomPreset.vue +1 -1
  20. package/packages/flow/src/component/Preset.vue +1 -1
  21. package/packages/flow/src/component/SendMsg.vue +3 -1
  22. package/packages/flow/src/component/taskUnionExamine.vue +38 -20
  23. package/packages/flow/src/main.vue +2731 -2711
  24. package/packages/flow/src/processForm.vue +13 -2
  25. package/packages/flow/src/processReject.vue +14 -3
  26. package/packages/flow/src/startTaskRead.vue +23 -5
  27. package/packages/flow-group/src/main.vue +684 -684
  28. package/packages/form/src/main.vue +3582 -3582
  29. package/packages/form/src/table.vue +1420 -1420
  30. package/packages/handle-user/src/main.vue +134 -134
  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/src/main.vue +1851 -1850
  35. package/packages/login/src/resetPassword.vue +557 -557
  36. package/packages/main/src/default/message.vue +249 -249
  37. package/packages/main/src/default/notice.vue +157 -157
  38. package/packages/main/src/default/userinfo.vue +494 -494
  39. package/packages/main/src/public/online.vue +89 -89
  40. package/packages/main/src/public/search.vue +454 -454
  41. package/packages/main/src/public/settings.vue +221 -221
  42. package/packages/main/src/simplicity/apps.vue +388 -388
  43. package/packages/main/src/simplicity/avatar.vue +82 -82
  44. package/packages/main/src/simplicity/handler.vue +183 -183
  45. package/packages/main/src/simplicity/index.vue +1930 -1931
  46. package/packages/main/src/simplicity/lists.vue +84 -84
  47. package/packages/main/src/simplicity/menu-list.vue +128 -128
  48. package/packages/main/src/simplicity/message.vue +259 -259
  49. package/packages/main/src/simplicity/notice.vue +190 -190
  50. package/packages/main/src/simplicity/router-page.vue +45 -45
  51. package/packages/main/src/simplicity/sub-menu.vue +241 -241
  52. package/packages/main/src/simplicity/user.vue +248 -248
  53. package/packages/main/src/simplicity/userinfo.vue +304 -304
  54. package/packages/menu/src/main.vue +536 -536
  55. package/packages/pagination/src/main.vue +96 -96
  56. package/packages/qr-code/src/main.vue +170 -170
  57. package/packages/radio-group/src/main.vue +319 -319
  58. package/packages/select/src/main.vue +761 -761
  59. package/packages/selector/src/main.vue +677 -677
  60. package/packages/selector-panel/src/main.vue +1020 -1020
  61. package/packages/selector-panel/src/selection.vue +160 -160
  62. package/packages/tabs/src/main.vue +788 -788
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/lib/login.css +1 -1
  65. package/packages/theme-chalk/src/base.scss +260 -260
  66. package/packages/theme-chalk/src/button-group.scss +175 -175
  67. package/packages/theme-chalk/src/calendar.scss +113 -113
  68. package/packages/theme-chalk/src/clients.scss +87 -87
  69. package/packages/theme-chalk/src/common/var.scss +1 -4
  70. package/packages/theme-chalk/src/data-table.scss +276 -276
  71. package/packages/theme-chalk/src/dialog.scss +77 -77
  72. package/packages/theme-chalk/src/flow-group.scss +110 -110
  73. package/packages/theme-chalk/src/form.scss +496 -496
  74. package/packages/theme-chalk/src/handler.scss +133 -133
  75. package/packages/theme-chalk/src/icon.scss +1745 -1745
  76. package/packages/theme-chalk/src/icons.scss +99 -99
  77. package/packages/theme-chalk/src/login.scss +917 -926
  78. package/packages/theme-chalk/src/main.scss +632 -632
  79. package/packages/theme-chalk/src/menu.scss +222 -222
  80. package/packages/theme-chalk/src/nav.scss +125 -125
  81. package/packages/theme-chalk/src/pagination.scss +29 -29
  82. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  83. package/packages/theme-chalk/src/simplicity.scss +1246 -1246
  84. package/packages/theme-chalk/src/tabs.scss +87 -87
  85. package/packages/theme-chalk/src/toolbar.scss +179 -179
  86. package/packages/theme-chalk/src/tree-group.scss +72 -72
  87. package/packages/theme-chalk/src/tree.scss +165 -165
  88. package/packages/upload/src/main.vue +1313 -1313
  89. package/packages/wujie/src/main.vue +145 -145
  90. package/src/config/api.js +236 -236
  91. package/src/config/image.js +2 -2
  92. package/src/index.js +157 -157
  93. package/packages/.DS_Store +0 -0
  94. package/packages/checkbox-group/.DS_Store +0 -0
  95. package/packages/data-table/.DS_Store +0 -0
  96. package/packages/dialog/.DS_Store +0 -0
  97. package/packages/handler/.DS_Store +0 -0
  98. package/packages/login/.DS_Store +0 -0
  99. package/packages/main/.DS_Store +0 -0
  100. package/packages/main/src/.DS_Store +0 -0
  101. package/packages/theme-chalk/src/.DS_Store +0 -0
  102. package/src/.DS_Store +0 -0
@@ -1,157 +1,157 @@
1
- <template>
2
- <transition name="el-drawer-fade" @after-enter="handleMouse(false)">
3
- <div
4
- class="es-notice-box"
5
- v-show="data.length"
6
- @mouseover="handleMouse(true)"
7
- @mouseout="handleMouse(false)"
8
- >
9
- <div class="es-msgs-box" :class="{ 'es-in': data.length }">
10
- <div class="es-msg-header">
11
- <span class="es-notice-title">通知消息</span>
12
- </div>
13
- <div class="es-msg-lists-box">
14
- <div class="es-msg-lists">
15
- <el-scrollbar class="es-scrollbar">
16
- <el-card
17
- v-for="(item, index) in data"
18
- :key="item.id"
19
- class="es-msg-item"
20
- >
21
- <div class="es-msg-item-title">{{ item.title }}</div>
22
- <div>
23
- <span class="es-msg-item-time">{{ item.time }}</span>
24
- <span
25
- class="es-overlook"
26
- v-show="item.handlerUrl"
27
- @click="handleMessage(item, index)"
28
- >处理</span
29
- >
30
- </div>
31
- </el-card>
32
- </el-scrollbar>
33
- </div>
34
- </div>
35
- <div
36
- class="es-notice-footer"
37
- style="display: flex; justify-content: space-between"
38
- >
39
- <span @click="handleIgnoreAll">忽略全部</span
40
- ><span @click="afterEnter">我知道了</span>
41
- </div>
42
- </div>
43
- <es-dialog
44
- title="处理"
45
- name="manage"
46
- width="90%"
47
- height="80%"
48
- :visible.sync="dialog.show"
49
- :url="dialog.url"
50
- :param="dialog.params"
51
- @close="handleClose"
52
- ></es-dialog>
53
- </div>
54
- </transition>
55
- </template>
56
- <script>
57
- import { ignoreAllSysMsg } from 'eoss-ui/src/config/api.js';
58
- import util from 'eoss-ui/src/utils/util';
59
- export default {
60
- name: 'notice',
61
- provide() {
62
- return {
63
- deleteNotice: this.handleRemove
64
- };
65
- },
66
- props: {
67
- visible: Boolean,
68
- winopen: Boolean,
69
- data: {
70
- type: Array,
71
- default() {
72
- return [];
73
- }
74
- }
75
- },
76
- computed: {},
77
- data() {
78
- return {
79
- //加载数据
80
- loading: false,
81
- //消息页码
82
- pageNum: 1,
83
- //消息数据,
84
- msgs: [],
85
- //即时消息
86
- sysMsg: '',
87
- dialog: {
88
- params: {},
89
- url: '',
90
- show: false
91
- },
92
- index: null
93
- };
94
- },
95
- methods: {
96
- afterEnter() {
97
- this.$emit('opened');
98
- },
99
- handleMouse(flag) {
100
- this.$emit('opened', flag);
101
- },
102
- //全部忽略
103
- handleIgnoreAll() {
104
- util
105
- .ajax({
106
- url: ignoreAllSysMsg
107
- })
108
- .then((res) => {
109
- this.count = 0;
110
- this.msgs = [];
111
- this.$emit('ignore', { type: 'ignore', value: 'all' });
112
- this.$emit('opened', false);
113
- })
114
- .catch((err) => {
115
- if (err.message && err.message !== 'canceled') {
116
- this.$message.error(err.message);
117
- }
118
- });
119
- },
120
- //处理消息
121
- handleMessage(item, index) {
122
- if (item.urlopenmode === 1 || this.winopen) {
123
- const mywin = util.win.open(item.handlerUrl);
124
- if (mywin) {
125
- let times = setInterval(() => {
126
- if (mywin.closed) {
127
- clearInterval(times);
128
- this.$parent.$emit('bus-emit', 'waitdone');
129
- }
130
- }, 1000);
131
- }
132
- } else {
133
- this.dialog = {
134
- show: true,
135
- url: item.handlerUrl,
136
- params: {
137
- id: item.id,
138
- pendingId: item.pendingId,
139
- userId: item.userId
140
- }
141
- };
142
- this.index = index;
143
- }
144
- },
145
- handleRemove() {
146
- if (this.index === null) {
147
- this.count -= 1;
148
- this.msgs = this.msgs.splice(this.index, 1);
149
- }
150
- this.dialog.show = false;
151
- },
152
- handleClose() {
153
- this.$parent.$emit('bus-emit', 'waitdone');
154
- }
155
- }
156
- };
157
- </script>
1
+ <template>
2
+ <transition name="el-drawer-fade" @after-enter="handleMouse(false)">
3
+ <div
4
+ class="es-notice-box"
5
+ v-show="data.length"
6
+ @mouseover="handleMouse(true)"
7
+ @mouseout="handleMouse(false)"
8
+ >
9
+ <div class="es-msgs-box" :class="{ 'es-in': data.length }">
10
+ <div class="es-msg-header">
11
+ <span class="es-notice-title">通知消息</span>
12
+ </div>
13
+ <div class="es-msg-lists-box">
14
+ <div class="es-msg-lists">
15
+ <el-scrollbar class="es-scrollbar">
16
+ <el-card
17
+ v-for="(item, index) in data"
18
+ :key="item.id"
19
+ class="es-msg-item"
20
+ >
21
+ <div class="es-msg-item-title">{{ item.title }}</div>
22
+ <div>
23
+ <span class="es-msg-item-time">{{ item.time }}</span>
24
+ <span
25
+ class="es-overlook"
26
+ v-show="item.handlerUrl"
27
+ @click="handleMessage(item, index)"
28
+ >处理</span
29
+ >
30
+ </div>
31
+ </el-card>
32
+ </el-scrollbar>
33
+ </div>
34
+ </div>
35
+ <div
36
+ class="es-notice-footer"
37
+ style="display: flex; justify-content: space-between"
38
+ >
39
+ <span @click="handleIgnoreAll">忽略全部</span
40
+ ><span @click="afterEnter">我知道了</span>
41
+ </div>
42
+ </div>
43
+ <es-dialog
44
+ title="处理"
45
+ name="manage"
46
+ width="90%"
47
+ height="80%"
48
+ :visible.sync="dialog.show"
49
+ :url="dialog.url"
50
+ :param="dialog.params"
51
+ @close="handleClose"
52
+ ></es-dialog>
53
+ </div>
54
+ </transition>
55
+ </template>
56
+ <script>
57
+ import { ignoreAllSysMsg } from 'eoss-ui/src/config/api.js';
58
+ import util from 'eoss-ui/src/utils/util';
59
+ export default {
60
+ name: 'notice',
61
+ provide() {
62
+ return {
63
+ deleteNotice: this.handleRemove
64
+ };
65
+ },
66
+ props: {
67
+ visible: Boolean,
68
+ winopen: Boolean,
69
+ data: {
70
+ type: Array,
71
+ default() {
72
+ return [];
73
+ }
74
+ }
75
+ },
76
+ computed: {},
77
+ data() {
78
+ return {
79
+ //加载数据
80
+ loading: false,
81
+ //消息页码
82
+ pageNum: 1,
83
+ //消息数据,
84
+ msgs: [],
85
+ //即时消息
86
+ sysMsg: '',
87
+ dialog: {
88
+ params: {},
89
+ url: '',
90
+ show: false
91
+ },
92
+ index: null
93
+ };
94
+ },
95
+ methods: {
96
+ afterEnter() {
97
+ this.$emit('opened');
98
+ },
99
+ handleMouse(flag) {
100
+ this.$emit('opened', flag);
101
+ },
102
+ //全部忽略
103
+ handleIgnoreAll() {
104
+ util
105
+ .ajax({
106
+ url: ignoreAllSysMsg
107
+ })
108
+ .then((res) => {
109
+ this.count = 0;
110
+ this.msgs = [];
111
+ this.$emit('ignore', { type: 'ignore', value: 'all' });
112
+ this.$emit('opened', false);
113
+ })
114
+ .catch((err) => {
115
+ if (err.message && err.message !== 'canceled') {
116
+ this.$message.error(err.message);
117
+ }
118
+ });
119
+ },
120
+ //处理消息
121
+ handleMessage(item, index) {
122
+ if (item.urlopenmode === 1 || this.winopen) {
123
+ const mywin = util.win.open(item.handlerUrl);
124
+ if (mywin) {
125
+ let times = setInterval(() => {
126
+ if (mywin.closed) {
127
+ clearInterval(times);
128
+ this.$parent.$emit('bus-emit', 'waitdone');
129
+ }
130
+ }, 1000);
131
+ }
132
+ } else {
133
+ this.dialog = {
134
+ show: true,
135
+ url: item.handlerUrl,
136
+ params: {
137
+ id: item.id,
138
+ pendingId: item.pendingId,
139
+ userId: item.userId
140
+ }
141
+ };
142
+ this.index = index;
143
+ }
144
+ },
145
+ handleRemove() {
146
+ if (this.index === null) {
147
+ this.count -= 1;
148
+ this.msgs = this.msgs.splice(this.index, 1);
149
+ }
150
+ this.dialog.show = false;
151
+ },
152
+ handleClose() {
153
+ this.$parent.$emit('bus-emit', 'waitdone');
154
+ }
155
+ }
156
+ };
157
+ </script>