eoss 0.1.0-alpha.21 → 0.1.0-alpha.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/account-login.js +129 -129
- package/lib/alert.js +2 -2
- package/lib/aside.js +2 -2
- package/lib/autocomplete.js +216 -216
- package/lib/avatar.js +2 -2
- package/lib/backtop.js +2 -2
- package/lib/badge.js +2 -2
- package/lib/breadcrumb.js +2 -2
- package/lib/ca-login.js +6 -6
- package/lib/calendar.js +2 -2
- package/lib/card.js +2 -2
- package/lib/carousel-item.js +21 -21
- package/lib/carousel.js +16 -16
- package/lib/cascader-panel.js +6 -6
- package/lib/cascader.js +230 -230
- package/lib/checkbox-group.js +138 -138
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +423 -410
- package/lib/collapse.js +426 -412
- package/lib/color-picker.js +23 -23
- package/lib/container.js +2 -2
- package/lib/cron.js +2 -2
- package/lib/data-table.js +123 -123
- package/lib/date-picker.js +233 -233
- package/lib/dialog.js +8 -8
- package/lib/divider.js +2 -2
- package/lib/drawer.js +4 -4
- package/lib/dropdown-item.js +2 -2
- package/lib/dropdown-menu.js +6 -6
- package/lib/dropdown.js +13 -13
- package/lib/email-login.js +124 -124
- package/lib/empty.js +2 -2
- package/lib/eoss.common.js +21948 -21788
- package/lib/flip.js +2 -2
- package/lib/flow-group.js +251 -251
- package/lib/flow.js +15934 -18947
- package/lib/flows.js +9195 -0
- package/lib/footer.js +2 -2
- package/lib/form-item.js +28 -17
- package/lib/form.js +426 -412
- package/lib/header.js +2 -2
- package/lib/icon.js +128 -128
- package/lib/icons.js +2 -2
- package/lib/image-viewer.js +6 -6
- package/lib/image.js +2 -2
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +2 -2
- package/lib/input.js +4 -4
- package/lib/link.js +2 -2
- package/lib/loading.js +4 -4
- package/lib/login.js +190 -156
- package/lib/lowcode.js +562 -272
- package/lib/main.js +348 -282
- package/lib/marquee.js +6 -6
- package/lib/menu.js +209 -209
- package/lib/message-box.js +8 -8
- package/lib/message.js +8 -8
- package/lib/notification.js +8 -8
- package/lib/option-group.js +2 -2
- package/lib/option.js +4 -4
- package/lib/page-header.js +2 -2
- package/lib/pagination.js +6 -6
- package/lib/phone-login.js +124 -124
- package/lib/popconfirm.js +2 -2
- package/lib/popover.js +209 -209
- package/lib/progress.js +2 -2
- package/lib/qr-code.js +2 -2
- package/lib/qrcode-login.js +123 -123
- package/lib/radio-group.js +121 -121
- package/lib/rate.js +4 -4
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +6 -6
- package/lib/select.js +470 -457
- package/lib/selector-panel.js +141 -141
- package/lib/selector.js +130 -130
- package/lib/step.js +426 -412
- package/lib/steps.js +6 -6
- package/lib/submenu.js +4 -4
- package/lib/switch.js +4 -4
- package/lib/tab-pane.js +2 -2
- package/lib/table-column.js +6 -6
- package/lib/table.js +460 -460
- package/lib/tabs.js +6 -6
- package/lib/tag.js +2 -2
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox-group.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/descriptions-item.css +1 -1
- package/lib/theme-chalk/descriptions.css +1 -1
- package/lib/theme-chalk/empty.css +1 -1
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/flows.css +1 -0
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/lowcode.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/scrollbar.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/selector-panel.css +1 -1
- package/lib/theme-chalk/selector.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/timeline-item.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/time-picker.js +8 -8
- package/lib/time-select.js +6 -6
- package/lib/timeline-item.js +2 -2
- package/lib/timeline.js +2 -2
- package/lib/tips.js +124 -124
- package/lib/toolbar.js +4 -4
- package/lib/tooltip.js +209 -209
- package/lib/transfer.js +4 -4
- package/lib/tree-group.js +122 -122
- package/lib/tree.js +121 -121
- package/lib/upload.js +131 -131
- package/package.json +1 -1
- package/packages/carousel/src/carousel.vue +2 -2
- package/packages/flow/index.js +4 -4
- package/packages/flow/src/component/FreeCirculation.vue +4 -3
- package/packages/flow/src/component/SendMsg.vue +2 -4
- package/packages/flow/src/component/opinions.vue +203 -226
- package/packages/flow/src/component/taskUnionExamine.vue +2 -4
- package/packages/flow/src/freeStartFlow.vue +2 -2
- package/packages/flow/src/selectUser.vue +36 -1
- package/packages/flow/src/supervise.vue +4 -2
- package/packages/flows/index.js +7 -0
- package/packages/flows/readme.md +600 -0
- package/packages/flows/src/components/basis.vue +108 -0
- package/packages/flows/src/components/distribute.vue +42 -0
- package/packages/flows/src/components/opinions-file.vue +123 -0
- package/packages/{flow-copy/src/component → flows/src/components}/opinions.vue +227 -204
- package/packages/flows/src/components/quick-actions.vue +64 -0
- package/packages/flows/src/components/reject.vue +83 -0
- package/packages/flows/src/components/start-flow.vue +210 -0
- package/packages/flows/src/flow.vue +510 -0
- package/packages/{flow/src/flow.vue → flows/src/flows.vue} +40 -1327
- package/packages/form/src/form-item.vue +9 -2
- package/packages/form/src/label-wrap.vue +4 -1
- package/packages/login/src/login.vue +61 -32
- package/packages/lowcode/src/lowcode.vue +141 -40
- package/packages/lowcode/src/pages.vue +27 -7
- package/packages/lowcode/src/toolbar.vue +3 -18
- package/packages/main/src/components/pages.vue +97 -65
- package/packages/main/src/components/router-page.vue +0 -2
- package/packages/main/src/gzw.vue +3 -2
- package/packages/main/src/minxs.js +71 -51
- package/packages/select/src/select.vue +5 -0
- package/packages/theme-chalk/src/base.scss +6 -0
- package/packages/theme-chalk/src/checkbox-group.scss +1 -0
- package/packages/theme-chalk/src/common/var.scss +1 -1
- package/packages/theme-chalk/src/flow.scss +7 -4
- package/packages/theme-chalk/src/flows.scss +141 -0
- package/packages/theme-chalk/src/form.scss +1 -1
- package/packages/theme-chalk/src/index.scss +1 -0
- package/packages/theme-chalk/src/input.scss +1 -0
- package/packages/theme-chalk/src/select.scss +3 -1
- package/packages/theme-chalk/src/selector.scss +1 -1
- package/src/index.js +4 -1
- package/packages/flow/src/component/quick-actions.vue +0 -1168
- package/packages/flow-copy/index.js +0 -7
- package/packages/flow-copy/src/component/Circulate.vue +0 -452
- package/packages/flow-copy/src/component/CustomPreset.vue +0 -333
- package/packages/flow-copy/src/component/FreeCirculation.vue +0 -275
- package/packages/flow-copy/src/component/Preset.vue +0 -273
- package/packages/flow-copy/src/component/SendMsg.vue +0 -290
- package/packages/flow-copy/src/component/TimeLimit.vue +0 -205
- package/packages/flow-copy/src/component/taskUnionExamine.vue +0 -818
- package/packages/flow-copy/src/freeStartFlow.vue +0 -2912
- package/packages/flow-copy/src/processForm.vue +0 -1411
- package/packages/flow-copy/src/processReject.vue +0 -319
- package/packages/flow-copy/src/reset.vue +0 -944
- package/packages/flow-copy/src/selectUser.vue +0 -513
- package/packages/flow-copy/src/startTaskRead.vue +0 -723
- package/packages/flow-copy/src/supervise.vue +0 -182
- package/packages/flow-copy/src/table.vue +0 -65
- /package/packages/{flow-copy → flow}/src/component/FileList.vue +0 -0
- /package/packages/{flow-copy → flow}/src/main.vue +0 -0
- /package/packages/{flow-copy/src → flows/src/components}/form.vue +0 -0
- /package/packages/{flow/src/component → flows/src/components}/message.vue +0 -0
- /package/packages/{flow/src/component → flows/src/components}/opinions-list.vue +0 -0
|
@@ -1,112 +1,118 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class="es-flow__opinions--file"
|
|
9
|
-
icon="es-icon-fujian"
|
|
10
|
-
@click="showFileList = true"
|
|
11
|
-
>
|
|
12
|
-
意见附件<span class="es-file-num" v-show="fileNum > 0"
|
|
13
|
-
>({{ fileNum }})</span
|
|
14
|
-
>
|
|
15
|
-
</es-button>
|
|
16
|
-
<es-dialog
|
|
17
|
-
v-show="showFile"
|
|
18
|
-
append-to-body
|
|
19
|
-
title="意见附件"
|
|
20
|
-
:lazy="false"
|
|
21
|
-
:close-on-click-modal="false"
|
|
22
|
-
:visible.sync="showFileList"
|
|
23
|
-
>
|
|
24
|
-
<template slot-scope="scope">
|
|
25
|
-
<opinions-file
|
|
26
|
-
v-if="ownId && code"
|
|
27
|
-
:scale="scope.scale"
|
|
28
|
-
:ownId="ownId"
|
|
29
|
-
:code="code"
|
|
30
|
-
@change="(val) => (fileNum = val)"
|
|
31
|
-
/>
|
|
32
|
-
</template>
|
|
33
|
-
</es-dialog>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="es-flow__opinions--group">
|
|
36
|
-
<es-form-item label="" prop="opinion" last>
|
|
37
|
-
<es-input
|
|
38
|
-
v-model="modelValue"
|
|
39
|
-
type="textarea"
|
|
40
|
-
:class="{ 'is-tips': pendingItemHandleDescription }"
|
|
41
|
-
:rows="rows"
|
|
42
|
-
:disabled="isBanInputOpinion == '1' || disabled"
|
|
43
|
-
:placeholder="pendingItemHandleDescription || '请输入意见'"
|
|
44
|
-
@change="changeOpinion"
|
|
45
|
-
@blur="handleBlur"
|
|
46
|
-
@focus="handleFocus"
|
|
47
|
-
></es-input>
|
|
48
|
-
</es-form-item>
|
|
49
|
-
<div class="es-flow__opinions--group-assist">
|
|
50
|
-
<div
|
|
51
|
-
class="es-flow__opinions--tooltip"
|
|
52
|
-
v-if="pendingItemHandleDescription"
|
|
2
|
+
<div class="commonOpinion">
|
|
3
|
+
<es-form :model="form" :rules="rules" ref="ruleForm" label-width="0">
|
|
4
|
+
<es-form-item label="" prop="value">
|
|
5
|
+
<es-tooltip
|
|
6
|
+
:disabled="tooltipDisabled || !pendingItemHandleDescription"
|
|
7
|
+
placement="top"
|
|
53
8
|
>
|
|
54
|
-
<
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
9
|
+
<div slot="content">{{ pendingItemHandleDescription }}</div>
|
|
10
|
+
<div class="commonOpinion-content-message">
|
|
11
|
+
<es-input
|
|
12
|
+
v-model="form.value"
|
|
13
|
+
:disabled="isBanInputOpinion == '1' || disabled"
|
|
14
|
+
type="textarea"
|
|
15
|
+
clear="inp"
|
|
16
|
+
:placeholder="pendingItemHandleDescription || '请输入意见'"
|
|
17
|
+
@change="changeOpinion"
|
|
18
|
+
@blur="handleBlur"
|
|
19
|
+
@focus="handleFocus"
|
|
20
|
+
:rows="rows"
|
|
21
|
+
></es-input>
|
|
22
|
+
<div class="commonOpinion-content-tag">
|
|
23
|
+
<span>猜您想写:</span>
|
|
24
|
+
<es-tag
|
|
25
|
+
v-for="item in optionList.slice(0, 3)"
|
|
26
|
+
:key="item.content"
|
|
27
|
+
:class="form.value == item.content ? 'active-tag' : ''"
|
|
28
|
+
:style="`${
|
|
29
|
+
form.value == item.content
|
|
30
|
+
? `backgroundColor: rgba(${getColor()} , 0.1)`
|
|
31
|
+
: ''
|
|
32
|
+
}`"
|
|
33
|
+
type="info"
|
|
34
|
+
color="#F5F7FA"
|
|
35
|
+
@click="selectChange(item.content)"
|
|
36
|
+
>{{ item.content }}</es-tag
|
|
37
|
+
>
|
|
63
38
|
</div>
|
|
64
|
-
</
|
|
65
|
-
</
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
39
|
+
</div>
|
|
40
|
+
</es-tooltip>
|
|
41
|
+
</es-form-item>
|
|
42
|
+
</es-form>
|
|
43
|
+
<es-input
|
|
44
|
+
v-model="input3"
|
|
45
|
+
placeholder="请输入内容"
|
|
46
|
+
class="input-with-select"
|
|
47
|
+
>
|
|
48
|
+
<es-select
|
|
49
|
+
v-model="selectValue"
|
|
50
|
+
slot="prepend"
|
|
51
|
+
:disabled="isBanInputOpinion == '1'"
|
|
52
|
+
placeholder="--请选择常用语--"
|
|
53
|
+
@change="selectChange"
|
|
54
|
+
>
|
|
55
|
+
<es-option
|
|
56
|
+
v-for="item in optionList"
|
|
57
|
+
:key="item.id"
|
|
58
|
+
:label="item.content"
|
|
59
|
+
:value="item.content"
|
|
60
|
+
></es-option>
|
|
61
|
+
</es-select>
|
|
62
|
+
<es-button
|
|
63
|
+
:disabled="disabled"
|
|
64
|
+
slot="append"
|
|
65
|
+
icon="es-icon-xiugai"
|
|
66
|
+
@click="dialogVisible = true"
|
|
67
|
+
></es-button>
|
|
68
|
+
</es-input>
|
|
69
|
+
|
|
70
|
+
<!-- 弹窗内容 -->
|
|
71
|
+
<es-dialog
|
|
72
|
+
append-to-body
|
|
73
|
+
title="常用意见设置"
|
|
74
|
+
:close-on-click-modal="false"
|
|
75
|
+
:visible.sync="dialogVisible"
|
|
76
|
+
>
|
|
77
|
+
<div class="commonOpinion-set">
|
|
78
|
+
<div style="text-align: right">
|
|
89
79
|
<es-button
|
|
90
|
-
type="
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
80
|
+
type="primary"
|
|
81
|
+
size="small"
|
|
82
|
+
@click="
|
|
83
|
+
() => {
|
|
84
|
+
addVisible = true;
|
|
85
|
+
(FormData.sep = optionList.length + 1),
|
|
86
|
+
(FormData.content = ''),
|
|
87
|
+
(FormData.id = null);
|
|
88
|
+
}
|
|
89
|
+
"
|
|
94
90
|
>
|
|
91
|
+
新增
|
|
95
92
|
</es-button>
|
|
96
|
-
</
|
|
93
|
+
</div>
|
|
94
|
+
<Table
|
|
95
|
+
style="flex: 1; display: flex; flex-direction: column"
|
|
96
|
+
v-if="dialogVisible"
|
|
97
|
+
:data-list="optionList"
|
|
98
|
+
@upDateClick="upDate"
|
|
99
|
+
@delClick="del"
|
|
100
|
+
/>
|
|
97
101
|
</div>
|
|
98
|
-
</
|
|
102
|
+
</es-dialog>
|
|
99
103
|
|
|
100
|
-
<!-- 弹窗内容 -->
|
|
101
104
|
<es-dialog
|
|
102
|
-
|
|
105
|
+
append-to-body
|
|
103
106
|
:close-on-click-modal="false"
|
|
104
|
-
|
|
107
|
+
title="添加常用意见"
|
|
108
|
+
:visible.sync="addVisible"
|
|
109
|
+
v-if="addVisible"
|
|
110
|
+
class="flow-commonOpinion-dialog"
|
|
111
|
+
width="600px"
|
|
112
|
+
height="auto"
|
|
113
|
+
:showScale="false"
|
|
105
114
|
>
|
|
106
|
-
<
|
|
107
|
-
:data.sync="optionList"
|
|
108
|
-
@success="getCommonOpion"
|
|
109
|
-
></opinions-list>
|
|
115
|
+
<ideas :data="FormData" @subMit="submit" />
|
|
110
116
|
</es-dialog>
|
|
111
117
|
</div>
|
|
112
118
|
</template>
|
|
@@ -119,42 +125,38 @@ import {
|
|
|
119
125
|
findSysParam,
|
|
120
126
|
deleteCommonOpion
|
|
121
127
|
} from 'eoss/src/config/api';
|
|
128
|
+
import Table from '../table.vue';
|
|
122
129
|
import ideas from '../form.vue';
|
|
123
|
-
import OpinionsList from './opinions-list.vue';
|
|
124
130
|
import { error, success, loading } from 'eoss/src/utils/util';
|
|
125
131
|
import { ajax } from 'eoss/src/utils/ajax';
|
|
126
132
|
import { getStorage } from 'eoss/src/utils/storage';
|
|
127
133
|
import { getRgb } from 'eoss/src/utils/color.js';
|
|
128
|
-
import OpinionsFile from './opinions-file.vue';
|
|
129
134
|
export default {
|
|
130
135
|
name: 'Opinions',
|
|
131
136
|
components: {
|
|
132
|
-
ideas,
|
|
133
|
-
|
|
134
|
-
|
|
137
|
+
[ideas.name]: ideas,
|
|
138
|
+
[Table.name]: Table
|
|
139
|
+
},
|
|
140
|
+
data() {
|
|
141
|
+
return {
|
|
142
|
+
value: '',
|
|
143
|
+
tooltipDisabled: false,
|
|
144
|
+
form: {
|
|
145
|
+
value: ''
|
|
146
|
+
},
|
|
147
|
+
input3: '',
|
|
148
|
+
selectValue: '',
|
|
149
|
+
optionList: [],
|
|
150
|
+
dialogVisible: false,
|
|
151
|
+
addVisible: false,
|
|
152
|
+
disabled: false,
|
|
153
|
+
FormData: {
|
|
154
|
+
id: null
|
|
155
|
+
},
|
|
156
|
+
loading: null
|
|
157
|
+
};
|
|
135
158
|
},
|
|
136
159
|
props: {
|
|
137
|
-
/**
|
|
138
|
-
* 是否显示意见附件
|
|
139
|
-
*/
|
|
140
|
-
showFile: {
|
|
141
|
-
type: Boolean,
|
|
142
|
-
default: false
|
|
143
|
-
},
|
|
144
|
-
/**
|
|
145
|
-
* 意见附件所属ID
|
|
146
|
-
*/
|
|
147
|
-
ownId: {
|
|
148
|
-
type: String,
|
|
149
|
-
default: ''
|
|
150
|
-
},
|
|
151
|
-
/**
|
|
152
|
-
* 意见附件编码
|
|
153
|
-
*/
|
|
154
|
-
code: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: ''
|
|
157
|
-
},
|
|
158
160
|
/**
|
|
159
161
|
* 是否 禁止输入意见
|
|
160
162
|
*/
|
|
@@ -165,7 +167,10 @@ export default {
|
|
|
165
167
|
/**
|
|
166
168
|
* 审批意见
|
|
167
169
|
*/
|
|
168
|
-
|
|
170
|
+
opinion: {
|
|
171
|
+
type: String,
|
|
172
|
+
default: ''
|
|
173
|
+
},
|
|
169
174
|
pendingItemHandleDescription: {
|
|
170
175
|
type: String,
|
|
171
176
|
default: ''
|
|
@@ -190,61 +195,18 @@ export default {
|
|
|
190
195
|
required: { type: Boolean, default: false }
|
|
191
196
|
},
|
|
192
197
|
computed: {
|
|
193
|
-
modelValue: {
|
|
194
|
-
get() {
|
|
195
|
-
return this.value;
|
|
196
|
-
},
|
|
197
|
-
set(val) {
|
|
198
|
-
this.$emit('input', val);
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
tags() {
|
|
202
|
-
return this.optionList.slice(0, 3);
|
|
203
|
-
},
|
|
204
198
|
rules() {
|
|
205
199
|
return {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
200
|
+
value: [
|
|
201
|
+
{
|
|
202
|
+
required: this.required,
|
|
203
|
+
message: '请输入意见',
|
|
204
|
+
trigger: 'blur'
|
|
205
|
+
}
|
|
206
|
+
]
|
|
209
207
|
};
|
|
210
208
|
}
|
|
211
209
|
},
|
|
212
|
-
data() {
|
|
213
|
-
return {
|
|
214
|
-
fileNum: 0,
|
|
215
|
-
showFileList: false,
|
|
216
|
-
labelContents: [
|
|
217
|
-
{
|
|
218
|
-
contents: 'es-icon-xiugai',
|
|
219
|
-
type: 'icon',
|
|
220
|
-
pointer: true,
|
|
221
|
-
events: {
|
|
222
|
-
click: () => {
|
|
223
|
-
this.openList = true;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
type: 'text',
|
|
229
|
-
contents: '猜您想写:'
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
tooltipDisabled: false,
|
|
233
|
-
form: {
|
|
234
|
-
value: ''
|
|
235
|
-
},
|
|
236
|
-
input3: '',
|
|
237
|
-
selectValue: '',
|
|
238
|
-
optionList: [],
|
|
239
|
-
openList: false,
|
|
240
|
-
addVisible: false,
|
|
241
|
-
disabled: false,
|
|
242
|
-
FormData: {
|
|
243
|
-
id: null
|
|
244
|
-
},
|
|
245
|
-
loading: null
|
|
246
|
-
};
|
|
247
|
-
},
|
|
248
210
|
mounted() {
|
|
249
211
|
this.form.value = this.opinion;
|
|
250
212
|
if (this.nodeFixedOpinionSelectList.length > 0) {
|
|
@@ -261,57 +223,6 @@ export default {
|
|
|
261
223
|
}
|
|
262
224
|
},
|
|
263
225
|
methods: {
|
|
264
|
-
/**
|
|
265
|
-
* getFile
|
|
266
|
-
* @desc:获取附件
|
|
267
|
-
* @date 2022年10月28日
|
|
268
|
-
**/
|
|
269
|
-
getFile() {
|
|
270
|
-
let params = {
|
|
271
|
-
url: getAdjunctFileInfos,
|
|
272
|
-
params: { ownId, code }
|
|
273
|
-
};
|
|
274
|
-
ajax(params)
|
|
275
|
-
.then((res) => {
|
|
276
|
-
const { rCode, results, msg } = res;
|
|
277
|
-
if (rCode == 0) {
|
|
278
|
-
results && (this.fileNum = results.length);
|
|
279
|
-
} else {
|
|
280
|
-
error(msg || '系统错误,请联系管理员!');
|
|
281
|
-
}
|
|
282
|
-
})
|
|
283
|
-
.catch((err) => {});
|
|
284
|
-
},
|
|
285
|
-
/**
|
|
286
|
-
* handleClickTag
|
|
287
|
-
* @desc:点击标签
|
|
288
|
-
* @author liufan
|
|
289
|
-
* @param {String} item 标签值
|
|
290
|
-
* @date 2022年10月28日
|
|
291
|
-
**/
|
|
292
|
-
handleClickTag(item) {
|
|
293
|
-
this.modelValue = item.content;
|
|
294
|
-
},
|
|
295
|
-
/**
|
|
296
|
-
* handleCommand
|
|
297
|
-
* @desc:下拉菜单命令
|
|
298
|
-
* @author liufan
|
|
299
|
-
* @param {String} command 命令值
|
|
300
|
-
* @date 2022年5月25日
|
|
301
|
-
**/
|
|
302
|
-
handleCommand(command) {
|
|
303
|
-
const val = command.content;
|
|
304
|
-
ajax({
|
|
305
|
-
url: findSysParam,
|
|
306
|
-
params: { cpName: 'commonOpinionsSelectType' }
|
|
307
|
-
}).then((res) => {
|
|
308
|
-
if (res.status == 'success') {
|
|
309
|
-
res.data == 2 ? (this.modelValue += val) : (this.modelValue = val);
|
|
310
|
-
} else {
|
|
311
|
-
this.modelValue = val;
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
},
|
|
315
226
|
getColor() {
|
|
316
227
|
return getRgb(getStorage('theme')).join(',');
|
|
317
228
|
},
|
|
@@ -379,6 +290,72 @@ export default {
|
|
|
379
290
|
this.FormData.id = val.id;
|
|
380
291
|
this.addVisible = true;
|
|
381
292
|
},
|
|
293
|
+
/**
|
|
294
|
+
* selectChange
|
|
295
|
+
* @desc:常用语选择
|
|
296
|
+
* @author liufan
|
|
297
|
+
* @param {String} val 选中值
|
|
298
|
+
* @date 2022年5月25日
|
|
299
|
+
**/
|
|
300
|
+
selectChange(val) {
|
|
301
|
+
const that = this;
|
|
302
|
+
ajax({
|
|
303
|
+
url: findSysParam,
|
|
304
|
+
params: { cpName: 'commonOpinionsSelectType' }
|
|
305
|
+
}).then((res) => {
|
|
306
|
+
if (res.status == 'success') {
|
|
307
|
+
res.data == 2
|
|
308
|
+
? (that.form.value = that.form.value + val)
|
|
309
|
+
: (that.form.value = val);
|
|
310
|
+
} else {
|
|
311
|
+
that.form.value = val;
|
|
312
|
+
}
|
|
313
|
+
this.$emit('change', that.form.value);
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* del
|
|
318
|
+
* @desc:删除常用语
|
|
319
|
+
* @author liufan
|
|
320
|
+
* @param {Object} val 删除的数据
|
|
321
|
+
* @date 2022年5月25日
|
|
322
|
+
**/
|
|
323
|
+
del(val) {
|
|
324
|
+
this.$confirm('您确定要删除此信息吗?', '提示', {
|
|
325
|
+
confirmButtonText: '确定',
|
|
326
|
+
cancelButtonText: '取消',
|
|
327
|
+
type: 'warning'
|
|
328
|
+
})
|
|
329
|
+
.then(() => {
|
|
330
|
+
this.loading = loading('删除中');
|
|
331
|
+
ajax({
|
|
332
|
+
url: deleteCommonOpion,
|
|
333
|
+
params: {
|
|
334
|
+
id: val.id
|
|
335
|
+
}
|
|
336
|
+
})
|
|
337
|
+
.then((res) => {
|
|
338
|
+
const { status, message } = res;
|
|
339
|
+
if (status == 'success') {
|
|
340
|
+
this.$message({
|
|
341
|
+
message: '删除成功!',
|
|
342
|
+
type: 'success'
|
|
343
|
+
});
|
|
344
|
+
this.getCommonOpion();
|
|
345
|
+
} else {
|
|
346
|
+
this.$message({
|
|
347
|
+
message: message || '系统错误,请联系管理员!',
|
|
348
|
+
type: 'error'
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
this.loading.close();
|
|
352
|
+
})
|
|
353
|
+
.catch((err) => {
|
|
354
|
+
this.loading.close();
|
|
355
|
+
});
|
|
356
|
+
})
|
|
357
|
+
.catch((e) => {});
|
|
358
|
+
},
|
|
382
359
|
/**
|
|
383
360
|
* submit
|
|
384
361
|
* @desc:新增/编辑意见保存
|
|
@@ -710,11 +710,9 @@ export default {
|
|
|
710
710
|
this.simpleTips &&
|
|
711
711
|
this.$message({
|
|
712
712
|
message: '提交成功',
|
|
713
|
-
type: 'success'
|
|
714
|
-
onClose: () => {
|
|
715
|
-
this.quit(true);
|
|
716
|
-
}
|
|
713
|
+
type: 'success'
|
|
717
714
|
});
|
|
715
|
+
this.quit(true);
|
|
718
716
|
} else {
|
|
719
717
|
this.$message({
|
|
720
718
|
message: message || '系统错误,请联系管理员!',
|
|
@@ -796,8 +796,8 @@ import {
|
|
|
796
796
|
} from 'eoss/src/utils/util';
|
|
797
797
|
import { getStorage } from 'eoss/src/utils/storage';
|
|
798
798
|
export default {
|
|
799
|
-
name: '
|
|
800
|
-
componentName: '
|
|
799
|
+
name: 'EsFreeStartFlow',
|
|
800
|
+
componentName: 'EsFreeStartFlow',
|
|
801
801
|
components: {
|
|
802
802
|
ProcessForm,
|
|
803
803
|
ProcessReject,
|
|
@@ -23,7 +23,41 @@
|
|
|
23
23
|
>{{ item.name ? item.name : item.showname }}</es-checkbox
|
|
24
24
|
>
|
|
25
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" -->
|
|
26
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> -->
|
|
27
61
|
<es-input v-if="disabled" :readonly="disabled" v-model="onlyName" />
|
|
28
62
|
<es-selector
|
|
29
63
|
v-else-if="!disabled && isChange"
|
|
@@ -52,6 +86,7 @@
|
|
|
52
86
|
@change="getSelectUser"
|
|
53
87
|
:param="{ ...newParams, info: classify ? '' : 'no' }"
|
|
54
88
|
:disableds="disableds"
|
|
89
|
+
><i class="es-icon-yonghu"></i
|
|
55
90
|
></es-selector>
|
|
56
91
|
<!-- :action="url" -->
|
|
57
92
|
<!-- :where="{type:'user',a:'1'}" -->
|
|
@@ -127,7 +162,7 @@ export default {
|
|
|
127
162
|
*/
|
|
128
163
|
isCustomUser: { type: Number, default: 1 },
|
|
129
164
|
/**
|
|
130
|
-
*
|
|
165
|
+
*
|
|
131
166
|
*/
|
|
132
167
|
isCurrentNodeForbiddenChangeCandidate: { type: Number, default: 0 },
|
|
133
168
|
options: {
|
|
@@ -133,9 +133,11 @@ export default {
|
|
|
133
133
|
if (res.rCode == 0 || res.status == 'success') {
|
|
134
134
|
this.$message({
|
|
135
135
|
message: '操作成功',
|
|
136
|
-
type: 'success'
|
|
136
|
+
type: 'success',
|
|
137
|
+
onClose: () => {
|
|
138
|
+
this.$parent.$emit('success');
|
|
139
|
+
}
|
|
137
140
|
});
|
|
138
|
-
this.$parent.$emit('success');
|
|
139
141
|
} else {
|
|
140
142
|
this.$message({
|
|
141
143
|
message: res.message || '系统错误,请联系管理员!',
|