From 1dfd49b103e721f9bb63fd4d472b6fcc225d94a1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 12 三月 2020 18:42:20 +0800
Subject: [PATCH] 2020-03-12

---
 src/templates/modalconfig/source.jsx |   91 ++++++++++++++++++++++++++++++---------------
 1 files changed, 60 insertions(+), 31 deletions(-)

diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx
index 1b20be2..0cb243c 100644
--- a/src/templates/modalconfig/source.jsx
+++ b/src/templates/modalconfig/source.jsx
@@ -1,8 +1,8 @@
 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 = {
@@ -10,14 +10,18 @@
     setting: {
       title: '',
       width: 60,
-      cols: '2'
+      cols: '2',
+      container: 'tab',
+      focus: '',
+      finish: 'close',
+      clickouter: 'unclose',
+      display: 'modal'
     },
     tables: [],
     groups: [],
     fields: [
       {
         origin: true,
-        id: Utils.getuuid(),
         uuid: Utils.getuuid(),
         label: 'label',
         field: '',
@@ -26,16 +30,14 @@
         resourceType: '0',
         setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
-        readonly: 'false'
+        decimal: 0,
+        min: '',
+        max: '',
+        readonly: 'false',
+        required: 'false'
       }, {
         origin: true,
-        id: Utils.getuuid(),
         uuid: Utils.getuuid(),
         label: 'label',
         field: '',
@@ -44,16 +46,14 @@
         resourceType: '0',
         setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
-        readonly: 'false'
+        decimal: 0,
+        min: '',
+        max: '',
+        readonly: 'false',
+        required: 'false'
       }, {
         origin: true,
-        id: Utils.getuuid(),
         uuid: Utils.getuuid(),
         label: 'label',
         field: '',
@@ -62,13 +62,12 @@
         resourceType: '0',
         setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
-        readonly: 'false'
+        decimal: 0,
+        min: '',
+        max: '',
+        readonly: 'false',
+        required: 'false'
       }
     ]
   }
@@ -76,39 +75,69 @@
   searchItems = [
     {
       type: 'form',
-      label: '鏂囨湰妗�',
+      label: CommonDict['header.form.text'],
       subType: 'text',
       url: ''
     },
     {
       type: 'form',
-      label: '鏁板�兼',
+      label: CommonDict['header.form.number'],
       subType: 'number',
       url: ''
     },
     {
       type: 'form',
-      label: '涓嬫媺妗�',
+      label: CommonDict['header.form.select'],
       subType: 'select',
       url: ''
     },
     {
       type: 'form',
-      label: '鏃堕棿妗嗭紙澶╋級',
+      label: CommonDict['header.form.multiselect'],
+      subType: 'multiselect',
+      url: ''
+    },
+    {
+      type: 'form',
+      label: CommonDict['header.form.link'],
+      subType: 'link',
+      url: ''
+    },
+    {
+      type: 'form',
+      label: CommonDict['header.form.fileupload'],
+      subType: 'fileupload',
+      url: ''
+    },
+    {
+      type: 'form',
+      label: CommonDict['header.form.dateday'],
       subType: 'date',
       url: ''
     },
     {
       type: 'form',
-      label: '鏃堕棿妗嗭紙鏈堬級',
+      label: CommonDict['header.form.datemonth'],
       subType: 'datemonth',
       url: ''
     },
     {
       type: 'form',
-      label: '鏃堕棿妗嗭紙绉掞級',
+      label: CommonDict['header.form.datetime'],
       subType: 'datetime',
       url: ''
+    },
+    {
+      type: 'form',
+      label: CommonDict['header.form.textarea'],
+      subType: 'textarea',
+      url: ''
+    },
+    {
+      type: 'form',
+      label: CommonDict['header.form.funcvar'],
+      subType: 'funcvar',
+      url: ''
     }
   ]
 }

--
Gitblit v1.8.0