diff --git a/src/api/dataset/CodeRepTarget/index.ts b/src/api/dataset/CodeRepTarget/index.ts new file mode 100644 index 0000000..9d87560 --- /dev/null +++ b/src/api/dataset/CodeRepTarget/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios'; +import type { TableData } from './types'; + +/** 获取表格数据 */ +export const getCodeRepTargetListApi = (data: any) => { + return request.postJson({ url: '/CodeRepTarget/spi/dataset/CodeRepTarget/CodeRepTargetQueryPage', data }); +}; + +/** 批量删除 */ +export const delCodeRepTargetListApi = (list: string[] | number[]): Promise => { + const _list = list.map(v => { + return { + crtid: v.crtid, + }; + }); + return request.postJson({ + url: '/CodeRepTarget/spi/dataset/CodeRepTarget/CodeRepTargetBatchDelete', + data: { + list: _list, + }, + }); +}; + +/** 删除 */ +export const delCodeRepTargetApi = (crtid?: string): Promise => { + return request.postJson({ url: '/CodeRepTarget/spi/dataset/CodeRepTarget/CodeRepTargetDelete', data: { crtid } }); +}; + +/** 保存 */ +export const saveCodeRepTargetApi = (data: Partial): Promise => { + return request.postJson({ url: '/CodeRepTarget/spi/dataset/CodeRepTarget/CodeRepTargetSave', data }); +}; + +/** 查询单条数据 */ +export const queryCodeRepTargetApi = (crtid?: string): Promise => { + return request.postJson({ url: '/CodeRepTarget/spi/dataset/CodeRepTarget/CodeRepTargetQueryOne', data: { crtid } }); +}; + +/** 同步导入 */ +export const importExcelApiUrl = '/CodeRepTarget/sui/dataset/CodeRepTarget/CodeRepTargetImportExcel'; + +/** 异步导入 */ +export const importExcelAsyncApiUrl = '/CodeRepTarget/sui/dataset/CodeRepTarget/CodeRepTargetImportAsyncExcel'; + +/** 导出 */ +export const exportExcelApi = (params: any) => { + return request.doExport({ url: '/CodeRepTarget/sdi/dataset/CodeRepTarget/CodeRepTargetExportXls', params }); +}; + +/** 获取某个字典 */ +export const getCsckCheckType = ({ paramName, systemCode }): Promise => { + return request.postJson({ + url: '/param/spi/param/systemparam', + data: { + paramName: paramName, + systemCode: systemCode, + }, + }); +}; + diff --git a/src/api/dataset/CodeRepTarget/types.ts b/src/api/dataset/CodeRepTarget/types.ts new file mode 100644 index 0000000..7d2aa3b --- /dev/null +++ b/src/api/dataset/CodeRepTarget/types.ts @@ -0,0 +1,48 @@ +/* eslint-disable lines-around-comment */ + +export type TableData = { + /** 指标集编码 */ + indexsetCode?: string + /** 栏编码 */ + targetCode?: string + /** 开始日期 */ + beginDate?: string + /** 结束日期 */ + endDate?: string + /** 栏名称 */ + targetName?: string + /** 排序 */ + targetOrder?: string + /** 状态 */ + status?: string + /** 是否机构汇总 */ + isOrgCollect?: string + /** 主键 */ + crtid?: string +} + +export interface DictItem { + dictId: string; + dictName: string; +} + +export type FormModel = { + /** 指标集编码 */ + indexsetCode?: string + /** 栏编码 */ + targetCode?: string + /** 开始日期 */ + beginDate?: string + /** 结束日期 */ + endDate?: string + /** 栏名称 */ + targetName?: string + /** 排序 */ + targetOrder?: string + /** 状态 */ + status?: string + /** 是否机构汇总 */ + isOrgCollect?: string + /** 主键 */ + crtid?: string +} diff --git a/src/api/dataset/RepStoreMapping/index.ts b/src/api/dataset/RepStoreMapping/index.ts new file mode 100644 index 0000000..3a67a10 --- /dev/null +++ b/src/api/dataset/RepStoreMapping/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios'; +import type { TableData } from './types'; + +/** 获取表格数据 */ +export const getRepStoreMappingListApi = (data: any) => { + return request.postJson({ url: '/RepStoreMapping/spi/dataset/RepStoreMapping/RepStoreMappingQueryPage', data }); +}; + +/** 批量删除 */ +export const delRepStoreMappingListApi = (list: string[] | number[]): Promise => { + const _list = list.map(v => { + return { + modelCode: v.modelCode, + ruleId: v.ruleId, + srcCol: v.srcCol, + }; + }); + return request.postJson({ + url: '/RepStoreMapping/spi/dataset/RepStoreMapping/RepStoreMappingBatchDelete', + data: { + list: _list, + }, + }); +}; + +/** 删除 */ +export const delRepStoreMappingApi = (modelCode?: string, ruleId?: string, srcCol?: string): Promise => { + return request.postJson({ url: '/RepStoreMapping/spi/dataset/RepStoreMapping/RepStoreMappingDelete', data: { modelCode, ruleId, srcCol } }); +}; + +/** 保存 */ +export const saveRepStoreMappingApi = (data: Partial): Promise => { + return request.postJson({ url: '/RepStoreMapping/spi/dataset/RepStoreMapping/RepStoreMappingSave', data }); +}; + +/** 查询单条数据 */ +export const queryRepStoreMappingApi = (modelCode?: string, ruleId?: string, srcCol?: string): Promise => { + return request.postJson({ url: '/RepStoreMapping/spi/dataset/RepStoreMapping/RepStoreMappingQueryOne', data: { modelCode, ruleId, srcCol } }); +}; + +/** 同步导入 */ +export const importExcelApiUrl = '/RepStoreMapping/sui/dataset/RepStoreMapping/RepStoreMappingImportExcel'; + +/** 异步导入 */ +export const importExcelAsyncApiUrl = '/RepStoreMapping/sui/dataset/RepStoreMapping/RepStoreMappingImportAsyncExcel'; + +/** 导出 */ +export const exportExcelApi = (params: any) => { + return request.doExport({ url: '/RepStoreMapping/sdi/dataset/RepStoreMapping/RepStoreMappingExportXls', params }); +}; + +/** 获取某个字典 */ +export const getCsckCheckType = ({ paramName, systemCode }): Promise => { + return request.postJson({ + url: '/param/spi/param/systemparam', + data: { + paramName: paramName, + systemCode: systemCode, + }, + }); +}; + diff --git a/src/api/dataset/RepStoreMapping/types.ts b/src/api/dataset/RepStoreMapping/types.ts new file mode 100644 index 0000000..1b26b97 --- /dev/null +++ b/src/api/dataset/RepStoreMapping/types.ts @@ -0,0 +1,60 @@ +/* eslint-disable lines-around-comment */ + +export type TableData = { + /** 数据模型编码 */ + modelCode?: string + /** 规则id */ + ruleId?: string + /** 源列名 */ + srcCol?: string + /** 源列类型 */ + srcColType?: string + /** 映射目标列名称) */ + mappingName?: string + /** 映射目标列 */ + mappingCol?: string + /** 映射目标列类型 */ + mappingColType?: string + /** 映射目标列列号 */ + mappingColNum?: string + /** 注释字段 */ + remarks?: string + /** 组成联合主键 */ + primarykey?: string + /** 主键排序 */ + primaryKeyNum?: string + /** 标识是否为uuid */ + uuid?: string +} + +export interface DictItem { + dictId: string; + dictName: string; +} + +export type FormModel = { + /** 数据模型编码 */ + modelCode?: string + /** 规则id */ + ruleId?: string + /** 源列名 */ + srcCol?: string + /** 源列类型 */ + srcColType?: string + /** 映射目标列名称) */ + mappingName?: string + /** 映射目标列 */ + mappingCol?: string + /** 映射目标列类型 */ + mappingColType?: string + /** 映射目标列列号 */ + mappingColNum?: string + /** 注释字段 */ + remarks?: string + /** 组成联合主键 */ + primarykey?: string + /** 主键排序 */ + primaryKeyNum?: string + /** 标识是否为uuid */ + uuid?: string +} diff --git a/src/router/index.ts b/src/router/index.ts index 8fabd00..41be34e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1856,6 +1856,30 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [ type:"ybt", sort:6, } + }, + { + path: 'codeRepTarget', + component: () => import('@/views/dataset/CodeRepTarget/CodeRepTarget.vue'), + name: 'codeRepTarget', + menuId: 'codeRepTarget', + meta: { + title: '指标属性', + alwaysShow: true, + type:"ybt", + sort:7, + } + }, + { + path: 'repStoreMapping', + component: () => import('@/views/dataset/RepStoreMapping/RepStoreMapping.vue'), + name: 'repStoreMapping', + menuId: 'repStoreMapping', + meta: { + title: '模型映射', + alwaysShow: true, + type:"ybt", + sort:8, + } } ] }, diff --git a/src/views/dataset/CodeRepTarget/CodeRepTarget.vue b/src/views/dataset/CodeRepTarget/CodeRepTarget.vue new file mode 100644 index 0000000..8c48e3c --- /dev/null +++ b/src/views/dataset/CodeRepTarget/CodeRepTarget.vue @@ -0,0 +1,300 @@ + + + \ No newline at end of file diff --git a/src/views/dataset/CodeRepTarget/components/Detail.vue b/src/views/dataset/CodeRepTarget/components/Detail.vue new file mode 100644 index 0000000..60d8280 --- /dev/null +++ b/src/views/dataset/CodeRepTarget/components/Detail.vue @@ -0,0 +1,51 @@ + + + diff --git a/src/views/dataset/CodeRepTarget/components/Write.vue b/src/views/dataset/CodeRepTarget/components/Write.vue new file mode 100644 index 0000000..bf15efa --- /dev/null +++ b/src/views/dataset/CodeRepTarget/components/Write.vue @@ -0,0 +1,130 @@ + + + + diff --git a/src/views/dataset/CodeRepTarget/constants.ts b/src/views/dataset/CodeRepTarget/constants.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/views/dataset/RepStoreMapping/RepStoreMapping.vue b/src/views/dataset/RepStoreMapping/RepStoreMapping.vue new file mode 100644 index 0000000..1180dbd --- /dev/null +++ b/src/views/dataset/RepStoreMapping/RepStoreMapping.vue @@ -0,0 +1,315 @@ + + + \ No newline at end of file diff --git a/src/views/dataset/RepStoreMapping/components/Detail.vue b/src/views/dataset/RepStoreMapping/components/Detail.vue new file mode 100644 index 0000000..d76f494 --- /dev/null +++ b/src/views/dataset/RepStoreMapping/components/Detail.vue @@ -0,0 +1,67 @@ + + + diff --git a/src/views/dataset/RepStoreMapping/components/Write.vue b/src/views/dataset/RepStoreMapping/components/Write.vue new file mode 100644 index 0000000..433e10c --- /dev/null +++ b/src/views/dataset/RepStoreMapping/components/Write.vue @@ -0,0 +1,159 @@ + + + + diff --git a/src/views/dataset/RepStoreMapping/constants.ts b/src/views/dataset/RepStoreMapping/constants.ts new file mode 100644 index 0000000..e69de29