From e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 17 十月 2022 17:57:34 +0800 Subject: [PATCH] 2022-10-17 --- src/templates/subtableconfig/source.jsx | 48 ++++++++++++++++++++++-------------------------- 1 files changed, 22 insertions(+), 26 deletions(-) diff --git a/src/templates/subtableconfig/source.jsx b/src/templates/subtableconfig/source.jsx index 1571053..ef337b5 100644 --- a/src/templates/subtableconfig/source.jsx +++ b/src/templates/subtableconfig/source.jsx @@ -1,8 +1,4 @@ import Utils from '@/utils/utils.js' -import zhCN from '@/locales/zh-CN/model.js' -import enUS from '@/locales/en-US/model.js' - -const CommonDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS class SubTableBaseData { baseConfig = { @@ -173,25 +169,25 @@ searchItems = [ { type: 'search', - label: CommonDict['model.form.text'], + label: '鏂囨湰', subType: 'text', url: '' }, { type: 'search', - label: CommonDict['model.form.select'], + label: '涓嬫媺閫夋嫨', subType: 'select', url: '' }, { type: 'search', - label: CommonDict['model.form.multiselect'], + label: '涓嬫媺澶氶��', subType: 'multiselect', url: '' }, { type: 'search', - label: CommonDict['model.form.link'], + label: '鑱斿姩鑿滃崟', subType: 'link', url: '' }, @@ -215,19 +211,19 @@ }, { type: 'search', - label: CommonDict['model.form.datemonth'], + label: '鏃ユ湡锛堟湀锛�', subType: 'datemonth', url: '' }, { type: 'search', - label: CommonDict['model.form.daterange'], + label: '鏃ユ湡锛堝尯闂达級', subType: 'daterange', url: '' }, { type: 'search', - label: CommonDict['model.form.dategroup'], + label: '鏃ユ湡锛堢粍鍚堬級', subType: 'group', url: '' } @@ -236,55 +232,55 @@ actionItems = [ { type: 'action', - label: CommonDict['model.form.popform'], + label: '寮圭獥锛堣〃鍗曪級', subType: 'pop', url: '' }, { type: 'action', - label: CommonDict['model.form.prompt'], + label: '鎻愮ず妗�', subType: 'prompt', url: '' }, { type: 'action', - label: CommonDict['model.form.exec'], + label: '鐩存帴鎵ц', subType: 'exec', url: '' }, { type: 'action', - label: CommonDict['model.form.excelIn'], + label: '瀵煎叆Excel', subType: 'excelIn', url: '' }, { type: 'action', - label: CommonDict['model.form.excelOut'], + label: '瀵煎嚭Excel', subType: 'excelOut', url: '' }, { type: 'action', - label: CommonDict['model.form.popview'], + label: '寮圭獥锛堟爣绛撅級', subType: 'popview', url: '' }, { type: 'action', - label: CommonDict['model.form.tab'], + label: '鏍囩椤�', subType: 'tab', url: '' }, { type: 'action', - label: CommonDict['model.form.newpage'], + label: '鏂伴〉闈�', subType: 'innerpage', url: '' }, { type: 'action', - label: CommonDict['model.form.funcbutton'], + label: '鍔熻兘鎸夐挳', subType: 'funcbutton', url: '' } @@ -293,37 +289,37 @@ columnItems = [ { type: 'columns', - label: CommonDict['model.form.text'], + label: '鏂囨湰', subType: 'text', url: '' }, { type: 'columns', - label: CommonDict['model.form.picture'], + label: '鍥剧墖', subType: 'picture', url: '' }, { type: 'columns', - label: CommonDict['model.form.number'], + label: '鏁板瓧', subType: 'number', url: '' }, { type: 'columns', - label: CommonDict['model.form.href'], + label: '閾炬帴', subType: 'link', url: '' }, { type: 'columns', - label: CommonDict['model.form.textarea'], + label: '澶氳鏂囨湰', subType: 'textarea', url: '' }, { type: 'columns', - label: CommonDict['model.form.colspan'], + label: '鍚堝苟鍒�', subType: 'colspan', url: '' }, -- Gitblit v1.8.0