eoss-ui 0.8.42 → 0.8.44

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 (82) hide show
  1. package/lib/eoss-ui.common.js +195 -161
  2. package/lib/flow.js +164 -142
  3. package/lib/index.js +1 -1
  4. package/lib/main.js +5 -5
  5. package/lib/upload.js +18 -6
  6. package/package.json +2 -2
  7. package/packages/button-group/src/main.vue +346 -346
  8. package/packages/calogin/src/main.vue +412 -412
  9. package/packages/clients/src/main.vue +151 -151
  10. package/packages/flow/src/component/CustomPreset.vue +326 -326
  11. package/packages/flow/src/component/FileList.vue +97 -97
  12. package/packages/flow/src/component/SendMsg.vue +242 -242
  13. package/packages/flow/src/component/SortFlow.vue +110 -110
  14. package/packages/flow/src/flow.vue +4 -4
  15. package/packages/flow/src/form.vue +123 -123
  16. package/packages/flow/src/freeStartFlow.vue +2902 -2902
  17. package/packages/flow/src/main.vue +6 -5
  18. package/packages/flow/src/processForm.vue +2032 -2032
  19. package/packages/flow/src/processReject.vue +323 -323
  20. package/packages/flow/src/table.vue +58 -58
  21. package/packages/form/src/table.vue +1512 -1512
  22. package/packages/icon/src/main.vue +104 -104
  23. package/packages/login/src/resetPassword.vue +557 -557
  24. package/packages/main/src/public/online.vue +89 -89
  25. package/packages/main/src/public/search.vue +464 -464
  26. package/packages/main/src/public/settings.vue +273 -273
  27. package/packages/main/src/simplicity/apps.vue +388 -388
  28. package/packages/main/src/simplicity/avatar.vue +82 -82
  29. package/packages/main/src/simplicity/handler.vue +158 -158
  30. package/packages/main/src/simplicity/menu-list.vue +135 -135
  31. package/packages/main/src/simplicity/message.vue +293 -293
  32. package/packages/main/src/simplicity/notice.vue +222 -222
  33. package/packages/main/src/simplicity/sub-menu.vue +276 -276
  34. package/packages/main/src/simplicity/user.vue +259 -259
  35. package/packages/main/src/simplicityTop/apps.vue +388 -388
  36. package/packages/main/src/simplicityTop/avatar.vue +82 -82
  37. package/packages/main/src/simplicityTop/handler.vue +215 -215
  38. package/packages/main/src/simplicityTop/lists.vue +84 -84
  39. package/packages/main/src/simplicityTop/menu-list.vue +135 -135
  40. package/packages/main/src/simplicityTop/message.vue +293 -293
  41. package/packages/main/src/simplicityTop/notice.vue +222 -222
  42. package/packages/main/src/simplicityTop/router-page.vue +45 -45
  43. package/packages/main/src/simplicityTop/sub-menu.vue +274 -274
  44. package/packages/main/src/simplicityTop/user.vue +259 -259
  45. package/packages/nav/src/main.vue +351 -351
  46. package/packages/selector-panel/src/selection.vue +174 -174
  47. package/packages/switch/src/main.vue +170 -170
  48. package/packages/theme-chalk/src/data-table.scss +297 -297
  49. package/packages/theme-chalk/src/handler.scss +148 -148
  50. package/packages/theme-chalk/src/icon.scss +3452 -3452
  51. package/packages/theme-chalk/src/login.scss +1006 -1006
  52. package/packages/theme-chalk/src/main.scss +664 -664
  53. package/packages/theme-chalk/src/menu.scss +224 -224
  54. package/packages/theme-chalk/src/simplicity-top.scss +1845 -1845
  55. package/packages/theme-chalk/src/simplicity.scss +1403 -1403
  56. package/packages/theme-chalk/src/upload.scss +172 -172
  57. package/packages/tips/src/main.vue +141 -141
  58. package/packages/upload/src/main.vue +13 -1
  59. package/packages/wujie/src/main.vue +146 -146
  60. package/src/index.js +166 -166
  61. package/src/utils/rules.js +18 -18
  62. package/packages/.DS_Store +0 -0
  63. package/packages/calogin/.DS_Store +0 -0
  64. package/packages/date-picker/.DS_Store +0 -0
  65. package/packages/date-picker/src/.DS_Store +0 -0
  66. package/packages/dialog/.DS_Store +0 -0
  67. package/packages/flow/.DS_Store +0 -0
  68. package/packages/flow/src/.DS_Store +0 -0
  69. package/packages/flow-list/.DS_Store +0 -0
  70. package/packages/form/.DS_Store +0 -0
  71. package/packages/icon/.DS_Store +0 -0
  72. package/packages/login/.DS_Store +0 -0
  73. package/packages/main/.DS_Store +0 -0
  74. package/packages/main/src/.DS_Store +0 -0
  75. package/packages/menu/.DS_Store +0 -0
  76. package/packages/select/.DS_Store +0 -0
  77. package/packages/selector/.DS_Store +0 -0
  78. package/packages/selector-panel/.DS_Store +0 -0
  79. package/packages/theme-chalk/src/.DS_Store +0 -0
  80. package/packages/upload/.DS_Store +0 -0
  81. package/src/.DS_Store +0 -0
  82. package/src/utils/.DS_Store +0 -0
