From 5d48f8215284ca8de312f1c85f78e07215a0faf1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 20 五月 2021 11:07:04 +0800
Subject: [PATCH] 2021-05-20

---
 src/templates/zshare/formconfig.jsx |  194 ++++++++++++++++++++++++++++++++----------------
 1 files changed, 130 insertions(+), 64 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index a3fab62..95f77fc 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -1927,10 +1927,118 @@
     roleList = []
   }
   
-  let _openType = []
+  let _openType = [{
+    value: 'text',
+    text: Formdict['model.form.text']
+  }, {
+    value: 'number',
+    text: Formdict['model.form.number']
+  }, {
+    value: 'select',
+    text: Formdict['model.form.select']
+  }, {
+    value: 'multiselect',
+    text: Formdict['model.form.multiselect']
+  }, {
+    value: 'link',
+    text: Formdict['model.form.link']
+  }, {
+    value: 'switch',
+    text: '寮�鍏�'
+  }, {
+    value: 'checkbox',
+    text: '澶氶�夋'
+  }, {
+    value: 'radio',
+    text: '鍗曢�夋'
+  }, {
+    value: 'checkcard',
+    text: '閫夐」鍗�'
+  }, {
+    value: 'fileupload',
+    text: Formdict['header.form.fileupload']
+  }, {
+    value: 'date',
+    text: Formdict['model.form.dateday']
+  }, {
+    value: 'datemonth',
+    text: Formdict['model.form.datemonth']
+  }, {
+    value: 'datetime',
+    text: Formdict['model.form.datetime']
+  }, {
+    value: 'textarea',
+    text: Formdict['model.form.textarea']
+  }, {
+    value: 'color',
+    text: Formdict['model.form.color']
+  }, {
+    value: 'brafteditor',
+    text: '瀵屾枃鏈�'
+  }, {
+    value: 'funcvar',
+    text: Formdict['header.form.funcvar']
+  }, {
+    value: 'hint',
+    text: '鎻愮ず'
+  }, {
+    value: 'split',
+    text: '鍒嗛殧绾�'
+  }]
+
   let _fieldlength = 50
 
-  if (subtable) {
+  if (appType === 'mob') {
+    _openType = [{
+      value: 'text',
+      text: Formdict['model.form.text']
+    }, {
+      value: 'number',
+      text: Formdict['model.form.number']
+    }, {
+      value: 'select',
+      text: '閫夋嫨鍣�'
+    }, {
+      value: 'link',
+      text: Formdict['model.form.link']
+    }, {
+      value: 'switch',
+      text: '寮�鍏�'
+    }, {
+      value: 'checkbox',
+      text: '澶氶�夋'
+    }, {
+      value: 'radio',
+      text: '鍗曢�夋'
+    }, {
+      value: 'checkcard',
+      text: '閫夐」鍗�'
+    }, {
+      value: 'fileupload',
+      text: Formdict['header.form.fileupload']
+    }, {
+      value: 'date',
+      text: Formdict['model.form.dateday']
+    }, {
+      value: 'datemonth',
+      text: Formdict['model.form.datemonth']
+    }, {
+      value: 'datetime',
+      text: Formdict['model.form.datetime']
+    }, {
+      value: 'textarea',
+      text: Formdict['model.form.textarea']
+    }, {
+      value: 'funcvar',
+      text: Formdict['header.form.funcvar']
+    }, {
+      value: 'hint',
+      text: '鎻愮ず'
+    }, {
+      value: 'split',
+      text: '鍒嗛殧绾�'
+    }]
+  } else if (subtable) {
     _openType.push({
       value: 'linkMain',
       text: Formdict['header.form.linkMain']
@@ -1966,65 +2074,7 @@
       label: Formdict['model.form.type'],
       initVal: card.type,
       required: true,
-      options: [{
-        value: 'text',
-        text: Formdict['model.form.text']
-      }, {
-        value: 'number',
-        text: Formdict['model.form.number']
-      }, {
-        value: 'select',
-        text: Formdict['model.form.select']
-      }, {
-        value: 'multiselect',
-        text: Formdict['model.form.multiselect']
-      }, {
-        value: 'link',
-        text: Formdict['model.form.link']
-      }, {
-        value: 'switch',
-        text: '寮�鍏�'
-      }, {
-        value: 'checkbox',
-        text: '澶氶�夋'
-      }, {
-        value: 'radio',
-        text: '鍗曢�夋'
-      }, {
-        value: 'checkcard',
-        text: '閫夐」鍗�'
-      }, {
-        value: 'fileupload',
-        text: Formdict['header.form.fileupload']
-      }, {
-        value: 'date',
-        text: Formdict['model.form.dateday']
-      }, {
-        value: 'datemonth',
-        text: Formdict['model.form.datemonth']
-      }, {
-        value: 'datetime',
-        text: Formdict['model.form.datetime']
-      }, {
-        value: 'textarea',
-        text: Formdict['model.form.textarea']
-      }, {
-        value: 'color',
-        text: Formdict['model.form.color']
-      }, {
-        value: 'brafteditor',
-        text: '瀵屾枃鏈�'
-      }, {
-        value: 'funcvar',
-        text: Formdict['header.form.funcvar']
-      }, {
-        value: 'hint',
-        text: '鎻愮ず'
-      }, {
-        value: 'split',
-        text: '鍒嗛殧绾�'
-      },
-      ..._openType]
+      options: _openType
     },
     {
       type: 'text',
@@ -2061,14 +2111,16 @@
       key: 'openText',
       label: '寮�鍚彁绀�',
       initVal: card.openText || '',
-      required: false
+      required: false,
+      forbid: appType === 'mob'
     },
     {
       type: 'text',
       key: 'closeText',
       label: '鍏抽棴鎻愮ず',
       initVal: card.closeText || '',
-      required: false
+      required: false,
+      forbid: appType === 'mob'
     },
     {
       type: 'radio',
@@ -2399,6 +2451,19 @@
     },
     {
       type: 'radio',
+      key: 'cursor',
+      label: '鍏夋爣',
+      initVal: card.cursor || 'right',
+      options: [{
+        value: 'right',
+        text: '鍙冲榻�'
+      }, {
+        value: 'left',
+        text: '宸﹀榻�'
+      }]
+    },
+    {
+      type: 'radio',
       key: 'readin',
       label: Formdict['header.form.readin'],
       tooltip: Formdict['header.form.readin.tooltip'],
@@ -2448,7 +2513,8 @@
       label: '琛ㄥ崟瀹藉害',
       initVal: card.span || (['textarea', 'hint', 'checkcard', 'brafteditor'].includes(card.type) ? 24 : 12),
       tooltip: '鏍呮牸甯冨眬鏁磋24绛夊垎銆�',
-      required: true
+      required: true,
+      forbid: appType === 'mob'
     },
     {
       type: 'number',

--
Gitblit v1.8.0