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/archiveMaterial/index.vue | 17 +++++++-
src/api/system/archiverecordstouser.js | 10 +++++
src/views/archiveManager/index.vue | 40 ++++++++++++++++++--
3 files changed, 60 insertions(+), 7 deletions(-)
diff --git a/src/api/system/archiverecordstouser.js b/src/api/system/archiverecordstouser.js
index a826321..6b9bee9 100644
--- a/src/api/system/archiverecordstouser.js
+++ b/src/api/system/archiverecordstouser.js
@@ -88,3 +88,13 @@
params: data
})
}
+//鎾ゅ洖鎺堟潈
+export function backPermission(data)
+{
+ return request(
+ {
+ url: '/system/archiverecordstouser/batchBack',
+ method: 'post',
+ data: data
+ })
+}
diff --git a/src/views/archiveManager/archiveMaterial/index.vue b/src/views/archiveManager/archiveMaterial/index.vue
index 381c1b4..903b75d 100644
--- a/src/views/archiveManager/archiveMaterial/index.vue
+++ b/src/views/archiveManager/archiveMaterial/index.vue
@@ -280,7 +280,7 @@
>瀵煎嚭鍗峰唴鐩綍</el-button>
</el-col>
- <el-col :span="1.5">
+ <el-col :span="1.2">
<el-button
type="warning"
plain
@@ -316,7 +316,7 @@
>瀵煎叆妯℃澘涓嬭浇</el-button>
</el-col>
- <el-col v-if="sho" :span="1.5">
+ <el-col v-if="sho" :span="1.2">
<el-upload
action=""
@@ -333,7 +333,16 @@
</el-upload>
</el-col>
- <el-col :span="1.5">
+ <el-col :span="1.1">
+ <el-button type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ @click="handleImport"
+ v-hasPermi="['system:materials:edit']"
+ >鏌ョ湅闄勪欢</el-button>
+ </el-col>
+ <el-col :span="1.2">
<el-button
v-if="sho"
type="success"
@@ -371,6 +380,8 @@
</el-upload>
</el-dialog>
</el-col>
+
+
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
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