From a0f40c39abc6b26e101f54433c150af5bbbc240a Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期三, 21 一月 2026 21:43:25 +0800
Subject: [PATCH] 修改了相关代码
---
src/views/archiveManager/index.vue | 40 ++++++++++++++++++++++++++++++++++++----
1 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/src/views/archiveManager/index.vue b/src/views/archiveManager/index.vue
index 0d3fe5d..34c8eda 100644
--- a/src/views/archiveManager/index.vue
+++ b/src/views/archiveManager/index.vue
@@ -334,7 +334,7 @@
plain
icon="el-icon-download"
size="mini"
- @click="handleGivePermission"
+ @click="handleBackPermission"
v-hasPermi="['system:materials:edit']"
>鎵归噺鍙栨秷鎺堟潈</el-button>
</el-col>
@@ -1001,7 +1001,7 @@
import { listPlaceName, listAllPlaceName } from "@/api/system/placeName"
import { judge,getFileCount } from "@/api/system/materials"
import { UserRoleIdList,unallocatedUserList, authUserSelectAll } from "@/api/system/role"
-import {authManyRecordsToUsers, delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
+import {authManyRecordsToUsers, delArchiverecordstouserByReIdAndUid, backPermission} from "@/api/system/archiverecordstouser"
import { selectAllSig } from "@/api/system/signature"
import { selectAllAnn } from "@/api/system/annotation"
export default {
@@ -1011,6 +1011,8 @@
name: "InfoManager",
data() {
return {
+ //鍒犻櫎鎵归噺鎺堟潈
+ allMapInfo: [],
recId: '',
openSearch: false,
totalUser: 0,
@@ -1061,6 +1063,7 @@
loading: true,
// 閫変腑鏁扮粍
ids: [],
+ userAllIds: [],
// 闈炲崟涓鐢�
single: true,
// 闈炲涓鐢�
@@ -1228,8 +1231,7 @@
var userId = store.state.user.id
var _this = this
// alert(userId)
- alert(userId)
- alert(recordId)
+
// alert(this.queryParams.archiveRecordsId)
// alert(row.sysUser.userName)
this.$modal.confirm('纭瑕佸彇娑堣鐢ㄦ埛鐨勬巿鏉冨悧锛�').then(function() {
@@ -1275,6 +1277,7 @@
if(res.code === 200) {
this.$modal.msgSuccess(res.msg)
this.visibleUser = false
+ this.getList()
// this.$emit("ok")
} else {
this.$modal.msgError(res.msg || "鎺堟潈澶辫触锛屽凡缁忔巿鏉冭繃浜�")
@@ -1297,6 +1300,10 @@
// 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
this.userIds = selection.map(item => item.userId)
+
+ var allMapInfo = selection.map(item =>(item.id, item.userId))
+ console.log("0----------00000000000")
+ console.log(allMapInfo)
},
// 鏌ヨ琛ㄦ暟鎹�
getUserList() {
@@ -1558,6 +1565,14 @@
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
+ console.log( this.ids)
+ this.allMapInfo = selection.map(item => ({
+ recordId: item.id,
+ userId: item.userId
+}));
+
+console.log(this.allMapInfo)
+
},
/** 鏂板鎸夐挳鎿嶄綔 */
handleAdd() {
@@ -1752,6 +1767,23 @@
this.title = "淇敼妗f璁板綍"
})
},
+ handleBackPermission()
+ {
+ console.log("--------------------++++++++++]]]]]")
+ console.log(this.allMapInfo)
+ var _this = this;
+ const ids = this.ids
+ this.$modal.confirm('鏄惁纭鏀跺洖妗f璁板綍缂栧彿涓�"' + ids + '"鐨勬潈闄愶紵').then(function() {
+
+ backPermission(_this.allMapInfo)
+
+ }).then(() => {
+ this.getList()
+ this.$modal.msgSuccess("鏀跺洖鏉冮檺鎴愬姛")
+ }).catch(() => {})
+
+
+ },
/*鎵归噺鎺堟潈*/
handleGivePermission()
{
--
Gitblit v1.9.1