@@ -146,100 +146,6 @@ const getDefinitionList = async () => {
146
146
processDefinitionList .value = await DefinitionApi .getProcessDefinitionList ({
147
147
suspensionState: 1
148
148
})
149
- /* 测试数据 */
150
- // processDefinitionList.value = [
151
- // {
152
- // id: 'business:3:fab1dceb-95be-11ef-8c7d-00a6181404fd',
153
- // version: 3,
154
- // name: '商务管理',
155
- // key: 'business',
156
- // icon: 'https://picsum.photos/200?r=2',
157
- // description: '商务管理',
158
- // category: 'test0',
159
- // categoryName: '分类0',
160
- // formType: 10,
161
- // formId: 27,
162
- // formName: null,
163
- // formConf:
164
- // '{"form":{"inline":false,"hideRequiredAsterisk":false,"labelPosition":"right","size":"default","labelWidth":"100px"},"resetBtn":{"show":false,"innerText":"重置"},"submitBtn":{"show":false,"innerText":"提交"}}',
165
- // formFields: [
166
- // '{"type":"input","field":"F1yrm2sosxgeabc","title":"请假原因","info":"","$required":false,"props":{"type":"text","placeholder":"请输入123"},"_fc_id":"id_Fhrbm2sosxgeacc","name":"ref_Festm2sosxgeadc","display":true,"hidden":false,"_fc_drag_tag":"input"}',
167
- // '{"type":"radio","field":"F9r3m2sp1b34aec","title":"请假类型","info":"","$required":false,"props":{"_optionType":2},"_fc_id":"id_F4nwm2sp1b34afc","name":"ref_Fkodm2sp1b34agc","display":true,"hidden":false,"_fc_drag_tag":"radio","options":[{"label":"事假","value":"1"},{"label":"婚假","value":"2"},{"label":"丧假","value":"3"}]}',
168
- // '{"type":"datePicker","field":"Finom2tsbwbpadc","title":"请假时间段","info":"","$required":false,"props":{"type":"datetimerange"},"_fc_id":"id_F028m2tsbwbpaec","name":"ref_F0okm2tsbwbpafc","display":true,"hidden":false,"_fc_drag_tag":"dateRange"}'
169
- // ],
170
- // formCustomCreatePath: '',
171
- // formCustomViewPath: '',
172
- // suspensionState: 1,
173
- // deploymentTime: null,
174
- // bpmnXml: null,
175
- // startUserSelectTasks: null
176
- // },
177
- // {
178
- // id: 'oa_leave:1:6e5ac269-5f87-11ef-bdb6-00a6181404fd',
179
- // version: 1,
180
- // name: 'oa_leave',
181
- // key: 'oa_leave',
182
- // icon: null,
183
- // description: 'oa_leave',
184
- // category: 'etst',
185
- // categoryName: '分类1',
186
- // formType: 20,
187
- // formId: null,
188
- // formName: null,
189
- // formConf: null,
190
- // formFields: null,
191
- // formCustomCreatePath: '/bpm/oa/leave/create',
192
- // formCustomViewPath: '/bpm/oa/leave/detail',
193
- // suspensionState: 1,
194
- // deploymentTime: null,
195
- // bpmnXml: null,
196
- // startUserSelectTasks: null
197
- // },
198
- // {
199
- // id: 'oa_leave:3:c9d06889-94fd-11ef-bf08-00a6181404fd',
200
- // version: 3,
201
- // name: '请假流程',
202
- // key: 'oa_leave',
203
- // icon: 'https://picsum.photos/200?r=1',
204
- // description: '请假流程',
205
- // category: 'test3',
206
- // categoryName: '分类3',
207
- // formType: 10,
208
- // formId: 27,
209
- // formName: null,
210
- // formConf:
211
- // '{"form":{"inline":false,"hideRequiredAsterisk":false,"labelPosition":"right","size":"default","labelWidth":"100px"},"resetBtn":{"show":false,"innerText":"重置"},"submitBtn":{"show":true,"innerText":"提交"}}',
212
- // formFields: [
213
- // '{"type":"input","field":"F1yrm2sosxgeabc","title":"请假原因","info":"","$required":false,"props":{"type":"text","placeholder":"请输入123"},"_fc_id":"id_Fhrbm2sosxgeacc","name":"ref_Festm2sosxgeadc","display":true,"hidden":false,"_fc_drag_tag":"input"}',
214
- // '{"type":"radio","field":"F9r3m2sp1b34aec","title":"请假类型","info":"","$required":false,"props":{"_optionType":2},"_fc_id":"id_F4nwm2sp1b34afc","name":"ref_Fkodm2sp1b34agc","display":true,"hidden":false,"_fc_drag_tag":"radio","options":[{"label":"事假","value":"1"},{"label":"婚假","value":"2"},{"label":"丧假","value":"3"}]}'
215
- // ],
216
- // formCustomCreatePath: 'bpm/oa/leave/create',
217
- // formCustomViewPath: 'bpm/oa/leave/create',
218
- // suspensionState: 1,
219
- // deploymentTime: null,
220
- // bpmnXml: null,
221
- // startUserSelectTasks: null
222
- // }
223
- // ]
224
- /* 测试数据 */
225
- // processDefinitionList.value = [
226
- // ...processDefinitionList.value,
227
- // ...processDefinitionList.value,
228
- // ...processDefinitionList.value,
229
- // ...processDefinitionList.value,
230
- // ...processDefinitionList.value,
231
- // ...processDefinitionList.value,
232
- // ...processDefinitionList.value,
233
- // ...processDefinitionList.value,
234
- // ...processDefinitionList.value,
235
- // ...processDefinitionList.value,
236
- // ...processDefinitionList.value,
237
- // ...processDefinitionList.value,
238
- // ...processDefinitionList.value,
239
- // ...processDefinitionList.value,
240
- // ...processDefinitionList.value,
241
- // ...processDefinitionList.value
242
- // ]
243
149
// 初始化过滤列表为全部流程定义
244
150
filteredProcessDefinitionList .value = processDefinitionList .value
245
151
} finally {
0 commit comments