From 063b983daaf51a7f1e8677bde1e9c0e618866c91 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 21 二月 2020 10:30:19 +0800 Subject: [PATCH] 2020-02-21 --- src/templates/modalconfig/source.jsx | 51 +++++++++++++++++++++++++++++---------------------- 1 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx index 860f9af..ea95e00 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 = { @@ -11,14 +11,17 @@ title: '', width: 60, cols: '2', - container: 'view' + container: 'tab', + focus: '', + finish: 'close', + clickouter: 'unclose', + display: 'modal' }, tables: [], groups: [], fields: [ { origin: true, - id: Utils.getuuid(), uuid: Utils.getuuid(), label: 'label', field: '', @@ -27,17 +30,14 @@ resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', + decimal: 0, + min: '', + max: '', readonly: 'false', required: 'false' }, { origin: true, - id: Utils.getuuid(), uuid: Utils.getuuid(), label: 'label', field: '', @@ -46,17 +46,14 @@ resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', + decimal: 0, + min: '', + max: '', readonly: 'false', required: 'false' }, { origin: true, - id: Utils.getuuid(), uuid: Utils.getuuid(), label: 'label', field: '', @@ -65,12 +62,10 @@ resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', + decimal: 0, + min: '', + max: '', readonly: 'false', required: 'false' } @@ -98,6 +93,12 @@ }, { type: 'form', + label: '鏂囦欢涓婁紶', + subType: 'fileupload', + url: '' + }, + { + type: 'form', label: '鏃堕棿妗嗭紙澶╋級', subType: 'date', url: '' @@ -113,6 +114,12 @@ label: '鏃堕棿妗嗭紙绉掞級', subType: 'datetime', url: '' + }, + { + type: 'form', + label: CommonDict['header.form.funcvar'], + subType: 'funcvar', + url: '' } ] } -- Gitblit v1.8.0