From 4141e18a9aee7c2a3887ff99bf0b1343d5771b79 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 09 十一月 2023 15:25:57 +0800
Subject: [PATCH] Merge branch 'develop'
---
src/templates/comtableconfig/source.jsx | 462 +++++++++++++++++++++++++++++++++------------------------
1 files changed, 266 insertions(+), 196 deletions(-)
diff --git a/src/templates/comtableconfig/source.jsx b/src/templates/comtableconfig/source.jsx
index 3c3cfbd..f21ac4b 100644
--- a/src/templates/comtableconfig/source.jsx
+++ b/src/templates/comtableconfig/source.jsx
@@ -1,238 +1,252 @@
import Utils from '@/utils/utils.js'
-import zhCN from '@/locales/zh-CN/comtable.js'
-import enUS from '@/locales/en-US/comtable.js'
-
-const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS
class CommonTableBaseData {
baseConfig = {
+ version: '1.0',
type: 'system',
+ Template: 'CommonTable',
+ enabled: false,
+ easyCode: '',
setting: {
actionfixed: false,
columnfixed: false,
tableName: '',
tableType: 'checkbox',
primaryKey: '',
- dataresource: ''
+ order: '',
+ dataresource: '',
+ interType: 'system',
+ sysInterface: 'false',
+ innerFunc: '',
+ interface: '',
+ outerFunc: '',
+ onload: 'true'
},
tables: [],
search: [
- {
- origin: true,
- id: 0,
- uuid: Utils.getuuid(),
- label: 'text',
- 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',
- 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',
- field: '',
- initval: '',
- type: 'date',
- resourceType: '0',
- setAll: 'false',
- options: [],
- dataSource: '',
- linkField: '',
- valueField: '',
- valueText: '',
- orderBy: '',
- orderType: 'asc',
- match: 'greater',
- display: 'dropdown'
- }
+ // {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // label: 'label',
+ // field: '',
+ // initval: '',
+ // type: 'text',
+ // resourceType: '0',
+ // options: [],
+ // orderType: 'asc',
+ // match: 'like',
+ // }, {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // label: 'label',
+ // field: '',
+ // initval: '',
+ // type: 'select',
+ // resourceType: '0',
+ // options: [],
+ // orderType: 'asc',
+ // match: '=',
+ // }, {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // label: 'label',
+ // field: '',
+ // initval: '',
+ // type: 'date',
+ // resourceType: '0',
+ // options: [],
+ // orderType: 'asc',
+ // match: 'greater',
+ // }
],
action: [
- {
- origin: true,
- id: 0,
- uuid: Utils.getuuid(),
- label: 'add',
- intertype: 'inner',
- innerFunc: '',
- interface: '',
- outerFunc: '',
- callbackFunc: '',
- Ot: 'notRequired',
- position: 'toolbar',
- execSuccess: 'grid',
- execError: 'never',
- OpenType: 'pop',
- pageTemplate: '',
- icon: 'plus',
- class: 'green'
- }, {
- origin: true,
- id: 1,
- uuid: Utils.getuuid(),
- label: 'update',
- intertype: 'inner',
- innerFunc: '',
- interface: '',
- outerFunc: '',
- callbackFunc: '',
- Ot: 'requiredSgl',
- position: 'grid',
- execSuccess: 'grid',
- execError: 'never',
- OpenType: 'pop',
- pageTemplate: '',
- icon: 'form',
- class: 'purple'
- }, {
- origin: true,
- id: 2,
- uuid: Utils.getuuid(),
- label: 'delete',
- intertype: 'inner',
- innerFunc: '',
- interface: '',
- outerFunc: '',
- callbackFunc: '',
- Ot: 'required',
- position: 'toolbar',
- execSuccess: 'grid',
- execError: 'never',
- 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'
- }
+ // {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // label: 'add',
+ // intertype: 'system',
+ // Ot: 'notRequired',
+ // position: 'toolbar',
+ // execSuccess: 'grid',
+ // execError: 'never',
+ // OpenType: 'pop',
+ // icon: 'plus',
+ // class: 'green',
+ // verify: null
+ // }, {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // label: 'update',
+ // intertype: 'system',
+ // Ot: 'requiredSgl',
+ // position: 'toolbar',
+ // execSuccess: 'grid',
+ // execError: 'never',
+ // OpenType: 'pop',
+ // icon: 'form',
+ // class: 'purple',
+ // verify: null
+ // }, {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // label: 'delete',
+ // intertype: 'system',
+ // Ot: 'required',
+ // position: 'toolbar',
+ // execSuccess: 'grid',
+ // execError: 'never',
+ // OpenType: 'prompt',
+ // icon: 'delete',
+ // class: 'red',
+ // verify: null
+ // }
],
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
- }
- ]
+ // {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // Align: 'left',
+ // label: 'label',
+ // field: '',
+ // Hide: 'false',
+ // IsSort: 'true',
+ // type: 'text',
+ // Width: 120
+ // }, {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // Align: 'left',
+ // label: 'label',
+ // field: '',
+ // Hide: 'false',
+ // IsSort: 'true',
+ // type: 'text',
+ // Width: 120
+ // }, {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // Align: 'left',
+ // label: 'label',
+ // field: '',
+ // Hide: 'false',
+ // IsSort: 'true',
+ // type: 'text',
+ // Width: 120
+ // }, {
+ // origin: true,
+ // uuid: Utils.getuuid(),
+ // Align: 'left',
+ // label: 'label',
+ // field: '',
+ // Hide: 'false',
+ // IsSort: 'true',
+ // type: 'text',
+ // Width: 120
+ // }
+ ],
+ gridBtn: {
+ display: false,
+ Align: 'center',
+ IsSort: 'false',
+ uuid: Utils.getuuid(),
+ label: '鎿嶄綔',
+ type: 'action',
+ style: 'button',
+ show: 'horizontal',
+ Width: 120
+ },
+ tabgroups: [{
+ uuid: 'tabs',
+ sublist: [
+ {
+ origin: true, // 鏄惁涓虹ず渚�
+ uuid: Utils.getuuid(),
+ label: 'tab1',
+ type: 'SubTable',
+ linkTab: '',
+ supMenu: ''
+ },
+ {
+ origin: true,
+ uuid: Utils.getuuid(),
+ label: 'tab2',
+ type: 'SubTable',
+ linkTab: '',
+ supMenu: ''
+ }
+ ]
+ }],
+ expand: false,
+ charts: [{
+ uuid: Utils.getuuid(),
+ label: '',
+ title: '',
+ chartType: 'table',
+ icon: 'table',
+ Hide: 'false',
+ blacklist: []
+ }]
}
searchItems = [
{
type: 'search',
- label: '鏂囨湰妗�',
+ label: '鏂囨湰',
subType: 'text',
url: ''
},
{
type: 'search',
- label: '涓嬫媺妗�',
+ label: '涓嬫媺閫夋嫨',
subType: 'select',
url: ''
},
{
type: 'search',
- label: '鏃堕棿妗嗭紙澶╋級',
+ label: '涓嬫媺澶氶��',
+ subType: 'multiselect',
+ url: ''
+ },
+ {
+ type: 'search',
+ label: '鑱斿姩鑿滃崟',
+ subType: 'link',
+ url: ''
+ },
+ {
+ type: 'search',
+ label: '閫夐」鍗�',
+ subType: 'checkcard',
+ url: ''
+ },
+ {
+ type: 'search',
+ label: '鏃ユ湡锛堝ぉ锛�',
subType: 'date',
url: ''
},
{
type: 'search',
- label: '鏃堕棿妗嗭紙鍛級',
+ label: '鏃ユ湡锛堝懆锛�',
subType: 'dateweek',
url: ''
},
{
type: 'search',
- label: '鏃堕棿妗嗭紙鏈堬級',
+ label: '鏃ユ湡锛堟湀锛�',
subType: 'datemonth',
url: ''
},
{
type: 'search',
- label: '鏃堕棿妗嗭紙鍖洪棿锛�',
+ label: '鏃ユ湡锛堝尯闂达級',
subType: 'daterange',
+ url: ''
+ },
+ {
+ type: 'search',
+ label: '鏃ユ湡锛堢粍鍚堬級',
+ subType: 'group',
url: ''
}
]
@@ -240,38 +254,56 @@
actionItems = [
{
type: 'action',
- label: CommonDict['header.form.pop'],
+ label: '寮圭獥锛堣〃鍗曪級',
subType: 'pop',
url: ''
},
{
type: 'action',
- label: CommonDict['header.form.prompt'],
+ label: '鎻愮ず妗�',
subType: 'prompt',
url: ''
},
{
type: 'action',
- label: CommonDict['header.form.exec'],
+ label: '鐩存帴鎵ц',
subType: 'exec',
url: ''
},
{
type: 'action',
- label: CommonDict['header.form.tab'],
+ label: '瀵煎叆Excel',
+ subType: 'excelIn',
+ url: ''
+ },
+ {
+ type: 'action',
+ label: '瀵煎嚭Excel',
+ subType: 'excelOut',
+ url: ''
+ },
+ {
+ type: 'action',
+ label: '寮圭獥锛堟爣绛撅級',
+ subType: 'popview',
+ url: ''
+ },
+ {
+ type: 'action',
+ label: '鏍囩椤�',
subType: 'tab',
url: ''
},
{
type: 'action',
- label: CommonDict['header.form.newpage'],
- subType: 'newpage',
+ label: '鏂伴〉闈�',
+ subType: 'innerpage',
url: ''
},
{
type: 'action',
- label: CommonDict['header.form.blank'],
- subType: 'blank',
+ label: '鍔熻兘鎸夐挳',
+ subType: 'funcbutton',
url: ''
}
]
@@ -279,15 +311,53 @@
columnItems = [
{
type: 'columns',
- label: CommonDict['header.form.text'],
+ label: '鏂囨湰',
subType: 'text',
url: ''
},
{
type: 'columns',
- label: CommonDict['header.form.picture'],
+ label: '鏁板瓧',
+ subType: 'number',
+ url: ''
+ },
+ {
+ type: 'columns',
+ label: '鍥剧墖',
subType: 'picture',
url: ''
+ },
+ {
+ type: 'columns',
+ label: '閾炬帴',
+ subType: 'link',
+ url: ''
+ },
+ {
+ type: 'columns',
+ label: '澶氳鏂囨湰',
+ subType: 'textarea',
+ url: ''
+ },
+ {
+ type: 'columns',
+ label: '鍚堝苟鍒�',
+ subType: 'colspan',
+ url: ''
+ },
+ {
+ type: 'columns',
+ label: '搴忓彿',
+ subType: 'index',
+ url: ''
+ }
+ ]
+
+ tabItems = [
+ {
+ type: 'tabs',
+ label: '瀛愯〃',
+ subType: 'SubTable',
}
]
}
--
Gitblit v1.8.0