From 7a27d189379110ec1b9dcb356f73dcae66756ab0 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期一, 04 八月 2025 21:42:34 +0800
Subject: [PATCH] 增加了各种代码

---
 src/views/archiveManager/seleUser.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/views/archiveManager/seleUser.vue b/src/views/archiveManager/seleUser.vue
index 6faa5ed..6249c65 100644
--- a/src/views/archiveManager/seleUser.vue
+++ b/src/views/archiveManager/seleUser.vue
@@ -57,12 +57,17 @@
 </template>
 
 <script>
+  import {listArchiverecordstouser,addArchiverecordstouser,authRecordToUser} from "@/api/system/archiverecordstouser"
+
 import { UserRoleIdList,unallocatedUserList, authUserSelectAll } from "@/api/system/role"
 export default {
   dicts: ['sys_normal_disable'],
   props: {
     // 瑙掕壊缂栧彿
     roleId: {
+      type: [Number, String]
+    },
+    recordId: {
       type: [Number, String]
     }
   },
@@ -81,6 +86,7 @@
         pageNum: 1,
         pageSize: 10,
         roleId: undefined,
+        recordId: undefined,
         userName: undefined,
         phonenumber: undefined
       }
@@ -90,6 +96,7 @@
     // 鏄剧ず寮规
     show() {
       this.queryParams.roleId = this.roleId
+      this.queryParams.recordId = this.recordId
       this.getList()
       this.visible = true
     },
@@ -103,6 +110,8 @@
     // 鏌ヨ琛ㄦ暟鎹�
     getList() {
       UserRoleIdList(this.queryParams).then(res => {
+        console.log("=------00000000009")
+        console.log(res)
         this.userList = res.rows
         this.total = res.total
       })
@@ -119,13 +128,16 @@
     },
     /** 閫夋嫨鎺堟潈鐢ㄦ埛鎿嶄綔 */
     handleSelectUser() {
-      const roleId = this.queryParams.roleId
+      const recordId = this.queryParams.recordId
       const userIds = this.userIds.join(",")
+
+      alert(recordId)
+      alert(userIds)
       if (userIds == "") {
         this.$modal.msgError("璇烽�夋嫨瑕佸垎閰嶇殑鐢ㄦ埛")
         return
       }
-      authUserSelectAll({ roleId: roleId, userIds: userIds }).then(res => {
+      authRecordToUser({ recordId: recordId, userIds: userIds }).then(res => {
         this.$modal.msgSuccess(res.msg)
         this.visible = false
         this.$emit("ok")

--
Gitblit v1.9.1