From db6c4bfaea26a6c0278b72ef5697ce28aa2c98e6 Mon Sep 17 00:00:00 2001
From: "277151821@qq.com" <277151821@qq.com>
Date: Mon, 29 Apr 2024 09:23:04 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E3=80=81?=
=?UTF-8?q?=E4=BB=8E=E4=B8=9A=E4=BA=BA=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/request/enterprise_management.js | 2 +-
.../enterprise_management/user/index.vue | 22 +------------------
.../user_practitioner/add.vue | 19 ++++++++--------
.../user_practitioner/edit.vue | 21 +++++++++---------
4 files changed, 23 insertions(+), 41 deletions(-)
diff --git a/src/request/enterprise_management.js b/src/request/enterprise_management.js
index 8537a6d..76a7bbd 100644
--- a/src/request/enterprise_management.js
+++ b/src/request/enterprise_management.js
@@ -30,7 +30,7 @@ export const setUserResetPassword = (params) =>
post("/corpinfo/resetPwd", params); // 用户管理重置密码
export const getUserScheduling = (params) =>
post("/shiftworkrules/listAll", params); // 用户管理获取排班
-export const setUserImport = (params) => upload("/user/readExcel2", params); // 用户管理导入
+export const setUserImport = (params) => upload("/user/readExcel4", params); // 用户管理导入
export const setUserLearnersImport = (params) =>
upload("/user/readExcel3", params); // 用户管理在线学习人员导入
export const getUserInfo = (params) => post("/user/goAddUser", params); // 用户管理添加获取信息
diff --git a/src/views/enterprise_management/user/index.vue b/src/views/enterprise_management/user/index.vue
index 5c89dda..61a899b 100644
--- a/src/views/enterprise_management/user/index.vue
+++ b/src/views/enterprise_management/user/index.vue
@@ -79,9 +79,6 @@
导入
-
- 在线学习人员导入
-
@@ -191,15 +188,9 @@
-
{
fnImportDialogChangeShow();
fnResetPaginationTransfer();
};
-const fnImportLearnersDialogChangeShow = () => {
- data.importLearnersDialogVisible = !data.importLearnersDialogVisible;
-};
-const fnSubmitLearnersImport = async (formData) => {
- const resData = await setUserLearnersImport(formData);
- ElMessage.success(resData.msg);
- fnImportLearnersDialogChangeShow();
- fnResetPaginationTransfer();
-};
const fnSchedule = (row) => {
data.scheduleDialog.visible = true;
data.scheduleDialog.info = row;
diff --git a/src/views/enterprise_management/user_practitioner/add.vue b/src/views/enterprise_management/user_practitioner/add.vue
index 35677f4..7964a23 100644
--- a/src/views/enterprise_management/user_practitioner/add.vue
+++ b/src/views/enterprise_management/user_practitioner/add.vue
@@ -12,7 +12,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
{
formData.append(key, data.form[key]);
});
+ formData.PERSONNEL_TYPE = data.form.PERSONNEL_TYPE.join(",")
formData.delete("ID_CARD_VALIDITY");
formData.delete("DRIVING_MODEL_ARR");
formData.delete("DRIVER_LICENSE_VALIDITY");
diff --git a/src/views/enterprise_management/user_practitioner/edit.vue b/src/views/enterprise_management/user_practitioner/edit.vue
index f7011da..711f2f5 100644
--- a/src/views/enterprise_management/user_practitioner/edit.vue
+++ b/src/views/enterprise_management/user_practitioner/edit.vue
@@ -12,7 +12,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
{
data.oldPostId = form.POST_ID;
data.oldDepartId = form.DEPARTMENT_ID;
form.userCerFile = addingPrefixToFile(resData.userCerList);
-
+ form.PERSONNEL_TYPE = form.PERSONNEL_TYPE.split(",")
resData.certificateList.forEach((item) => {
if (item.CERTIFICATE_CATEGORY === "1") {
data.fileForm.ID_CARD_FRONT = addingPrefixFile(item.ID_PHOTO_FRONT);
@@ -1153,6 +1153,7 @@ const fnSubmit = debounce(
Object.keys(data.form).forEach((key) => {
formData.append(key, data.form[key]);
});
+ formData.PERSONNEL_TYPE = data.form.PERSONNEL_TYPE.join(",")
formData.delete("ID_CARD_VALIDITY");
formData.delete("DRIVING_MODEL_ARR");
formData.delete("DRIVER_LICENSE_VALIDITY");