From c33ac9ddcdbed91bd2267bed2a96199441806a04 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 22 九月 2022 17:00:15 +0800 Subject: [PATCH] 2022-09-22 --- src/templates/formtabconfig/source.jsx | 81 ++++++++++++++++------------------------ 1 files changed, 32 insertions(+), 49 deletions(-) diff --git a/src/templates/formtabconfig/source.jsx b/src/templates/formtabconfig/source.jsx index 568c66d..e5ddf6c 100644 --- a/src/templates/formtabconfig/source.jsx +++ b/src/templates/formtabconfig/source.jsx @@ -1,25 +1,17 @@ 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 { baseConfig = { - type: 'FormTab', + Template: 'FormTab', enabled: false, setting: { - tableName: '', - primaryKey: '', - dataresource: '', datatype: 'query', - interType: 'inner', - sysInterface: 'false', - innerFunc: '', - interface: '', - outerFunc: '', cols: '2', - subtabs: [] + width: 90 }, tables: [], groups: [ @@ -37,7 +29,6 @@ initval: '', type: 'text', resourceType: '0', - setAll: 'false', options: [], orderType: 'asc' }, { @@ -48,7 +39,6 @@ initval: '', type: 'select', resourceType: '0', - setAll: 'false', options: [], orderType: 'asc' }, { @@ -59,7 +49,6 @@ initval: '', type: 'date', resourceType: '0', - setAll: 'false', options: [], orderType: 'asc' } @@ -71,7 +60,7 @@ btnType: 'confirm', uuid: Utils.getuuid(), label: '纭畾', - intertype: 'inner', + intertype: 'system', innerFunc: '', interface: '', outerFunc: '', @@ -81,10 +70,9 @@ Ot: 'notRequired', execSuccess: 'grid', execError: 'never', - errorTime: 15, OpenType: 'exec', icon: '', - class: 'green', + class: 'border-primary', verify: null }, { btnType: 'cancel', @@ -92,39 +80,34 @@ label: '鍏抽棴', execSuccess: 'grid', execError: 'never', - errorTime: 15, OpenType: 'exec', pageTemplate: '', url: '', icon: '', - class: 'danger' + class: 'border-danger' } ], - tabs: [ - { - origin: true, // 鏄惁涓虹ず渚� - groupId: 'tabs', - uuid: Utils.getuuid(), - label: 'tab1', - icon: '', - type: 'SubTable', - linkTab: '', - subtabs: [], - supMenu: '' - }, - { - origin: true, - groupId: 'tabs', - uuid: Utils.getuuid(), - label: 'tab2', - icon: '', - type: 'SubTable', - linkTab: '', - subtabs: [], - supMenu: '' - } - ], - tabgroups: ['tabs'] + tabgroups: [{ + uuid: 'tabs', + sublist: [ + { + origin: true, // 鏄惁涓虹ず渚� + uuid: Utils.getuuid(), + label: 'tab1', + type: 'SubTable', + linkTab: '', + supMenu: '' + }, + { + origin: true, + uuid: Utils.getuuid(), + label: 'tab2', + type: 'SubTable', + linkTab: '', + supMenu: '' + } + ] + }] } searchItems = [ @@ -181,13 +164,13 @@ actionItems = [ { 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: '' } @@ -196,7 +179,7 @@ tabItems = [ { type: 'tabs', - label: CommonDict['header.menu.tab.subtable'], + label: CommonDict['model.menu.tab.subtable'], subType: 'SubTable', } ] -- Gitblit v1.8.0