From 24f0ce147c8daef39ec437d5def9d089ea5b1839 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 05 六月 2020 17:23:53 +0800 Subject: [PATCH] 2020-06-05 --- src/templates/subtableconfig/source.jsx | 162 ++++++++++++++++++++---------------------------------- 1 files changed, 60 insertions(+), 102 deletions(-) diff --git a/src/templates/subtableconfig/source.jsx b/src/templates/subtableconfig/source.jsx index e502372..f45159d 100644 --- a/src/templates/subtableconfig/source.jsx +++ b/src/templates/subtableconfig/source.jsx @@ -1,16 +1,19 @@ import Utils from '@/utils/utils.js' -import zhCN from '@/locales/zh-CN/comtable.js' -import enUS from '@/locales/en-US/comtable.js' +import zhCN from '@/locales/zh-CN/model.js' +import enUS from '@/locales/en-US/model.js' const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS -class CommonTableBaseData { +class SubTableBaseData { baseConfig = { type: 'system', + Template: 'SubTable', enabled: false, + tabName: '', + tabNo: '', + Remark: '', + uuid: Utils.getuuid(), setting: { - actionfixed: false, - columnfixed: false, tableName: '', tableType: 'checkbox', primaryKey: '', @@ -33,11 +36,6 @@ resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', match: 'like', display: 'dropdown' @@ -51,11 +49,6 @@ resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', match: 'equal', display: 'dropdown' @@ -69,11 +62,6 @@ resourceType: '0', setAll: 'false', options: [], - dataSource: '', - linkField: '', - valueField: '', - valueText: '', - orderBy: '', orderType: 'asc', match: 'greater', display: 'dropdown' @@ -85,64 +73,46 @@ 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, 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, 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' + class: 'red', + verify: null } ], columns: [ @@ -199,63 +169,71 @@ 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: '' - } - ] + expand: false, + charts: [{ + uuid: Utils.getuuid(), + label: '', + title: '', + chartType: 'table', + icon: 'table', + Hide: 'false', + blacklist: [] + }] } searchItems = [ { type: 'search', - label: '鏂囨湰妗�', + label: CommonDict['header.form.text'], subType: 'text', url: '' }, { type: 'search', - label: '涓嬫媺妗�', + label: CommonDict['header.form.select'], subType: 'select', url: '' }, { type: 'search', - label: '鏃堕棿妗嗭紙澶╋級', + label: CommonDict['header.form.multiselect'], + subType: 'multiselect', + url: '' + }, + { + type: 'search', + label: CommonDict['header.form.link'], + subType: 'link', + url: '' + }, + { + type: 'search', + label: CommonDict['header.form.dateday'], subType: 'date', url: '' }, { type: 'search', - label: '鏃堕棿妗嗭紙鍛級', + label: CommonDict['header.form.dateweek'], subType: 'dateweek', url: '' }, { type: 'search', - label: '鏃堕棿妗嗭紙鏈堬級', + label: CommonDict['header.form.datemonth'], subType: 'datemonth', url: '' }, { type: 'search', - label: '鏃堕棿妗嗭紙鍖洪棿锛�', + label: CommonDict['header.form.daterange'], subType: 'daterange', + url: '' + }, + { + type: 'search', + label: '鏃ユ湡锛堢粍鍚堬級', + subType: 'group', url: '' } ] @@ -287,12 +265,6 @@ }, { type: 'action', - label: CommonDict['header.form.tab'], - subType: 'tab', - url: '' - }, - { - type: 'action', label: CommonDict['header.form.excelIn'], subType: 'excelIn', url: '' @@ -305,20 +277,8 @@ }, { 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', + label: CommonDict['header.form.funcbutton'], + subType: 'funcbutton', url: '' } ] @@ -344,19 +304,17 @@ }, { 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', - } - ] } -export default new CommonTableBaseData() +export default new SubTableBaseData() -- Gitblit v1.8.0