From 010fdcf8abd58bde5c1106db8ed8448effc75b4b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 25 二月 2025 16:37:46 +0800
Subject: [PATCH] 2025-02-25
---
src/templates/comtableconfig/source.jsx | 301 ++++++++++++++++++++++++-------------------------
1 files changed, 147 insertions(+), 154 deletions(-)
diff --git a/src/templates/comtableconfig/source.jsx b/src/templates/comtableconfig/source.jsx
index d5297f9..ff23352 100644
--- a/src/templates/comtableconfig/source.jsx
+++ b/src/templates/comtableconfig/source.jsx
@@ -1,8 +1,4 @@
import Utils from '@/utils/utils.js'
-import zhCN from '@/locales/zh-CN/model.js'
-import enUS from '@/locales/en-US/model.js'
-
-const CommonDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
class CommonTableBaseData {
baseConfig = {
@@ -28,141 +24,132 @@
},
tables: [],
search: [
- {
- origin: true,
- uuid: Utils.getuuid(),
- label: 'label',
- field: '',
- initval: '',
- type: 'text',
- resourceType: '0',
- setAll: 'false',
- options: [],
- orderType: 'asc',
- match: 'like',
- display: 'dropdown'
- }, {
- origin: true,
- uuid: Utils.getuuid(),
- label: 'label',
- field: '',
- initval: '',
- type: 'select',
- resourceType: '0',
- setAll: 'false',
- options: [],
- orderType: 'asc',
- match: 'equal',
- display: 'dropdown'
- }, {
- origin: true,
- uuid: Utils.getuuid(),
- label: 'label',
- field: '',
- initval: '',
- type: 'date',
- resourceType: '0',
- setAll: 'false',
- options: [],
- 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,
- uuid: Utils.getuuid(),
- label: 'add',
- intertype: 'system',
- Ot: 'notRequired',
- position: 'toolbar',
- execSuccess: 'grid',
- execError: 'never',
- errorTime: 15,
- 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',
- errorTime: 15,
- 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',
- errorTime: 15,
- OpenType: 'prompt',
- icon: 'delete',
- class: 'red',
- verify: null
- }
+ // {
+ // 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,
- 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
- }
+ // {
+ // 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: CommonDict['model.operation'],
+ label: '鎿嶄綔',
type: 'action',
style: 'button',
show: 'horizontal',
@@ -204,25 +191,25 @@
searchItems = [
{
type: 'search',
- label: CommonDict['model.form.text'],
+ label: '鏂囨湰',
subType: 'text',
url: ''
},
{
type: 'search',
- label: CommonDict['model.form.select'],
+ label: '涓嬫媺閫夋嫨',
subType: 'select',
url: ''
},
{
type: 'search',
- label: CommonDict['model.form.multiselect'],
+ label: '涓嬫媺澶氶��',
subType: 'multiselect',
url: ''
},
{
type: 'search',
- label: CommonDict['model.form.link'],
+ label: '鑱斿姩鑿滃崟',
subType: 'link',
url: ''
},
@@ -234,31 +221,37 @@
},
{
type: 'search',
- label: CommonDict['model.form.dateday'],
+ label: '鏃ユ湡锛堝ぉ锛�',
subType: 'date',
url: ''
},
{
type: 'search',
- label: CommonDict['model.form.dateweek'],
+ label: '鏃ユ湡锛堝懆锛�',
subType: 'dateweek',
url: ''
},
{
type: 'search',
- label: CommonDict['model.form.datemonth'],
+ label: '鏃ユ湡锛堟湀锛�',
subType: 'datemonth',
url: ''
},
{
type: 'search',
- label: CommonDict['model.form.daterange'],
+ label: '鏃ユ湡锛堝尯闂达級',
subType: 'daterange',
url: ''
},
{
type: 'search',
- label: CommonDict['model.form.dategroup'],
+ label: '鏁板�硷紙鍖洪棿锛�',
+ subType: 'range',
+ url: ''
+ },
+ {
+ type: 'search',
+ label: '鏃ユ湡锛堢粍鍚堬級',
subType: 'group',
url: ''
}
@@ -267,55 +260,55 @@
actionItems = [
{
type: 'action',
- label: CommonDict['model.form.popform'],
+ label: '寮圭獥锛堣〃鍗曪級',
subType: 'pop',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.prompt'],
+ label: '鎻愮ず妗�',
subType: 'prompt',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.exec'],
+ label: '鐩存帴鎵ц',
subType: 'exec',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.excelIn'],
+ label: '瀵煎叆Excel',
subType: 'excelIn',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.excelOut'],
+ label: '瀵煎嚭Excel',
subType: 'excelOut',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.popview'],
+ label: '寮圭獥锛堟爣绛撅級',
subType: 'popview',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.tab'],
+ label: '鏍囩椤�',
subType: 'tab',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.newpage'],
+ label: '鏂伴〉闈�',
subType: 'innerpage',
url: ''
},
{
type: 'action',
- label: CommonDict['model.form.funcbutton'],
+ label: '鍔熻兘鎸夐挳',
subType: 'funcbutton',
url: ''
}
@@ -324,37 +317,37 @@
columnItems = [
{
type: 'columns',
- label: CommonDict['model.form.text'],
+ label: '鏂囨湰',
subType: 'text',
url: ''
},
{
type: 'columns',
- label: CommonDict['model.form.number'],
+ label: '鏁板瓧',
subType: 'number',
url: ''
},
{
type: 'columns',
- label: CommonDict['model.form.picture'],
+ label: '鍥剧墖',
subType: 'picture',
url: ''
},
{
type: 'columns',
- label: CommonDict['model.form.href'],
+ label: '閾炬帴',
subType: 'link',
url: ''
},
{
type: 'columns',
- label: CommonDict['model.form.textarea'],
+ label: '澶氳鏂囨湰',
subType: 'textarea',
url: ''
},
{
type: 'columns',
- label: CommonDict['model.form.colspan'],
+ label: '鍚堝苟鍒�',
subType: 'colspan',
url: ''
},
@@ -369,7 +362,7 @@
tabItems = [
{
type: 'tabs',
- label: CommonDict['model.menu.tab.subtable'],
+ label: '瀛愯〃',
subType: 'SubTable',
}
]
--
Gitblit v1.8.0