Showing
2 changed files
with
11 additions
and
6 deletions
1 | 1 | import { formatToDateTime } from '/@/utils/dateUtil'; |
2 | 2 | import { Number_Operation, String_Operation, Boolean_Operation } from '/@/enums/operationEnum'; |
3 | +import { numberAndNonegativeRule } from '/@/utils/rules'; | |
4 | + | |
3 | 5 | // 生成触发器或执行条件JSON数据 |
4 | 6 | export const genTriggerOrConditionData = (triggerData) => { |
5 | 7 | const { |
... | ... | @@ -244,6 +246,10 @@ export function isType(operationType) { |
244 | 246 | label: '操作值', |
245 | 247 | required: true, |
246 | 248 | component: 'InputNumber', |
249 | + componentProps: { | |
250 | + min: 0, | |
251 | + max: 99999999999, | |
252 | + }, | |
247 | 253 | colProps: { |
248 | 254 | span: 8, |
249 | 255 | }, |
... | ... | @@ -256,7 +262,7 @@ export function isType(operationType) { |
256 | 262 | label: '忽略大小写', |
257 | 263 | component: 'Checkbox', |
258 | 264 | colProps: { |
259 | - span: 6, | |
265 | + span: 4, | |
260 | 266 | }, |
261 | 267 | }, |
262 | 268 | { |
... | ... | @@ -264,22 +270,20 @@ export function isType(operationType) { |
264 | 270 | label: '执行操作', |
265 | 271 | component: 'Select', |
266 | 272 | required: true, |
267 | - | |
268 | 273 | componentProps: { |
269 | 274 | options: operationString, |
270 | 275 | }, |
271 | 276 | colProps: { |
272 | - span: 7, | |
277 | + span: 8, | |
273 | 278 | }, |
274 | 279 | }, |
275 | 280 | { |
276 | 281 | field: 'value', |
277 | 282 | label: '操作值', |
278 | 283 | required: true, |
279 | - | |
280 | 284 | component: 'Input', |
281 | 285 | colProps: { |
282 | - span: 7, | |
286 | + span: 9, | |
283 | 287 | }, |
284 | 288 | }, |
285 | 289 | ]; |
... | ... | @@ -330,7 +334,7 @@ export function isType(operationType) { |
330 | 334 | options: operationNumber_OR_TIME, |
331 | 335 | }, |
332 | 336 | colProps: { |
333 | - span: 7, | |
337 | + span: 8, | |
334 | 338 | }, |
335 | 339 | }, |
336 | 340 | { | ... | ... |