From 77ec79eb5e483a59157dff9b4fd75159e2fa132e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 17 四月 2020 14:48:43 +0800
Subject: [PATCH] 2020-04-17

---
 src/templates/subtableconfig/settingform/index.jsx |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/templates/subtableconfig/settingform/index.jsx b/src/templates/subtableconfig/settingform/index.jsx
index 2870677..a84ca75 100644
--- a/src/templates/subtableconfig/settingform/index.jsx
+++ b/src/templates/subtableconfig/settingform/index.jsx
@@ -2,6 +2,7 @@
 import PropTypes from 'prop-types'
 import { Form, Row, Col, Input, Radio, Select, Tooltip, Icon, notification } from 'antd'
 import { formRule } from '@/utils/option.js'
+import Utils from '@/utils/utils.js'
 import './index.scss'
 
 const { TextArea } = Input
@@ -61,6 +62,17 @@
               duration: 10
             })
           } else {
+            let error = Utils.verifySql(values.dataresource)
+
+            if (error) {
+              notification.warning({
+                top: 92,
+                message: '鏁版嵁婧愪腑涓嶅彲浣跨敤' + error,
+                duration: 10
+              })
+              return
+            }
+
             resolve(values)
           }
         } else {

--
Gitblit v1.8.0