From 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 12 十二月 2023 21:05:37 +0800 Subject: [PATCH] 2023-12-12 --- src/templates/modalconfig/source.jsx | 160 +++++++++++++++++++++++++++++++++++------------------ 1 files changed, 106 insertions(+), 54 deletions(-) diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx index c340150..d5bce34 100644 --- a/src/templates/modalconfig/source.jsx +++ b/src/templates/modalconfig/source.jsx @@ -1,8 +1,4 @@ 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 export const BaseConfig = { type: 'Modal', @@ -17,7 +13,6 @@ display: 'modal' }, tables: [], - groups: [], fields: [ { origin: true, @@ -27,10 +22,11 @@ initval: '', type: 'text', resourceType: '0', - setAll: 'false', options: [], orderType: 'asc', decimal: 0, + span: 12, + labelwidth: 33.3, min: '', max: '', readonly: 'false', @@ -43,10 +39,11 @@ initval: '', type: 'select', resourceType: '0', - setAll: 'false', options: [], orderType: 'asc', decimal: 0, + span: 12, + labelwidth: 33.3, min: '', max: '', readonly: 'false', @@ -59,10 +56,11 @@ initval: '', type: 'date', resourceType: '0', - setAll: 'false', options: [], orderType: 'asc', decimal: 0, + span: 12, + labelwidth: 33.3, min: '', max: '', readonly: 'false', @@ -74,69 +72,123 @@ export const SearchItems = [ { type: 'form', - label: CommonDict['header.form.text'], + label: '鏂囨湰', subType: 'text', - url: '' }, { type: 'form', - label: CommonDict['header.form.number'], + label: '鏁板瓧', subType: 'number', - url: '' }, { type: 'form', - label: CommonDict['header.form.select'], + label: '涓嬫媺閫夋嫨', subType: 'select', - url: '' }, { type: 'form', - label: CommonDict['header.form.multiselect'], - subType: 'multiselect', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.link'], - subType: 'link', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.fileupload'], - subType: 'fileupload', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.dateday'], - subType: 'date', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.datemonth'], - subType: 'datemonth', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.datetime'], - subType: 'datetime', - url: '' - }, - { - type: 'form', - label: CommonDict['header.form.textarea'], + label: '澶氳鏂囨湰', subType: 'textarea', - url: '' }, { type: 'form', - label: CommonDict['header.form.funcvar'], + label: '涓嬫媺澶氶��', + subType: 'multiselect', + }, + { + type: 'form', + label: '鑱斿姩鑿滃崟', + subType: 'link', + }, + { + type: 'form', + label: '閫夋嫨鍣�', + subType: 'popSelect', + }, + { + type: 'form', + label: '寮�鍏�', + subType: 'switch', + }, + { + type: 'form', + label: '澶氶�夋', + subType: 'checkbox', + }, + { + type: 'form', + label: '鍗曢�夋', + subType: 'radio', + }, + { + type: 'form', + label: '閫夐」鍗�', + subType: 'checkcard', + }, + { + type: 'form', + label: '鏂囦欢涓婁紶', + subType: 'fileupload', + }, + { + type: 'form', + label: '鏃ユ湡锛堝ぉ锛�', + subType: 'date', + }, + { + type: 'form', + label: '鏃ユ湡锛堟湀锛�', + subType: 'datemonth', + }, + { + type: 'form', + label: '绾ц仈鑿滃崟', + subType: 'cascader', + }, + { + type: 'form', + label: '璇勫垎', + subType: 'rate', + }, + { + type: 'form', + label: '棰滆壊', + subType: 'color', + }, + { + type: 'form', + label: '瀵屾枃鏈�', + subType: 'brafteditor', + }, + { + type: 'form', + label: '鍑芥暟鍙橀噺', subType: 'funcvar', - url: '' + }, + { + type: 'form', + label: '鎻愮ず', + subType: 'hint', + }, + { + type: 'form', + label: '鍒嗗壊绾�', + subType: 'split', + }, + { + type: 'form', + label: '鍏宠仈涓昏〃', + subType: 'linkMain', + }, + { + type: 'form', + label: '鍏紡', + subType: 'formula', + }, + { + type: 'form', + label: '楠岃瘉鐮�', + subType: 'vercode', } ] -- Gitblit v1.8.0