NewLife/NewLife.CubeVue

根据枚举类型获取数据源,展示下拉框
笑笑 authored at 2023-04-26 00:33:18
1496d35
Tree
1 Parent(s) d2bd077
Summary: 8 changed files with 1568 additions and 2014 deletions.
Deleted +0 -541
config/routes.json
Modified +3 -0
Modified +5 -6
Modified +14 -2
Added +63 -0
Modified +1440 -1440
Modified +0 -7
Modified +43 -18
Deleted +0 -541
config/routes.json
Modified +3 -0
diff --git a/demo/src/main.ts b/demo/src/main.ts
index 7e160a8..74a0811 100644
--- a/demo/src/main.ts
+++ b/demo/src/main.ts
@@ -1,3 +1,4 @@
+import '@ant-design-vue/pro-layout/dist/style.css';
 import { createCubeUI, fileContext } from '@newlifex/cube-ui';
 import '@newlifex/cube-ui/dist/style.css';
 import 'element-plus/dist/index.css';
@@ -22,4 +23,6 @@ fileContext.addFiles(files);
 // store.dispatch('setUrls', { baseUrl: 'https://cube2.newlifex.com' });
 store.dispatch('setUrls', { baseUrl: (window as any).baseUrl });
 
+store.dispatch('setLayout', 'LayoutAntdv');
+
 app.mount('#app');
Modified +5 -6
diff --git a/src/api/api-base.ts b/src/api/api-base.ts
index 214d60d..26a472d 100644
--- a/src/api/api-base.ts
+++ b/src/api/api-base.ts
@@ -1,3 +1,4 @@
+import { changeToCamelCase } from '@/config/config';
 import type { AxiosInstance } from 'axios';
 
 /**
@@ -36,6 +37,9 @@ class ApiBase {
       case 'Edit':
         kind = 4;
         break;
+      case 'Search':
+        kind = 5;
+        break;
       default:
         break;
     }
@@ -48,12 +52,7 @@ class ApiBase {
     }).then((res) => {
       let list = res.data;
       for (const item of list) {
-        if (item.name === 'ID' || item.name === 'Id') {
-          item.name = 'id';
-        } else {
-          // 大驼峰命名改为小驼峰命名
-          item.name = item.name[0].toLowerCase() + item.name.substring(1);
-        }
+        item.name = changeToCamelCase(item.name);
       }
       return res;
     });
Modified +14 -2
diff --git a/src/components/FormControl.vue b/src/components/FormControl.vue
index d4de0ac..eac9975 100644
--- a/src/components/FormControl.vue
+++ b/src/components/FormControl.vue
@@ -114,12 +114,13 @@
 </template>
 
 <script lang="ts">
-interface FieldConfig {
+export interface FieldConfig {
   displayName: string;
   name: string;
   width: string;
   itemType: string;
-  dataType: string;
+  /** 类型名称 */
+  typeName: string;
   options: any;
   url: string | Array<any>;
   showInList: boolean;
@@ -128,8 +129,10 @@ interface FieldConfig {
   data: any;
 }
 
+import { setItemType } from '@/config/config';
 import type { PropType } from 'vue';
 import { defineComponent } from 'vue';
