From 4ac4b366d422b60094d7135d102ed30817d676f9 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Sun, 28 Jul 2024 15:32:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eapiconfig=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/apiconfig/index.ts | 52 ++++ src/views/system/apiconfig/ApiconfigForm.vue | 172 +++++++++++ src/views/system/apiconfig/index.vue | 304 +++++++++++++++++++ 3 files changed, 528 insertions(+) create mode 100644 src/api/system/apiconfig/index.ts create mode 100644 src/views/system/apiconfig/ApiconfigForm.vue create mode 100644 src/views/system/apiconfig/index.vue diff --git a/src/api/system/apiconfig/index.ts b/src/api/system/apiconfig/index.ts new file mode 100644 index 00000000..5a1c032d --- /dev/null +++ b/src/api/system/apiconfig/index.ts @@ -0,0 +1,52 @@ +import request from '@/config/axios' + +// 接口配置 VO +export interface ApiconfigVO { + id: string // 主键 + orgId: string // 机构ID + apiType: string // 接口类别:下拉选项:HIS接口 ,体检接口,LIS接口,EMR接口 + apiName: string // 接口名称:HIS登记信息同步,体检的登记信息同步,检查项目同步 + apiUrl: string // 接口地址 + databaseType: string // sqlserver , mysql ,oracle + databaseIP: string // 第三方数据库的IP + databasePort: string // 第三方数据库的端口 + databaseUserName: string // 第三方数据库的登录用户名 + databasePwd: string // 第三方数据库的登录密码 + softwareManufacturer: string // 第三方软件的制造商 + isdelete: string // 是否删除:1为删除 + remark: string // 备注信息 + apiCode: string // api代码:his01,his02,tj01,tj02 ,此为接口代码,唯一,每条接口一个api代码 +} + +// 接口配置 API +export const ApiconfigApi = { + // 查询接口配置分页 + getApiconfigPage: async (params: any) => { + return await request.get({ url: `/system/apiconfig/page`, params }) + }, + + // 查询接口配置详情 + getApiconfig: async (id: number) => { + return await request.get({ url: `/system/apiconfig/get?id=` + id }) + }, + + // 新增接口配置 + createApiconfig: async (data: ApiconfigVO) => { + return await request.post({ url: `/system/apiconfig/create`, data }) + }, + + // 修改接口配置 + updateApiconfig: async (data: ApiconfigVO) => { + return await request.put({ url: `/system/apiconfig/update`, data }) + }, + + // 删除接口配置 + deleteApiconfig: async (id: number) => { + return await request.delete({ url: `/system/apiconfig/delete?id=` + id }) + }, + + // 导出接口配置 Excel + exportApiconfig: async (params) => { + return await request.download({ url: `/system/apiconfig/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/system/apiconfig/ApiconfigForm.vue b/src/views/system/apiconfig/ApiconfigForm.vue new file mode 100644 index 00000000..bbe709a2 --- /dev/null +++ b/src/views/system/apiconfig/ApiconfigForm.vue @@ -0,0 +1,172 @@ + + diff --git a/src/views/system/apiconfig/index.vue b/src/views/system/apiconfig/index.vue new file mode 100644 index 00000000..c2c09327 --- /dev/null +++ b/src/views/system/apiconfig/index.vue @@ -0,0 +1,304 @@ + + + \ No newline at end of file