From 406f7526df2f05e972cf3d5ccabc6610501828a6 Mon Sep 17 00:00:00 2001
From: tian <3072314689@qq.com>
Date: 星期一, 13 十月 2025 18:53:32 +0800
Subject: [PATCH] 修改给录入人员授权bug
---
src/views/archiveManager/seleUser.vue | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/views/archiveManager/seleUser.vue b/src/views/archiveManager/seleUser.vue
index 39a1eea..1c61ea5 100644
--- a/src/views/archiveManager/seleUser.vue
+++ b/src/views/archiveManager/seleUser.vue
@@ -106,11 +106,12 @@
// 鏄剧ず寮规
show(archiveRecordsId) {
if (archiveRecordsId) {
- this.archiveRecordsId = archiveRecordsId
- }
+ // 杩涜绫诲瀷杞崲
+ this.archiveRecordsId = !isNaN(Number(archiveRecordsId)) ? Number(archiveRecordsId) : 0
+ }
this.queryParams.roleId = this.roleId
this.queryParams.archiveRecordsId = this.archiveRecordsId
-
+
this.getList()
this.visible = true
},
@@ -145,20 +146,23 @@
handleSelectUser() {
const archiveRecordsId = this.queryParams.archiveRecordsId
const userIds = this.userIds.join(",")
-
-
+
if (userIds == "") {
this.$modal.msgError("璇烽�夋嫨瑕佸垎閰嶇殑鐢ㄦ埛")
return
}
- authRecordToUser({ recordId: archiveRecordsId, userIds: userIds }).then(res => {
+
+ // 鍒涘缓杞崲鍚庣殑鍙傛暟锛岀‘淇漴ecordId鏄暟瀛楃被鍨�
+ const convertedRecordId = !isNaN(Number(archiveRecordsId)) ? Number(archiveRecordsId) : 0
+
+ authRecordToUser({ recordId: convertedRecordId, userIds: userIds }).then(res => {
if(res.code === 200) {
- this.$modal.msgSuccess(res.msg)
- this.visible = false
- this.$emit("ok")
- } else {
- this.$modal.msgError(res.msg || "鎺堟潈澶辫触锛屽凡缁忔巿鏉冭繃浜�")
- }
+ this.$modal.msgSuccess(res.msg)
+ this.visible = false
+ this.$emit("ok")
+ } else {
+ this.$modal.msgError(res.msg || "鎺堟潈澶辫触锛屽凡缁忔巿鏉冭繃浜�")
+ }
})
}
}
--
Gitblit v1.9.1