eoss 0.1.0-alpha.21 → 0.1.0-alpha.23

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 (213) hide show
  1. package/lib/account-login.js +125 -125
  2. package/lib/alert.js +2 -2
  3. package/lib/aside.js +2 -2
  4. package/lib/autocomplete.js +239 -239
  5. package/lib/avatar.js +2 -2
  6. package/lib/backtop.js +4 -4
  7. package/lib/badge.js +2 -2
  8. package/lib/breadcrumb-item.js +2 -2
  9. package/lib/breadcrumb.js +2 -2
  10. package/lib/button-group.js +2 -2
  11. package/lib/button.js +2 -2
  12. package/lib/ca-login.js +6 -6
  13. package/lib/calendar.js +2 -2
  14. package/lib/card.js +2 -2
  15. package/lib/carousel-item.js +22 -22
  16. package/lib/carousel.js +40 -26
  17. package/lib/cascader-panel.js +12 -12
  18. package/lib/cascader.js +506 -492
  19. package/lib/checkbox-button.js +2 -2
  20. package/lib/checkbox-group.js +137 -137
  21. package/lib/checkbox.js +2 -2
  22. package/lib/col.js +2 -2
  23. package/lib/collapse-item.js +1224 -1030
  24. package/lib/collapse.js +1225 -1030
  25. package/lib/color-picker.js +12 -12
  26. package/lib/container.js +2 -2
  27. package/lib/cron.js +2 -2
  28. package/lib/data-table.js +121 -121
  29. package/lib/date-picker.js +225 -225
  30. package/lib/dialog.js +17 -17
  31. package/lib/divider.js +2 -2
  32. package/lib/drawer.js +6 -6
  33. package/lib/dropdown-item.js +2 -2
  34. package/lib/dropdown-menu.js +10 -10
  35. package/lib/dropdown.js +13 -13
  36. package/lib/email-login.js +365 -365
  37. package/lib/empty.js +2 -2
  38. package/lib/eoss.common.js +21402 -20724
  39. package/lib/flip.js +2 -2
  40. package/lib/flow-group.js +251 -251
  41. package/lib/flow.js +15933 -18946
  42. package/lib/flows.js +9195 -0
  43. package/lib/footer.js +2 -2
  44. package/lib/form-item.js +28 -17
  45. package/lib/form.js +1228 -1033
  46. package/lib/header.js +2 -2
  47. package/lib/icon.js +129 -129
  48. package/lib/icons.js +4 -4
  49. package/lib/image-viewer.js +6 -6
  50. package/lib/image.js +4 -4
  51. package/lib/index.js +1 -1
  52. package/lib/infinite-scroll.js +4 -4
  53. package/lib/input-number.js +11 -11
  54. package/lib/input.js +28 -14
  55. package/lib/link.js +2 -2
  56. package/lib/loading.js +6 -6
  57. package/lib/login.js +277 -229
  58. package/lib/lowcode.js +964 -325
  59. package/lib/main.js +634 -565
  60. package/lib/marquee.js +6 -6
  61. package/lib/menu-item-group.js +2 -2
  62. package/lib/menu-item.js +2 -2
  63. package/lib/menu.js +1934 -1934
  64. package/lib/message-box.js +12 -12
  65. package/lib/message.js +10 -10
  66. package/lib/notification.js +16 -16
  67. package/lib/option-group.js +2 -2
  68. package/lib/option.js +6 -6
  69. package/lib/page-header.js +2 -2
  70. package/lib/pagination.js +16 -16
  71. package/lib/phone-login.js +127 -127
  72. package/lib/popconfirm.js +4 -4
  73. package/lib/popover.js +219 -219
  74. package/lib/progress.js +2 -2
  75. package/lib/qr-code.js +8 -8
  76. package/lib/qrcode-login.js +119 -119
  77. package/lib/radio-button.js +2 -2
  78. package/lib/radio-group.js +119 -119
  79. package/lib/radio.js +2 -2
  80. package/lib/rate.js +6 -6
  81. package/lib/row.js +2 -2
  82. package/lib/scrollbar.js +46 -32
  83. package/lib/select.js +823 -796
  84. package/lib/selector-panel.js +141 -141
  85. package/lib/selector.js +1040 -160
  86. package/lib/slider.js +2 -2
  87. package/lib/step.js +1225 -1030
  88. package/lib/steps.js +6 -6
  89. package/lib/submenu.js +27 -27
  90. package/lib/switch.js +15 -15
  91. package/lib/tab-pane.js +2 -2
  92. package/lib/table-column.js +8 -8
  93. package/lib/table.js +2530 -2516
  94. package/lib/tabs.js +28 -14
  95. package/lib/tag.js +2 -2
  96. package/lib/theme-chalk/autocomplete.css +1 -1
  97. package/lib/theme-chalk/base.css +1 -1
  98. package/lib/theme-chalk/cascader-panel.css +1 -1
  99. package/lib/theme-chalk/cascader.css +1 -1
  100. package/lib/theme-chalk/checkbox-group.css +1 -1
  101. package/lib/theme-chalk/date-picker.css +1 -1
  102. package/lib/theme-chalk/descriptions-item.css +1 -1
  103. package/lib/theme-chalk/descriptions.css +1 -1
  104. package/lib/theme-chalk/empty.css +1 -1
  105. package/lib/theme-chalk/flow.css +1 -1
  106. package/lib/theme-chalk/flows.css +1 -0
  107. package/lib/theme-chalk/form.css +1 -1
  108. package/lib/theme-chalk/index.css +1 -1
  109. package/lib/theme-chalk/input-number.css +1 -1
  110. package/lib/theme-chalk/input.css +1 -1
  111. package/lib/theme-chalk/lowcode.css +1 -1
  112. package/lib/theme-chalk/main.css +1 -1
  113. package/lib/theme-chalk/menu.css +1 -1
  114. package/lib/theme-chalk/message-box.css +1 -1
  115. package/lib/theme-chalk/message.css +1 -1
  116. package/lib/theme-chalk/notification.css +1 -1
  117. package/lib/theme-chalk/pagination.css +1 -1
  118. package/lib/theme-chalk/scrollbar.css +1 -1
  119. package/lib/theme-chalk/select.css +1 -1
  120. package/lib/theme-chalk/selector-panel.css +1 -1
  121. package/lib/theme-chalk/selector.css +1 -1
  122. package/lib/theme-chalk/slider.css +1 -1
  123. package/lib/theme-chalk/table.css +1 -1
  124. package/lib/theme-chalk/tabs.css +1 -1
  125. package/lib/theme-chalk/time-picker.css +1 -1
  126. package/lib/theme-chalk/time-select.css +1 -1
  127. package/lib/theme-chalk/timeline-item.css +1 -1
  128. package/lib/theme-chalk/transfer.css +1 -1
  129. package/lib/theme-chalk/tree.css +1 -1
  130. package/lib/theme-chalk/upload.css +1 -1
  131. package/lib/time-picker.js +16 -16
  132. package/lib/time-select.js +15 -15
  133. package/lib/timeline-item.js +2 -2
  134. package/lib/timeline.js +2 -2
  135. package/lib/tips.js +129 -129
  136. package/lib/toolbar.js +4 -4
  137. package/lib/tooltip.js +220 -220
  138. package/lib/transfer.js +8 -8
  139. package/lib/tree-group.js +124 -124
  140. package/lib/tree.js +144 -144
  141. package/lib/upload.js +155 -155
  142. package/lib/utils/resize-event.js +20 -6
  143. package/package.json +3 -1
  144. package/packages/carousel/src/carousel.vue +2 -2
  145. package/packages/flow/index.js +4 -4
  146. package/packages/flow/src/component/FreeCirculation.vue +4 -3
  147. package/packages/flow/src/component/SendMsg.vue +2 -4
  148. package/packages/flow/src/component/opinions.vue +203 -226
  149. package/packages/flow/src/component/taskUnionExamine.vue +2 -4
  150. package/packages/flow/src/freeStartFlow.vue +2 -2
  151. package/packages/flow/src/selectUser.vue +36 -1
  152. package/packages/flow/src/supervise.vue +4 -2
  153. package/packages/flows/index.js +7 -0
  154. package/packages/flows/readme.md +600 -0
  155. package/packages/flows/src/components/basis.vue +108 -0
  156. package/packages/flows/src/components/distribute.vue +42 -0
  157. package/packages/flows/src/components/opinions-file.vue +123 -0
  158. package/packages/{flow-copy/src/component → flows/src/components}/opinions.vue +227 -204
  159. package/packages/flows/src/components/quick-actions.vue +64 -0
  160. package/packages/flows/src/components/reject.vue +83 -0
  161. package/packages/flows/src/components/start-flow.vue +210 -0
  162. package/packages/flows/src/flow.vue +510 -0
  163. package/packages/{flow/src/flow.vue → flows/src/flows.vue} +40 -1327
  164. package/packages/form/src/form-item.vue +9 -2
  165. package/packages/form/src/label-wrap.vue +4 -1
  166. package/packages/login/src/login.vue +61 -32
  167. package/packages/lowcode/src/aside.vue +15 -2
  168. package/packages/lowcode/src/editor.vue +187 -0
  169. package/packages/lowcode/src/lowcode.vue +195 -41
  170. package/packages/lowcode/src/pages.vue +174 -26
  171. package/packages/lowcode/src/toolbar.vue +3 -18
  172. package/packages/main/src/components/pages.vue +97 -65
  173. package/packages/main/src/components/router-page.vue +0 -2
  174. package/packages/main/src/gzw.vue +3 -2
  175. package/packages/main/src/minxs.js +72 -51
  176. package/packages/menu/src/menu.vue +4 -4
  177. package/packages/select/src/select.vue +5 -0
  178. package/packages/selector/src/selector.vue +147 -17
  179. package/packages/theme-chalk/src/base.scss +6 -0
  180. package/packages/theme-chalk/src/checkbox-group.scss +1 -0
  181. package/packages/theme-chalk/src/common/var.scss +1 -1
  182. package/packages/theme-chalk/src/flow.scss +7 -4
  183. package/packages/theme-chalk/src/flows.scss +141 -0
  184. package/packages/theme-chalk/src/form.scss +1 -1
  185. package/packages/theme-chalk/src/index.scss +1 -0
  186. package/packages/theme-chalk/src/input.scss +1 -0
  187. package/packages/theme-chalk/src/lowcode.scss +21 -18
  188. package/packages/theme-chalk/src/select.scss +3 -1
  189. package/packages/theme-chalk/src/selector.scss +11 -5
  190. package/src/index.js +4 -1
  191. package/src/utils/resize-event.js +21 -7
  192. package/packages/flow/src/component/quick-actions.vue +0 -1168
  193. package/packages/flow-copy/index.js +0 -7
  194. package/packages/flow-copy/src/component/Circulate.vue +0 -452
  195. package/packages/flow-copy/src/component/CustomPreset.vue +0 -333
  196. package/packages/flow-copy/src/component/FreeCirculation.vue +0 -275
  197. package/packages/flow-copy/src/component/Preset.vue +0 -273
  198. package/packages/flow-copy/src/component/SendMsg.vue +0 -290
  199. package/packages/flow-copy/src/component/TimeLimit.vue +0 -205
  200. package/packages/flow-copy/src/component/taskUnionExamine.vue +0 -818
  201. package/packages/flow-copy/src/freeStartFlow.vue +0 -2912
  202. package/packages/flow-copy/src/processForm.vue +0 -1411
  203. package/packages/flow-copy/src/processReject.vue +0 -319
  204. package/packages/flow-copy/src/reset.vue +0 -944
  205. package/packages/flow-copy/src/selectUser.vue +0 -513
  206. package/packages/flow-copy/src/startTaskRead.vue +0 -723
  207. package/packages/flow-copy/src/supervise.vue +0 -182
  208. package/packages/flow-copy/src/table.vue +0 -65
  209. /package/packages/{flow-copy → flow}/src/component/FileList.vue +0 -0
  210. /package/packages/{flow-copy → flow}/src/main.vue +0 -0
  211. /package/packages/{flow-copy/src → flows/src/components}/form.vue +0 -0
  212. /package/packages/{flow/src/component → flows/src/components}/message.vue +0 -0
  213. /package/packages/{flow/src/component → flows/src/components}/opinions-list.vue +0 -0
