From 6afdec0062dacbded57e166230eb22cc55ced0c1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 08 五月 2021 14:30:21 +0800
Subject: [PATCH] 2021-05-08

---
 src/templates/comtableconfig/source.jsx |  103 ++++++++++++++++++++++++++++++---------------------
 1 files changed, 60 insertions(+), 43 deletions(-)

diff --git a/src/templates/comtableconfig/source.jsx b/src/templates/comtableconfig/source.jsx
index 502fe78..47c8a55 100644
--- a/src/templates/comtableconfig/source.jsx
+++ b/src/templates/comtableconfig/source.jsx
@@ -2,13 +2,15 @@
 import zhCN from '@/locales/zh-CN/model.js'
 import enUS from '@/locales/en-US/model.js'
 
-const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS
+const CommonDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
 
 class CommonTableBaseData {
   baseConfig = {
+    version: '1.0',
     type: 'system',
     Template: 'CommonTable',
     enabled: false,
+    easyCode: '',
     setting: {
       actionfixed: false,
       columnfixed: false,
@@ -17,7 +19,7 @@
       primaryKey: '',
       order: '',
       dataresource: '',
-      interType: 'inner',
+      interType: 'system',
       sysInterface: 'false',
       innerFunc: '',
       interface: '',
@@ -72,8 +74,7 @@
         origin: true,
         uuid: Utils.getuuid(),
         label: 'add',
-        intertype: 'inner',
-        method: 'POST',
+        intertype: 'system',
         Ot: 'notRequired',
         position: 'toolbar',
         execSuccess: 'grid',
@@ -87,10 +88,9 @@
         origin: true,
         uuid: Utils.getuuid(),
         label: 'update',
-        intertype: 'inner',
-        method: 'POST',
+        intertype: 'system',
         Ot: 'requiredSgl',
-        position: 'grid',
+        position: 'toolbar',
         execSuccess: 'grid',
         execError: 'never',
         errorTime: 15,
@@ -102,8 +102,7 @@
         origin: true,
         uuid: Utils.getuuid(),
         label: 'delete',
-        intertype: 'inner',
-        method: 'POST',
+        intertype: 'system',
         Ot: 'required',
         position: 'toolbar',
         execSuccess: 'grid',
@@ -163,7 +162,7 @@
       Align: 'center',
       IsSort: 'false',
       uuid: Utils.getuuid(),
-      label: CommonDict['header.form.column.action'],
+      label: CommonDict['model.operation'],
       type: 'action',
       style: 'button',
       show: 'horizontal',
@@ -205,38 +204,56 @@
   searchItems = [
     {
       type: 'search',
-      label: '鏂囨湰妗�',
+      label: CommonDict['model.form.text'],
       subType: 'text',
       url: ''
     },
     {
       type: 'search',
-      label: '涓嬫媺妗�',
+      label: CommonDict['model.form.select'],
       subType: 'select',
       url: ''
     },
     {
       type: 'search',
-      label: '鏃堕棿妗嗭紙澶╋級',
+      label: CommonDict['model.form.multiselect'],
+      subType: 'multiselect',
+      url: ''
+    },
+    {
+      type: 'search',
+      label: CommonDict['model.form.link'],
+      subType: 'link',
+      url: ''
+    },
+    {
+      type: 'search',
+      label: CommonDict['model.form.dateday'],
       subType: 'date',
       url: ''
     },
     {
       type: 'search',
-      label: '鏃堕棿妗嗭紙鍛級',
+      label: CommonDict['model.form.dateweek'],
       subType: 'dateweek',
       url: ''
     },
     {
       type: 'search',
-      label: '鏃堕棿妗嗭紙鏈堬級',
+      label: CommonDict['model.form.datemonth'],
       subType: 'datemonth',
       url: ''
     },
     {
       type: 'search',
-      label: '鏃堕棿妗嗭紙鍖洪棿锛�',
+      label: CommonDict['model.form.daterange'],
       subType: 'daterange',
+      url: ''
+    },
+    {
+      type: 'search',
+      label: CommonDict['model.form.dategroup'],
+      subType: 'group',
       url: ''
     }
   ]
@@ -244,67 +261,55 @@
   actionItems = [
     {
       type: 'action',
-      label: CommonDict['header.form.popform'],
+      label: CommonDict['model.form.popform'],
       subType: 'pop',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.prompt'],
+      label: CommonDict['model.form.prompt'],
       subType: 'prompt',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.exec'],
+      label: CommonDict['model.form.exec'],
       subType: 'exec',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.excelIn'],
+      label: CommonDict['model.form.excelIn'],
       subType: 'excelIn',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.excelOut'],
+      label: CommonDict['model.form.excelOut'],
       subType: 'excelOut',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.popview'],
+      label: CommonDict['model.form.popview'],
       subType: 'popview',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.tab'],
+      label: CommonDict['model.form.tab'],
       subType: 'tab',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.blank'],
-      subType: 'blank',
-      url: ''
-    },
-    {
-      type: 'action',
-      label: CommonDict['header.form.newpage.inner'],
+      label: CommonDict['model.form.newpage'],
       subType: 'innerpage',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.newpage.outer'],
-      subType: 'outerpage',
-      url: ''
-    },
-    {
-      type: 'action',
-      label: CommonDict['header.form.funcbutton'],
+      label: CommonDict['model.form.funcbutton'],
       subType: 'funcbutton',
       url: ''
     }
@@ -313,32 +318,44 @@
   columnItems = [
     {
       type: 'columns',
-      label: CommonDict['header.form.text'],
+      label: CommonDict['model.form.text'],
       subType: 'text',
       url: ''
     },
     {
       type: 'columns',
-      label: CommonDict['header.form.number'],
+      label: CommonDict['model.form.number'],
       subType: 'number',
       url: ''
     },
     {
       type: 'columns',
-      label: CommonDict['header.form.picture'],
+      label: CommonDict['model.form.picture'],
       subType: 'picture',
       url: ''
     },
     {
       type: 'columns',
-      label: CommonDict['header.form.textarea'],
+      label: CommonDict['model.form.href'],
+      subType: 'link',
+      url: ''
+    },
+    {
+      type: 'columns',
+      label: CommonDict['model.form.textarea'],
       subType: 'textarea',
       url: ''
     },
     {
       type: 'columns',
-      label: CommonDict['header.form.colspan'],
+      label: CommonDict['model.form.colspan'],
       subType: 'colspan',
+      url: ''
+    },
+    {
+      type: 'columns',
+      label: '搴忓彿',
+      subType: 'index',
       url: ''
     }
   ]
@@ -346,7 +363,7 @@
   tabItems = [
     {
       type: 'tabs',
-      label: CommonDict['header.menu.tab.subtable'],
+      label: CommonDict['model.menu.tab.subtable'],
       subType: 'SubTable',
     }
   ]

--
Gitblit v1.8.0