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 | 248 ++++++++++-------------------------------------- 1 files changed, 54 insertions(+), 194 deletions(-) diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx index f2c786b..ea95e00 100644 --- a/src/templates/modalconfig/source.jsx +++ b/src/templates/modalconfig/source.jsx @@ -6,259 +6,119 @@ class CommonTableBaseData { baseConfig = { - type: 'system', + type: 'Modal', setting: { - actionfixed: false, - columnfixed: false, - dataresource: '' + title: '', + width: 60, + cols: '2', + container: 'tab', + focus: '', + finish: 'close', + clickouter: 'unclose', + display: 'modal' }, tables: [], - search: [ + groups: [], + fields: [ { origin: true, - id: 0, uuid: Utils.getuuid(), - label: 'text', + label: 'label', field: '', initval: '', type: 'text', resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', - display: 'dropdown' + decimal: 0, + min: '', + max: '', + readonly: 'false', + required: 'false' }, { origin: true, - id: 1, uuid: Utils.getuuid(), - label: 'select', + label: 'label', field: '', initval: '', type: 'select', resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', - display: 'dropdown' + decimal: 0, + min: '', + max: '', + readonly: 'false', + required: 'false' }, { origin: true, - id: 2, uuid: Utils.getuuid(), - label: 'date', + label: 'label', field: '', initval: '', type: 'date', resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', - display: 'dropdown' - } - ], - action: [ - { - origin: true, - id: 0, - uuid: Utils.getuuid(), - label: 'add', - intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', - Ot: 'notRequired', - OpenType: 'pop', - pageTemplate: '', - icon: 'plus', - class: 'green' - }, { - origin: true, - id: 1, - uuid: Utils.getuuid(), - label: 'update', - intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', - Ot: 'requiredSgl', - OpenType: 'pop', - pageTemplate: '', - icon: 'form', - class: 'purple' - }, { - origin: true, - id: 2, - uuid: Utils.getuuid(), - label: 'delete', - intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', - Ot: 'required', - OpenType: 'prompt', - pageTemplate: '', - icon: 'delete', - class: 'red' - }, { - origin: true, - id: 3, - uuid: Utils.getuuid(), - label: 'freeze', - intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', - Ot: 'requiredOnce', - OpenType: 'exec', - pageTemplate: '', - icon: '', - class: 'default' - } - ], - columns: [ - { - origin: true, - id: 0, - uuid: Utils.getuuid(), - Align: 'left', - label: 'fieldName1', - field: '', - Hide: 'false', - IsSort: 'true', - type: 'text', - Width: 120 - }, { - origin: true, - id: 1, - uuid: Utils.getuuid(), - Align: 'left', - label: 'fieldName2', - field: '', - Hide: 'false', - IsSort: 'true', - type: 'text', - Width: 120 - }, { - origin: true, - id: 2, - uuid: Utils.getuuid(), - Align: 'left', - label: 'fieldName3', - field: '', - Hide: 'false', - IsSort: 'true', - type: 'text', - Width: 120 - }, { - origin: true, - id: 3, - uuid: Utils.getuuid(), - Align: 'left', - label: 'fieldName4', - field: '', - Hide: 'false', - IsSort: 'true', - type: 'text', - Width: 120 + decimal: 0, + min: '', + max: '', + readonly: 'false', + required: 'false' } ] } searchItems = [ { - type: 'search', + type: 'form', label: '鏂囨湰妗�', subType: 'text', url: '' }, { - type: 'search', + type: 'form', + label: '鏁板�兼', + subType: 'number', + url: '' + }, + { + type: 'form', label: '涓嬫媺妗�', subType: 'select', url: '' }, { - type: 'search', + type: 'form', + label: '鏂囦欢涓婁紶', + subType: 'fileupload', + url: '' + }, + { + type: 'form', label: '鏃堕棿妗嗭紙澶╋級', subType: 'date', url: '' }, { - type: 'search', + type: 'form', + label: '鏃堕棿妗嗭紙鏈堬級', + subType: 'datemonth', + url: '' + }, + { + type: 'form', label: '鏃堕棿妗嗭紙绉掞級', subType: 'datetime', url: '' - } - ] - - actionItems = [ - { - type: 'action', - label: CommonDict['header.form.pop'], - subType: 'pop', - url: '' }, { - type: 'action', - label: CommonDict['header.form.prompt'], - subType: 'prompt', - url: '' - }, - { - type: 'action', - label: CommonDict['header.form.exec'], - subType: 'exec', - url: '' - }, - { - type: 'action', - label: CommonDict['header.form.tab'], - subType: 'tab', - url: '' - }, - { - type: 'action', - label: CommonDict['header.form.newpage'], - subType: 'newpage', - url: '' - }, - { - type: 'action', - label: CommonDict['header.form.blank'], - subType: 'blank', - url: '' - } - ] - - columnItems = [ - { - type: 'columns', - label: CommonDict['header.form.text'], - subType: 'text', - url: '' - }, - { - type: 'columns', - label: CommonDict['header.form.picture'], - subType: 'picture', + type: 'form', + label: CommonDict['header.form.funcvar'], + subType: 'funcvar', url: '' } ] -- Gitblit v1.8.0