fei
22 小时以前 a0f40c39abc6b26e101f54433c150af5bbbc240a
修改了相关代码
3个文件已修改
67 ■■■■ 已修改文件
src/api/system/archiverecordstouser.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/archiveMaterial/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/index.vue 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
  })
}
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>
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 = "修改档案记录"
      })
    },
    handleBackPermission()
    {
      console.log("--------------------++++++++++]]]]]")
      console.log(this.allMapInfo)
      var _this = this;
    const ids =  this.ids
      this.$modal.confirm('是否确认收回档案记录编号为"' + ids + '"的权限?').then(function() {
        backPermission(_this.allMapInfo)
      }).then(() => {
        this.getList()
        this.$modal.msgSuccess("收回权限成功")
      }).catch(() => {})
    },
    /*批量授权*/
    handleGivePermission()
    {