216
216
</el-col >
217
217
<el-col :span =" 24" >
218
218
<el-form-item label =" 调用目标" prop =" invokeTarget" >
219
+ <span slot =" label" >
220
+ 调用目标
221
+ <el-tooltip placement =" top" >
222
+ <div slot =" content" >
223
+ 调用示例:func (t *EXEC) ExamplesNoParam(){..} 填写 ExamplesNoParam 即可;
224
+ <br >参数说明:目前不支持带参调用
225
+ </div >
226
+ <i class =" el-icon-question" />
227
+ </el-tooltip >
228
+ </span >
219
229
<el-input
220
230
v-model =" form.invokeTarget"
221
231
placeholder =" 调用目标"
222
232
/>
223
233
</el-form-item >
224
-
225
234
</el-col >
226
235
<el-col :span =" 12" >
227
236
<el-form-item label =" cron表达式" prop =" cronExpression" >
239
248
</el-radio-group >
240
249
</el-form-item >
241
250
</el-col >
251
+ <el-col :span =" 24" >
252
+ <el-form-item label =" 调用类型" prop =" jobType" >
253
+ <el-radio-group v-model =" form.jobType" size =" small" >
254
+ <el-radio-button label =" 1" >接口方式</el-radio-button >
255
+ <el-radio-button label =" 2" >函数【无参】</el-radio-button >
256
+ </el-radio-group >
257
+ </el-form-item >
258
+ </el-col >
259
+
242
260
<el-col :span =" 24" >
243
261
<el-form-item label =" 错误策略" prop =" misfirePolicy" >
244
262
<el-radio-group v-model =" form.misfirePolicy" size =" small" >
@@ -387,6 +405,7 @@ export default {
387
405
invokeTarget: undefined ,
388
406
misfirePolicy: 1 ,
389
407
concurrent: 1 ,
408
+ jobType: 1 ,
390
409
status: 0
391
410
}
392
411
this .resetForm (' form' )
@@ -432,6 +451,7 @@ export default {
432
451
this .form .status = String (this .form .status )
433
452
this .form .misfirePolicy = String (this .form .misfirePolicy )
434
453
this .form .concurrent = String (this .form .concurrent )
454
+ this .form .jobType = String (this .form .jobType )
435
455
this .open = true
436
456
this .title = ' 修改定时任务'
437
457
this .isEdit = true
@@ -446,6 +466,7 @@ export default {
446
466
this .form .status = parseInt (this .form .status )
447
467
this .form .misfirePolicy = parseInt (this .form .misfirePolicy )
448
468
this .form .concurrent = parseInt (this .form .concurrent )
469
+ this .form .jobType = parseInt (this .form .jobType )
449
470
updateSysJob (this .form ).then (response => {
450
471
if (response .code === 200 ) {
451
472
this .msgSuccess (' 修改成功' )
@@ -456,6 +477,10 @@ export default {
456
477
}
457
478
})
458
479
} else {
480
+ this .form .status = parseInt (this .form .status )
481
+ this .form .misfirePolicy = parseInt (this .form .misfirePolicy )
482
+ this .form .concurrent = parseInt (this .form .concurrent )
483
+ this .form .jobType = parseInt (this .form .jobType )
459
484
addSysJob (this .form ).then (response => {
460
485
if (response .code === 200 ) {
461
486
this .msgSuccess (' 新增成功' )
0 commit comments