From 1dfd49b103e721f9bb63fd4d472b6fcc225d94a1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 12 三月 2020 18:42:20 +0800 Subject: [PATCH] 2020-03-12 --- src/templates/modalconfig/source.jsx | 296 +++++++++++++++++----------------------------------------- 1 files changed, 87 insertions(+), 209 deletions(-) diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx index f2c786b..0cb243c 100644 --- a/src/templates/modalconfig/source.jsx +++ b/src/templates/modalconfig/source.jsx @@ -6,259 +6,137 @@ 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', - label: '鏂囨湰妗�', - subType: 'text', - url: '' - }, - { - type: 'search', - label: '涓嬫媺妗�', - subType: 'select', - url: '' - }, - { - type: 'search', - label: '鏃堕棿妗嗭紙澶╋級', - subType: 'date', - url: '' - }, - { - type: 'search', - 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', + type: 'form', label: CommonDict['header.form.text'], subType: 'text', url: '' }, { - type: 'columns', - label: CommonDict['header.form.picture'], - subType: 'picture', + 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