From 5df578ff69f6b02e821d59a8883bc75d78695a62 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 10 十一月 2020 11:07:31 +0800
Subject: [PATCH] 2020-11-10

---
 src/menu/actioncomponent/formconfig.jsx |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/src/menu/actioncomponent/formconfig.jsx b/src/menu/actioncomponent/formconfig.jsx
index 582d73d..de09940 100644
--- a/src/menu/actioncomponent/formconfig.jsx
+++ b/src/menu/actioncomponent/formconfig.jsx
@@ -11,7 +11,7 @@
  * @param {*} permFuncField  瀛樺偍杩囩▼鍙敤鐨勫紑濮嬪瓧娈�
  * @param {*} type           鎸夐挳绫诲瀷锛岀敤浜庡尯鍒嗗彲閫夌殑鎵撳紑鏂瑰紡
  */
-export function getActionForm (card, functip, setting, permFuncField = [], type, menulist = []) {
+export function getActionForm (card, functip, setting, permFuncField = [], type, menulist = [], modules = []) {
   let opentypes = [
     {
       value: 'pop',
@@ -43,23 +43,7 @@
     }
   ]
 
-  if (card.intertype === 'inner' && !card.innerFunc) {
-    card.intertype = 'system'
-  }
-
   if (type === 'chart') {
-    if (card.focus) {
-      // 瀵煎叆鍜屽鍑篹xcel锛屾寜閽悕绉扮洿鎺ヤ负瀵煎叆銆佸鍑�
-      card.label = '瀵煎嚭Excel'
-      card.OpenType = 'excelOut'
-      card.icon = 'download'
-      card.intertype = setting.interType
-      card.innerFunc = setting.innerFunc
-      card.sysInterface = setting.sysInterface
-      card.outerFunc = setting.outerFunc
-      card.interface = setting.interface
-      card.class = 'dgreen'
-    }
     opentypes = [
       {
         value: 'excelIn',
@@ -166,8 +150,8 @@
       initVal: card.pageTemplate || '',
       required: true,
       options: [{
-        value: 'print',
-        text: Formdict['header.menu.printTemplate']
+        value: 'billprint',
+        text: '鍗曟嵁鎵撳嵃'
       }, {
         value: 'pay',
         text: Formdict['model.pay']
@@ -308,6 +292,18 @@
       }]
     },
     {
+      type: 'number',
+      key: 'width',
+      min: 1,
+      max: 24,
+      precision: 0,
+      label: '瀹藉害',
+      initVal: card.width || 12,
+      tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��',
+      forbid: type !== 'card',
+      required: true
+    },
+    {
       type: 'select',
       key: 'show',
       label: "鏄剧ず涓�",
@@ -389,6 +385,14 @@
         text: '闈炲繀濉�'
       }]
     },
+    {
+      type: 'mcascader',
+      key: 'syncComponent',
+      label: '鍚屾鍒锋柊',
+      initVal: card.syncComponent || [],
+      required: false,
+      options: modules
+    },
     // {
     //   type: 'select',
     //   key: 'linkcomponents',
@@ -399,8 +403,5 @@
     // }
   ]
 
-  // if (type === 'chart') {
-  //   return forms
-  // }
   return forms
 }

--
Gitblit v1.8.0