From 6d0137932fcc8f9848123743c1aad5cff8172d8a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 09 二月 2020 13:09:39 +0800
Subject: [PATCH] 2020-02-09

---
 src/templates/tableshare/formconfig.js |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/src/templates/tableshare/formconfig.js b/src/templates/tableshare/formconfig.js
index 8a3bad8..6d8fb02 100644
--- a/src/templates/tableshare/formconfig.js
+++ b/src/templates/tableshare/formconfig.js
@@ -677,6 +677,13 @@
         text: '缁胯壊锛堣儗鏅級'
       }],
       required: false
+    },
+    {
+      type: 'number',
+      key: 'fieldlength',
+      label: Formdict['header.form.field.length'],
+      initVal: card.fieldlength || (card.type === 'text' ? 50 : 512),
+      required: false
     }
   ]
 }
@@ -688,12 +695,17 @@
  */
 export function getModalForm (card, inputfields, subtable = false) {
   let _openType = []
+  let _fieldlength = 50
 
   if (subtable) {
     _openType.push({
       value: 'linkMain',
       text: Formdict['header.form.linkMain']
     })
+  }
+
+  if (card.type === 'textarea' || card.type === 'fileupload') {
+    _fieldlength = 512
   }
 
   return [
@@ -924,6 +936,27 @@
       }]
     },
     {
+      type: 'number',
+      key: 'fieldlength',
+      label: Formdict['header.form.field.length'],
+      initVal: card.fieldlength || _fieldlength,
+      required: false
+    },
+    {
+      type: 'radio',
+      key: 'readin',
+      label: Formdict['header.form.readin'],
+      tooltip: Formdict['header.form.readin.tooltip'],
+      initVal: card.readin || 'true',
+      options: [{
+        value: 'true',
+        text: Formdict['header.form.true']
+      }, {
+        value: 'false',
+        text: Formdict['header.form.false']
+      }]
+    },
+    {
       type: 'multiselect',
       key: 'linkSubField',
       label: Formdict['header.form.linkForm'],

--
Gitblit v1.8.0