| | |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleGivePermission" |
| | | @click="handleBackPermission" |
| | | v-hasPermi="['system:materials:edit']" |
| | | >批量取消授权</el-button> |
| | | </el-col> |
| | |
| | | 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 { |
| | |
| | | name: "InfoManager", |
| | | data() { |
| | | return { |
| | | //删除批量授权 |
| | | allMapInfo: [], |
| | | recId: '', |
| | | openSearch: false, |
| | | totalUser: 0, |
| | |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | userAllIds: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | |
| | | 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() { |
| | |
| | | if(res.code === 200) { |
| | | this.$modal.msgSuccess(res.msg) |
| | | this.visibleUser = false |
| | | this.getList() |
| | | // this.$emit("ok") |
| | | } else { |
| | | this.$modal.msgError(res.msg || "授权失败,已经授权过了") |
| | |
| | | // 多选框选中数据 |
| | | 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() { |
| | |
| | | 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() { |
| | |
| | | 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() |
| | | { |