From e6a6fb8d27b14581ae771325c1b99ee26d6618dd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 19 三月 2020 18:19:06 +0800 Subject: [PATCH] 2020-03-19 --- src/templates/comtableconfig/source.jsx | 172 +++++++++++++++++++++++++------------------------------- 1 files changed, 77 insertions(+), 95 deletions(-) diff --git a/src/templates/comtableconfig/source.jsx b/src/templates/comtableconfig/source.jsx index 1915ca5..7bd38c1 100644 --- a/src/templates/comtableconfig/source.jsx +++ b/src/templates/comtableconfig/source.jsx @@ -7,6 +7,7 @@ class CommonTableBaseData { baseConfig = { type: 'system', + Template: 'CommonTable', enabled: false, setting: { actionfixed: false, @@ -17,64 +18,51 @@ order: '', dataresource: '', interType: 'inner', - innerFunc: '' + 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' @@ -83,99 +71,57 @@ action: [ { origin: true, - id: 0, uuid: Utils.getuuid(), label: 'add', intertype: 'inner', - innerFunc: '', - interface: '', method: 'POST', - outerFunc: '', - sql: '', - sqlType: '', - callbackFunc: '', Ot: 'notRequired', position: 'toolbar', execSuccess: 'grid', execError: 'never', + errorTime: 15, OpenType: 'pop', - pageTemplate: '', - url: '', icon: 'plus', - class: 'green' + class: 'green', + verify: null }, { origin: true, - id: 1, uuid: Utils.getuuid(), label: 'update', intertype: 'inner', - innerFunc: '', - interface: '', method: 'POST', - outerFunc: '', - sql: '', - sqlType: '', - callbackFunc: '', Ot: 'requiredSgl', position: 'grid', execSuccess: 'grid', execError: 'never', + errorTime: 15, OpenType: 'pop', - pageTemplate: '', - url: '', icon: 'form', - class: 'purple' + class: 'purple', + verify: null }, { origin: true, - id: 2, uuid: Utils.getuuid(), label: 'delete', intertype: 'inner', - innerFunc: '', - interface: '', method: 'POST', - outerFunc: '', - sql: '', - sqlType: '', - callbackFunc: '', Ot: 'required', position: 'toolbar', execSuccess: 'grid', execError: 'never', + errorTime: 15, OpenType: 'prompt', - pageTemplate: '', - url: '', icon: 'delete', - class: 'red' - }, { - origin: true, - id: 3, - uuid: Utils.getuuid(), - label: 'freeze', - intertype: 'inner', - innerFunc: '', - interface: '', - method: 'POST', - outerFunc: '', - sql: '', - sqlType: '', - callbackFunc: '', - Ot: 'requiredOnce', - position: 'toolbar', - OpenType: 'exec', - pageTemplate: '', - url: '', - 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', @@ -183,10 +129,9 @@ Width: 120 }, { origin: true, - id: 1, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName2', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -194,10 +139,9 @@ Width: 120 }, { origin: true, - id: 2, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName3', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -205,10 +149,9 @@ Width: 120 }, { origin: true, - id: 3, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName4', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -226,7 +169,32 @@ 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 = [ @@ -277,12 +245,6 @@ }, { type: 'action', - label: CommonDict['header.form.popview'], - subType: 'popview', - url: '' - }, - { - type: 'action', label: CommonDict['header.form.prompt'], subType: 'prompt', url: '' @@ -295,12 +257,6 @@ }, { type: 'action', - label: CommonDict['header.form.tab'], - subType: 'tab', - url: '' - }, - { - type: 'action', label: CommonDict['header.form.excelIn'], subType: 'excelIn', url: '' @@ -309,6 +265,18 @@ 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: '' }, { @@ -340,14 +308,20 @@ }, { 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.number'], - subType: 'number', + label: CommonDict['header.form.textarea'], + subType: 'textarea', url: '' }, { @@ -357,6 +331,14 @@ url: '' } ] + + tabItems = [ + { + type: 'tabs', + label: CommonDict['header.menu.tab.subtable'], + subType: 'SubTable', + } + ] } export default new CommonTableBaseData() -- Gitblit v1.8.0