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/arMAutoUser.vue |   35 +++++++++++++++++++++++------------
 1 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/src/views/archiveManager/arMAutoUser.vue b/src/views/archiveManager/arMAutoUser.vue
index 207a63d..c55c7e6 100644
--- a/src/views/archiveManager/arMAutoUser.vue
+++ b/src/views/archiveManager/arMAutoUser.vue
@@ -113,7 +113,7 @@
 import {UserRoleIdList, allocatedUserList, authUserCancel, authUserCancelAll } from "@/api/system/role"
 import selectUser from "./seleUser"
   import { listMaterials, getMaterials, delMaterials, addMaterials, updateMaterials,getArchiverecordstouserByReIdAndUid } from "@/api/system/materials"
-import {listArchiverecordstouser,addArchiverecordstouser,delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
+import {listArchiverecordstouser,addArchiverecordstouser,delArchiverecordstouserByReIdAndUid,getArchiverecordstouser} from "@/api/system/archiverecordstouser"
 export default {
   name: "AuthUser1",
   dicts: ['sys_normal_disable'],
@@ -149,25 +149,36 @@
     const roleId = this.$route.params && this.$route.params.roleId
     const recordId = this.$route.params && this.$route.params.archiveRecordsId
    
-    if (roleId&&recordId) {
+    if (roleId && recordId) {
       this.queryParams.roleId = roleId
-      this.queryParams.archiveRecordsId = recordId
+      // 杩涜绫诲瀷杞崲
+      this.queryParams.archiveRecordsId = !isNaN(Number(recordId)) ? Number(recordId) : 0
       this.getList()
     }
   },
   methods: {
+    // 淇敼 getList 鏂规硶
     /** 鏌ヨ鎺堟潈鐢ㄦ埛鍒楄〃 */
     getList() {
       this.loading = true
-      console.log(this.queryParams)
-      console.log("------------")
-      listArchiverecordstouser(this.queryParams).then(response => {
-        console.log(response)
-          this.userList = response.data.data
-          this.total = response.data.total
-          this.loading = false
-        }
-      )
+      // 鍒涘缓涓�涓柊瀵硅薄锛屽皢瀛楃涓茬被鍨嬬殑archiveRecordsId杞崲涓烘暟瀛楃被鍨�
+      const params = {
+        ...this.queryParams,
+        archiveRecordsId: !isNaN(Number(this.queryParams.archiveRecordsId)) ? 
+                    Number(this.queryParams.archiveRecordsId) : 0
+      }
+      listArchiverecordstouser(params).then(response => {
+        this.userList = response.data.data
+        this.total = response.data.total
+        this.loading = false
+      })
+    },
+    /** 鎵撳紑鎺堟潈鐢ㄦ埛琛ㄥ脊绐� */
+    openSelectUser() {
+      // 纭繚浼犻�掔粰select缁勪欢鐨剅ecordId鏄暟瀛楃被鍨�
+      const recordId = !isNaN(Number(this.queryParams.archiveRecordsId)) ? 
+                    Number(this.queryParams.archiveRecordsId) : 0
+      this.$refs.select.show(recordId)
     },
     // 杩斿洖鎸夐挳
     handleClose() {

--
Gitblit v1.9.1