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 @@
+
+
+
+