diff --git a/src/api/dataset/RepSetRule/index.ts b/src/api/dataset/RepSetRule/index.ts new file mode 100644 index 0000000..fe0bef1 --- /dev/null +++ b/src/api/dataset/RepSetRule/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios'; +import type { TableData } from './types'; + +/** 获取表格数据 */ +export const getRepSetRuleListApi = (data: any) => { + return request.postJson({ url: '/RepSetRule/spi/dataset/RepSetRule/RepSetRuleQueryPage', data }); +}; + +/** 批量删除 */ +export const delRepSetRuleListApi = (list: string[] | number[]): Promise => { + const _list = list.map(v => { + return { + ruleCode: v.ruleCode, + }; + }); + return request.postJson({ + url: '/RepSetRule/spi/dataset/RepSetRule/RepSetRuleBatchDelete', + data: { + list: _list, + }, + }); +}; + +/** 删除 */ +export const delRepSetRuleApi = (ruleCode?: string): Promise => { + return request.postJson({ url: '/RepSetRule/spi/dataset/RepSetRule/RepSetRuleDelete', data: { ruleCode } }); +}; + +/** 保存 */ +export const saveRepSetRuleApi = (data: Partial): Promise => { + return request.postJson({ url: '/RepSetRule/spi/dataset/RepSetRule/RepSetRuleSave', data }); +}; + +/** 查询单条数据 */ +export const queryRepSetRuleApi = (ruleCode?: string): Promise => { + return request.postJson({ url: '/RepSetRule/spi/dataset/RepSetRule/RepSetRuleQueryOne', data: { ruleCode } }); +}; + +/** 同步导入 */ +export const importExcelApiUrl = '/RepSetRule/sui/dataset/RepSetRule/RepSetRuleImportExcel'; + +/** 异步导入 */ +export const importExcelAsyncApiUrl = '/RepSetRule/sui/dataset/RepSetRule/RepSetRuleImportAsyncExcel'; + +/** 导出 */ +export const exportExcelApi = (params: any) => { + return request.doExport({ url: '/RepSetRule/sdi/dataset/RepSetRule/RepSetRuleExportXls', 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/RepSetRule/types.ts b/src/api/dataset/RepSetRule/types.ts new file mode 100644 index 0000000..c3b5d17 --- /dev/null +++ b/src/api/dataset/RepSetRule/types.ts @@ -0,0 +1,88 @@ +/* eslint-disable lines-around-comment */ + +export type TableData = { + /** 指标集规则清单编码 */ + ruleCode?: string + /** 规则名称 */ + ruleName?: string + /** 规则分类 */ + ruleClass?: string + /** 启用日期 */ + startDate?: string + /** 规则属性 */ + ruleProperty?: string + /** 规则周期 */ + ruleCycle?: string + /** 是否有效 */ + ruleStatus?: string + /** 规则描述 */ + description?: string + /** 创建日期 */ + createDate?: string + /** 创建账户 */ + createAccount?: string + /** 创建机构 */ + createOrgan?: string + /** 规则json */ + ruleJson?: string + /** 规则sql */ + ruleSql?: string + /** 机构编码 */ + organCode?: string + /** 失效日期 */ + failDate?: string + /** 规则加工指标集编号 */ + indexCode?: string + /** 规则加载所有公式 */ + machFormulas?: string + /** 指标代码 */ + itemId?: string + /** 指标名称 */ + itemName?: string +} + +export interface DictItem { + dictId: string; + dictName: string; +} + +export type FormModel = { + /** 指标集规则清单编码 */ + ruleCode?: string + /** 规则名称 */ + ruleName?: string + /** 规则分类 */ + ruleClass?: string + /** 启用日期 */ + startDate?: string + /** 规则属性 */ + ruleProperty?: string + /** 规则周期 */ + ruleCycle?: string + /** 是否有效 */ + ruleStatus?: string + /** 规则描述 */ + description?: string + /** 创建日期 */ + createDate?: string + /** 创建账户 */ + createAccount?: string + /** 创建机构 */ + createOrgan?: string + /** 规则json */ + ruleJson?: string + /** 规则sql */ + ruleSql?: string + /** 机构编码 */ + organCode?: string + /** 失效日期 */ + failDate?: string + /** 规则加工指标集编号 */ + indexCode?: string + /** 规则加载所有公式 */ + machFormulas?: string + /** 指标代码 */ + itemId?: string + /** 指标名称 */ + itemName?: string +} diff --git a/src/router/index.ts b/src/router/index.ts index 8866cb4..d4dfdb0 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1927,6 +1927,18 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [ type:"ybt", sort:11, } + }, + { + path: 'repSetRule', + component: () => import('@/views/dataset/RepSetRule/RepSetRule.vue'), + name: 'repSetRule', + menuId: 'repSetRule', + meta: { + title: '指标加工', + alwaysShow: true, + type:"ybt", + sort:12, + } } ] }, diff --git a/src/views/dataset/RepSetRule/RepSetRule.vue b/src/views/dataset/RepSetRule/RepSetRule.vue new file mode 100644 index 0000000..84bb11c --- /dev/null +++ b/src/views/dataset/RepSetRule/RepSetRule.vue @@ -0,0 +1,356 @@ + + + \ No newline at end of file diff --git a/src/views/dataset/RepSetRule/components/Detail.vue b/src/views/dataset/RepSetRule/components/Detail.vue new file mode 100644 index 0000000..a986bbf --- /dev/null +++ b/src/views/dataset/RepSetRule/components/Detail.vue @@ -0,0 +1,91 @@ + + + diff --git a/src/views/dataset/RepSetRule/components/Write.vue b/src/views/dataset/RepSetRule/components/Write.vue new file mode 100644 index 0000000..e58ea1d --- /dev/null +++ b/src/views/dataset/RepSetRule/components/Write.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/dataset/RepSetRule/constants.ts b/src/views/dataset/RepSetRule/constants.ts new file mode 100644 index 0000000..e69de29