From 4d5f750e8fa64ec7d113a76a4d91a0757bdd2a33 Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期二, 14 十月 2025 21:52:52 +0800
Subject: [PATCH] Merge branch 'master' of http://47.93.189.255:8099/r/archiveFrontEnd
---
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