From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 02 八月 2022 11:42:43 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/templates/subtableconfig/source.jsx |  221 ++++++++++++++++++++++++------------------------------
 1 files changed, 99 insertions(+), 122 deletions(-)

diff --git a/src/templates/subtableconfig/source.jsx b/src/templates/subtableconfig/source.jsx
index e502372..bb48d97 100644
--- a/src/templates/subtableconfig/source.jsx
+++ b/src/templates/subtableconfig/source.jsx
@@ -1,22 +1,26 @@
 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/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 {
+class SubTableBaseData {
   baseConfig = {
+    version: '1.0',
     type: 'system',
+    Template: 'SubTable',
     enabled: false,
+    tabName: '',
+    tabNo: '',
+    Remark: '',
+    uuid: Utils.getuuid(),
     setting: {
-      actionfixed: false,
-      columnfixed: false,
       tableName: '',
       tableType: 'checkbox',
       primaryKey: '',
       order: '',
       dataresource: '',
-      interType: 'inner',
+      interType: 'system',
       innerFunc: '',
       interface: '',
       outerFunc: ''
@@ -31,16 +35,9 @@
         initval: '',
         type: 'text',
         resourceType: '0',
-        setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
         match: 'like',
-        display: 'dropdown'
       }, {
         origin: true,
         uuid: Utils.getuuid(),
@@ -49,16 +46,9 @@
         initval: '',
         type: 'select',
         resourceType: '0',
-        setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
         match: 'equal',
-        display: 'dropdown'
       }, {
         origin: true,
         uuid: Utils.getuuid(),
@@ -67,16 +57,9 @@
         initval: '',
         type: 'date',
         resourceType: '0',
-        setAll: 'false',
         options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
         orderType: 'asc',
         match: 'greater',
-        display: 'dropdown'
       }
     ],
     action: [
@@ -84,65 +67,41 @@
         origin: true,
         uuid: Utils.getuuid(),
         label: 'add',
-        intertype: 'inner',
-        innerFunc: '',
-        interface: '',
-        method: 'POST',
-        outerFunc: '',
-        sql: '',
-        sqlType: '',
-        callbackFunc: '',
+        intertype: 'system',
         Ot: 'notRequired',
         position: 'toolbar',
         execSuccess: 'grid',
         execError: 'never',
         OpenType: 'pop',
-        pageTemplate: '',
-        url: '',
         icon: 'plus',
-        class: 'green'
+        class: 'green',
+        verify: null
       }, {
         origin: true,
         uuid: Utils.getuuid(),
         label: 'update',
-        intertype: 'inner',
-        innerFunc: '',
-        interface: '',
-        method: 'POST',
-        outerFunc: '',
-        sql: '',
-        sqlType: '',
-        callbackFunc: '',
+        intertype: 'system',
         Ot: 'requiredSgl',
         position: 'grid',
         execSuccess: 'grid',
         execError: 'never',
         OpenType: 'pop',
-        pageTemplate: '',
-        url: '',
         icon: 'form',
-        class: 'purple'
+        class: 'purple',
+        verify: null
       }, {
         origin: true,
         uuid: Utils.getuuid(),
         label: 'delete',
-        intertype: 'inner',
-        innerFunc: '',
-        interface: '',
-        method: 'POST',
-        outerFunc: '',
-        sql: '',
-        sqlType: '',
-        callbackFunc: '',
+        intertype: 'system',
         Ot: 'required',
         position: 'toolbar',
         execSuccess: 'grid',
         execError: 'never',
         OpenType: 'prompt',
-        pageTemplate: '',
-        url: '',
         icon: 'delete',
-        class: 'red'
+        class: 'red',
+        verify: null
       }
     ],
     columns: [
@@ -193,69 +152,83 @@
       Align: 'center',
       IsSort: 'false',
       uuid: Utils.getuuid(),
-      label: CommonDict['header.form.column.action'],
+      label: CommonDict['model.operation'],
       type: 'action',
       style: 'button',
       show: 'horizontal',
       Width: 120
     },
-    tabs: [
-      {
-        origin: true,
-        uuid: Utils.getuuid(),
-        label: 'tab1',
-        icon: '',
-        type: 'SubTable',
-        linkTab: '',
-        supMenu: ''
-      },
-      {
-        origin: true,
-        uuid: Utils.getuuid(),
-        label: 'tab2',
-        icon: '',
-        type: 'SubTable',
-        linkTab: '',
-        supMenu: ''
-      }
-    ]
+    expand: false,
+    charts: [{
+      uuid: Utils.getuuid(),
+      label: '',
+      title: '',
+      chartType: 'table',
+      icon: 'table',
+      Hide: 'false',
+      blacklist: []
+    }]
   }
 
   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: '閫夐」鍗�',
+      subType: 'checkcard',
+      url: ''
+    },
+    {
+      type: 'search',
+      label: '鏃ユ湡锛堝ぉ锛�',
       subType: 'date',
       url: ''
     },
     {
       type: 'search',
-      label: '鏃堕棿妗嗭紙鍛級',
+      label: '鏃ユ湡锛堝懆锛�',
       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: ''
     }
   ]
@@ -263,62 +236,56 @@
   actionItems = [
     {
       type: 'action',
-      label: CommonDict['header.form.popform'],
+      label: CommonDict['model.form.popform'],
       subType: 'pop',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.popview'],
-      subType: 'popview',
-      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.tab'],
-      subType: 'tab',
-      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.blank'],
-      subType: 'blank',
+      label: CommonDict['model.form.popview'],
+      subType: 'popview',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.newpage.inner'],
+      label: CommonDict['model.form.tab'],
+      subType: 'tab',
+      url: ''
+    },
+    {
+      type: 'action',
+      label: CommonDict['model.form.newpage'],
       subType: 'innerpage',
       url: ''
     },
     {
       type: 'action',
-      label: CommonDict['header.form.newpage.outer'],
-      subType: 'outerpage',
+      label: CommonDict['model.form.funcbutton'],
+      subType: 'funcbutton',
       url: ''
     }
   ]
@@ -326,37 +293,47 @@
   columnItems = [
     {
       type: 'columns',
-      label: CommonDict['header.form.text'],
+      label: CommonDict['model.form.text'],
       subType: 'text',
       url: ''
     },
     {
       type: 'columns',
-      label: CommonDict['header.form.picture'],
+      label: CommonDict['model.form.picture'],
       subType: 'picture',
       url: ''
     },
     {
       type: 'columns',
-      label: CommonDict['header.form.number'],
+      label: CommonDict['model.form.number'],
       subType: 'number',
       url: ''
     },
     {
       type: 'columns',
-      label: CommonDict['header.form.colspan'],
+      label: CommonDict['model.form.href'],
+      subType: 'link',
+      url: ''
+    },
+    {
+      type: 'columns',
+      label: CommonDict['model.form.textarea'],
+      subType: 'textarea',
+      url: ''
+    },
+    {
+      type: 'columns',
+      label: CommonDict['model.form.colspan'],
       subType: 'colspan',
       url: ''
-    }
-  ]
-
-  tabItems = [
+    },
     {
-      type: 'tabs',
-      label: CommonDict['header.menu.tab.subtable'],
-      subType: 'SubTable',
+      type: 'columns',
+      label: '搴忓彿',
+      subType: 'index',
+      url: ''
     }
   ]
 }
 
-export default new CommonTableBaseData()
+export default new SubTableBaseData()

--
Gitblit v1.8.0