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 |  300 +++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 187 insertions(+), 113 deletions(-)

diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx
index 5bdcd00..d5bce34 100644
--- a/src/templates/modalconfig/source.jsx
+++ b/src/templates/modalconfig/source.jsx
@@ -1,120 +1,194 @@
 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 = {
-    type: 'Modal',
-    setting: {
-      title: '',
-      width: 60,
-      cols: '2',
-      container: 'tab',
-      focus: '',
-      finish: 'close',
-      clickouter: 'unclose'
-    },
-    tables: [],
-    groups: [],
-    fields: [
-      {
-        origin: true,
-        uuid: Utils.getuuid(),
-        label: 'label',
-        field: '',
-        initval: '',
-        type: 'text',
-        resourceType: '0',
-        setAll: 'false',
-        options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
-        orderType: 'asc',
-        readonly: 'false',
-        required: 'false'
-      }, {
-        origin: true,
-        uuid: Utils.getuuid(),
-        label: 'label',
-        field: '',
-        initval: '',
-        type: 'select',
-        resourceType: '0',
-        setAll: 'false',
-        options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
-        orderType: 'asc',
-        readonly: 'false',
-        required: 'false'
-      }, {
-        origin: true,
-        uuid: Utils.getuuid(),
-        label: 'label',
-        field: '',
-        initval: '',
-        type: 'date',
-        resourceType: '0',
-        setAll: 'false',
-        options: [],
-        dataSource: '',
-        linkField: '',
-        valueField: '',
-        valueText: '',
-        orderBy: '',
-        orderType: 'asc',
-        readonly: 'false',
-        required: 'false'
-      }
-    ]
-  }
-
-  searchItems = [
+export const BaseConfig = {
+  type: 'Modal',
+  setting: {
+    title: '',
+    width: 60,
+    cols: '2',
+    container: 'tab',
+    focus: '',
+    finish: 'close',
+    clickouter: 'unclose',
+    display: 'modal'
+  },
+  tables: [],
+  fields: [
     {
-      type: 'form',
-      label: '鏂囨湰妗�',
-      subType: 'text',
-      url: ''
-    },
-    {
-      type: 'form',
-      label: '鏁板�兼',
-      subType: 'number',
-      url: ''
-    },
-    {
-      type: 'form',
-      label: '涓嬫媺妗�',
-      subType: 'select',
-      url: ''
-    },
-    {
-      type: 'form',
-      label: '鏃堕棿妗嗭紙澶╋級',
-      subType: 'date',
-      url: ''
-    },
-    {
-      type: 'form',
-      label: '鏃堕棿妗嗭紙鏈堬級',
-      subType: 'datemonth',
-      url: ''
-    },
-    {
-      type: 'form',
-      label: '鏃堕棿妗嗭紙绉掞級',
-      subType: 'datetime',
-      url: ''
+      origin: true,
+      uuid: Utils.getuuid(),
+      label: 'label',
+      field: '',
+      initval: '',
+      type: 'text',
+      resourceType: '0',
+      options: [],
+      orderType: 'asc',
+      decimal: 0,
+      span: 12,
+      labelwidth: 33.3,
+      min: '',
+      max: '',
+      readonly: 'false',
+      required: 'false'
+    }, {
+      origin: true,
+      uuid: Utils.getuuid(),
+      label: 'label',
+      field: '',
+      initval: '',
+      type: 'select',
+      resourceType: '0',
+      options: [],
+      orderType: 'asc',
+      decimal: 0,
+      span: 12,
+      labelwidth: 33.3,
+      min: '',
+      max: '',
+      readonly: 'false',
+      required: 'false'
+    }, {
+      origin: true,
+      uuid: Utils.getuuid(),
+      label: 'label',
+      field: '',
+      initval: '',
+      type: 'date',
+      resourceType: '0',
+      options: [],
+      orderType: 'asc',
+      decimal: 0,
+      span: 12,
+      labelwidth: 33.3,
+      min: '',
+      max: '',
+      readonly: 'false',
+      required: 'false'
     }
   ]
 }
 
-export default new CommonTableBaseData()
+export const SearchItems = [
+  {
+    type: 'form',
+    label: '鏂囨湰',
+    subType: 'text',
+  },
+  {
+    type: 'form',
+    label: '鏁板瓧',
+    subType: 'number',
+  },
+  {
+    type: 'form',
+    label: '涓嬫媺閫夋嫨',
+    subType: 'select',
+  },
+  {
+    type: 'form',
+    label: '澶氳鏂囨湰',
+    subType: 'textarea',
+  },
+  {
+    type: 'form',
+    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',
+  },
+  {
+    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