@@ -1,323 +1,323 @@
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="100px"
14
- label-align="left"
15
- >
16
- <div :style="`max-height: 290px; overflow-y: ${hideBtn?'unset' : 'auto'}; margin-bottom: 10px`">
17
- <el-form-item prop="nodeName" label="当前节点`">
18
- <el-input v-model="nodeName" disabled />
19
- </el-form-item>
20
- <el-form-item
21
- prop="nextNodeId"
22
- label="驳回对象"
23
- :rules="[
24
- { required: true, message: `请选择驳回对象`, trigger: 'blur' }
25
- ]"
26
- >
27
- <el-radio-group
28
- v-model="nextNode.nextNodeId"
29
- v-if="rejectObj.length != 0"
30
- >
31
- <el-radio v-for="item of rejectObj" :key="item.id" :label="item.id">
32
- {{ item.name }}
33
- </el-radio>
34
- </el-radio-group>
35
- <span v-else>暂无可驳回节点及对象</span>
36
- </el-form-item>
37
- <!-- :rules="[
38
- { required: false, message: `请选择通知方式`, trigger: 'blur' }
39
- ]" -->
40
- <el-form-item
41
- prop="noticeType"
42
- label="通知方式"
43
- v-show="nextNode.noticeList.length != 0 && rejectObj.length != 0 && !hideMessage"
44
- >
45
- <el-checkbox-group v-model="nextNode.noticeType">
46
- <el-checkbox
47
- v-for="item of nextNode.noticeList"
48
- :key="item.cciValue"
49
- :label="item.cciValue"
50
- :disabled="
51
- readOnlyNotificationType
52
- ? readOnlyNotificationType.indexOf(item.cciValue) != -1
53
- : false
54
- "
55
- >
56
- {{ item.shortName }}
57
- </el-checkbox>
58
- </el-checkbox-group>
59
- </el-form-item>
60
- <el-form-item
61
- v-show="nextNode.noticeType.length != 0"
62
- prop="nextNode"
63
- label="通知消息"
64
- >
65
- <!-- <span>{{ newsInfo }}</span> -->
66
- <es-input
67
- type="textarea"
68
- :rows="4"
69
- placeholder="请输入内容"
70
- v-model="newsInformation"
71
- :readonly="notificationMessageReadOnly"
72
- >
73
- </es-input>
74
- </el-form-item>
75
- </div>
76
- <!-- size="small" -->
77
- <el-form-item v-if="!hideBtn">
78
- <div style="text-align: right">
79
- <el-button
80
- :type="rejectObj.length == 0 ? '' : 'primary'"
81
- @click="subProcess('nextNode', rejectObj.length == 0)"
82
- >
83
- {{ rejectObj.length == 0 ? '取消' : '提交' }}
84
- </el-button>
85
- </div>
86
- </el-form-item>
87
- </el-form>
88
- <!-- <el-dialog title="下步处理对象" :visible.sync="show" width="60%">
89
- <div>123</div>
90
- </el-dialog> -->
91
- </div>
92
- </template>
93
-
94
- <script>
95
- import {
96
- findSysCodes,
97
- taskRejectHtml,
98
- findCodeValues,
99
- toTaskRejectHtml
100
- } from 'eoss-ui/src/config/api';
101
- import util from 'eoss-ui/src/utils/util';
102
- export default {
103
- name: 'ProcessReject',
104
- props: {
105
- pendingId: { type: String, default: '' },
106
- newsInfo: { type: String, default: '' },
107
- showReject: { type: Boolean },
108
- option: { type: String, default: '' },
109
- hideBtn: { type: Boolean, default: false },
110
- simpleTips: { type: Boolean, default: true },
111
- hideMessage: { type: Boolean, default: false },
112
- isCancelSecondConfirmationType: { type: Boolean, default: false }
113
- },
114
- data() {
115
- return {
116
- loading: false,
117
- notificationMessageReadOnly: false,
118
- readOnlyNotificationType: '',
119
- nextNode: {
120
- noticeType: [],
121
- opinion: undefined, // 审批意见
122
- notificationMsg: undefined, // 系统消息
123
- nextNodeId: undefined,
124
- noticeList: []
125
- },
126
- showMsg: false, // 判断是否显示系统消息
127
- showOpinion: false, // 常用意见弹框
128
- nodeName: '',
129
- isOpinionRequired: 0, // 意见是否必填
130
- rejectObj: [], //
131
- isHiddenOftenOpinion: undefined, // 是否隐藏常用意见
132
- nodeDefaultRejectOpinion: undefined, // 默认提交意见
133
- checked: true, // 系统消息是否选中
134
- defaultNotificationType: undefined, // /默认选中通知类型
135
- newsInformation: '' //系统消息
136
- };
137
- },
138
- watch: {
139
- showReject(val) {
140
- if (val) {
141
- this.getProcessReject();
142
- }
143
- }
144
- },
145
- mounted() {
146
- this.newsInformation = this.newsInfo;
147
- this.getNodeType();
148
- this.getProcessReject();
149
- },
150
- methods: {
151
- getNodeType() {
152
- util
153
- .ajax({
154
- url: findCodeValues,
155
- params: {
156
- ccCode: 'notification_type',
157
- userId: util.getStorage('userId'),
158
- pendingId: this.pendingId
159
- }
160
- })
161
- .then((res) => {
162
- const { status, data } = res;
163
- if (status === 'success') {
164
- this.nextNode.noticeList = data;
165
- }
166
- this.getFind();
167
- })
168
- .catch((err) => {
169
- this.loading = false;
170
- if (err.message && err.message !== 'canceled') {
171
- this.$message.error(err.message);
172
- }
173
- });
174
- },
175
- // 提交表单
176
- subProcess(formName, isNoObj) {
177
- if (isNoObj) {
178
- this.quit(false);
179
- return;
180
- }
181
- if (this.isCancelSecondConfirmationType) {
182
- this.$confirm('确认提交吗?', '提示', {
183
- confirmButtonText: '确定',
184
- cancelButtonText: '取消',
185
- type: 'warning'
186
- }).then(() => {
187
- this.saveProcess(formName);
188
- }).catch(() => {})
189
- }else{
190
- this.saveProcess(formName);
191
- }
192
- },
193
- saveProcess(formName) {
194
- this.$refs[formName].validate((valid) => {
195
- if (valid) {
196
- if (!this.option && this.isOpinionRequired === 1) {
197
- this.$message.warning('请选择输入审批意见');
198
- return;
199
- }
200
- this.loading = true;
201
- let noticeType = this.nextNode.noticeType.join(',');
202
- let params = {
203
- pendingId: this.pendingId,
204
- opinion: this.option, // 审批意见
205
- notificationMsg: this.newsInformation, // 系统消息
206
- notificationType: noticeType,
207
- userId: util.getStorage('userId'),
208
- nextNodeId: this.nextNode.nextNodeId
209
- };
210
- util
211
- .ajax({ url: taskRejectHtml, method: 'post', data: params })
212
- .then((res) => {
213
- const { status, message } = res;
214
- this.loading = false;
215
- if (status === 'success') {
216
- this.quit(true);
217
- this.simpleTips && this.$message.success('操作成功');
218
- } else {
219
- this.$message.error(message || '系统错误,请联系管理员!');
220
- this.quit(false);
221
- }
222
- })
223
- .catch((err) => {
224
- this.loading = false;
225
- if (err.message && err.message !== 'canceled') {
226
- this.$message.error(err.message);
227
- }
228
- });
229
- } else {
230
- return false;
231
- }
232
- });
233
- },
234
- // 取消
235
- quit(val) {
236
- this.$emit('cancel', val);
237
- },
238
- getFind() {
239
- util
240
- .ajax({
241
- url: findSysCodes
242
- })
243
- .then((res) => {
244
- const { status, message } = res;
245
- if (status === 'success') {
246
- if(this.hideMessage) return;
247
- this.nextNode.noticeType = message.split(',');
248
- let arr = [];
249
- this.nextNode.noticeList.map((item) => {
250
- this.nextNode.noticeType.map((x) => {
251
- if (x == item.cciValue) {
252
- arr.push(x);
253
- }
254
- });
255
- });
256
- this.nextNode.noticeType = arr;
257
- }
258
- })
259
- .catch((err) => {
260
- this.loading = false;
261
- if (err.message && err.message !== 'canceled') {
262
- this.$message.error(err.message);
263
- }
264
- });
265
- },
266
- getProcessReject() {
267
- this.loading = true;
268
- let params = {
269
- pendingId: this.pendingId,
270
- isSinglePage: false,
271
- opinion: this.option
272
- };
273
- util
274
- .ajax({ url: toTaskRejectHtml, params })
275
- .then((res) => {
276
- this.loading = false;
277
- if (res.status === 'success') {
278
- const {
279
- data: {
280
- rejectTaskNodes,
281
- taskExamine,
282
- nodeInfoMap,
283
- notificationMessageReadOnly,
284
- readOnlyNotificationType
285
- }
286
- } = res;
287
- this.isOpinionRequired = nodeInfoMap.nodeExtAttr.isOpinionRequired;
288
- this.readOnlyNotificationType = readOnlyNotificationType;
289
- this.notificationMessageReadOnly =
290
- notificationMessageReadOnly == 'true';
291
- if (!this.isOpinionRequired) {
292
- this.isOpinionRequired = 0;
293
- }
294
- let list = [];
295
- if (rejectTaskNodes) {
296
- for (let i in rejectTaskNodes) {
297
- let obj = {
298
- id: i,
299
- name: rejectTaskNodes[i]
300
- };
301
- list.push(obj);
302
- }
303
- this.nodeName = taskExamine.nodeName;
304
- this.rejectObj = list;
305
- this.rejectObj.length != 0 &&
306
- (this.nextNode.nextNodeId = this.rejectObj[0].id);
307
- }
308
- } else {
309
- this.$message.error(res.message || '系统错误,请联系管理员!');
310
- this.quit(false);
311
- }
312
- })
313
- .catch((err) => {
314
- this.loading = false;
315
- if (err.message && err.message !== 'canceled') {
316
- this.$message.error(err.message);
317
- }
318
- });
319
-
320
- }
321
- }
322
- };
323
- </script>
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="100px"
14
+ label-align="left"
15
+ >
16
+ <div :style="`max-height: 290px; overflow-y: ${hideBtn?'unset' : 'auto'}; margin-bottom: 10px`">
17
+ <el-form-item prop="nodeName" label="当前节点`">
18
+ <el-input v-model="nodeName" disabled />
19
+ </el-form-item>
20
+ <el-form-item
21
+ prop="nextNodeId"
22
+ label="驳回对象"
23
+ :rules="[
24
+ { required: true, message: `请选择驳回对象`, trigger: 'blur' }
25
+ ]"
26
+ >
27
+ <el-radio-group
28
+ v-model="nextNode.nextNodeId"
29
+ v-if="rejectObj.length != 0"
30
+ >
31
+ <el-radio v-for="item of rejectObj" :key="item.id" :label="item.id">
32
+ {{ item.name }}
33
+ </el-radio>
34
+ </el-radio-group>
35
+ <span v-else>暂无可驳回节点及对象</span>
36
+ </el-form-item>
37
+ <!-- :rules="[
38
+ { required: false, message: `请选择通知方式`, trigger: 'blur' }
39
+ ]" -->
40
+ <el-form-item
41
+ prop="noticeType"
42
+ label="通知方式"
43
+ v-show="nextNode.noticeList.length != 0 && rejectObj.length != 0 && !hideMessage"
44
+ >
45
+ <el-checkbox-group v-model="nextNode.noticeType">
46
+ <el-checkbox
47
+ v-for="item of nextNode.noticeList"
48
+ :key="item.cciValue"
49
+ :label="item.cciValue"
50
+ :disabled="
51
+ readOnlyNotificationType
52
+ ? readOnlyNotificationType.indexOf(item.cciValue) != -1
53
+ : false
54
+ "
55
+ >
56
+ {{ item.shortName }}
57
+ </el-checkbox>
58
+ </el-checkbox-group>
59
+ </el-form-item>
60
+ <el-form-item
61
+ v-show="nextNode.noticeType.length != 0"
62
+ prop="nextNode"
63
+ label="通知消息"
64
+ >
65
+ <!-- <span>{{ newsInfo }}</span> -->
66
+ <es-input
67
+ type="textarea"
68
+ :rows="4"
69
+ placeholder="请输入内容"
70
+ v-model="newsInformation"
71
+ :readonly="notificationMessageReadOnly"
72
+ >
73
+ </es-input>
74
+ </el-form-item>
75
+ </div>
76
+ <!-- size="small" -->
77
+ <el-form-item v-if="!hideBtn">
78
+ <div style="text-align: right">
79
+ <el-button
80
+ :type="rejectObj.length == 0 ? '' : 'primary'"
81
+ @click="subProcess('nextNode', rejectObj.length == 0)"
82
+ >
83
+ {{ rejectObj.length == 0 ? '取消' : '提交' }}
84
+ </el-button>
85
+ </div>
86
+ </el-form-item>
87
+ </el-form>
88
+ <!-- <el-dialog title="下步处理对象" :visible.sync="show" width="60%">
89
+ <div>123</div>
90
+ </el-dialog> -->
91
+ </div>
92
+ </template>
93
+
94
+ <script>
95
+ import {
96
+ findSysCodes,
97
+ taskRejectHtml,
98
+ findCodeValues,
99
+ toTaskRejectHtml
100
+ } from 'eoss-ui/src/config/api';
101
+ import util from 'eoss-ui/src/utils/util';
102
+ export default {
103
+ name: 'ProcessReject',
104
+ props: {
105
+ pendingId: { type: String, default: '' },
106
+ newsInfo: { type: String, default: '' },
107
+ showReject: { type: Boolean },
108
+ option: { type: String, default: '' },
109
+ hideBtn: { type: Boolean, default: false },
110
+ simpleTips: { type: Boolean, default: true },
111
+ hideMessage: { type: Boolean, default: false },
112
+ isCancelSecondConfirmationType: { type: Boolean, default: false }
113
+ },
114
+ data() {
115
+ return {
116
+ loading: false,
117
+ notificationMessageReadOnly: false,
118
+ readOnlyNotificationType: '',
119
+ nextNode: {
120
+ noticeType: [],
121
+ opinion: undefined, // 审批意见
122
+ notificationMsg: undefined, // 系统消息
123
+ nextNodeId: undefined,
124
+ noticeList: []
125
+ },
126
+ showMsg: false, // 判断是否显示系统消息
127
+ showOpinion: false, // 常用意见弹框
128
+ nodeName: '',
129
+ isOpinionRequired: 0, // 意见是否必填
130
+ rejectObj: [], //
131
+ isHiddenOftenOpinion: undefined, // 是否隐藏常用意见
132
+ nodeDefaultRejectOpinion: undefined, // 默认提交意见
133
+ checked: true, // 系统消息是否选中
134
+ defaultNotificationType: undefined, // /默认选中通知类型
135
+ newsInformation: '' //系统消息
136
+ };
137
+ },
138
+ watch: {
139
+ showReject(val) {
140
+ if (val) {
141
+ this.getProcessReject();
142
+ }
143
+ }
144
+ },
145
+ mounted() {
146
+ this.newsInformation = this.newsInfo;
147
+ this.getNodeType();
148
+ this.getProcessReject();
149
+ },
150
+ methods: {
151
+ getNodeType() {
152
+ util
153
+ .ajax({
154
+ url: findCodeValues,
155
+ params: {
156
+ ccCode: 'notification_type',
157
+ userId: util.getStorage('userId'),
158
+ pendingId: this.pendingId
159
+ }
160
+ })
161
+ .then((res) => {
162
+ const { status, data } = res;
163
+ if (status === 'success') {
164
+ this.nextNode.noticeList = data;
165
+ }
166
+ this.getFind();
167
+ })
168
+ .catch((err) => {
169
+ this.loading = false;
170
+ if (err.message && err.message !== 'canceled') {
171
+ this.$message.error(err.message);
172
+ }
173
+ });
174
+ },
175
+ // 提交表单
176
+ subProcess(formName, isNoObj) {
177
+ if (isNoObj) {
178
+ this.quit(false);
179
+ return;
180
+ }
181
+ if (this.isCancelSecondConfirmationType) {
182
+ this.$confirm('确认提交吗?', '提示', {
183
+ confirmButtonText: '确定',
184
+ cancelButtonText: '取消',
185
+ type: 'warning'
186
+ }).then(() => {
187
+ this.saveProcess(formName);
188
+ }).catch(() => {})
189
+ }else{
190
+ this.saveProcess(formName);
191
+ }
192
+ },
193
+ saveProcess(formName) {
194
+ this.$refs[formName].validate((valid) => {
195
+ if (valid) {
196
+ if (!this.option && this.isOpinionRequired === 1) {
197
+ this.$message.warning('请选择输入审批意见');
198
+ return;
199
+ }
200
+ this.loading = true;
201
+ let noticeType = this.nextNode.noticeType.join(',');
202
+ let params = {
203
+ pendingId: this.pendingId,
204
+ opinion: this.option, // 审批意见
205
+ notificationMsg: this.newsInformation, // 系统消息
206
+ notificationType: noticeType,
207
+ userId: util.getStorage('userId'),
208
+ nextNodeId: this.nextNode.nextNodeId
209
+ };
210
+ util
211
+ .ajax({ url: taskRejectHtml, method: 'post', data: params })
212
+ .then((res) => {
213
+ const { status, message } = res;
214
+ this.loading = false;
215
+ if (status === 'success') {
216
+ this.quit(true);
217
+ this.simpleTips && this.$message.success('操作成功');
218
+ } else {
219
+ this.$message.error(message || '系统错误,请联系管理员!');
220
+ this.quit(false);
221
+ }
222
+ })
223
+ .catch((err) => {
224
+ this.loading = false;
225
+ if (err.message && err.message !== 'canceled') {
226
+ this.$message.error(err.message);
227
+ }
228
+ });
229
+ } else {
230
+ return false;
231
+ }
232
+ });
233
+ },
234
+ // 取消
235
+ quit(val) {
236
+ this.$emit('cancel', val);
237
+ },
238
+ getFind() {
239
+ util
240
+ .ajax({
241
+ url: findSysCodes
242
+ })
243
+ .then((res) => {
244
+ const { status, message } = res;
245
+ if (status === 'success') {
246
+ if(this.hideMessage) return;
247
+ this.nextNode.noticeType = message.split(',');
248
+ let arr = [];
249
+ this.nextNode.noticeList.map((item) => {
250
+ this.nextNode.noticeType.map((x) => {
251
+ if (x == item.cciValue) {
252
+ arr.push(x);
253
+ }
254
+ });
255
+ });
256
+ this.nextNode.noticeType = arr;
257
+ }
258
+ })
259
+ .catch((err) => {
260
+ this.loading = false;
261
+ if (err.message && err.message !== 'canceled') {
262
+ this.$message.error(err.message);
263
+ }
264
+ });
265
+ },
266
+ getProcessReject() {
267
+ this.loading = true;
268
+ let params = {
269
+ pendingId: this.pendingId,
270
+ isSinglePage: false,
271
+ opinion: this.option
272
+ };
273
+ util
274
+ .ajax({ url: toTaskRejectHtml, params })
275
+ .then((res) => {
276
+ this.loading = false;
277
+ if (res.status === 'success') {
278
+ const {
279
+ data: {
280
+ rejectTaskNodes,
281
+ taskExamine,
282
+ nodeInfoMap,
283
+ notificationMessageReadOnly,
284
+ readOnlyNotificationType
285
+ }
286
+ } = res;
287
+ this.isOpinionRequired = nodeInfoMap.nodeExtAttr.isOpinionRequired;
288
+ this.readOnlyNotificationType = readOnlyNotificationType;
289
+ this.notificationMessageReadOnly =
290
+ notificationMessageReadOnly == 'true';
291
+ if (!this.isOpinionRequired) {
292
+ this.isOpinionRequired = 0;
293
+ }
294
+ let list = [];
295
+ if (rejectTaskNodes) {
296
+ for (let i in rejectTaskNodes) {
297
+ let obj = {
298
+ id: i,
299
+ name: rejectTaskNodes[i]
300
+ };
301
+ list.push(obj);
302
+ }
303
+ this.nodeName = taskExamine.nodeName;
304
+ this.rejectObj = list;
305
+ this.rejectObj.length != 0 &&
306
+ (this.nextNode.nextNodeId = this.rejectObj[0].id);
307
+ }
308
+ } else {
309
+ this.$message.error(res.message || '系统错误,请联系管理员!');
310
+ this.quit(false);
311
+ }
312
+ })
313
+ .catch((err) => {
314
+ this.loading = false;
315
+ if (err.message && err.message !== 'canceled') {
316
+ this.$message.error(err.message);
317
+ }
318
+ });
319
+
320
+ }
321
+ }
322
+ };
323
+ </script>