From 822bc67061448c6e3a1eb77d39be4ad2b84b416a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 27 二月 2020 09:36:34 +0800
Subject: [PATCH] 2020-02-27

---
 src/tabviews/tableshare/mutilform/index.jsx |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/tabviews/tableshare/mutilform/index.jsx b/src/tabviews/tableshare/mutilform/index.jsx
index ea7f0d8..7a130e4 100644
--- a/src/tabviews/tableshare/mutilform/index.jsx
+++ b/src/tabviews/tableshare/mutilform/index.jsx
@@ -121,18 +121,21 @@
       return item
     })
 
-    let error = false
-    
     formlist = formlist.map(item => {
       if (item.type === 'link') {
         let supItem = formlist.filter(form => form.field === item.linkField)[0]
 
+        // 鍏宠仈鏄剧ず鍒椾腑鐨勫瓧娈靛�硷紝閫氳繃璇ュ�艰繃婊や笅鎷夐�夐」
         if (!supItem && data && data.hasOwnProperty(item.linkField)) {
           supItem = {initval: data[item.linkField]}
         }
         
         if (!supItem) {
-          error = true
+          notification.warning({
+            top: 92,
+            message: '鏈煡璇㈠埌琛ㄥ崟銆�' + item.label + '銆嬪叧鑱斿瓧娈碉紒',
+            duration: 10
+          })
         } else {
           item.options = item.oriOptions.filter(option => option.parentId === supItem.initval)
         }
@@ -140,14 +143,6 @@
 
       return item
     })
-
-    if (error) {
-      notification.warning({
-        top: 92,
-        message: this.props.dict['main.form.link.error'],
-        duration: 10
-      })
-    }
 
     this.setState({
       readtype: readtype,

--
Gitblit v1.8.0