From a859b8d276dcdc0a9a806498f4a6af845858e3a9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 24 十二月 2019 15:32:11 +0800 Subject: [PATCH] 2019-12-24 --- src/templates/comtableconfig/source.jsx | 168 +++++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 129 insertions(+), 39 deletions(-) diff --git a/src/templates/comtableconfig/source.jsx b/src/templates/comtableconfig/source.jsx index 307604d..c269728 100644 --- a/src/templates/comtableconfig/source.jsx +++ b/src/templates/comtableconfig/source.jsx @@ -7,18 +7,28 @@ class CommonTableBaseData { baseConfig = { type: 'system', + enabled: false, setting: { actionfixed: false, columnfixed: false, - dataresource: '' + tableName: '', + tableType: 'checkbox', + primaryKey: '', + order: '', + dataresource: '', + interType: 'inner', + innerFunc: '', + interface: '', + outerFunc: '', + onload: 'true', + tabshow: 'horizontal' }, tables: [], search: [ { origin: true, - id: 0, uuid: Utils.getuuid(), - label: 'text', + label: 'label', field: '', initval: '', type: 'text', @@ -35,9 +45,8 @@ display: 'dropdown' }, { origin: true, - id: 1, uuid: Utils.getuuid(), - label: 'select', + label: 'label', field: '', initval: '', type: 'select', @@ -54,9 +63,8 @@ display: 'dropdown' }, { origin: true, - id: 2, uuid: Utils.getuuid(), - label: 'date', + label: 'label', field: '', initval: '', type: 'date', @@ -76,77 +84,75 @@ 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', OpenType: 'pop', pageTemplate: '', + url: '', icon: 'plus', class: 'green' }, { 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', OpenType: 'pop', pageTemplate: '', + url: '', icon: 'form', class: 'purple' }, { 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', OpenType: 'prompt', pageTemplate: '', + url: '', 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' } ], columns: [ { origin: true, - id: 0, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName1', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -154,10 +160,9 @@ Width: 120 }, { origin: true, - id: 1, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName2', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -165,10 +170,9 @@ Width: 120 }, { origin: true, - id: 2, uuid: Utils.getuuid(), Align: 'left', - label: 'fieldName3', + label: 'label', field: '', Hide: 'false', IsSort: 'true', @@ -176,15 +180,45 @@ 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, + uuid: Utils.getuuid(), + label: 'tab1', + icon: '', + type: 'SubTable', + linkTab: '', + supMenu: '' + }, + { + origin: true, + uuid: Utils.getuuid(), + label: 'tab2', + icon: '', + type: 'SubTable', + linkTab: '', + supMenu: '' } ] } @@ -210,8 +244,20 @@ }, { type: 'search', - label: '鏃堕棿妗嗭紙绉掞級', - subType: 'datetime', + label: '鏃堕棿妗嗭紙鍛級', + subType: 'dateweek', + url: '' + }, + { + type: 'search', + label: '鏃堕棿妗嗭紙鏈堬級', + subType: 'datemonth', + url: '' + }, + { + type: 'search', + label: '鏃堕棿妗嗭紙鍖洪棿锛�', + subType: 'daterange', url: '' } ] @@ -219,8 +265,14 @@ actionItems = [ { type: 'action', - label: CommonDict['header.form.pop'], + label: CommonDict['header.form.popform'], subType: 'pop', + url: '' + }, + { + type: 'action', + label: CommonDict['header.form.popview'], + subType: 'popview', url: '' }, { @@ -243,14 +295,32 @@ }, { type: 'action', - label: CommonDict['header.form.newpage'], - subType: 'newpage', + label: CommonDict['header.form.excelIn'], + subType: 'excelIn', + url: '' + }, + { + type: 'action', + label: CommonDict['header.form.excelOut'], + subType: 'excelOut', url: '' }, { type: 'action', label: CommonDict['header.form.blank'], subType: 'blank', + url: '' + }, + { + type: 'action', + label: CommonDict['header.form.newpage.inner'], + subType: 'innerpage', + url: '' + }, + { + type: 'action', + label: CommonDict['header.form.newpage.outer'], + subType: 'outerpage', url: '' } ] @@ -267,6 +337,26 @@ label: CommonDict['header.form.picture'], subType: 'picture', url: '' + }, + { + type: 'columns', + label: CommonDict['header.form.number'], + subType: 'number', + 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