Ben Lin
2025-03-08 858b9bccead46cdefc99325b7c956d50a2964309
src/views/tigerprojects/system/lowcode/entityts/BAS_DEFECT.ts
@@ -28,7 +28,7 @@
    slots: { customRender: 'action' },
    fixed: undefined,
  };
  /**
   * @description: 些自定义方法
   * @return {*}
@@ -38,7 +38,7 @@
     * @description: 获取新增按钮的行为
     * @return {*}
     */
    CreateAction: (fnName: string) => {
    CreateAction: (type: string) => {
      return {
        action: 'drawer', //drawer(打开左侧抽屉框) | go(跳转到新的页面)
      };
@@ -58,7 +58,12 @@
     * @return {*}
     */
    GetHomeUrl: () => {
      const param = { ID: 'BAS_DEFECT_GRP', colSlots: [], crudColSlots: [] };
      const param = {
        ID: 'BAS_DEFECT_GRP',
        EntityName: 'BAS_DEFECT_GRP',
        colSlots: [],
        crudColSlots: [],
      };
      return `/BAS_DEFECT_GRP/LC/${encodeURI(JSON.stringify(param))}`;
    },
    GetBaseColumns: (type: string) => {
@@ -112,7 +117,7 @@
    /**
     * @description: 获取卡片内配置列表,以循环显示多个卡片并配置多个插槽
     * @return {*}
     */
     */
    GetBaseCards: (type: string) => {
      return [
        {
@@ -134,18 +139,20 @@
    /**
     * @description: 获取右侧边框use方法
     * @return {*}
     */
     */
    GetUseDrawers: () => {
      return [{
        'BAS_DEFECT': useDrawer(),
      }];
      return [
        {
          BAS_DEFECT: useDrawer(),
        },
      ];
    },
    /**
     * @description: 获取表格use列表
     * @param {string} type
     * @param {array} args
     * @return {*}
     */
     */
    GetUseTables: (data: Ref<{}>, ...args) => {
      return {
        BAS_DEFECT: useTable({
@@ -169,7 +176,7 @@
            slots: { customRender: 'action' },
            fixed: 'right',
          }, //自定义操作列
        })
        }),
      };
    },
    /**
@@ -214,7 +221,7 @@
          };
        return item;
      });
      EditOperation(data,d, u, item, _data);
      EditOperation(data, d, u, item, _data);
    },
    /**
     * @description: 获取标题信息
@@ -227,7 +234,7 @@
        pageContent: '这里可以添加和修改不良代码组和不良代码。',
        tableTitle: {
          BAS_DEFECT: '不良代码管理',
        }
        },
      };
    },
    GetUseForm: () => {
@@ -288,8 +295,8 @@
        title: '更新人',
        dataIndex: 'UPDATE_USER',
      },
    ]
  }
    ],
  };
  const searchForms = {
    BAS_DEFECT: [
@@ -310,7 +317,7 @@
        },
      },
    ] as FormSchema[],
  }
  };
  const crudForms = {
    BAS_DEFECT: [
@@ -384,7 +391,7 @@
        show: false,
      },
    ] as FormSchema[],
  }
  };
  return [methods, ActionColumn];
}