From 575bbc396239e165add4a491288291ead2bfc5fe Mon Sep 17 00:00:00 2001 From: ailanyin Date: Wed, 7 Jun 2023 10:41:59 +0800 Subject: [PATCH] bug fix --- package.json | 3 +- src/api/dataList/laboratory.js | 92 ++- src/assets/styles/infinite-select.scss | 5 + src/components/InfiniteSelect/index.vue | 295 ++++++++ src/views/approval/dataList/add.vue | 45 +- src/views/components/ExpertForm/index.vue | 229 +++--- src/views/components/LaboratoryForm/index.vue | 188 ++--- src/views/dataList/expert/index.vue | 364 +++++----- src/views/dataList/laboratory/add.vue | 31 +- src/views/dataList/laboratory/index.vue | 521 +++++++------- .../dataList/research-institutions/add.vue | 109 +++ .../dataList/research-institutions/index.vue | 667 ++++++++++++++++++ src/views/expert/dataList/approval.vue | 41 +- src/views/userAuditList/expert/index.vue | 1 + .../userAuditList/laboratory/approval.vue | 115 +++ src/views/userAuditList/laboratory/index.vue | 158 +++++ vite.config.js | 2 +- 17 files changed, 2129 insertions(+), 737 deletions(-) create mode 100644 src/assets/styles/infinite-select.scss create mode 100644 src/components/InfiniteSelect/index.vue create mode 100644 src/views/dataList/research-institutions/add.vue create mode 100644 src/views/dataList/research-institutions/index.vue create mode 100644 src/views/userAuditList/laboratory/approval.vue create mode 100644 src/views/userAuditList/laboratory/index.vue diff --git a/package.json b/package.json index 1ccc60a..32cea30 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "element-plus": "2.1.8", "file-saver": "2.0.5", "fuse.js": "6.5.3", + "infinite-select": "^0.0.5", "js-cookie": "3.0.1", "js-md5": "^0.7.3", "jsencrypt": "3.2.1", @@ -38,7 +39,7 @@ "@vue/compiler-sfc": "3.2.36", "sass": "1.52.1", "unplugin-auto-import": "0.8.5", - "vite": "2.9.9", + "vite": "2.9.13", "vite-plugin-compression": "0.5.1", "vite-plugin-svg-icons": "2.0.1", "vite-plugin-vue-setup-extend": "0.4.0" diff --git a/src/api/dataList/laboratory.js b/src/api/dataList/laboratory.js index 8b243f2..e3970f7 100644 --- a/src/api/dataList/laboratory.js +++ b/src/api/dataList/laboratory.js @@ -2,51 +2,81 @@ import request from "@/utils/request"; // 实验室列表 export function casLaboratoryList(params) { - return request({ - url: "/business/casLaboratory/list", - method: "GET", - params, - }); + return request({ + url: "/business/casLaboratory/list", + method: "GET", + params, + }); } + // 新增 export function casLaboratoryAdd(data) { - return request({ - url: "/business/casLaboratory", - method: "POST", - data, - }); + return request({ + url: "/business/casLaboratory", + method: "POST", + data, + }); } + // 修改 export function casLaboratoryUpdate(data) { - return request({ - url: "/business/casLaboratory", - method: "PUT", - data, - }); + return request({ + url: "/business/casLaboratory", + method: "PUT", + data, + }); } + // id详情 export function casLaboratoryDetail(id) { - return request({ - url: `/business/casLaboratory/${id}`, - method: "GET", - }); + return request({ + url: `/business/casLaboratory/${id}`, + method: "GET", + }); } + // 删除 export function casLaboratoryDelete(ids) { - return request({ - url: `/business/casLaboratory`, - method: "DELETE", - data: { - ids, - }, - }); + return request({ + url: `/business/casLaboratory`, + method: "DELETE", + data: { + ids, + }, + }); } // 导入 export function casLaboratoryImportData(data) { - return request({ - url: `/business/casLaboratory/importData`, - method: "POST", - data, - }); + return request({ + url: `/business/casLaboratory/importData`, + method: "POST", + data, + }); } + +// 实验室获取账号 +export function getAccount(id) { + return request({ + url: `/business/casLaboratory/getAccount/${id}`, + method: "GET", + + }); +} + +// 实验室分配账号 +export function allocateAccount(data) { + return request({ + url: "/business/casLaboratory/allocateAccount", + method: "post", + data, + }); +} + +// 实验室重置密码 +export function restPassword(id, password) { + return request({ + url: `/business/casLaboratory/restPassword/${id}/${password}`, + method: "put", + }); +} \ No newline at end of file diff --git a/src/assets/styles/infinite-select.scss b/src/assets/styles/infinite-select.scss new file mode 100644 index 0000000..c331a47 --- /dev/null +++ b/src/assets/styles/infinite-select.scss @@ -0,0 +1,5 @@ +.el-popover { + .el-scrollbar { + height: 260px; + } +} \ No newline at end of file diff --git a/src/components/InfiniteSelect/index.vue b/src/components/InfiniteSelect/index.vue new file mode 100644 index 0000000..35d474f --- /dev/null +++ b/src/components/InfiniteSelect/index.vue @@ -0,0 +1,295 @@ + + + + + diff --git a/src/views/approval/dataList/add.vue b/src/views/approval/dataList/add.vue index 585a2ce..ab84884 100644 --- a/src/views/approval/dataList/add.vue +++ b/src/views/approval/dataList/add.vue @@ -2,12 +2,12 @@
@@ -19,17 +19,13 @@
- + + diff --git a/src/views/dataList/research-institutions/index.vue b/src/views/dataList/research-institutions/index.vue new file mode 100644 index 0000000..67567b2 --- /dev/null +++ b/src/views/dataList/research-institutions/index.vue @@ -0,0 +1,667 @@ + + + diff --git a/src/views/expert/dataList/approval.vue b/src/views/expert/dataList/approval.vue index e67dd6f..6e45ae4 100644 --- a/src/views/expert/dataList/approval.vue +++ b/src/views/expert/dataList/approval.vue @@ -2,12 +2,12 @@
@@ -18,14 +18,15 @@
- + + diff --git a/src/views/userAuditList/laboratory/index.vue b/src/views/userAuditList/laboratory/index.vue new file mode 100644 index 0000000..bccd124 --- /dev/null +++ b/src/views/userAuditList/laboratory/index.vue @@ -0,0 +1,158 @@ + + + + diff --git a/vite.config.js b/vite.config.js index 99d6024..d8faa3a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -32,7 +32,7 @@ export default defineConfig(({ mode, command }) => { // https://cn.vitejs.dev/config/#server-proxy "/dev-api": { // target: "http://192.168.110.10:1618", - target: "http://101.34.131.16:1618", + target: "http://192.168.0.201:1618", changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, ""), },