From fbe8b1adf4b50323b7ea6ad09c810cb3e07a69b9 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 04 二月 2020 11:47:38 +0800
Subject: [PATCH] 2020-02-04

---
 src/templates/formtabconfig/modalform/index.jsx |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/templates/formtabconfig/modalform/index.jsx b/src/templates/formtabconfig/modalform/index.jsx
index 9ed3ea8..f21bf57 100644
--- a/src/templates/formtabconfig/modalform/index.jsx
+++ b/src/templates/formtabconfig/modalform/index.jsx
@@ -39,7 +39,10 @@
     }
 
     if (type === 'select') {
-      _options = [..._options, 'setAll', 'linkSubField']
+      _options = [..._options, 'setAll']
+      if (resourceType === '1') {
+        _options.push('linkSubField')
+      }
     } else if (type === 'link') {          // 鍏宠仈绫诲瀷銆佸鍔犲叧鑱斿瓧娈�
       _options = [..._options, 'setAll', 'linkField']
     } else if (type === 'funcvar') {       // 璁剧疆涓哄嚱鏁板彉閲忔椂锛屼笉闇�瑕佸叾浠栦俊鎭�
@@ -90,7 +93,10 @@
       }
 
       if (value === 'select') {
-        _options = [..._options, 'setAll', 'linkSubField']
+        _options = [..._options, 'setAll']
+        if (this.state.resourceType === '1') {
+          _options.push('linkSubField')
+        }
       } else if (value === 'link') {
         _options = [..._options, 'setAll', 'linkField']
       } else if (value === 'funcvar') {
@@ -142,7 +148,10 @@
       }
 
       if (openType === 'select') {
-        _options = [..._options, 'setAll', 'linkSubField']
+        _options = [..._options, 'setAll']
+        if (value === '1') {
+          _options.push('linkSubField')
+        }
       } else if (openType === 'link') {
         _options = [..._options, 'setAll', 'linkField']
       }

--
Gitblit v1.8.0