From f0602b981659c6d1ff18e8dba4ca1ce89c5f5610 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 22 三月 2020 21:18:34 +0800 Subject: [PATCH] 2020-03-22 --- src/templates/comtableconfig/source.jsx | 220 ++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 145 insertions(+), 75 deletions(-) diff --git a/src/templates/comtableconfig/source.jsx b/src/templates/comtableconfig/source.jsx index 307604d..7bd38c1 100644 --- a/src/templates/comtableconfig/source.jsx +++ b/src/templates/comtableconfig/source.jsx @@ -7,67 +7,62 @@ class CommonTableBaseData { baseConfig = { type: 'system', + Template: 'CommonTable', + enabled: false, setting: { actionfixed: false, columnfixed: false, - dataresource: '' + tableName: '', + tableType: 'checkbox', + primaryKey: '', + order: '', + dataresource: '', + interType: 'inner', + sysInterface: 'false', + innerFunc: '', + interface: '', + outerFunc: '', + onload: 'true', + subtabs: [] }, tables: [], search: [ { 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', match: 'like', display: 'dropdown' }, { 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', match: 'equal', display: 'dropdown' }, { 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', match: 'greater', display: 'dropdown' @@ -76,77 +71,57 @@ action: [ { origin: true, - id: 0, uuid: Utils.getuuid(), label: 'add', intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', + method: 'POST', Ot: 'notRequired', position: 'toolbar', + execSuccess: 'grid', + execError: 'never', + errorTime: 15, OpenType: 'pop', - pageTemplate: '', icon: 'plus', - class: 'green' + class: 'green', + verify: null }, { origin: true, - id: 1, uuid: Utils.getuuid(), label: 'update', intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', + method: 'POST', Ot: 'requiredSgl', position: 'grid', + execSuccess: 'grid', + execError: 'never', + errorTime: 15, OpenType: 'pop', - pageTemplate: '', icon: 'form', - class: 'purple' + class: 'purple', + verify: null }, { origin: true, - id: 2, uuid: Utils.getuuid(), label: 'delete', intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', + method: 'POST', Ot: 'required', position: 'toolbar', + execSuccess: 'grid', + execError: 'never', + errorTime: 15, OpenType: 'prompt', - pageTemplate: '', icon: 'delete', - class: 'red' - }, { - origin: true, - id: 3, - uuid: Utils.getuuid(), - label: 'freeze', - intertype: 'inner', - innerFunc: '', - interface: '', - outerFunc: '', - callbackFunc: '', - Ot: 'requiredOnce', - position: 'toolbar', - OpenType: 'exec', - pageTemplate: '', - icon: '', - class: 'default' + class: 'red', + verify: null } ], columns: [ { origin: true, - id: 0, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName1', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -154,10 +129,9 @@ Width: 120 }, { origin: true, - id: 1, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName2', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -165,10 +139,9 @@ Width: 120 }, { origin: true, - id: 2, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName3', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -176,17 +149,52 @@ Width: 120 }, { origin: true, - id: 3, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName4', + label: 'label', field: '', Hide: 'false', IsSort: 'true', type: 'text', Width: 120 } - ] + ], + gridBtn: { + display: false, + Align: 'center', + IsSort: 'false', + uuid: Utils.getuuid(), + label: CommonDict['header.form.column.action'], + type: 'action', + style: 'button', + show: 'horizontal', + Width: 120 + }, + tabs: [ + { + origin: true, // 鏄惁涓虹ず渚� + groupId: 'tabs', + uuid: Utils.getuuid(), + label: 'tab1', + icon: '', + type: 'SubTable', + linkTab: '', + subtabs: [], + supMenu: '' + }, + { + origin: true, + groupId: 'tabs', + uuid: Utils.getuuid(), + label: 'tab2', + icon: '', + type: 'SubTable', + linkTab: '', + subtabs: [], + supMenu: '' + } + ], + tabgroups: ['tabs'] } searchItems = [ @@ -210,8 +218,20 @@ }, { type: 'search', - label: '鏃堕棿妗嗭紙绉掞級', - subType: 'datetime', + label: '鏃堕棿妗嗭紙鍛級', + subType: 'dateweek', + url: '' + }, + { + type: 'search', + label: '鏃堕棿妗嗭紙鏈堬級', + subType: 'datemonth', + url: '' + }, + { + type: 'search', + label: '鏃堕棿妗嗭紙鍖洪棿锛�', + subType: 'daterange', url: '' } ] @@ -219,7 +239,7 @@ actionItems = [ { type: 'action', - label: CommonDict['header.form.pop'], + label: CommonDict['header.form.popform'], subType: 'pop', url: '' }, @@ -237,20 +257,44 @@ }, { type: 'action', + label: CommonDict['header.form.excelIn'], + subType: 'excelIn', + url: '' + }, + { + type: 'action', + label: CommonDict['header.form.excelOut'], + subType: 'excelOut', + url: '' + }, + { + type: 'action', + label: CommonDict['header.form.popview'], + subType: 'popview', + url: '' + }, + { + type: 'action', label: CommonDict['header.form.tab'], subType: 'tab', url: '' }, { type: 'action', - label: CommonDict['header.form.newpage'], - subType: 'newpage', + label: CommonDict['header.form.blank'], + subType: 'blank', url: '' }, { type: 'action', - label: CommonDict['header.form.blank'], - subType: 'blank', + label: CommonDict['header.form.newpage.inner'], + subType: 'innerpage', + url: '' + }, + { + type: 'action', + label: CommonDict['header.form.newpage.outer'], + subType: 'outerpage', url: '' } ] @@ -264,9 +308,35 @@ }, { type: 'columns', + label: CommonDict['header.form.number'], + subType: 'number', + url: '' + }, + { + type: 'columns', label: CommonDict['header.form.picture'], subType: 'picture', url: '' + }, + { + type: 'columns', + label: CommonDict['header.form.textarea'], + subType: 'textarea', + url: '' + }, + { + type: 'columns', + label: CommonDict['header.form.colspan'], + subType: 'colspan', + url: '' + } + ] + + tabItems = [ + { + type: 'tabs', + label: CommonDict['header.menu.tab.subtable'], + subType: 'SubTable', } ] } -- Gitblit v1.8.0