Commit 515c281c by zhaochengxiang

数据源管理bug

parent 4e667b43
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { Modal, Checkbox, Row, Col, Divider, Input, Typography, Form, Switch } from 'antd'; import { Modal, Checkbox, Row, Col, Divider, Input, Typography, Form, Switch } from 'antd';
import { showMessage } from '../../../../util';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
const UpdateTaskModal = (props) => { const UpdateTaskModal = (props) => {
...@@ -88,6 +89,11 @@ const UpdateTaskModal = (props) => { ...@@ -88,6 +89,11 @@ const UpdateTaskModal = (props) => {
try { try {
const row = await form.validateFields(); const row = await form.validateFields();
if ((selectedSchemas||[]).length===0) {
showMessage('warn', '请先选中scheme');
return;
}
//深拷贝 //深拷贝
let newTask = JSON.parse(JSON.stringify(taskSettings)); let newTask = JSON.parse(JSON.stringify(taskSettings));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment