Ben Lin
2025-02-25 fee83fc57f553595cc3a4891b8a692fa66cd77fe
src/views/tigerprojects/system/lowcode/setting/setting.data.ts
@@ -1,3 +1,11 @@
/*
 * @Description: file content
 * @Author: Ben Lin
 * @version:
 * @Date: 2024-06-18 15:09:48
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-07-17 11:12:34
 */
import { BasicColumn, FormSchema } from '/@/components/Table';
//列表显示
@@ -10,6 +18,10 @@
  },
];
/**
 * @description: 查询字段结构
 * @return {*}
 */
export const newFormSchema: FormSchema[] = [
  {
    field: 'ASSEMBLY_NAME',
@@ -32,11 +44,39 @@
    label: '1',
    colSlot: 'condAdd',
    colProps: {
      span: 10,
      span: 4,
    },
  },
  {
    field: 'IsSearch',
    label: '是否查询',
    component: 'Select',
    defaultValue: 'Y',
    colProps: { span: 8 },
    componentProps: ({ schema, tableAction, formActionType, formModel }) => {
      return {
        options: [
          {
            label: '是',
            value: 'Y',
          },
          {
            label: '否',
            value: 'N',
          },
        ],
        onChange: (e) => {
        },
      };
    },
  },
];
/**
 * @description: 增删改字段结构
 * @return {*}
 */
export const crudSchemas: FormSchema[] = [
  {
    field: 'crudAssemblyName',
@@ -64,12 +104,22 @@
  },
];
/**
 * @description: 表格字段结构
 * @return {*}
 */
export const mainSchemas: FormSchema[] = [
  {
    field: 'CODE_NAME',
    label: '代码名称',
    component: 'Input',
    colProps: { span: 12 },
  },
  {
    field: 'MainAssemblyName',
    label: '实体类名',
    component: 'Input',
    colProps: { span: 8 },
    colProps: { span: 10 },
  },
  {
    field: '00',
@@ -81,12 +131,69 @@
    },
  },
  {
    field: 'BY_ORG',
    label: '是否按组织查询',
    component: 'Select',
    defaultValue: 'N',
    colProps: { span: 7 },
    componentProps: {
      options: [
        {
          label: '是',
          value: 'Y',
        },
        {
          label: '否',
          value: 'N',
        },
      ],
    },
  },
  {
    field: 'BY_PROD',
    label: '是否按工厂查询',
    component: 'Select',
    defaultValue: 'N',
    colProps: { span: 7 },
    componentProps: {
      options: [
        {
          label: '是',
          value: 'Y',
        },
        {
          label: '否',
          value: 'N',
        },
      ],
    },
  },
  {
    field: 'BY_WH',
    label: '是否按仓库查询',
    component: 'Select',
    defaultValue: 'N',
    colProps: { span: 7 },
    componentProps: {
      options: [
        {
          label: '是',
          value: 'Y',
        },
        {
          label: '否',
          value: 'N',
        },
      ],
    },
  },
  {
    field: '0',
    component: 'Input',
    label: '1',
    colSlot: 'mainCondAdd',
    colProps: {
      span: 10,
      span: 3,
    },
  },
];