eoss-ui 0.3.97
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/CHANGELOG.md +929 -0
- package/README.md +30 -0
- package/lib/button-group.js +2857 -0
- package/lib/button.js +2884 -0
- package/lib/card.js +603 -0
- package/lib/cascader.js +373 -0
- package/lib/checkbox-group.js +3099 -0
- package/lib/clients.js +375 -0
- package/lib/config/api.js +205 -0
- package/lib/data-table-form.js +3848 -0
- package/lib/data-table.js +6315 -0
- package/lib/date-picker.js +2821 -0
- package/lib/dialog.js +3730 -0
- package/lib/enterprise.js +372 -0
- package/lib/eoss-ui.common.js +65365 -0
- package/lib/error-page.js +293 -0
- package/lib/flow-group.js +4200 -0
- package/lib/flow-list.js +4350 -0
- package/lib/flow.js +12893 -0
- package/lib/form.js +15635 -0
- package/lib/handle-user.js +2900 -0
- package/lib/handler.js +3118 -0
- package/lib/index.js +1 -0
- package/lib/input-number.js +2743 -0
- package/lib/input.js +2935 -0
- package/lib/label.js +411 -0
- package/lib/login.js +5048 -0
- package/lib/main.js +5816 -0
- package/lib/mainComp.js +6530 -0
- package/lib/menu.js +529 -0
- package/lib/nav.js +3048 -0
- package/lib/notify.js +1079 -0
- package/lib/page.js +3036 -0
- package/lib/pagination.js +354 -0
- package/lib/player.js +2904 -0
- package/lib/qr-code.js +2860 -0
- package/lib/radio-group.js +3091 -0
- package/lib/select-ganged.js +3242 -0
- package/lib/select.js +3295 -0
- package/lib/selector-panel.js +4425 -0
- package/lib/selector.js +3722 -0
- package/lib/sizer.js +3067 -0
- package/lib/steps.js +2943 -0
- package/lib/switch.js +2784 -0
- package/lib/table-form.js +6211 -0
- package/lib/tabs-panel.js +274 -0
- package/lib/tabs.js +4988 -0
- package/lib/theme-chalk/base.css +1 -0
- package/lib/theme-chalk/button-group.css +1 -0
- package/lib/theme-chalk/button.css +0 -0
- package/lib/theme-chalk/card.css +1 -0
- package/lib/theme-chalk/cascader.css +0 -0
- package/lib/theme-chalk/checkbox-group.css +1 -0
- package/lib/theme-chalk/clients.css +1 -0
- package/lib/theme-chalk/data-table-form.css +1 -0
- package/lib/theme-chalk/data-table.css +1 -0
- package/lib/theme-chalk/date-picker.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -0
- package/lib/theme-chalk/enterprise.css +1 -0
- package/lib/theme-chalk/error-page.css +1 -0
- package/lib/theme-chalk/flow-chart.css +0 -0
- package/lib/theme-chalk/flow-group.css +1 -0
- package/lib/theme-chalk/flow-list.css +1 -0
- package/lib/theme-chalk/flow.css +1 -0
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/form.css +1 -0
- package/lib/theme-chalk/handle-user.css +1 -0
- package/lib/theme-chalk/handler.css +1 -0
- package/lib/theme-chalk/icon.css +1 -0
- package/lib/theme-chalk/index.css +1 -0
- package/lib/theme-chalk/input-number.css +0 -0
- package/lib/theme-chalk/input.css +1 -0
- package/lib/theme-chalk/label.css +1 -0
- package/lib/theme-chalk/login.css +1 -0
- package/lib/theme-chalk/main.css +1 -0
- package/lib/theme-chalk/mainComp.css +0 -0
- package/lib/theme-chalk/menu.css +1 -0
- package/lib/theme-chalk/nav.css +1 -0
- package/lib/theme-chalk/notify.css +0 -0
- package/lib/theme-chalk/page.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -0
- package/lib/theme-chalk/player.css +1 -0
- package/lib/theme-chalk/qr-code.css +1 -0
- package/lib/theme-chalk/radio-group.css +1 -0
- package/lib/theme-chalk/radio.css +1 -0
- package/lib/theme-chalk/select-ganged.css +1 -0
- package/lib/theme-chalk/select.css +0 -0
- package/lib/theme-chalk/selector-panel.css +1 -0
- package/lib/theme-chalk/selector.css +1 -0
- package/lib/theme-chalk/sizer.css +1 -0
- package/lib/theme-chalk/steps.css +1 -0
- package/lib/theme-chalk/switch.css +1 -0
- package/lib/theme-chalk/table-form.css +0 -0
- package/lib/theme-chalk/tabs-panel.css +0 -0
- package/lib/theme-chalk/tabs.css +1 -0
- package/lib/theme-chalk/tips.css +1 -0
- package/lib/theme-chalk/toolbar.css +1 -0
- package/lib/theme-chalk/tree-group.css +1 -0
- package/lib/theme-chalk/tree.css +1 -0
- package/lib/theme-chalk/upload.css +1 -0
- package/lib/theme-chalk/wujie.css +0 -0
- package/lib/theme-chalk/wxlogin.css +1 -0
- package/lib/tips.js +2830 -0
- package/lib/toolbar.js +531 -0
- package/lib/tree-group.js +3373 -0
- package/lib/tree.js +3482 -0
- package/lib/upload.js +3913 -0
- package/lib/utils/bus.js +9 -0
- package/lib/utils/date-util.js +318 -0
- package/lib/utils/http.js +58 -0
- package/lib/utils/rules.js +19 -0
- package/lib/utils/store.js +22 -0
- package/lib/utils/util.js +2056 -0
- package/lib/wujie.js +2845 -0
- package/lib/wxlogin.js +2799 -0
- package/package.json +151 -0
- package/packages/button/index.js +5 -0
- package/packages/button/src/main.vue +264 -0
- package/packages/button-group/index.js +5 -0
- package/packages/button-group/src/main.vue +130 -0
- package/packages/card/index.js +5 -0
- package/packages/card/src/main.vue +144 -0
- package/packages/cascader/index.js +5 -0
- package/packages/cascader/src/main.vue +144 -0
- package/packages/checkbox-group/index.js +5 -0
- package/packages/checkbox-group/src/main.vue +285 -0
- package/packages/clients/index.js +5 -0
- package/packages/clients/src/main.vue +50 -0
- package/packages/data-table/index.js +5 -0
- package/packages/data-table/src/children.vue +40 -0
- package/packages/data-table/src/column.vue +796 -0
- package/packages/data-table/src/main copy.vue +1383 -0
- package/packages/data-table/src/main.vue +1229 -0
- package/packages/data-table/src/mixins/table.js +12 -0
- package/packages/data-table/src/sizer.vue +160 -0
- package/packages/data-table-form/index.js +5 -0
- package/packages/data-table-form/src/colgroup.vue +17 -0
- package/packages/data-table-form/src/main.vue +167 -0
- package/packages/data-table-form/src/table.vue +192 -0
- package/packages/data-table-form/src/tbody.vue +219 -0
- package/packages/data-table-form/src/thead.vue +68 -0
- package/packages/date-picker/index.js +5 -0
- package/packages/date-picker/src/main.vue +185 -0
- package/packages/dialog/index.js +5 -0
- package/packages/dialog/src/main.vue +442 -0
- package/packages/enterprise/index.js +5 -0
- package/packages/enterprise/src/main.vue +66 -0
- package/packages/error-page/index.js +5 -0
- package/packages/error-page/src/main.vue +44 -0
- package/packages/flow/index.js +5 -0
- package/packages/flow/src/component/CommonOpinions.vue +290 -0
- package/packages/flow/src/component/CustomPreset.vue +311 -0
- package/packages/flow/src/component/FileList.vue +97 -0
- package/packages/flow/src/component/Preset.vue +253 -0
- package/packages/flow/src/component/SendMsg.vue +221 -0
- package/packages/flow/src/component/TimeLimit.vue +190 -0
- package/packages/flow/src/component/taskUnionExamine.vue +507 -0
- package/packages/flow/src/form.vue +120 -0
- package/packages/flow/src/main.vue +2107 -0
- package/packages/flow/src/processForm.vue +866 -0
- package/packages/flow/src/processReject.vue +262 -0
- package/packages/flow/src/selectUser.vue +425 -0
- package/packages/flow/src/startTaskRead.vue +556 -0
- package/packages/flow/src/table.vue +51 -0
- package/packages/flow-group/index.js +5 -0
- package/packages/flow-group/src/main.vue +540 -0
- package/packages/flow-list/index.js +5 -0
- package/packages/flow-list/src/flow-table.vue +445 -0
- package/packages/flow-list/src/main.vue +456 -0
- package/packages/form/index.js +5 -0
- package/packages/form/src/main.vue +4429 -0
- package/packages/form/src/table.vue +1196 -0
- package/packages/handle-user/index.js +5 -0
- package/packages/handle-user/src/main.vue +122 -0
- package/packages/handler/index.js +5 -0
- package/packages/handler/src/main.vue +306 -0
- package/packages/input/index.js +5 -0
- package/packages/input/src/main.vue +307 -0
- package/packages/input-number/index.js +5 -0
- package/packages/input-number/src/main.vue +106 -0
- package/packages/label/index.js +5 -0
- package/packages/label/src/main.vue +208 -0
- package/packages/login/index.js +5 -0
- package/packages/login/src/main.vue +1193 -0
- package/packages/login/src/resetPassword.vue +332 -0
- package/packages/main/index.js +5 -0
- package/packages/main/src/main.vue +1496 -0
- package/packages/main/src/message.vue +239 -0
- package/packages/main/src/notice.vue +145 -0
- package/packages/main/src/settings.vue +105 -0
- package/packages/main/src/userinfo.vue +430 -0
- package/packages/mainComp/index.js +5 -0
- package/packages/mainComp/src/async-component/index.vue +85 -0
- package/packages/mainComp/src/main.vue +1934 -0
- package/packages/mainComp/src/message.vue +239 -0
- package/packages/mainComp/src/notice.vue +152 -0
- package/packages/mainComp/src/settings.vue +105 -0
- package/packages/mainComp/src/userinfo.vue +423 -0
- package/packages/menu/index.js +5 -0
- package/packages/menu/src/main.vue +401 -0
- package/packages/nav/index.js +5 -0
- package/packages/nav/src/main.vue +250 -0
- package/packages/notify/index.js +5 -0
- package/packages/notify/src/main.vue +538 -0
- package/packages/page/index.js +5 -0
- package/packages/page/src/main.vue +167 -0
- package/packages/pagination/index.js +5 -0
- package/packages/pagination/src/main.vue +77 -0
- package/packages/player/index.js +5 -0
- package/packages/player/src/main.vue +194 -0
- package/packages/qr-code/index.js +5 -0
- package/packages/qr-code/src/main.vue +154 -0
- package/packages/radio/index.js +5 -0
- package/packages/radio/src/main.vue +259 -0
- package/packages/radio-group/index.js +6 -0
- package/packages/radio-group/src/main.vue +267 -0
- package/packages/select/index.js +5 -0
- package/packages/select/src/main.vue +683 -0
- package/packages/select-ganged/index.js +5 -0
- package/packages/select-ganged/src/main.vue +686 -0
- package/packages/selector/index.js +5 -0
- package/packages/selector/src/main.vue +588 -0
- package/packages/selector-panel/index.js +5 -0
- package/packages/selector-panel/src/main.vue +968 -0
- package/packages/selector-panel/src/selection.vue +142 -0
- package/packages/selector-panel/src/tree.vue +129 -0
- package/packages/sizer/index.js +5 -0
- package/packages/sizer/src/main.vue +254 -0
- package/packages/steps/index.js +5 -0
- package/packages/steps/src/main.vue +175 -0
- package/packages/switch/index.js +5 -0
- package/packages/switch/src/main.vue +154 -0
- package/packages/table-form/index.js +5 -0
- package/packages/tabs/index.js +5 -0
- package/packages/tabs/src/main.vue +749 -0
- package/packages/tabs-panel/index.js +5 -0
- package/packages/tabs-panel/src/main.vue +18 -0
- package/packages/theme-chalk/README.md +33 -0
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +0 -0
- package/packages/theme-chalk/lib/card.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +1 -0
- package/packages/theme-chalk/lib/clients.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -0
- package/packages/theme-chalk/lib/data-table.css +1 -0
- package/packages/theme-chalk/lib/date-picker.css +1 -0
- package/packages/theme-chalk/lib/dialog.css +1 -0
- package/packages/theme-chalk/lib/enterprise.css +1 -0
- package/packages/theme-chalk/lib/error-page.css +1 -0
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +1 -0
- package/packages/theme-chalk/lib/handle-user.css +1 -0
- package/packages/theme-chalk/lib/handler.css +1 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +1 -0
- package/packages/theme-chalk/lib/label.css +1 -0
- package/packages/theme-chalk/lib/login.css +1 -0
- package/packages/theme-chalk/lib/main.css +1 -0
- package/packages/theme-chalk/lib/mainComp.css +0 -0
- package/packages/theme-chalk/lib/menu.css +1 -0
- package/packages/theme-chalk/lib/nav.css +1 -0
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +1 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/player.css +1 -0
- package/packages/theme-chalk/lib/qr-code.css +1 -0
- package/packages/theme-chalk/lib/radio-group.css +1 -0
- package/packages/theme-chalk/lib/radio.css +1 -0
- package/packages/theme-chalk/lib/select-ganged.css +1 -0
- package/packages/theme-chalk/lib/select.css +0 -0
- package/packages/theme-chalk/lib/selector-panel.css +1 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -0
- package/packages/theme-chalk/lib/steps.css +1 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +1 -0
- package/packages/theme-chalk/lib/tips.css +1 -0
- package/packages/theme-chalk/lib/toolbar.css +1 -0
- package/packages/theme-chalk/lib/tree-group.css +1 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/upload.css +1 -0
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +1 -0
- package/packages/theme-chalk/package.json +35 -0
- package/packages/theme-chalk/src/base.scss +165 -0
- package/packages/theme-chalk/src/button-group.scss +9 -0
- package/packages/theme-chalk/src/button.scss +0 -0
- package/packages/theme-chalk/src/card.scss +55 -0
- package/packages/theme-chalk/src/cascader.scss +0 -0
- package/packages/theme-chalk/src/checkbox-group.scss +8 -0
- package/packages/theme-chalk/src/clients.scss +72 -0
- package/packages/theme-chalk/src/common/var.scss +1516 -0
- package/packages/theme-chalk/src/data-table-form.scss +55 -0
- package/packages/theme-chalk/src/data-table.scss +202 -0
- package/packages/theme-chalk/src/date-picker.scss +8 -0
- package/packages/theme-chalk/src/dialog.scss +52 -0
- package/packages/theme-chalk/src/enterprise.scss +5 -0
- package/packages/theme-chalk/src/error-page.scss +18 -0
- package/packages/theme-chalk/src/flow-chart.scss +0 -0
- package/packages/theme-chalk/src/flow-group.scss +101 -0
- package/packages/theme-chalk/src/flow-list.scss +41 -0
- package/packages/theme-chalk/src/flow.scss +285 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/form.scss +451 -0
- package/packages/theme-chalk/src/handle-user.scss +40 -0
- package/packages/theme-chalk/src/handler.scss +131 -0
- package/packages/theme-chalk/src/icon.scss +1714 -0
- package/packages/theme-chalk/src/index.scss +50 -0
- package/packages/theme-chalk/src/input-number.scss +0 -0
- package/packages/theme-chalk/src/input.scss +3 -0
- package/packages/theme-chalk/src/label.scss +24 -0
- package/packages/theme-chalk/src/login.scss +490 -0
- package/packages/theme-chalk/src/main.scss +483 -0
- package/packages/theme-chalk/src/mainComp.scss +0 -0
- package/packages/theme-chalk/src/menu.scss +201 -0
- package/packages/theme-chalk/src/mixins/color.scss +117 -0
- package/packages/theme-chalk/src/mixins/mixins.scss +25 -0
- package/packages/theme-chalk/src/nav.scss +73 -0
- package/packages/theme-chalk/src/notify.scss +0 -0
- package/packages/theme-chalk/src/page.scss +3 -0
- package/packages/theme-chalk/src/pagination.scss +14 -0
- package/packages/theme-chalk/src/player.scss +9 -0
- package/packages/theme-chalk/src/qr-code.scss +17 -0
- package/packages/theme-chalk/src/radio-group.scss +9 -0
- package/packages/theme-chalk/src/radio.scss +3 -0
- package/packages/theme-chalk/src/select-ganged.scss +9 -0
- package/packages/theme-chalk/src/select.scss +0 -0
- package/packages/theme-chalk/src/selector-panel.scss +203 -0
- package/packages/theme-chalk/src/selector.scss +85 -0
- package/packages/theme-chalk/src/sizer.scss +36 -0
- package/packages/theme-chalk/src/steps.scss +88 -0
- package/packages/theme-chalk/src/switch.scss +3 -0
- package/packages/theme-chalk/src/table-form.scss +1 -0
- package/packages/theme-chalk/src/tabs-panel.scss +0 -0
- package/packages/theme-chalk/src/tabs.scss +91 -0
- package/packages/theme-chalk/src/tips.scss +7 -0
- package/packages/theme-chalk/src/toolbar.scss +121 -0
- package/packages/theme-chalk/src/tree-group.scss +64 -0
- package/packages/theme-chalk/src/tree.scss +140 -0
- package/packages/theme-chalk/src/upload.scss +131 -0
- package/packages/theme-chalk/src/wujie.scss +0 -0
- package/packages/theme-chalk/src/wxlogin.scss +3 -0
- package/packages/tips/index.js +5 -0
- package/packages/tips/src/main.vue +126 -0
- package/packages/toolbar/index.js +5 -0
- package/packages/toolbar/src/main.vue +377 -0
- package/packages/tree/index.js +5 -0
- package/packages/tree/src/main.vue +636 -0
- package/packages/tree-group/index.js +5 -0
- package/packages/tree-group/src/main.vue +435 -0
- package/packages/upload/index.js +5 -0
- package/packages/upload/src/main.vue +1033 -0
- package/packages/upload/src/picture.js +15 -0
- package/packages/wujie/index.js +5 -0
- package/packages/wujie/src/main.vue +137 -0
- package/packages/wxlogin/index.js +5 -0
- package/packages/wxlogin/src/main.vue +110 -0
- package/src/config/api.js +211 -0
- package/src/index.js +167 -0
- package/src/utils/bus.js +3 -0
- package/src/utils/date-util.js +312 -0
- package/src/utils/http.js +50 -0
- package/src/utils/rules.js +18 -0
- package/src/utils/store.js +21 -0
- package/src/utils/util.js +2105 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-loading="loading"
|
|
4
|
+
class="es-flow-form"
|
|
5
|
+
element-loading-text="加载中..."
|
|
6
|
+
element-loading-spinner="el-icon-loading"
|
|
7
|
+
element-loading-background="rgba(255, 255,255, 0.8)"
|
|
8
|
+
>
|
|
9
|
+
<el-form
|
|
10
|
+
ref="nextNode"
|
|
11
|
+
:model="nextNode"
|
|
12
|
+
class="demo-dynamic"
|
|
13
|
+
label-width="110px"
|
|
14
|
+
>
|
|
15
|
+
<el-form-item prop="nodeName" label="当前节点">
|
|
16
|
+
<el-input v-model="nodeName" disabled />
|
|
17
|
+
</el-form-item>
|
|
18
|
+
<el-form-item
|
|
19
|
+
prop="nextNodeId"
|
|
20
|
+
label="驳回对象"
|
|
21
|
+
:rules="[
|
|
22
|
+
{ required: true, message: `请选择驳回对象`, trigger: 'blur' }
|
|
23
|
+
]"
|
|
24
|
+
>
|
|
25
|
+
<el-radio-group v-model="nextNode.nextNodeId">
|
|
26
|
+
<el-radio v-for="item of rejectObj" :key="item.id" :label="item.id">
|
|
27
|
+
{{ item.name }}
|
|
28
|
+
</el-radio>
|
|
29
|
+
</el-radio-group>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
<el-form-item
|
|
32
|
+
prop="noticeType"
|
|
33
|
+
label="通知方式"
|
|
34
|
+
:rules="[
|
|
35
|
+
{ required: true, message: `请选择通知方式`, trigger: 'blur' }
|
|
36
|
+
]"
|
|
37
|
+
>
|
|
38
|
+
<el-checkbox-group v-model="nextNode.noticeType">
|
|
39
|
+
<el-checkbox
|
|
40
|
+
v-for="item of nextNode.noticeList"
|
|
41
|
+
:key="item.cciValue"
|
|
42
|
+
:label="item.cciValue"
|
|
43
|
+
>
|
|
44
|
+
{{ item.shortName }}
|
|
45
|
+
</el-checkbox>
|
|
46
|
+
</el-checkbox-group>
|
|
47
|
+
</el-form-item>
|
|
48
|
+
<el-form-item
|
|
49
|
+
v-show="nextNode.noticeType.length != 0"
|
|
50
|
+
prop="nextNode"
|
|
51
|
+
label="通知消息"
|
|
52
|
+
>
|
|
53
|
+
<!-- <span>{{ newsInfo }}</span> -->
|
|
54
|
+
<es-input
|
|
55
|
+
type="textarea"
|
|
56
|
+
:rows="4"
|
|
57
|
+
placeholder="请输入内容"
|
|
58
|
+
v-model="newsInformation"
|
|
59
|
+
>
|
|
60
|
+
</es-input>
|
|
61
|
+
</el-form-item>
|
|
62
|
+
<el-form-item>
|
|
63
|
+
<div style="text-align:right">
|
|
64
|
+
<el-button
|
|
65
|
+
type="primary"
|
|
66
|
+
size="small"
|
|
67
|
+
@click="subProcess('nextNode')"
|
|
68
|
+
>
|
|
69
|
+
提交
|
|
70
|
+
</el-button>
|
|
71
|
+
</div>
|
|
72
|
+
</el-form-item>
|
|
73
|
+
</el-form>
|
|
74
|
+
<!-- <el-dialog title="下步处理对象" :visible.sync="show" width="60%">
|
|
75
|
+
<div>123</div>
|
|
76
|
+
</el-dialog> -->
|
|
77
|
+
</div>
|
|
78
|
+
</template>
|
|
79
|
+
|
|
80
|
+
<script>
|
|
81
|
+
import {
|
|
82
|
+
findSysCodes,
|
|
83
|
+
taskRejectHtml,
|
|
84
|
+
findCodeValues,
|
|
85
|
+
toTaskRejectHtml
|
|
86
|
+
} from 'eoss-ui/src/config/api';
|
|
87
|
+
import util from 'eoss-ui/src/utils/util';
|
|
88
|
+
export default {
|
|
89
|
+
name: 'ProcessReject',
|
|
90
|
+
props: {
|
|
91
|
+
pendingId: { type: String, default: '' },
|
|
92
|
+
newsInfo: { type: String, default: '' },
|
|
93
|
+
showReject: { type: Boolean },
|
|
94
|
+
option: { type: String, default: '' }
|
|
95
|
+
},
|
|
96
|
+
data() {
|
|
97
|
+
return {
|
|
98
|
+
loading: false,
|
|
99
|
+
nextNode: {
|
|
100
|
+
noticeType: [],
|
|
101
|
+
opinion: undefined, // 审批意见
|
|
102
|
+
notificationMsg: undefined, // 系统消息
|
|
103
|
+
nextNodeId: undefined,
|
|
104
|
+
noticeList: []
|
|
105
|
+
},
|
|
106
|
+
showMsg: false, // 判断是否显示系统消息
|
|
107
|
+
showOpinion: false, // 常用意见弹框
|
|
108
|
+
nodeName: '',
|
|
109
|
+
isOpinionRequired: 0, // 意见是否必填
|
|
110
|
+
rejectObj: [], //
|
|
111
|
+
isHiddenOftenOpinion: undefined, // 是否隐藏常用意见
|
|
112
|
+
nodeDefaultRejectOpinion: undefined, // 默认提交意见
|
|
113
|
+
checked: true, // 系统消息是否选中
|
|
114
|
+
defaultNotificationType: undefined, // /默认选中通知类型
|
|
115
|
+
newsInformation: '' //系统消息
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
watch: {
|
|
119
|
+
showReject(val) {
|
|
120
|
+
if (val) {
|
|
121
|
+
this.getProcessReject();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
mounted() {
|
|
126
|
+
this.newsInformation = this.newsInfo;
|
|
127
|
+
this.getProcessReject();
|
|
128
|
+
},
|
|
129
|
+
methods: {
|
|
130
|
+
getNodeType() {
|
|
131
|
+
util
|
|
132
|
+
.ajax({
|
|
133
|
+
url: findCodeValues,
|
|
134
|
+
params: { ccCode: 'notification_type' }
|
|
135
|
+
})
|
|
136
|
+
.then(res => {
|
|
137
|
+
const { status, data } = res;
|
|
138
|
+
if (status === 'success') {
|
|
139
|
+
this.nextNode.noticeList = data;
|
|
140
|
+
}
|
|
141
|
+
})
|
|
142
|
+
.catch(err => {
|
|
143
|
+
this.loading = false;
|
|
144
|
+
if (err.message && err.message !== 'canceled') {
|
|
145
|
+
this.$message.error(err.message);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
},
|
|
149
|
+
// 提交表单
|
|
150
|
+
subProcess(formName) {
|
|
151
|
+
this.$refs[formName].validate(valid => {
|
|
152
|
+
if (valid) {
|
|
153
|
+
if (!this.option && this.isOpinionRequired === 1) {
|
|
154
|
+
this.$message.warning('请选择输入审批意见');
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
this.loading = true;
|
|
158
|
+
let noticeType = this.nextNode.noticeType.join(',');
|
|
159
|
+
let params = {
|
|
160
|
+
pendingId: this.pendingId,
|
|
161
|
+
opinion: this.option, // 审批意见
|
|
162
|
+
notificationMsg: this.newsInformation, // 系统消息
|
|
163
|
+
notificationType: noticeType,
|
|
164
|
+
userId: util.getStorage('userId'),
|
|
165
|
+
nextNodeId: this.nextNode.nextNodeId
|
|
166
|
+
};
|
|
167
|
+
util
|
|
168
|
+
.ajax({ url: taskRejectHtml, method: 'post', data: params })
|
|
169
|
+
.then(res => {
|
|
170
|
+
const { status, message } = res;
|
|
171
|
+
this.loading = false;
|
|
172
|
+
if (status === 'success') {
|
|
173
|
+
this.quit(true);
|
|
174
|
+
this.$message.success('操作成功');
|
|
175
|
+
} else {
|
|
176
|
+
this.$message.error(message || '系统错误,请联系管理员!');
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
.catch(err => {
|
|
180
|
+
this.loading = false;
|
|
181
|
+
if (err.message && err.message !== 'canceled') {
|
|
182
|
+
this.$message.error(err.message);
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
} else {
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
// 取消
|
|
191
|
+
quit(val) {
|
|
192
|
+
this.$emit('cancel', val);
|
|
193
|
+
},
|
|
194
|
+
getFind() {
|
|
195
|
+
util
|
|
196
|
+
.ajax({
|
|
197
|
+
url: findSysCodes
|
|
198
|
+
})
|
|
199
|
+
.then(res => {
|
|
200
|
+
const { status, message } = res;
|
|
201
|
+
if (status === 'success') {
|
|
202
|
+
this.nextNode.noticeType = message.split(',');
|
|
203
|
+
}
|
|
204
|
+
})
|
|
205
|
+
.catch(err => {
|
|
206
|
+
this.loading = false;
|
|
207
|
+
if (err.message && err.message !== 'canceled') {
|
|
208
|
+
this.$message.error(err.message);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
getProcessReject() {
|
|
213
|
+
this.loading = true;
|
|
214
|
+
let params = {
|
|
215
|
+
pendingId: this.pendingId,
|
|
216
|
+
isSinglePage: false,
|
|
217
|
+
opinion: this.option
|
|
218
|
+
};
|
|
219
|
+
util
|
|
220
|
+
.ajax({ url: toTaskRejectHtml, params })
|
|
221
|
+
.then(res => {
|
|
222
|
+
const {
|
|
223
|
+
status,
|
|
224
|
+
message,
|
|
225
|
+
data: { rejectTaskNodes, taskExamine, nodeInfoMap }
|
|
226
|
+
} = res;
|
|
227
|
+
this.loading = false;
|
|
228
|
+
if (status === 'success') {
|
|
229
|
+
this.isOpinionRequired = nodeInfoMap.nodeExtAttr.isOpinionRequired;
|
|
230
|
+
if (!this.isOpinionRequired) {
|
|
231
|
+
this.isOpinionRequired = 0;
|
|
232
|
+
}
|
|
233
|
+
let list = [];
|
|
234
|
+
if (rejectTaskNodes) {
|
|
235
|
+
for (let i in rejectTaskNodes) {
|
|
236
|
+
let obj = {
|
|
237
|
+
id: i,
|
|
238
|
+
name: rejectTaskNodes[i]
|
|
239
|
+
};
|
|
240
|
+
list.push(obj);
|
|
241
|
+
}
|
|
242
|
+
this.nodeName = taskExamine.nodeName;
|
|
243
|
+
this.rejectObj = list;
|
|
244
|
+
this.rejectObj.length != 0 &&
|
|
245
|
+
(this.nextNode.nextNodeId = this.rejectObj[0].id);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
this.$message.error(message || '系统错误,请联系管理员!');
|
|
249
|
+
}
|
|
250
|
+
})
|
|
251
|
+
.catch(err => {
|
|
252
|
+
this.loading = false;
|
|
253
|
+
if (err.message && err.message !== 'canceled') {
|
|
254
|
+
this.$message.error(err.message);
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
this.getFind();
|
|
258
|
+
this.getNodeType();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
</script>
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="select-users">
|
|
3
|
+
<el-radio
|
|
4
|
+
v-model="newNextUser"
|
|
5
|
+
v-for="(item, index) of newRadioList"
|
|
6
|
+
v-show="newRadioList.length > 0 && !newMultiple && newPresetEdit != 0"
|
|
7
|
+
@change="cancelSelectUser(true)"
|
|
8
|
+
:key="index"
|
|
9
|
+
:label="item.id || item.showid"
|
|
10
|
+
>{{ item.name ? item.name : item.showname }}</el-radio
|
|
11
|
+
>
|
|
12
|
+
<el-checkbox-group
|
|
13
|
+
v-model="newNextUser"
|
|
14
|
+
v-show="newRadioList.length > 0 && newMultiple && newPresetEdit != 0"
|
|
15
|
+
@change="cancelSelectUser(true)"
|
|
16
|
+
>
|
|
17
|
+
<el-checkbox
|
|
18
|
+
v-for="(item, index) of newRadioList"
|
|
19
|
+
:key="index"
|
|
20
|
+
:label="item.id || item.showid"
|
|
21
|
+
>{{ item.name ? item.name : item.showname }}</el-checkbox
|
|
22
|
+
>
|
|
23
|
+
</el-checkbox-group>
|
|
24
|
+
<!-- <el-select
|
|
25
|
+
v-model="newNextUser"
|
|
26
|
+
:multiple="newMultiple"
|
|
27
|
+
:class="isCustomUser ? 'es-select-user' : ''"
|
|
28
|
+
filterable
|
|
29
|
+
remote
|
|
30
|
+
reserve-keyword
|
|
31
|
+
placeholder="请输入办理人"
|
|
32
|
+
:remote-method="remoteMethod"
|
|
33
|
+
:loading="searchLoading"
|
|
34
|
+
@change="changeSelectUser"
|
|
35
|
+
>
|
|
36
|
+
<el-option
|
|
37
|
+
v-for="(item,index) in newOptions"
|
|
38
|
+
:key="index"
|
|
39
|
+
:label="item.name"
|
|
40
|
+
:value="item.id"
|
|
41
|
+
>
|
|
42
|
+
</el-option>
|
|
43
|
+
</el-select> -->
|
|
44
|
+
<!-- class="select-user-icon el-button--primary" -->
|
|
45
|
+
<div style="position:relative">
|
|
46
|
+
<!-- <es-selector
|
|
47
|
+
v-if="isChange"
|
|
48
|
+
v-model="newSelectUserList"
|
|
49
|
+
value-type="string"
|
|
50
|
+
:types="types"
|
|
51
|
+
:tabs="tabs"
|
|
52
|
+
:title="title"
|
|
53
|
+
:mix="mix"
|
|
54
|
+
:multiple="newMultiple"
|
|
55
|
+
@confirm="getSelectUser"
|
|
56
|
+
@cancel="cancelSelectUser"
|
|
57
|
+
:param="newParams"
|
|
58
|
+
></es-selector> -->
|
|
59
|
+
<el-input v-if="disabled" :readonly="disabled" v-model="onlyName" />
|
|
60
|
+
<es-selector
|
|
61
|
+
v-else-if="!disabled && isChange"
|
|
62
|
+
v-model="newSelectUserList"
|
|
63
|
+
value-type="string"
|
|
64
|
+
:types="types"
|
|
65
|
+
:tabs="tabs"
|
|
66
|
+
:title="title"
|
|
67
|
+
:mix="mix"
|
|
68
|
+
:disabled="!isCustomUser"
|
|
69
|
+
:filterable="Boolean(isCustomUser)"
|
|
70
|
+
:class="isCustomUser ? '' : 'no-icon'"
|
|
71
|
+
:multiple="newMultiple"
|
|
72
|
+
@cancel="cancelSelectUser"
|
|
73
|
+
@change="getSelectUser"
|
|
74
|
+
:param="newParams"
|
|
75
|
+
></es-selector>
|
|
76
|
+
<!-- :action="url" -->
|
|
77
|
+
<!-- :where="{type:'user',a:'1'}" -->
|
|
78
|
+
<!-- @confirm="getSelectUser" -->
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<script>
|
|
84
|
+
import util from 'eoss-ui/src/utils/util.js';
|
|
85
|
+
import { handleInfo } from 'eoss-ui/src/config/api';
|
|
86
|
+
export default {
|
|
87
|
+
name: 'SelectUser',
|
|
88
|
+
props: {
|
|
89
|
+
mix: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
92
|
+
},
|
|
93
|
+
tabs: {
|
|
94
|
+
type: Object
|
|
95
|
+
},
|
|
96
|
+
nextUser: {
|
|
97
|
+
default: () => []
|
|
98
|
+
},
|
|
99
|
+
radioList: {
|
|
100
|
+
type: Array,
|
|
101
|
+
default: () => []
|
|
102
|
+
},
|
|
103
|
+
multiple: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: false
|
|
106
|
+
},
|
|
107
|
+
isCustomUser: { type: Number, default: 1 },
|
|
108
|
+
options: {
|
|
109
|
+
type: Array,
|
|
110
|
+
default: () => []
|
|
111
|
+
},
|
|
112
|
+
selectUserList: {
|
|
113
|
+
type: Array,
|
|
114
|
+
default: () => []
|
|
115
|
+
},
|
|
116
|
+
types: {
|
|
117
|
+
type: Array,
|
|
118
|
+
default: () => ['employee']
|
|
119
|
+
},
|
|
120
|
+
params: {
|
|
121
|
+
type: Object,
|
|
122
|
+
default: () => {}
|
|
123
|
+
},
|
|
124
|
+
showUser: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
127
|
+
},
|
|
128
|
+
presetEdit: {
|
|
129
|
+
type: Number,
|
|
130
|
+
default: 0
|
|
131
|
+
},
|
|
132
|
+
title: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: '下步处理对象'
|
|
135
|
+
},
|
|
136
|
+
onlyName: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: ''
|
|
139
|
+
},
|
|
140
|
+
isDefSelectedObj: {
|
|
141
|
+
type: Number,
|
|
142
|
+
default: 0
|
|
143
|
+
},
|
|
144
|
+
where: {
|
|
145
|
+
type: Object,
|
|
146
|
+
default: () => {}
|
|
147
|
+
},
|
|
148
|
+
disabled: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
default: false
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
data() {
|
|
154
|
+
return {
|
|
155
|
+
searchLoading: false,
|
|
156
|
+
newNextUser: [],
|
|
157
|
+
newOptions: [],
|
|
158
|
+
newSelectUserList: [],
|
|
159
|
+
url: handleInfo,
|
|
160
|
+
newCheckboxList: [],
|
|
161
|
+
newPresetEdit: 0,
|
|
162
|
+
newMultiple: false,
|
|
163
|
+
newIsDefSelectedObj: 0,
|
|
164
|
+
isChange: true,
|
|
165
|
+
newParams: {
|
|
166
|
+
// filid: 'all', //选择范围(my:本单位/ "" or all:全部)
|
|
167
|
+
// selectmix: 'true1',
|
|
168
|
+
// deptid: '' //指定部门(my:本部门)
|
|
169
|
+
},
|
|
170
|
+
newRadioList: []
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
watch: {
|
|
174
|
+
newPresetEdit(val) {
|
|
175
|
+
this.isChange = false;
|
|
176
|
+
setTimeout(() => (this.isChange = true), 0);
|
|
177
|
+
},
|
|
178
|
+
isDefSelectedObj: {
|
|
179
|
+
handler(val) {
|
|
180
|
+
this.newIsDefSelectedObj = val;
|
|
181
|
+
},
|
|
182
|
+
deep: true,
|
|
183
|
+
immediate: true
|
|
184
|
+
},
|
|
185
|
+
params: {
|
|
186
|
+
handler(val) {
|
|
187
|
+
this.newParams = val;
|
|
188
|
+
},
|
|
189
|
+
deep: true,
|
|
190
|
+
immediate: true
|
|
191
|
+
},
|
|
192
|
+
selectUserList: {
|
|
193
|
+
handler(val) {
|
|
194
|
+
this.newSelectUserList = val;
|
|
195
|
+
},
|
|
196
|
+
deep: true,
|
|
197
|
+
immediate: true
|
|
198
|
+
},
|
|
199
|
+
nextUser: {
|
|
200
|
+
handler(val) {
|
|
201
|
+
this.newNextUser = val;
|
|
202
|
+
},
|
|
203
|
+
deep: true,
|
|
204
|
+
immediate: true
|
|
205
|
+
},
|
|
206
|
+
radioList: {
|
|
207
|
+
handler(val) {
|
|
208
|
+
this.newRadioList = val;
|
|
209
|
+
},
|
|
210
|
+
deep: true,
|
|
211
|
+
immediate: true
|
|
212
|
+
},
|
|
213
|
+
options: {
|
|
214
|
+
handler(val) {
|
|
215
|
+
this.newOptions = val;
|
|
216
|
+
},
|
|
217
|
+
deep: true,
|
|
218
|
+
immediate: true
|
|
219
|
+
},
|
|
220
|
+
presetEdit: {
|
|
221
|
+
handler(val) {
|
|
222
|
+
this.newPresetEdit = val;
|
|
223
|
+
},
|
|
224
|
+
deep: true,
|
|
225
|
+
immediate: true
|
|
226
|
+
},
|
|
227
|
+
multiple: {
|
|
228
|
+
handler(val) {
|
|
229
|
+
this.newMultiple = val;
|
|
230
|
+
},
|
|
231
|
+
deep: true,
|
|
232
|
+
immediate: true
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
|
|
236
|
+
methods: {
|
|
237
|
+
changeInfo(data) {
|
|
238
|
+
const {
|
|
239
|
+
selectUserList,
|
|
240
|
+
nextUser,
|
|
241
|
+
radioList,
|
|
242
|
+
options,
|
|
243
|
+
multiple,
|
|
244
|
+
presetEdit,
|
|
245
|
+
isDefSelectedObj,
|
|
246
|
+
params
|
|
247
|
+
} = data;
|
|
248
|
+
this.newSelectUserList = selectUserList;
|
|
249
|
+
this.newNextUser = nextUser;
|
|
250
|
+
this.newRadioList = radioList;
|
|
251
|
+
this.newOptions = options;
|
|
252
|
+
this.newMultiple = multiple;
|
|
253
|
+
this.newParams = params;
|
|
254
|
+
this.newPresetEdit = presetEdit;
|
|
255
|
+
this.newIsDefSelectedObj = isDefSelectedObj;
|
|
256
|
+
},
|
|
257
|
+
remoteMethod(query) {
|
|
258
|
+
if (query !== '') {
|
|
259
|
+
this.searchLoading = true;
|
|
260
|
+
util
|
|
261
|
+
.ajax({
|
|
262
|
+
url: handleInfo,
|
|
263
|
+
params: { searchKey: query, query, type: 'user' }
|
|
264
|
+
})
|
|
265
|
+
.then(res => {
|
|
266
|
+
const { status, data } = res;
|
|
267
|
+
this.searchLoading = false;
|
|
268
|
+
if (status === 'success') {
|
|
269
|
+
this.newOptions = data;
|
|
270
|
+
}
|
|
271
|
+
})
|
|
272
|
+
.catch(err => {
|
|
273
|
+
this.searchLoading = false;
|
|
274
|
+
if (err.message && err.message !== 'canceled') {
|
|
275
|
+
this.$message.error(err.message);
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
} else {
|
|
279
|
+
this.newOptions = [];
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
changeSelectUser(val) {
|
|
283
|
+
this.newSelectUserList = [];
|
|
284
|
+
if (this.newMultiple) {
|
|
285
|
+
val.map(item => {
|
|
286
|
+
this.newOptions.map(items => {
|
|
287
|
+
if (item === items.id) {
|
|
288
|
+
this.newSelectUserList.push({
|
|
289
|
+
showname: items.name,
|
|
290
|
+
showid: items.id
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
} else {
|
|
296
|
+
this.newOptions.map(item => {
|
|
297
|
+
if (item.id === val) {
|
|
298
|
+
this.newSelectUserList.push({
|
|
299
|
+
showname: item.name,
|
|
300
|
+
showid: item.id
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
this.$emit('change', {
|
|
306
|
+
nextUser: this.newNextUser,
|
|
307
|
+
options: this.newOptions
|
|
308
|
+
});
|
|
309
|
+
},
|
|
310
|
+
getMixList() {
|
|
311
|
+
let mixObj = this.newSelectUserList.reduce((obj, name) => {
|
|
312
|
+
if (name.stype in obj) {
|
|
313
|
+
obj[name.stype] += `,${name.showid}`;
|
|
314
|
+
} else {
|
|
315
|
+
obj[name.stype] = name.showid;
|
|
316
|
+
}
|
|
317
|
+
return obj;
|
|
318
|
+
}, {});
|
|
319
|
+
let mixArr = [];
|
|
320
|
+
for (let key in mixObj) {
|
|
321
|
+
mixArr.push(`${key}-${mixObj[key]}`);
|
|
322
|
+
}
|
|
323
|
+
return mixArr;
|
|
324
|
+
},
|
|
325
|
+
getSelectUser(val) {
|
|
326
|
+
this.newOptions = [];
|
|
327
|
+
let data = {};
|
|
328
|
+
if (this.mix) data = this.getMixList();
|
|
329
|
+
if (this.newMultiple) {
|
|
330
|
+
this.newNextUser = [];
|
|
331
|
+
|
|
332
|
+
this.newSelectUserList.map(item => {
|
|
333
|
+
if (this.mix) {
|
|
334
|
+
this.newOptions.push({
|
|
335
|
+
...item,
|
|
336
|
+
id: item.showid,
|
|
337
|
+
name: util.getTypeName(item.stype) + item.showname
|
|
338
|
+
});
|
|
339
|
+
} else {
|
|
340
|
+
this.newOptions.push({
|
|
341
|
+
...item,
|
|
342
|
+
id: item.showid,
|
|
343
|
+
name: item.showname
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
this.newNextUser.push(item.showid);
|
|
347
|
+
});
|
|
348
|
+
} else {
|
|
349
|
+
if (this.newSelectUserList.length > 0) {
|
|
350
|
+
const { showid, showname } = this.newSelectUserList[0];
|
|
351
|
+
this.newOptions.push({
|
|
352
|
+
...this.newSelectUserList[0],
|
|
353
|
+
id: showid,
|
|
354
|
+
name: showname
|
|
355
|
+
});
|
|
356
|
+
this.newNextUser = showid;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
this.$emit('change', {
|
|
360
|
+
nextUser: this.newNextUser,
|
|
361
|
+
mixList: data,
|
|
362
|
+
options: this.newOptions
|
|
363
|
+
});
|
|
364
|
+
},
|
|
365
|
+
cancelSelectUser(type) {
|
|
366
|
+
if (type) this.newOptions = this.newRadioList;
|
|
367
|
+
let copy = JSON.stringify(this.newSelectUserList);
|
|
368
|
+
let oldUserList = JSON.parse(copy);
|
|
369
|
+
copy = [];
|
|
370
|
+
this.newSelectUserList = [];
|
|
371
|
+
let data = {};
|
|
372
|
+
if (this.mix) data = this.getMixList();
|
|
373
|
+
if (this.newMultiple) {
|
|
374
|
+
this.newNextUser.map(item => {
|
|
375
|
+
// if (this.mix) {
|
|
376
|
+
// this.newOptions.push({
|
|
377
|
+
// id: item.showid,
|
|
378
|
+
// ...item,
|
|
379
|
+
// name: util.getTypeName(item.stype) + item.showname
|
|
380
|
+
// });
|
|
381
|
+
// } else {
|
|
382
|
+
// this.newOptions.push({...item, id: item.showid, name: item.showname });
|
|
383
|
+
// }
|
|
384
|
+
this.newOptions.map(items => {
|
|
385
|
+
oldUserList.map(val => {
|
|
386
|
+
if (items.showid != val.showid && val.showid == item) {
|
|
387
|
+
this.newSelectUserList.push({
|
|
388
|
+
...val
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
if (item === items.showid) {
|
|
393
|
+
this.newSelectUserList.push({
|
|
394
|
+
...items
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
var obj = {};
|
|
400
|
+
this.newSelectUserList = this.newSelectUserList.reduce(function(
|
|
401
|
+
item,
|
|
402
|
+
next
|
|
403
|
+
) {
|
|
404
|
+
obj[next.showid] ? '' : (obj[next.showid] = true && item.push(next));
|
|
405
|
+
return item;
|
|
406
|
+
},
|
|
407
|
+
[]);
|
|
408
|
+
} else {
|
|
409
|
+
this.newOptions.map(item => {
|
|
410
|
+
if (item.showid === this.newNextUser) {
|
|
411
|
+
this.newSelectUserList.push({
|
|
412
|
+
...item
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
this.$emit('change', {
|
|
418
|
+
nextUser: this.newNextUser,
|
|
419
|
+
mixList: data,
|
|
420
|
+
options: this.newOptions
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
</script>
|