From 35b44bed4aa7b3f645c20fca025813cf4f3786ea Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 02 二月 2020 10:22:25 +0800
Subject: [PATCH] 2020-02-02

---
 src/templates/modalconfig/source.jsx |  254 +++++++++++---------------------------------------
 1 files changed, 57 insertions(+), 197 deletions(-)

diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx
index f2c786b..ff5f72b 100644
--- a/src/templates/modalconfig/source.jsx
+++ b/src/templates/modalconfig/source.jsx
@@ -1,264 +1,124 @@
 import Utils from '@/utils/utils.js'
-import zhCN from '@/locales/zh-CN/comtable.js'
-import enUS from '@/locales/en-US/comtable.js'
+// import zhCN from '@/locales/zh-CN/comtable.js'
+// import enUS from '@/locales/en-US/comtable.js'
 
-const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS
+// const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS
 
 class CommonTableBaseData {
   baseConfig = {
-    type: 'system',
+    type: 'Modal',
     setting: {
-      actionfixed: false,
-      columnfixed: false,
-      dataresource: ''
+      title: '',
+      width: 60,
+      cols: '2',
+      container: 'tab',
+      focus: '',
+      finish: 'close',
+      clickouter: 'unclose',
+      display: 'modal'
     },
     tables: [],
-    search: [
+    groups: [],
+    fields: [
       {
         origin: true,
-        id: 0,
         uuid: Utils.getuuid(),
-        label: 'text',
+        label: 'label',
         field: '',
         initval: '',
         type: 'text',
         resourceType: '0',
         setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
-        display: 'dropdown'
+        decimal: 0,
+        min: '',
+        max: '',
+        readonly: 'false',
+        required: 'false'
       }, {
         origin: true,
-        id: 1,
         uuid: Utils.getuuid(),
-        label: 'select',
+        label: 'label',
         field: '',
         initval: '',
         type: 'select',
         resourceType: '0',
         setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
-        display: 'dropdown'
+        decimal: 0,
+        min: '',
+        max: '',
+        readonly: 'false',
+        required: 'false'
       }, {
         origin: true,
-        id: 2,
         uuid: Utils.getuuid(),
-        label: 'date',
+        label: 'label',
         field: '',
         initval: '',
         type: 'date',
         resourceType: '0',
         setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
-        display: 'dropdown'
-      }
-    ],
-    action: [
-      {
-        origin: true,
-        id: 0,
-        uuid: Utils.getuuid(),
-        label: 'add',
-        intertype: 'inner',
-        innerFunc: '',
-        interface: '',
-        outerFunc: '',
-        callbackFunc: '',
-        Ot: 'notRequired',
-        OpenType: 'pop',
-        pageTemplate: '',
-        icon: 'plus',
-        class: 'green'
-      }, {
-        origin: true,
-        id: 1,
-        uuid: Utils.getuuid(),
-        label: 'update',
-        intertype: 'inner',
-        innerFunc: '',
-        interface: '',
-        outerFunc: '',
-        callbackFunc: '',
-        Ot: 'requiredSgl',
-        OpenType: 'pop',
-        pageTemplate: '',
-        icon: 'form',
-        class: 'purple'
-      }, {
-        origin: true,
-        id: 2,
-        uuid: Utils.getuuid(),
-        label: 'delete',
-        intertype: 'inner',
-        innerFunc: '',
-        interface: '',
-        outerFunc: '',
-        callbackFunc: '',
-        Ot: 'required',
-        OpenType: 'prompt',
-        pageTemplate: '',
-        icon: 'delete',
-        class: 'red'
-      }, {
-        origin: true,
-        id: 3,
-        uuid: Utils.getuuid(),
-        label: 'freeze',
-        intertype: 'inner',
-        innerFunc: '',
-        interface: '',
-        outerFunc: '',
-        callbackFunc: '',
-        Ot: 'requiredOnce',
-        OpenType: 'exec',
-        pageTemplate: '',
-        icon: '',
-        class: 'default'
-      }
-    ],
-    columns: [
-      {
-        origin: true,
-        id: 0,
-        uuid: Utils.getuuid(),
-        Align: 'left',
-        label: 'fieldName1',
-        field: '',
-        Hide: 'false',
-        IsSort: 'true',
-        type: 'text',
-        Width: 120
-      }, {
-        origin: true,
-        id: 1,
-        uuid: Utils.getuuid(),
-        Align: 'left',
-        label: 'fieldName2',
-        field: '',
-        Hide: 'false',
-        IsSort: 'true',
-        type: 'text',
-        Width: 120
-      }, {
-        origin: true,
-        id: 2,
-        uuid: Utils.getuuid(),
-        Align: 'left',
-        label: 'fieldName3',
-        field: '',
-        Hide: 'false',
-        IsSort: 'true',
-        type: 'text',
-        Width: 120
-      }, {
-        origin: true,
-        id: 3,
-        uuid: Utils.getuuid(),
-        Align: 'left',
-        label: 'fieldName4',
-        field: '',
-        Hide: 'false',
-        IsSort: 'true',
-        type: 'text',
-        Width: 120
+        decimal: 0,
+        min: '',
+        max: '',
+        readonly: 'false',
+        required: 'false'
       }
     ]
   }
 
   searchItems = [
     {
-      type: 'search',
+      type: 'form',
       label: '鏂囨湰妗�',
       subType: 'text',
       url: ''
     },
     {
-      type: 'search',
+      type: 'form',
+      label: '鏁板�兼',
+      subType: 'number',
+      url: ''
+    },
+    {
+      type: 'form',
       label: '涓嬫媺妗�',
       subType: 'select',
       url: ''
     },
     {
-      type: 'search',
+      type: 'form',
+      label: '鏂囦欢涓婁紶',
+      subType: 'fileupload',
+      url: ''
+    },
+    {
+      type: 'form',
       label: '鏃堕棿妗嗭紙澶╋級',
       subType: 'date',
       url: ''
     },
     {
-      type: 'search',
+      type: 'form',
+      label: '鏃堕棿妗嗭紙鏈堬級',
+      subType: 'datemonth',
+      url: ''
+    },
+    {
+      type: 'form',
       label: '鏃堕棿妗嗭紙绉掞級',
       subType: 'datetime',
       url: ''
-    }
-  ]
-
-  actionItems = [
-    {
-      type: 'action',
-      label: CommonDict['header.form.pop'],
-      subType: 'pop',
-      url: ''
     },
     {
-      type: 'action',
-      label: CommonDict['header.form.prompt'],
-      subType: 'prompt',
-      url: ''
-    },
-    {
-      type: 'action',
-      label: CommonDict['header.form.exec'],
-      subType: 'exec',
-      url: ''
-    },
-    {
-      type: 'action',
-      label: CommonDict['header.form.tab'],
-      subType: 'tab',
-      url: ''
-    },
-    {
-      type: 'action',
-      label: CommonDict['header.form.newpage'],
-      subType: 'newpage',
-      url: ''
-    },
-    {
-      type: 'action',
-      label: CommonDict['header.form.blank'],
-      subType: 'blank',
-      url: ''
-    }
-  ]
-
-  columnItems = [
-    {
-      type: 'columns',
-      label: CommonDict['header.form.text'],
-      subType: 'text',
-      url: ''
-    },
-    {
-      type: 'columns',
-      label: CommonDict['header.form.picture'],
-      subType: 'picture',
+      type: 'form',
+      label: '鍑芥暟鍙橀噺',
+      subType: 'funcvar',
       url: ''
     }
   ]

--
Gitblit v1.8.0