From 4a18149d7ca9a0ea3ad569297f34e928c59e2025 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 21 三月 2020 20:30:08 +0800 Subject: [PATCH] 2020-03-21 --- src/templates/modalconfig/source.jsx | 265 ++++++++++++++++++++++++++-------------------------- 1 files changed, 131 insertions(+), 134 deletions(-) diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx index 0cb243c..c340150 100644 --- a/src/templates/modalconfig/source.jsx +++ b/src/templates/modalconfig/source.jsx @@ -4,142 +4,139 @@ const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS -class CommonTableBaseData { - baseConfig = { - type: 'Modal', - setting: { - title: '', - width: 60, - cols: '2', - container: 'tab', - focus: '', - finish: 'close', - clickouter: 'unclose', - display: 'modal' - }, - tables: [], - groups: [], - fields: [ - { - origin: true, - uuid: Utils.getuuid(), - label: 'label', - field: '', - initval: '', - type: 'text', - resourceType: '0', - setAll: 'false', - options: [], - orderType: 'asc', - decimal: 0, - min: '', - max: '', - readonly: 'false', - required: 'false' - }, { - origin: true, - uuid: Utils.getuuid(), - label: 'label', - field: '', - initval: '', - type: 'select', - resourceType: '0', - setAll: 'false', - options: [], - orderType: 'asc', - decimal: 0, - min: '', - max: '', - readonly: 'false', - required: 'false' - }, { - origin: true, - uuid: Utils.getuuid(), - label: 'label', - field: '', - initval: '', - type: 'date', - resourceType: '0', - setAll: 'false', - options: [], - orderType: 'asc', - decimal: 0, - min: '', - max: '', - readonly: 'false', - required: 'false' - } - ] - } - - searchItems = [ +export const BaseConfig = { + type: 'Modal', + setting: { + title: '', + width: 60, + cols: '2', + container: 'tab', + focus: '', + finish: 'close', + clickouter: 'unclose', + display: 'modal' + }, + tables: [], + groups: [], + fields: [ { - type: 'form', - label: CommonDict['header.form.text'], - subType: 'text', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.number'], - subType: 'number', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.select'], - subType: 'select', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.multiselect'], - subType: 'multiselect', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.link'], - subType: 'link', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.fileupload'], - subType: 'fileupload', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.dateday'], - subType: 'date', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.datemonth'], - subType: 'datemonth', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.datetime'], - subType: 'datetime', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.textarea'], - subType: 'textarea', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.funcvar'], - subType: 'funcvar', - url: '' + origin: true, + uuid: Utils.getuuid(), + label: 'label', + field: '', + initval: '', + type: 'text', + resourceType: '0', + setAll: 'false', + options: [], + orderType: 'asc', + decimal: 0, + min: '', + max: '', + readonly: 'false', + required: 'false' + }, { + origin: true, + uuid: Utils.getuuid(), + label: 'label', + field: '', + initval: '', + type: 'select', + resourceType: '0', + setAll: 'false', + options: [], + orderType: 'asc', + decimal: 0, + min: '', + max: '', + readonly: 'false', + required: 'false' + }, { + origin: true, + uuid: Utils.getuuid(), + label: 'label', + field: '', + initval: '', + type: 'date', + resourceType: '0', + setAll: 'false', + options: [], + orderType: 'asc', + decimal: 0, + min: '', + max: '', + readonly: 'false', + required: 'false' } ] } -export default new CommonTableBaseData() +export const SearchItems = [ + { + type: 'form', + label: CommonDict['header.form.text'], + subType: 'text', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.number'], + subType: 'number', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.select'], + subType: 'select', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.multiselect'], + subType: 'multiselect', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.link'], + subType: 'link', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.fileupload'], + subType: 'fileupload', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.dateday'], + subType: 'date', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.datemonth'], + subType: 'datemonth', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.datetime'], + subType: 'datetime', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.textarea'], + subType: 'textarea', + url: '' + }, + { + type: 'form', + label: CommonDict['header.form.funcvar'], + subType: 'funcvar', + url: '' + } +] + -- Gitblit v1.8.0