Browse Source

java执行命令必填

Leo 2 years ago
parent
commit
debd59a6f8
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/module/workmgmt/component/JobCreate.jsx

+ 9 - 1
src/module/workmgmt/component/JobCreate.jsx

@@ -802,7 +802,15 @@ export default function JobCreate() {
                 </Space>
               </RadioGroup>
             </FormItem>
-            <FormItem label="执行命令" name="execute_command">
+            <FormItem
+              label="执行命令"
+              name="execute_command"
+              rules={[
+                {
+                  required: true,
+                  message: '请输入执行命令',
+                },
+              ]}>
               <Input placeholder="请输入执行命令..." allowClear></Input>
             </FormItem>
             <FormItem {...tailLayout}>