@@ -1,513 +0,0 @@
1
- <template>
2
- <div class="select-users">
3
- <es-radio
4
- v-model="newNextUser"
5
- v-for="(item, index) of newRadioList"
6
- v-show="newRadioList.length > 0 && !newMultiple && newPresetEdit != 0"
7
- :disabled="isCurrentNodeForbiddenChangeCandidate == 1"
8
- @change="cancelSelectUser(true)"
9
- :key="index"
10
- :label="item.id || item.showid"
11
- >{{ item.name ? item.name : item.showname }}</es-radio
12
- >
13
- <es-checkbox-group
14
- :disabled="isCurrentNodeForbiddenChangeCandidate == 1"
15
- v-model="newNextUser"
16
- v-show="newRadioList.length > 0 && newMultiple && newPresetEdit != 0"
17
- @change="cancelSelectUser(true)"
18
- >
19
- <es-checkbox
20
- v-for="(item, index) of newRadioList"
21
- :key="index"
22
- :label="item.id || item.showid"
23
- >{{ item.name ? item.name : item.showname }}</es-checkbox
24
- >
25
- </es-checkbox-group>
26
- <!-- <es-select
27
- v-model="newNextUser"
28
- :multiple="newMultiple"
29
- :class="isCustomUser ? 'es-select-user' : ''"
30
- filterable
31
- remote
32
- reserve-keyword
33
- placeholder="请输入办理人"
34
- :remote-method="remoteMethod"
35
- :loading="searchLoading"
36
- @change="changeSelectUser"
37
- >
38
- <es-option
39
- v-for="(item,index) in newOptions"
40
- :key="index"
41
- :label="item.name"
42
- :value="item.id"
43
- >
44
- </es-option>
45
- </es-select> -->
46
- <!-- class="select-user-icon es-button--primary" -->
47
- <div style="position: relative">
48
- <!-- <es-selector
49
- v-if="isChange"
50
- v-model="newSelectUserList"
51
- value-type="string"
52
- :types="types"
53
- :tabs="tabs"
54
- :title="title"
55
- :mix="mix"
56
- :multiple="newMultiple"
57
- @confirm="getSelectUser"
58
- @cancel="cancelSelectUser"
59
- :param="newParams"
60
- ></es-selector> -->
61
- <es-input v-if="disabled" :readonly="disabled" v-model="onlyName" />
62
- <es-selector
63
- v-else-if="!disabled && isChange"
64
- v-model="newSelectUserList"
65
- value-type="string"
66
- :types="types"
67
- :tabs="tabs"
68
- :title="title"
69
- :classify="classify"
70
- :collapse-tags="selectorTags"
71
- :mix="mix"
72
- :min="isUnionSeal ? 1 : 0"
73
- :disabled="!isCustomUser || isCurrentNodeForbiddenChangeCandidate == 1"
74
- :filterable="Boolean(isCustomUser && !isUnionSeal)"
75
- :class="
76
- isCustomUser &&
77
- isCurrentNodeForbiddenChangeCandidate == 0 &&
78
- !isUnionSeal
79
- ? ''
80
- : 'no-icon'
81
- "
82
- :select="isUnionSeal == false"
83
- :where="{ ...newWhere, info: classify ? '' : 'no' }"
84
- :multiple="newMultiple"
85
- @cancel="cancelSelectUser"
86
- @change="getSelectUser"
87
- :param="{ ...newParams, info: classify ? '' : 'no' }"
88
- :disableds="disableds"
89
- ><i class="es-icon-yonghu"></i
90
- ></es-selector>
91
- <!-- :action="url" -->
92
- <!-- :where="{type:'user',a:'1'}" -->
93
- <!-- @confirm="getSelectUser" -->
94
- </div>
95
- </div>
96
- </template>
97
-
98
- <script>
99
- import { getTypePrefix } from 'eoss/src/utils/util';
100
- import { ajax } from 'eoss/src/utils/ajax';
101
- import { getStorage } from 'eoss/src/utils/storage';
102
- import { handleInfo } from 'eoss/src/config/api';
103
- export default {
104
- name: 'SelectUser',
105
- props: {
106
- /**
107
- * 是否混选
108
- */
109
- mix: {
110
- type: Boolean,
111
- default: false
112
- },
113
- /**
114
- * 人员选择器类型
115
- */
116
- tabs: {
117
- type: Object
118
- },
119
- /**
120
- * 是否联合审核流程
121
- */
122
- isUnionSeal: {
123
- type: Boolean,
124
- default: false
125
- },
126
- /**
127
- * 默认选中的下部办理人
128
- */
129
- nextUser: {
130
- default: () => []
131
- },
132
- /**
133
- * 禁止选择的用户数组
134
- */
135
- disableds: {
136
- type: Array,
137
- default: () => []
138
- },
139
- /**
140
- * 单选列表
141
- */
142
- radioList: {
143
- type: Array,
144
- default: () => []
145
- },
146
- /**
147
- * 是否多选
148
- */
149
- multiple: {
150
- type: Boolean,
151
- default: false
152
- },
153
- /**
154
- * 选择器tag展示个数
155
- */
156
- selectorTags: {
157
- type: [Number, undefined],
158
- default: 2
159
- },
160
- /**
161
- * 是否可以自定义选择
162
- */
163
- isCustomUser: { type: Number, default: 1 },
164
- /**
165
- *
166
- */
167
- isCurrentNodeForbiddenChangeCandidate: { type: Number, default: 0 },
168
- options: {
169
- type: Array,
170
- default: () => []
171
- },
172
- /**
173
- * 选中的用户列表
174
- */
175
- selectUserList: {
176
- type: Array,
177
- default: () => []
178
- },
179
- /**
180
- * 人员选择器类型
181
- */
182
- types: {
183
- type: Array,
184
- default: () => ['employee']
185
- },
186
- /**
187
- * 选择器参数
188
- */
189
- params: {
190
- type: Object,
191
- default: () => {}
192
- },
193
- showUser: {
194
- type: Boolean,
195
- default: false
196
- },
197
- /**
198
- * 是否预设编辑
199
- */
200
- presetEdit: {
201
- type: Number,
202
- default: 0
203
- },
204
- /**
205
- * 标题
206
- */
207
- title: {
208
- type: String,
209
- default: '下步处理对象'
210
- },
211
- /**
212
- * 只读名称
213
- */
214
- onlyName: {
215
- type: String,
216
- default: ''
217
- },
218
- /**
219
- * 是否默认选中对象
220
- */
221
- isDefSelectedObj: {
222
- type: Number,
223
- default: 0
224
- },
225
- /**
226
- * 模糊查询参数
227
- */
228
- where: {
229
- type: Object,
230
- default: () => {}
231
- },
232
- /**
233
- * 是否禁止选中
234
- */
235
- disabled: {
236
- type: Boolean,
237
- default: false
238
- }
239
- },
240
- data() {
241
- return {
242
- searchLoading: false,
243
- newNextUser: [],
244
- classify: true,
245
- newOptions: [],
246
- newSelectUserList: [],
247
- url: handleInfo,
248
- newCheckboxList: [],
249
- newPresetEdit: 0,
250
- newMultiple: false,
251
- newIsDefSelectedObj: 0,
252
- isChange: true,
253
- newParams: {
254
- // filid: 'all', //选择范围(my:本单位/ "" or all:全部)
255
- // selectmix: 'true1',
256
- // deptid: '' //指定部门(my:本部门)
257
- },
258
- newRadioList: []
259
- };
260
- },
261
- computed: {
262
- newWhere() {
263
- return {
264
- mid: `${JSON.parse(getStorage('mainConfig')).userModel.orgId}-org-1`,
265
- filid: JSON.parse(getStorage('mainConfig')).userModel.orgId,
266
- ...this.where
267
- };
268
- }
269
- },
270
- watch: {
271
- newPresetEdit(val) {
272
- this.isChange = false;
273
- setTimeout(() => (this.isChange = true), 0);
274
- },
275
- isDefSelectedObj: {
276
- handler(val) {
277
- this.newIsDefSelectedObj = val;
278
- },
279
- deep: true,
280
- immediate: true
281
- },
282
- params: {
283
- handler(val) {
284
- this.newParams = val;
285
- },
286
- deep: true,
287
- immediate: true
288
- },
289
- selectUserList: {
290
- handler(val) {
291
- this.newSelectUserList = val;
292
- },
293
- deep: true,
294
- immediate: true
295
- },
296
- nextUser: {
297
- handler(val) {
298
- this.newNextUser = val;
299
- },
300
- deep: true,
301
- immediate: true
302
- },
303
- radioList: {
304
- handler(val) {
305
- this.newRadioList = val;
306
- },
307
- deep: true,
308
- immediate: true
309
- },
310
- options: {
311
- handler(val) {
312
- this.newOptions = val;
313
- },
314
- deep: true,
315
- immediate: true
316
- },
317
- presetEdit: {
318
- handler(val) {
319
- this.newPresetEdit = val;
320
- },
321
- deep: true,
322
- immediate: true
323
- },
324
- multiple: {
325
- handler(val) {
326
- this.newMultiple = val;
327
- },
328
- deep: true,
329
- immediate: true
330
- }
331
- },
332
- mounted() {
333
- this.classify =
334
- getStorage('classify') != undefined ? getStorage('classify') : true;
335
- },
336
-
337
- methods: {
338
- changeInfo(data) {
339
- const {
340
- selectUserList,
341
- nextUser,
342
- radioList,
343
- options,
344
- multiple,
345
- presetEdit,
346
- isDefSelectedObj,
347
- params
348
- } = data;
349
- this.newSelectUserList = selectUserList;
350
- this.newNextUser = nextUser;
351
- this.newRadioList = radioList;
352
- this.newOptions = options;
353
- this.newMultiple = multiple;
354
- this.newParams = params;
355
- this.newPresetEdit = presetEdit;
356
- this.newIsDefSelectedObj = isDefSelectedObj;
357
- },
358
- remoteMethod(query) {
359
- if (query !== '') {
360
- this.searchLoading = true;
361
- ajax({
362
- url: handleInfo,
363
- params: { searchKey: query, query, type: 'user' }
364
- })
365
- .then((res) => {
366
- const { status, data } = res;
367
- this.searchLoading = false;
368
- if (status === 'success') {
369
- this.newOptions = data;
370
- }
371
- })
372
- .catch((err) => {
373
- this.searchLoading = false;
374
- });
375
- } else {
376
- this.newOptions = [];
377
- }
378
- },
379
- changeSelectUser(val) {
380
- this.newSelectUserList = [];
381
- if (this.newMultiple) {
382
- val.map((item) => {
383
- this.newOptions.map((items) => {
384
- if (item === items.id) {
385
- this.newSelectUserList.push({
386
- showname: items.name,
387
- showid: items.id
388
- });
389
- }
390
- });
391
- });
392
- } else {
393
- this.newOptions.map((item) => {
394
- if (item.id === val) {
395
- this.newSelectUserList.push({
396
- showname: item.name,
397
- showid: item.id
398
- });
399
- }
400
- });
401
- }
402
- this.$emit('change', {
403
- nextUser: this.newNextUser,
404
- options: this.newOptions
405
- });
406
- },
407
- getMixList() {
408
- let mixObj = this.newSelectUserList.reduce((obj, name) => {
409
- if (name.stype in obj) {
410
- obj[name.stype] += `,${name.showid}`;
411
- } else {
412
- obj[name.stype] = name.showid;
413
- }
414
- return obj;
415
- }, {});
416
- let mixArr = [];
417
- for (let key in mixObj) {
418
- mixArr.push(`${key}-${mixObj[key]}`);
419
- }
420
- return mixArr;
421
- },
422
- getSelectUser(val) {
423
- this.newOptions = [];
424
- let data = {};
425
- if (this.mix) data = this.getMixList();
426
- if (this.newMultiple) {
427
- this.newNextUser = [];
428
-
429
- this.newSelectUserList.map((item) => {
430
- if (this.mix) {
431
- this.newOptions.push({
432
- ...item,
433
- id: item.showid,
434
- name: getTypePrefix(item.stype) + item.showname
435
- });
436
- } else {
437
- this.newOptions.push({
438
- ...item,
439
- id: item.showid,
440
- name: item.showname
441
- });
442
- }
443
- this.newNextUser.push(item.showid);
444
- });
445
- } else {
446
- if (this.newSelectUserList.length > 0) {
447
- const { showid, showname } = this.newSelectUserList[0];
448
- this.newOptions.push({
449
- ...this.newSelectUserList[0],
450
- id: showid,
451
- name: showname
452
- });
453
- this.newNextUser = showid;
454
- }
455
- }
456
- this.$emit('change', {
457
- nextUser: this.newNextUser,
458
- mixList: data,
459
- options: this.newOptions
460
- });
461
- },
462
- cancelSelectUser(type) {
463
- if (type) this.newOptions = this.newRadioList;
464
- let copy = JSON.stringify(this.newSelectUserList);
465
- let oldUserList = JSON.parse(copy);
466
- copy = [];
467
- this.newSelectUserList = [];
468
- let data = {};
469
- if (this.mix) data = this.getMixList();
470
- if (this.newMultiple) {
471
- this.newNextUser.map((item) => {
472
- this.newOptions.map((items) => {
473
- oldUserList.map((val) => {
474
- if (items.showid != val.showid && val.showid == item) {
475
- this.newSelectUserList.push({
476
- ...val
477
- });
478
- }
479
- });
480
- if (item === items.showid) {
481
- this.newSelectUserList.push({
482
- ...items
483
- });
484
- }
485
- });
486
- });
487
- var obj = {};
488
- this.newSelectUserList = this.newSelectUserList.reduce(function (
489
- item,
490
- next
491
- ) {
492
- obj[next.showid] ? '' : (obj[next.showid] = true && item.push(next));
493
- return item;
494
- },
495
- []);
496
- } else {
497
- this.newOptions.map((item) => {
498
- if (item.showid === this.newNextUser) {
499
- this.newSelectUserList.push({
500
- ...item
501
- });
502
- }
503
- });
504
- }
505
- this.$emit('change', {
506
- nextUser: this.newNextUser,
507
- mixList: data,
508
- options: this.newOptions
509
- });
510
- }
511
- }
512
- };
513
- </script>