index.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. import { http } from "../http";
  2. import type { PageParams, PageResponse } from "./model";
  3. // 保存页面设计
  4. export const editPageDesignApi = (data: PageParams) =>
  5. http.post("/api/form/EditPageDesign", data);
  6. // 读取页面设计
  7. export const getPageDesignApi = (data: { id: string}) =>
  8. http.post<PageResponse>(`/api/form/GetPageDesign`, data);
  9. // 获取单页面数据源列表
  10. export function GetAllDataSourceColumnList(data: any) {
  11. return http.post(`/api/page/GetAllDataSourceColumnList`, data);
  12. }
  13. // 获取数据表和视图表
  14. export function GetAllTablesAndViews(data: any) {
  15. return http.post(`/api/table/GetAllTablesAndViews`, data);
  16. }
  17. // 获取全部基础数据类型
  18. export function GetAllBasicData(data: any) {
  19. return http.post(`/api/system/GetAllBasicData`, data);
  20. }
  21. // 获取表视图列
  22. export function GetTableViewColumns(data: any) {
  23. return http.post(`/api/table/GetTableViewColumns`, data);
  24. }
  25. // 获取表视图列多语言
  26. export function GetTableViewFieldKey(data: any) {
  27. return http.post(`/api/table/GetTableViewFieldKey`, data);
  28. }