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/zshare/modalform/index.jsx |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/templates/zshare/modalform/index.jsx b/src/templates/zshare/modalform/index.jsx
index e79277d..954cad9 100644
--- a/src/templates/zshare/modalform/index.jsx
+++ b/src/templates/zshare/modalform/index.jsx
@@ -3,6 +3,7 @@
 import { Form, Row, Col, Input, Select, Icon, Radio, notification, InputNumber, Tooltip } from 'antd'
 import { formRule } from '@/utils/option.js'
 import { dateOptions } from '@/utils/option.js'
+import Utils from '@/utils/utils.js'
 import EditTable from '../modaleditable'
 import './index.scss'
 
@@ -541,6 +542,17 @@
             }
           })
 
+          let error = Utils.verifySql(values.dataSource)
+
+          if (error) {
+            notification.warning({
+              top: 92,
+              message: '鏁版嵁婧愪腑涓嶅彲浣跨敤' + error,
+              duration: 10
+            })
+            return
+          }
+
           if (isvalid) {
             resolve(values)
           }

--
Gitblit v1.8.0