| | |
| | | v-hasPermi="['system:materials:edit']" |
| | | >批量授权</el-button> |
| | | </el-col> |
| | | |
| | | <el-col v-if="userId==1" :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleGivePermission" |
| | | v-hasPermi="['system:materials:edit']" |
| | | >批量取消授权</el-button> |
| | | </el-col> |
| | | <el-col v-if="userId==1" :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | |
| | | @click="viewAndPrintExcel(scope.row)" |
| | | title="查看并打印Excel文件" |
| | | >打印预整理清单</el-button> |
| | | <el-button icon="el-icon-edit" size="mini" |
| | | v-if="userId!==1&&scope.row.ownData" type="text" @click="cancelAuthUser(scope.row)"> |
| | | 退回管理员</el-button> |
| | | |
| | | <el-button |
| | | v-if="userId!==1&&scope.row.ownData" |
| | | |
| | |
| | | <div class="option-label">选择注解:</div> |
| | | <div class="annotation-options"> |
| | | <label v-for="(annotation, index) in excelOptions.selectedAnnotations" :key="index" class="signature-checkbox"> |
| | | <input type="checkbox" v-model="excelOptions.subselectedAnnotations" :value="index"> |
| | | <span>{{ annotation }} |
| | | <input type="checkbox" v-model="excelOptions.subselectedAnnotations" :value="annotation.srt"> |
| | | <span>{{ annotation.name }} |
| | | </span> |
| | | </label> |
| | | </div> |
| | |
| | | <div class="signature-options"> |
| | | <div class="signature-checkboxes"> |
| | | <label v-for="(signature, index) in excelOptions.selectedSignatures" :key="index" class="signature-checkbox"> |
| | | <input type="checkbox" v-model="excelOptions.subselectedSignatures" :value="index"> |
| | | <span>{{ signature }}</span> |
| | | <input type="checkbox" v-model="excelOptions.subselectedSignatures" :value="signature.sot"> |
| | | <span>{{ signature.sigaName }}</span> |
| | | </label> |
| | | |
| | | |
| | |
| | | <script> |
| | | import VueOfficeExcel from '@vue-office/excel' |
| | | import '@vue-office/excel/lib/index.css' |
| | | |
| | | import store from '@/store' |
| | | import axios from 'axios' |
| | | import { getToken } from '@/utils/auth' |
| | | import { enload, getIdFileCounts,batchSubmitRecords,updateStatusById,listRecords,getMaxId, getRecords, delRecords, addRecords, updateRecords } from "@/api/system/records" |
| | |
| | | import { listPlaceName, listAllPlaceName } from "@/api/system/placeName" |
| | | import { judge,getFileCount } from "@/api/system/materials" |
| | | import { UserRoleIdList,unallocatedUserList, authUserSelectAll } from "@/api/system/role" |
| | | import {authManyRecordsToUsers} from "@/api/system/archiverecordstouser" |
| | | |
| | | import {authManyRecordsToUsers, delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser" |
| | | import { selectAllSig } from "@/api/system/signature" |
| | | import { selectAllAnn } from "@/api/system/annotation" |
| | | export default { |
| | | components: { |
| | | VueOfficeExcel |
| | |
| | | this.fetchProjectOptions() |
| | | this.fetchProjectCompanyOptions() |
| | | this.getList() |
| | | |
| | | this.getSigInfo(); |
| | | this.getAnnInfo(); |
| | | }, |
| | | watch: { |
| | | 'form.constructionUnit': { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | getAnnInfo(){ |
| | | selectAllAnn({}).then(response=>{ |
| | | this.excelOptions.selectedAnnotations = response.data |
| | | }) |
| | | }, |
| | | getSigInfo(){ |
| | | selectAllSig({}).then(response => { |
| | | console.log(']]][[[[[[[[[]]]]]]]]]') |
| | | |
| | | console.log(response) |
| | | this.excelOptions.selectedSignatures= response.data |
| | | |
| | | console.log(this.excelOptions.selectedSignatures) |
| | | }) |
| | | }, |
| | | /** 取消授权按钮操作 */ |
| | | cancelAuthUser(row) { |
| | | |
| | | const recordId = row.id |
| | | 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() { |
| | | return delArchiverecordstouserByReIdAndUid({ recordId: recordId, userId: userId }) |
| | | }).then(() => { |
| | | // this.getList() |
| | | //修改案卷的状态 |
| | | // var id = row.id |
| | | var status = '未上传附件' |
| | | updateStatusById(status, recordId, '退回管理员').then(response=>{ |
| | | // this.$modal.msgSuccess("提交成功") |
| | | this.getList() |
| | | // _this.$store.dispatch('tagsView/delView', this.$route); |
| | | // _this.$router.push('/archiveManager/infoManager') |
| | | _this.$modal.msgSuccess("取消授权成功") |
| | | }) |
| | | |
| | | }).catch(() => {}) |
| | | }, |
| | | handleSearch() |
| | | { |
| | | this.openSearch = true; |