From 7ea1c5f53702951fc4df60e969fc67ef5d7af4dd Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 14 一月 2020 10:13:05 +0800
Subject: [PATCH] 2020-01-14

---
 src/templates/comtableconfig/index.jsx |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx
index 89d3e62..564910d 100644
--- a/src/templates/comtableconfig/index.jsx
+++ b/src/templates/comtableconfig/index.jsx
@@ -354,7 +354,7 @@
           type: 'text',
           key: 'label',
           label: this.state.dict['header.form.name'],
-          initVal: card.label,
+          initVal: card.label || '',
           required: true,
           readonly: false
         },
@@ -362,7 +362,7 @@
           type: 'text',
           key: 'field',
           label: this.state.dict['header.form.field'],
-          initVal: card.field,
+          initVal: card.field || '',
           tooltip: '瀛楁鍚嶅彲浠ヤ娇鐢ㄩ�楀彿鍒嗛殧锛岃繘琛屽瀛楁缁煎悎鎼滅储锛屾敞锛氱患鍚堟悳绱粎鍦ㄦ枃鏈被鍨嬫椂鏈夋晥',
           tooltipClass: 'middle',
           required: true,
@@ -612,7 +612,7 @@
           type: 'select',
           key: 'pageTemplate',
           label: this.state.dict['header.form.pageTemplate'],
-          initVal: card.pageTemplate,
+          initVal: card.pageTemplate || '',
           required: true,
           options: []
         },
@@ -641,7 +641,7 @@
           type: 'text',
           key: 'innerFunc',
           label: this.state.dict['header.form.innerFunc'],
-          initVal: card.innerFunc,
+          initVal: card.innerFunc || '',
           tooltip: <div>
             <p>鍐呴儴鎺ュ彛: 鍙嚜瀹氫箟鏁版嵁澶勭悊鍑芥暟锛屽嚱鏁板悕绉伴渶浠ableField}绛夊瓧绗﹀紑濮嬶紱鏈缃椂浼氳皟鐢ㄧ郴缁熷嚱鏁帮紝浣跨敤绯荤粺鍑芥暟闇�瀹屽杽鏁版嵁婧愬強鎿嶄綔绫诲瀷;</p>
             <p>澶栭儴鎺ュ彛: 鍙嚜瀹氫箟鏁版嵁澶勭悊鍑芥暟锛屾彁浜ゆ暟鎹粡杩囧唴閮ㄥ嚱鏁板鐞嗗悗锛屼紶鍏ュ閮ㄦ帴鍙o紝鏈缃椂锛屾暟鎹細鐩存帴浼犲叆澶栭儴鎺ュ彛銆�</p>
@@ -669,7 +669,7 @@
           type: 'text',
           key: 'outerFunc',
           label: this.state.dict['header.form.outerFunc'],
-          initVal: card.outerFunc,
+          initVal: card.outerFunc || '',
           required: false,
           readonly: false
         },
@@ -677,7 +677,7 @@
           type: 'text',
           key: 'interface',
           label: this.state.dict['header.form.interface'],
-          initVal: card.sysInterface === 'true' ? (window.GLOB.mainSystemApi || window.GLOB.subSystemApi) : card.interface,
+          initVal: card.sysInterface === 'true' ? (window.GLOB.mainSystemApi || window.GLOB.subSystemApi) : (card.interface || ''),
           required: true,
           readonly: card.sysInterface === 'true'
         },
@@ -685,7 +685,7 @@
           type: 'text',
           key: 'callbackFunc',
           label: this.state.dict['header.form.callbackFunc'],
-          initVal: card.callbackFunc,
+          initVal: card.callbackFunc || '',
           required: false,
           readonly: false
         },

--
Gitblit v1.8.0