From 822bc67061448c6e3a1eb77d39be4ad2b84b416a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 27 二月 2020 09:36:34 +0800
Subject: [PATCH] 2020-02-27

---
 src/templates/tableshare/formconfig.js |   44 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/src/templates/tableshare/formconfig.js b/src/templates/tableshare/formconfig.js
index b02eba8..ad81410 100644
--- a/src/templates/tableshare/formconfig.js
+++ b/src/templates/tableshare/formconfig.js
@@ -268,8 +268,43 @@
       }, {
         value: 'outerpage',
         text: Formdict['header.form.newpage.outer']
+      }, {
+        value: 'funcbutton',
+        text: Formdict['header.form.funcbutton']
       }]
-    }, {
+    },
+    {
+      type: 'select',
+      key: 'funcType',
+      label: Formdict['header.form.funcType'],
+      initVal: card.funcType || '',
+      required: true,
+      options: [{
+        value: 'changeuser',
+        text: Formdict['header.form.func.changeuser']
+      }, {
+        value: 'print',
+        text: Formdict['header.form.func.print']
+      }]
+    },
+    {
+      type: 'select',
+      key: 'execMode',
+      label: Formdict['header.form.execMode'],
+      initVal: card.execMode || 'exec',
+      required: true,
+      options: [{
+        value: 'exec',
+        text: Formdict['header.form.exec']
+      }, {
+        value: 'prompt',
+        text: Formdict['header.form.prompt']
+      }, {
+        value: 'pop',
+        text: Formdict['header.form.popform']
+      }]
+    },
+    {
       type: 'select',
       key: 'tabType',
       label: Formdict['header.form.tabType'],
@@ -750,7 +785,7 @@
  * @param {*} card 
  * @param {*} inputfields 
  */
-export function getModalForm (card, inputfields, subtable = false) {
+export function getModalForm (card, inputfields, linkableFields, subtable = false) {
   let _openType = []
   let _fieldlength = 50
 
@@ -875,12 +910,13 @@
       readonly: false
     },
     {
-      type: 'text',
+      type: 'select',
       key: 'linkField',
       label: Formdict['header.form.linkField'],
       initVal: card.linkField || '',
       required: true,
-      readonly: false
+      readonly: false,
+      options: linkableFields
     },
     {
       type: 'text',

--
Gitblit v1.8.0