+
 // import CustomSelect from './CustomSelect.vue'
 export default defineComponent({
   name: 'FormControl',
@@ -396,10 +399,19 @@ export default defineComponent({
   created() {
     const vm = this;
 
+    vm.setItemType();
+
     // 远程或本地数据源处理
     vm.getData();
   },
   methods: {
+    /**
+     * 设置itemType
+     */
+    setItemType() {
+      const configs = this.configs;
+      setItemType(configs);
+    },
     // 设置请求参数,configs.data。对options.data进行处理,如果值有{{field}}形式的值,则替换成为model中的值
     setData() {
       if (!this.options.data) {
Added +63 -0
diff --git a/src/config/config.ts b/src/config/config.ts
new file mode 100644
index 0000000..3f550b8
--- /dev/null
+++ b/src/config/config.ts
@@ -0,0 +1,63 @@
+import { FieldConfig } from '@/components/FormControl.vue';
+
+export const changeToCamelCase = (str: string) => {
+  if (str === 'ID' || str === 'Id') {
+    return 'id';
+  } else {
+    // 大驼峰命名改为小驼峰命名
+    return str[0].toLowerCase() + str.substring(1);
+  }
+};
+
+/**
+ * 根据类型名获取ItemType展示类型
+ * @param typeName 类型名
+ * @returns ItemType展示类型,不识别的默认返回select,表示枚举
+ */
+export const typeNameToItemType = (typeName: string) => {
+  switch (typeName) {
+    case 'String':
+      return 'input';
+    case 'Int32':
+    case 'Int64':
+      return 'input';
+    case 'Boolean':
+      return 'switch';
+    case 'DateTime':
+      return 'datePicker';
+    default:
+      return 'select';
+  }
+};
+
+/**
+ * 设置字段的ItemType展示类型
+ * @param config 字段配置
+ */
+export const setItemType = (config: FieldConfig) => {
+  if (config.itemType) {
+    return;
+  }
+
+  if (config.typeName) {
+    config.itemType = typeNameToItemType(config.typeName);
+  }
+
+  // 如果是select,说明可能是枚举,需要设置options
+  if (config.itemType === 'select') {
+    config.url = '/Cube/Lookup?codes=' + config.typeName;
+    if (!config.options) {
+      config.options = {
+        method: 'get',
+      };
+    } else {
+      config.options.method = 'get';
+    }
+
+    const typeName = changeToCamelCase(config.typeName);
+
+    config.options.afterGetDataList = (data: any) => {
+      return data[typeName];
+    };
+  }
+};
Modified +1440 -1440
diff --git a/src/views/Admin/User/config.tsx b/src/views/Admin/User/config.tsx
index 11617f6..46e25e0 100644
--- a/src/views/Admin/User/config.tsx
+++ b/src/views/Admin/User/config.tsx
@@ -1,35 +1,35 @@
-export const tableSearchConfig = [
-  {
-    name: 'dtStart$dtEnd',
-    displayName: '时间范围',
-    showInSearch: true,
-    itemType: 'datePicker',
-    options: { type: 'daterange', setDefaultValue: false },
-  },
-  {
-    name: 'roleIds',
-    displayName: '角色',
-    showInSearch: true,
-    itemType: 'select',
-    url: '/Admin/Role?enable=true',
-    //  [
-    //   { label: '管理员', value: 1 },
-    //   { label: '高级用户', value: 2 },
-    //   { label: '普通用户', value: 3 },
-    //   { label: '游客', value: 4 },
-    //   { label: '新生命', value: 5 },
-    // ],
-    options: { method: 'get', labelField: 'name', valueField: 'id' },
-  },
-  {
-    name: 'Q',
-    displayName: '',
-    showInSearch: true,
-    options: {
-      placeholder: '请输入关键字',
-    },
-  },
-];
+// export const tableSearchConfig = [
+//   {
+//     name: 'dtStart$dtEnd',
+//     displayName: '时间范围',
+//     showInSearch: true,
+//     itemType: 'datePicker',
+//     options: { type: 'daterange', setDefaultValue: false },
+//   },
+//   {
+//     name: 'roleIds',
+//     displayName: '角色',
+//     showInSearch: true,
+//     itemType: 'select',
+//     url: '/Admin/Role?enable=true',
+//     //  [
+//     //   { label: '管理员', value: 1 },
+//     //   { label: '高级用户', value: 2 },
+//     //   { label: '普通用户', value: 3 },
+//     //   { label: '游客', value: 4 },
+//     //   { label: '新生命', value: 5 },
+//     // ],
+//     options: { method: 'get', labelField: 'name', valueField: 'id' },
+//   },
+//   {
+//     name: 'Q',
+//     displayName: '',
+//     showInSearch: true,
+//     options: {
+//       placeholder: '请输入关键字',
+//     },
+//   },
+// ];
 
 export const tableHandlerConfig = [
   {
@@ -77,1411 +77,1411 @@ export const tableActionConfig = [
   },
 ];
 
-export const tableColumnConfig = [
-  {
-    tableName: 'User',
-    id: 28,
-    tableId: 3,
-    name: 'id',
-    displayName: '编号',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: true,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '编号',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 1,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 29,
-    tableId: 3,
-    name: 'name',
-    displayName: '名称',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: true,
-    length: 50,
-    nullable: false,
-    isDataObjectField: true,
-    description: '名称。登录用户名',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 2,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 31,
-    tableId: 3,
-    name: 'displayName',
-    displayName: '昵称',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '昵称',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 4,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 32,
-    tableId: 3,
-    name: 'sex',
-    displayName: '性别',
-    enable: true,
-    dataType: 'SexKinds',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '性别。未知、男、女',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 5,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 33,
-    tableId: 3,
-    name: 'mail',
-    displayName: '邮件',
-    enable: true,
-    dataType: 'String',
-    itemType: 'mail',
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '邮件',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 6,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 34,
-    tableId: 3,
-    name: 'mobile',
-    displayName: '手机',
-    enable: true,
-    dataType: 'String',
-    itemType: 'mobile',
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '手机',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 7,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 35,
-    tableId: 3,
-    name: 'code',
-    displayName: '代码',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '代码。身份证、员工编号等',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 8,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 36,
-    tableId: 3,
-    name: 'areaId',
-    displayName: '地区',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '地区。省市区',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 9,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 37,
-    tableId: 3,
-    name: 'avatar',
-    displayName: '头像',
-    enable: true,
-    dataType: 'String',
-    itemType: 'image',
-    primaryKey: false,
-    master: false,
-    length: 200,
-    nullable: true,
-    isDataObjectField: true,
-    description: '头像',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 10,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 38,
-    tableId: 3,
-    name: 'roleID',
-    displayName: '角色',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '角色。主要角色',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 11,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 39,
-    tableId: 3,
-    name: 'roleIds',
-    displayName: '角色组',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 200,
-    nullable: true,
-    isDataObjectField: true,
-    description: '角色组。次要角色集合',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 12,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 40,
-    tableId: 3,
-    name: 'departmentID',
-    displayName: '部门',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '部门。组织机构',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 13,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 41,
-    tableId: 3,
-    name: 'online',
-    displayName: '在线',
-    enable: true,
-    dataType: 'Boolean',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '在线',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 14,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 42,
-    tableId: 3,
-    name: 'enable',
-    displayName: '启用',
-    enable: true,
-    dataType: 'Boolean',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '启用',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 15,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 43,
-    tableId: 3,
-    name: 'age',
-    displayName: '年龄',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '年龄。周岁',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 16,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 44,
-    tableId: 3,
-    name: 'birthday',
-    displayName: '生日',
-    enable: true,
-    dataType: 'DateTime',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: true,
-    isDataObjectField: true,
-    description: '生日。公历年月日',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 17,
-    width: '155',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 45,
-    tableId: 3,
-    name: 'logins',
-    displayName: '登录次数',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '登录次数',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 18,
-    width: '120',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 46,
-    tableId: 3,
-    name: 'lastLogin',
-    displayName: '最后登录',
-    enable: true,
-    dataType: 'DateTime',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: true,
-    isDataObjectField: true,
-    description: '最后登录',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 19,
-    width: '155',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 47,
-    tableId: 3,
-    name: 'lastLoginIP',
-    displayName: '最后登录IP',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '最后登录IP',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 20,
-    width: '130',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 48,
-    tableId: 3,
-    name: 'registerTime',
-    displayName: '注册时间',
-    enable: true,
-    dataType: 'DateTime',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: true,
-    isDataObjectField: true,
-    description: '注册时间',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 21,
-    width: '155',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 49,
-    tableId: 3,
-    name: 'registerIP',
-    displayName: '注册IP',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '注册IP',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 22,
-    width: '120',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 3,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 3,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 50,
-    tableId: 3,
-    name: 'onlineTime',
-    displayName: '在线时间',
-    enable: true,
-    dataType: 'Int32',
-    itemType: 'TimeSpan',
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '在线时间。累计在线总时间,秒',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 23,
-    width: '120',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 45,
-    updateTime: '2022-12-27 14:43:22',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 51,
-    tableId: 3,
-    name: 'ex1',
-    displayName: '扩展1',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '扩展1',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 24,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 52,
-    tableId: 3,
-    name: 'ex2',
-    displayName: '扩展2',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '扩展2',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 25,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 53,
-    tableId: 3,
-    name: 'ex3',
-    displayName: '扩展3',
-    enable: true,
-    dataType: 'Double',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '扩展3',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 26,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 54,
-    tableId: 3,
-    name: 'ex4',
-    displayName: '扩展4',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '扩展4',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 27,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 55,
-    tableId: 3,
-    name: 'ex5',
-    displayName: '扩展5',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '扩展5',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 28,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 56,
-    tableId: 3,
-    name: 'ex6',
-    displayName: '扩展6',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '扩展6',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 29,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 57,
-    tableId: 3,
-    name: 'updateUser',
-    displayName: '更新者',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '更新者',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 30,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 58,
-    tableId: 3,
-    name: 'updateUserID',
-    displayName: '更新用户',
-    enable: true,
-    dataType: 'Int32',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '更新用户',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 31,
-    width: '120',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 59,
-    tableId: 3,
-    name: 'updateIP',
-    displayName: '更新地址',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 50,
-    nullable: true,
-    isDataObjectField: true,
-    description: '更新地址',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 32,
-    width: '120',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 60,
-    tableId: 3,
-    name: 'updateTime',
-    displayName: '更新时间',
-    enable: true,
-    dataType: 'DateTime',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: true,
-    description: '更新时间',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 33,
-    width: '155',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 61,
-    tableId: 3,
-    name: 'remark',
-    displayName: '备注',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 500,
-    nullable: true,
-    isDataObjectField: true,
-    description: '备注',
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 34,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 62,
-    tableId: 3,
-    name: 'lastLoginAddress',
-    displayName: '物理地址',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: false,
-    description: null,
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 35,
-    width: '120',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 63,
-    tableId: 3,
-    name: 'departmentName',
-    displayName: '部门',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: false,
-    description: null,
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 36,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 64,
-    tableId: 3,
-    name: 'areaName',
-    displayName: '地区',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: false,
-    description: null,
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 37,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 65,
-    tableId: 3,
-    name: 'roleName',
-    displayName: '角色',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: false,
-    description: null,
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 38,
-    width: '95',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-  {
-    tableName: 'User',
-    id: 66,
-    tableId: 3,
-    name: 'roleNames',
-    displayName: '角色组',
-    enable: true,
-    dataType: 'String',
-    itemType: null,
-    primaryKey: false,
-    master: false,
-    length: 0,
-    nullable: false,
-    isDataObjectField: false,
-    description: null,
-    showInList: true,
-    showInAddForm: true,
-    showInEditForm: true,
-    showInDetailForm: true,
-    showInSearch: false,
-    sort: 39,
-    width: '105',
-    cellText: null,
-    cellTitle: null,
-    cellUrl: null,
-    headerText: null,
-    headerTitle: null,
-    headerUrl: null,
-    dataAction: null,
-    dataSource: null,
-    createUserId: 0,
-    createTime: '2022-12-02 23:46:29',
-    createIP: null,
-    updateUserId: 0,
-    updateTime: '2022-12-02 23:46:29',
-    updateIP: null,
-  },
-];
+// export const tableColumnConfig = [
+//   {
+//     tableName: 'User',
+//     id: 28,
+//     tableId: 3,
+//     name: 'id',
+//     displayName: '编号',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: true,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '编号',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 1,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 29,
+//     tableId: 3,
+//     name: 'name',
+//     displayName: '名称',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: true,
+//     length: 50,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '名称。登录用户名',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 2,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 31,
+//     tableId: 3,
+//     name: 'displayName',
+//     displayName: '昵称',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '昵称',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 4,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 32,
+//     tableId: 3,
+//     name: 'sex',
+//     displayName: '性别',
+//     enable: true,
+//     dataType: 'SexKinds',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '性别。未知、男、女',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 5,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 33,
+//     tableId: 3,
+//     name: 'mail',
+//     displayName: '邮件',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: 'mail',
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '邮件',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 6,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 34,
+//     tableId: 3,
+//     name: 'mobile',
+//     displayName: '手机',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: 'mobile',
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '手机',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 7,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 35,
+//     tableId: 3,
+//     name: 'code',
+//     displayName: '代码',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '代码。身份证、员工编号等',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 8,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 36,
+//     tableId: 3,
+//     name: 'areaId',
+//     displayName: '地区',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '地区。省市区',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 9,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 37,
+//     tableId: 3,
+//     name: 'avatar',
+//     displayName: '头像',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: 'image',
+//     primaryKey: false,
+//     master: false,
+//     length: 200,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '头像',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 10,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 38,
+//     tableId: 3,
+//     name: 'roleID',
+//     displayName: '角色',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '角色。主要角色',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 11,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 39,
+//     tableId: 3,
+//     name: 'roleIds',
+//     displayName: '角色组',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 200,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '角色组。次要角色集合',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 12,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 40,
+//     tableId: 3,
+//     name: 'departmentID',
+//     displayName: '部门',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '部门。组织机构',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 13,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 41,
+//     tableId: 3,
+//     name: 'online',
+//     displayName: '在线',
+//     enable: true,
+//     dataType: 'Boolean',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '在线',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 14,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 42,
+//     tableId: 3,
+//     name: 'enable',
+//     displayName: '启用',
+//     enable: true,
+//     dataType: 'Boolean',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '启用',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 15,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 43,
+//     tableId: 3,
+//     name: 'age',
+//     displayName: '年龄',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '年龄。周岁',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 16,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 44,
+//     tableId: 3,
+//     name: 'birthday',
+//     displayName: '生日',
+//     enable: true,
+//     dataType: 'DateTime',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '生日。公历年月日',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 17,
+//     width: '155',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 45,
+//     tableId: 3,
+//     name: 'logins',
+//     displayName: '登录次数',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '登录次数',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 18,
+//     width: '120',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 46,
+//     tableId: 3,
+//     name: 'lastLogin',
+//     displayName: '最后登录',
+//     enable: true,
+//     dataType: 'DateTime',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '最后登录',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 19,
+//     width: '155',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 47,
+//     tableId: 3,
+//     name: 'lastLoginIP',
+//     displayName: '最后登录IP',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '最后登录IP',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 20,
+//     width: '130',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 48,
+//     tableId: 3,
+//     name: 'registerTime',
+//     displayName: '注册时间',
+//     enable: true,
+//     dataType: 'DateTime',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '注册时间',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 21,
+//     width: '155',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 49,
+//     tableId: 3,
+//     name: 'registerIP',
+//     displayName: '注册IP',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '注册IP',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 22,
+//     width: '120',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 3,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 3,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 50,
+//     tableId: 3,
+//     name: 'onlineTime',
+//     displayName: '在线时间',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: 'TimeSpan',
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '在线时间。累计在线总时间,秒',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 23,
+//     width: '120',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 45,
+//     updateTime: '2022-12-27 14:43:22',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 51,
+//     tableId: 3,
+//     name: 'ex1',
+//     displayName: '扩展1',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '扩展1',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 24,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 52,
+//     tableId: 3,
+//     name: 'ex2',
+//     displayName: '扩展2',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '扩展2',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 25,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 53,
+//     tableId: 3,
+//     name: 'ex3',
+//     displayName: '扩展3',
+//     enable: true,
+//     dataType: 'Double',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '扩展3',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 26,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 54,
+//     tableId: 3,
+//     name: 'ex4',
+//     displayName: '扩展4',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '扩展4',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 27,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 55,
+//     tableId: 3,
+//     name: 'ex5',
+//     displayName: '扩展5',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '扩展5',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 28,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 56,
+//     tableId: 3,
+//     name: 'ex6',
+//     displayName: '扩展6',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '扩展6',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 29,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 57,
+//     tableId: 3,
+//     name: 'updateUser',
+//     displayName: '更新者',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '更新者',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 30,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 58,
+//     tableId: 3,
+//     name: 'updateUserID',
+//     displayName: '更新用户',
+//     enable: true,
+//     dataType: 'Int32',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '更新用户',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 31,
+//     width: '120',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 59,
+//     tableId: 3,
+//     name: 'updateIP',
+//     displayName: '更新地址',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 50,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '更新地址',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 32,
+//     width: '120',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 60,
+//     tableId: 3,
+//     name: 'updateTime',
+//     displayName: '更新时间',
+//     enable: true,
+//     dataType: 'DateTime',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: true,
+//     description: '更新时间',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 33,
+//     width: '155',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 61,
+//     tableId: 3,
+//     name: 'remark',
+//     displayName: '备注',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 500,
+//     nullable: true,
+//     isDataObjectField: true,
+//     description: '备注',
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 34,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 62,
+//     tableId: 3,
+//     name: 'lastLoginAddress',
+//     displayName: '物理地址',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: false,
+//     description: null,
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 35,
+//     width: '120',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 63,
+//     tableId: 3,
+//     name: 'departmentName',
+//     displayName: '部门',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: false,
+//     description: null,
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 36,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 64,
+//     tableId: 3,
+//     name: 'areaName',
+//     displayName: '地区',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: false,
+//     description: null,
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 37,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 65,
+//     tableId: 3,
+//     name: 'roleName',
+//     displayName: '角色',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: false,
+//     description: null,
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 38,
+//     width: '95',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+//   {
+//     tableName: 'User',
+//     id: 66,
+//     tableId: 3,
+//     name: 'roleNames',
+//     displayName: '角色组',
+//     enable: true,
+//     dataType: 'String',
+//     itemType: null,
+//     primaryKey: false,
+//     master: false,
+//     length: 0,
+//     nullable: false,
+//     isDataObjectField: false,
+//     description: null,
+//     showInList: true,
+//     showInAddForm: true,
+//     showInEditForm: true,
+//     showInDetailForm: true,
+//     showInSearch: false,
+//     sort: 39,
+//     width: '105',
+//     cellText: null,
+//     cellTitle: null,
+//     cellUrl: null,
+//     headerText: null,
+//     headerTitle: null,
+//     headerUrl: null,
+//     dataAction: null,
+//     dataSource: null,
+//     createUserId: 0,
+//     createTime: '2022-12-02 23:46:29',
+//     createIP: null,
+//     updateUserId: 0,
+//     updateTime: '2022-12-02 23:46:29',
+//     updateIP: null,
+//   },
+// ];
Modified +0 -7
diff --git a/src/views/common/form.vue b/src/views/common/form.vue
index 90f52be..608f2ab 100644
--- a/src/views/common/form.vue
+++ b/src/views/common/form.vue
@@ -39,13 +39,6 @@
             form[column.name]
           }}</span>
 
-          <!-- <el-switch
-            v-if="column.dataType == 'Boolean'"
-            v-model="form[column.name]"
-            active-color="#13ce66"
-            inactive-color="#ff4949"
-          /> -->
-
           <!-- <el-date-picker
             v-else-if="column.dataType == 'DateTime'"
             v-model="form[column.name]"
Modified +43 -18
diff --git a/src/views/common/list.vue b/src/views/common/list.vue
index 6e9eaa8..0faa6c4 100644
--- a/src/views/common/list.vue
+++ b/src/views/common/list.vue
@@ -28,23 +28,24 @@ export default defineComponent({
     // 搜索字段配置
     tableSearchConfig: {
       type: Array,
-      default: () => [
-        {
-          itemType: 'datePicker',
-          name: 'dtStart$dtEnd',
-          displayName: '时间范围',
-          showInSearch: true,
-          options: { type: 'daterange', setDefaultValue: false },
-        },
-        {
-          name: 'Q',
-          displayName: '',
-          showInSearch: true,
-          options: {
-            placeholder: '请输入关键字',
-          },
-        },
-      ],
+      default: () => [],
+      // default: () => [
+      //   {
+      //     itemType: 'datePicker',
+      //     name: 'dtStart$dtEnd',
+      //     displayName: '时间范围',
+      //     showInSearch: true,
+      //     options: { type: 'daterange', setDefaultValue: false },
+      //   },
+      //   {
+      //     name: 'Q',
+      //     displayName: '',
+      //     showInSearch: true,
+      //     options: {
+      //       placeholder: '请输入关键字',
+      //     },
+      //   },
+      // ],
     },
     // 表格操作按钮配置
     tableHandlerConfig: {
@@ -94,6 +95,7 @@ export default defineComponent({
         },
       ],
       headerData: [],
+      searchData: [],
     };
   },
   computed: {
@@ -134,7 +136,13 @@ export default defineComponent({
         actionList = vm.actionList;
       }
 
-      const columns = vm.tableSearchConfig.concat(
+      let tableSearchConfig = vm.tableSearchConfig;
+
+      if (tableSearchConfig.length === 0) {
+        tableSearchConfig = vm.searchData;
+      }
+
+      const columns = tableSearchConfig.concat(
         tableColumnConfig.concat(actionList),
       );
 
@@ -180,6 +188,7 @@ export default defineComponent({
   methods: {
     init() {
       this.getColumns();
+      this.getSearchFields();
     },
     // 获取表格数据
     getDataList() {
@@ -202,6 +211,22 @@ export default defineComponent({
         vm.headerData = res.data;
       });
     },
+    getSearchFields(){
+      const vm = this;
+
+      if (vm.tableSearchConfig.length > 0) {
+        return;
+      }
+
+      const path = vm.currentPath;
+
+      vm.$api.base.getColumns(path, 'Search').then((res) => {
+        for (const item of res.data) {
+          item.showInSearch = true;
+        }
+        vm.searchData = res.data;
+      });
+    },
     add() {
       const vm = this;
       vm.$router.push(vm.currentPath + '/Add');