From cb8c83978177a8d3de769fca12d2aa3642eb0275 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 16 十一月 2021 12:42:32 +0800
Subject: [PATCH] 2021-11-16

---
 src/templates/zshare/formconfig.jsx |   54 ++++++++++++++++++++++++++++--------------------------
 1 files changed, 28 insertions(+), 26 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index b2ece7d..a1c6394 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -314,9 +314,9 @@
     }, {
       value: 'datemonth',
       text: Formdict['model.form.datemonth']
-    }, {
-      value: 'daterange',
-      text: Formdict['model.form.daterange']
+    // }, {
+    //   value: 'daterange',
+    //   text: Formdict['model.form.daterange']
     }]
   } else {
     typeOptions = [{
@@ -734,14 +734,14 @@
     {
       type: 'radio',
       key: 'labelShow',
-      label: '鏄剧ず鍚嶇О',
+      label: '鍚嶇О',
       initVal: card.labelShow || 'true',
       options: [{
         value: 'true',
-        text: Formdict['model.true']
+        text: '鏄剧ず'
       }, {
         value: 'false',
-        text: Formdict['model.false']
+        text: '闅愯棌'
       }]
     },
     {
@@ -2208,9 +2208,8 @@
  * @param {*} tabfields       // 鍙垏鎹㈣〃鍗�
  * @param {*} linkableFields  // 鍙叧鑱旇〃鍗�
  * @param {*} linksupFields   // 涓婄骇琛ㄥ崟
- * @param {*} subtable        // 鏄惁涓哄瓙琛ㄨ〃鍗�
  */
-export function getModalForm (card, inputfields = [], tabfields = [], linkableFields, linksupFields, subtable = false) {
+export function getModalForm (card, inputfields = [], tabfields = [], linkableFields, linksupFields) {
   let appType = sessionStorage.getItem('appType')
   let roleList = sessionStorage.getItem('sysRoles')
   if (roleList) {
@@ -2740,17 +2739,20 @@
       type: 'select',
       key: 'fileType',
       label: '鏄剧ず鏂瑰紡',
-      initVal: card.fileType || (appType === 'mob' ? 'picture-card' : 'text'),
+      initVal: card.fileType || 'text',
       options: [{
         value: 'text',
         text: '鏂囦欢'
-      }, {
+      },
+      {
         value: 'picture',
         text: '鍥炬枃淇℃伅'
-      }, {
+      },
+      {
         value: 'picture-card',
         text: '鍥剧墖鍗�'
-      }]
+      }],
+      forbid: appType === 'mob'
     },
     {
       type: 'number',
@@ -2947,20 +2949,20 @@
         text: 'nvarchar(50)'
       }]
     },
-    {
-      type: 'radio',
-      key: 'mode',
-      label: '妯″紡',
-      initVal: card.mode || 'picker',
-      options: [{
-        value: 'picker',
-        text: '閫夋嫨鍣�'
-      }, {
-        value: 'calendar',
-        text: '鏃ュ巻'
-      }],
-      forbid: appType !== 'mob'
-    },
+    // {
+    //   type: 'radio',
+    //   key: 'mode',
+    //   label: '妯″紡',
+    //   initVal: card.mode || 'picker',
+    //   options: [{
+    //     value: 'picker',
+    //     text: '閫夋嫨鍣�'
+    //   }, {
+    //     value: 'calendar',
+    //     text: '鏃ュ巻'
+    //   }],
+    //   forbid: appType !== 'mob'
+    // },
     {
       type: 'number',
       key: 'span',

--
Gitblit v1.8.0