diff --git a/src/api/system/designFieldMapping/index.ts b/src/api/system/designFieldMapping/index.ts new file mode 100644 index 0000000..fb7926f --- /dev/null +++ b/src/api/system/designFieldMapping/index.ts @@ -0,0 +1,89 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DesignFieldMappingVO, DesignFieldMappingForm, DesignFieldMappingQuery } from '@/api/system/designFieldMapping/types'; + +/** + * 查询大屏设计字段映射列表 + * @param query + * @returns {*} + */ + +export const listDesignFieldMapping = (query?: DesignFieldMappingQuery): AxiosPromise => { + return request({ + url: '/system/designFieldMapping/list', + method: 'get', + params: query + }); +}; + +/** + * 查询大屏设计字段映射详细 + * @param fieldMappingId + */ +export const getDesignFieldMapping = (fieldMappingId: string | number): AxiosPromise => { + return request({ + url: '/system/designFieldMapping/' + fieldMappingId, + method: 'get' + }); +}; + +/** + * 新增大屏设计字段映射 + * @param data + */ +export const addDesignFieldMapping = (data: DesignFieldMappingForm) => { + return request({ + url: '/system/designFieldMapping', + method: 'post', + data: data + }); +}; + +/** + * 修改大屏设计字段映射 + * @param data + */ +export const updateDesignFieldMapping = (data: DesignFieldMappingForm) => { + return request({ + url: '/system/designFieldMapping', + method: 'put', + data: data + }); +}; + +/** + * 删除大屏设计字段映射 + * @param fieldMappingId + */ +export const delDesignFieldMapping = (fieldMappingId: string | number | Array) => { + return request({ + url: '/system/designFieldMapping/' + fieldMappingId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询大屏设计字段映射列表 + * @param query + * @returns {*} + */ +export function getSysDesignFieldMappingList (query) { + return request({ + url: '/system/designFieldMapping/getSysDesignFieldMappingList', + method: 'get', + params: query + }); +}; + +/** + * 大屏设计输出字段参考字段映射接口 + * @param data + */ +export const getDataSourceFieldMappingList = (data) => { + return request({ + url: '/system/designFieldMapping/getDataSourceFieldMappingList', + method: 'post', + data: data + }); +}; diff --git a/src/api/system/designFieldMapping/types.ts b/src/api/system/designFieldMapping/types.ts new file mode 100644 index 0000000..54ca9da --- /dev/null +++ b/src/api/system/designFieldMapping/types.ts @@ -0,0 +1,206 @@ +export interface DesignFieldMappingVO { + /** + * 字段映射ID + */ + fieldMappingId: string | number; + + /** + * 字段映射编码 + */ + fieldMappingCode: string; + + /** + * 字段映射名称 + */ + fieldMappingName: string; + + /** + * 字段映射组 + */ + fieldMappingGroup: string; + + /** + * 大小写敏感标识(1是 0否) + */ + caseSensitiveFlag: string; + + /** + * 显示排序 + */ + sortOrder: number; + + /** + * 预留字段一 + */ + fieldOne: string; + + /** + * 预留字段二 + */ + fieldTwo: string; + + /** + * 预留字段三 + */ + fieldThree: string; + + /** + * 预留字段四 + */ + fieldFour: string; + + /** + * 预留字段五 + */ + fieldFive: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface DesignFieldMappingForm extends BaseEntity { + /** + * 字段映射ID + */ + fieldMappingId?: string | number; + + /** + * 字段映射编码 + */ + fieldMappingCode?: string; + + /** + * 字段映射名称 + */ + fieldMappingName?: string; + + /** + * 字段映射组 + */ + fieldMappingGroup?: string; + + /** + * 大小写敏感标识(1是 0否) + */ + caseSensitiveFlag?: string; + + /** + * 显示排序 + */ + sortOrder?: number; + + /** + * 预留字段一 + */ + fieldOne?: string; + + /** + * 预留字段二 + */ + fieldTwo?: string; + + /** + * 预留字段三 + */ + fieldThree?: string; + + /** + * 预留字段四 + */ + fieldFour?: string; + + /** + * 预留字段五 + */ + fieldFive?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface DesignFieldMappingQuery extends PageQuery { + + /** + * 字段映射ID + */ + fieldMappingId?: string | number; + + /** + * 字段映射编码 + */ + fieldMappingCode?: string; + + /** + * 字段映射名称 + */ + fieldMappingName?: string; + + /** + * 字段映射组 + */ + fieldMappingGroup?: string; + + /** + * 大小写敏感标识(1是 0否) + */ + caseSensitiveFlag?: string; + + /** + * 显示排序 + */ + sortOrder?: number; + + /** + * 预留字段一 + */ + fieldOne?: string; + + /** + * 预留字段二 + */ + fieldTwo?: string; + + /** + * 预留字段三 + */ + fieldThree?: string; + + /** + * 预留字段四 + */ + fieldFour?: string; + + /** + * 预留字段五 + */ + fieldFive?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/system/designFieldMapping/index.vue b/src/views/system/designFieldMapping/index.vue new file mode 100644 index 0000000..369b427 --- /dev/null +++ b/src/views/system/designFieldMapping/index.vue @@ -0,0 +1,357 @@ + + + diff --git a/src/views/system/designPageEdges/index.vue b/src/views/system/designPageEdges/index.vue deleted file mode 100644 index 013836a..0000000 --- a/src/views/system/designPageEdges/index.vue +++ /dev/null @@ -1,438 +0,0 @@ - - - diff --git a/src/views/system/designPagePoint/index.vue b/src/views/system/designPagePoint/index.vue deleted file mode 100644 index 00d6031..0000000 --- a/src/views/system/designPagePoint/index.vue +++ /dev/null @@ -1,420 +0,0 @@ - - -