Commit 1f1c4026 authored by ytbdmhy's avatar ytbdmhy

归档version:0.4.0

parent cd46dc34
<template>
<div>
<div class="archive-administration">
<el-backtop target=".archive-administration" right="70" bottom="70">
<div style="text-align: center;font-size: 20px"></div>
</el-backtop>
<el-table
v-loading.fullscreen.lock="loading"
:data="tableData"
border
style="width: 100%">
<!-- @row-click="getFileList">-->
<el-table-column
align="center"
label="序号"
......@@ -17,7 +19,7 @@
align="center"
prop="type"
label="档案类别"
width="250">
width="100">
</el-table-column>
<el-table-column
align="center"
......@@ -31,7 +33,11 @@
label="档号"
width="180">
<template slot-scope="scope">
<el-button type="text" @click="getFileList(scope.row)">{{scope.row.number}}</el-button>
<el-button
type="text"
@click="getFileList(scope.row)">
{{scope.row.number}}
</el-button>
</template>
</el-table-column>
<el-table-column
......@@ -124,9 +130,19 @@
label="案卷号"
width="70">
</el-table-column>
<el-table-column align="center" fixed="right" label="操作" width="100">
<el-table-column
align="center"
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button type="primary" size="mini" plain @click="exportArchive(scope.row)">导出</el-button>
<el-button
type="primary"
size="mini"
plain
@click="exportArchive(scope.row)">
导出
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -301,44 +317,8 @@
margin-top: 10px;
}
.wrap {
overflow: hidden;
position: relative;
}
.masks {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 200
}
.form {
float: left;
width: 45%;
margin-left: 20px
}
.imgcon {
margin: 0 auto;
box-shadow: 0 0 15px lightgray;
overflow: hidden;
margin-bottom: 40px
}
.block {
width: 23%
}
.block {
float: left;
.archive-administration {
height: 100%;
margin-right: 20px
}
.imtil {
padding: 0 0 20px 0
overflow-y: scroll;
}
</style>
<template>
<div>
<div class="archive-expect">
<el-backtop target=".archive-expect" right="70" bottom="70">
<div style="text-align: center;font-size: 20px"></div>
</el-backtop>
<el-table
v-loading.fullscreen.lock="loading"
:data="tableData"
border
style="width: 100%">
<!-- @row-click="getFileList">-->
<el-table-column
align="center"
type="selection"
......@@ -28,10 +30,8 @@
<el-table :data="scope.row.eventLogList" border style="width: 100%">
<el-table-column align="center" label="文件序号" type="index" width="60"></el-table-column>
<el-table-column align="center" prop="eventTimeStr" label="成文时间" width="180"></el-table-column>
<el-table-column align="center" prop="name" label="姓名" width="100"
:formatter="decryptCellValue"></el-table-column>
<el-table-column align="center" prop="idcard" label="身份证" width="200"
:formatter="decryptCellValue"></el-table-column>
<el-table-column align="center" prop="nameDec" label="姓名" width="100"></el-table-column>
<el-table-column align="center" prop="idcardDec" label="身份证" width="200"></el-table-column>
<el-table-column align="center" prop="concatAddress" label="乡镇/村社" width="200"></el-table-column>
<el-table-column
align="center"
......@@ -103,51 +103,19 @@
</el-table>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="type"-->
<!-- label="档案类别"-->
<!-- width="250">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="volumeNumber"-->
<!-- label="全宗号"-->
<!-- width="70">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="number"-->
<!-- label="档号"-->
<!-- width="180">-->
<!--&lt;!&ndash; <template slot-scope="scope">&ndash;&gt;-->
<!--&lt;!&ndash; <el-button type="text" @click="getFileList(scope.row)">{{scope.row.number}}</el-button>&ndash;&gt;-->
<!--&lt;!&ndash; </template>&ndash;&gt;-->
<!-- </el-table-column>-->
<el-table-column
align="center"
prop="eventSign"
label="业务类型"
:formatter="getEventType"
width="150">
</el-table-column>
<el-table-column
align="center"
prop="year"
label="年度"
width="70">
</el-table-column>
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="retentionPeriod"-->
<!-- label="保管期限"-->
<!-- width="60">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="institution"-->
<!-- label="机构(问题)"-->
<!-- width="70">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="responsiblePerson"-->
<!-- label="责任者"-->
<!-- width="130">-->
<!-- </el-table-column>-->
<el-table-column
align="center"
prop="title"
......@@ -178,12 +146,6 @@
label="件数"
width="60">
</el-table-column>
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="createTimeStr"-->
<!-- label="归档时间"-->
<!-- width="120">-->
<!-- </el-table-column>-->
<el-table-column
align="center"
prop="fileType"
......@@ -200,23 +162,35 @@
align="center"
prop="categoryType"
label="类别代码"
width="70">
width="60">
</el-table-column>
<el-table-column
align="center"
prop="businessType"
label="业务类别"
width="200">
width="250">
</el-table-column>
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="fileNumber"-->
<!-- label="案卷号"-->
<!-- width="70">-->
<!-- </el-table-column>-->
<el-table-column align="center" fixed="right" label="操作" width="100">
<el-table-column
align="center"
fixed="right"
label="操作"
width="200">
<template slot-scope="scope">
<el-button type="primary" size="mini" plain @click="fileArchive(scope.row)">归档</el-button>
<el-input
onKeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))"
v-model="scope.row.fileNumber"
style="float: left;width: 63%"
placeholder="输入案卷号"
clearable
size="mini"></el-input>
<el-button
style="float: left;margin-left: 10px"
type="primary"
size="mini"
plain
@click="fileArchive(scope.row)">
归档
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -263,6 +237,12 @@
this.$api.getlist.selectExpectArchive(data)
.then((response) => {
if (response.code === 200) {
for (const i in response.data.content) {
for (const j in response.data.content[i].eventLogList) {
response.data.content[i].eventLogList[j].nameDec = this.$options.methods.decryptParam(response.data.content[i].eventLogList[j].name);
response.data.content[i].eventLogList[j].idcardDec = this.$options.methods.decryptParam(response.data.content[i].eventLogList[j].idcard);
}
}
this.tableData = response.data.content;
this.totals = response.data.totalSize;
}
......@@ -296,11 +276,24 @@
});
return decrypted.toString(CryptoJS.enc.Utf8);
},
decryptCellValue(row, column, cellValue, index) {
if (cellValue === null || cellValue === "") return null;
return this.decrypt(cellValue);
decryptCellValue(row, column, cellValue) {
this.decryptParam(cellValue);
},
decryptParam(param) {
if (param === null || param === "") return null;
return this.decrypt(param);
},
fileArchive(archive) {
if (archive.fileNumber === null || archive.fileNumber === "" || archive.fileNumber < 0) {
this.$message({
showClose: true,
message: "请输入案卷号",
type: 'warning',
duration: 3000
});
return;
}
this.loading = true;
const archives = [archive];
this.fileArchives(archives);
},
......@@ -324,6 +317,7 @@
});
}
this.reload();
this.loading = false;
})
.catch((response) => {
this.$message({
......@@ -332,8 +326,8 @@
type: 'error',
duration: 10000
});
this.loading = false;
});
this.loading = false;
},
reload() {
const data = {
......@@ -343,7 +337,25 @@
eventTypeDetail: this.eventTypeDetail,
};
this.search(data);
}
},
getEventType(row, column, cellValue) {
switch (cellValue) {
case "1" : return "参保登记";
case "3" : return "待遇申请";
case "4" : return "参保注销";
case "5" : return "补缴保费";
case "6" : return "升档改办";
case "7" : return "关系转移";
case "2-1" : return "信息变更/档次变更";
case "2-2" : return "信息变更/银行卡变更";
case "2-3" : return "信息变更/手机号变更";
case "2-4" : return "信息变更/参保身份变更";
case "2-5" : return "信息变更/户籍地址变更";
case "2-6" : return "信息变更/姓名变更";
case "2-7" : return "信息变更/身份证变更";
default : return null;
}
},
},
created() {
this.loading = true;
......@@ -354,8 +366,15 @@
this.$api.getlist.selectExpectArchive(data)
.then((response) => {
if (response.code === 200) {
for (const i in response.data.content) {
for (const j in response.data.content[i].eventLogList) {
response.data.content[i].eventLogList[j].nameDec = this.$options.methods.decryptParam(response.data.content[i].eventLogList[j].name);
response.data.content[i].eventLogList[j].idcardDec = this.$options.methods.decryptParam(response.data.content[i].eventLogList[j].idcard);
}
}
this.tableData = response.data.content;
this.totals = response.data.totalSize;
console.log(this.tableData);
}
})
.catch((response) => {
......@@ -375,44 +394,8 @@
margin-left: 20px;
}
.wrap {
overflow: hidden;
position: relative;
}
.masks {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 200
}
.form {
float: left;
width: 45%;
margin-left: 20px
}
.imgcon {
margin: 0 auto;
box-shadow: 0 0 15px lightgray;
overflow: hidden;
margin-bottom: 40px
}
.block {
width: 23%
}
.block {
float: left;
.archive-expect {
height: 100%;
margin-right: 20px
}
.imtil {
padding: 0 0 20px 0
overflow-y: scroll;
}
</style>
<template>
<div>
<el-table
v-loading.fullscreen.lock="loading"
:data="tableData"
border
style="width: 100%">
<el-table-column
align="center"
label="序号"
type="index"
width="50"
:index="this.indexStart">
</el-table-column>
<el-table-column
align="center"
label="档案类别"
:formatter="getArchiveType"
width="250">
</el-table-column>
<el-table-column
align="center"
label="全宗号"
:formatter="getArchiveVolumeNumber"
width="70">
</el-table-column>
<el-table-column
align="center"
label="档号"
:formatter="getArchiveNumber"
width="180">
</el-table-column>
<el-table-column
align="center"
label="年度"
:formatter="getArchiveYear"
width="70">
</el-table-column>
<el-table-column
align="center"
label="保管期限"
:formatter="getArchiveRetentionPeriod"
width="60">
</el-table-column>
<el-table-column
align="center"
label="机构(问题)"
:formatter="getArchiveInstitution"
width="70">
</el-table-column>
<el-table-column
align="center"
prop="number"
label="本卷件号"
width="60">
</el-table-column>
<el-table-column
align="center"
prop="pageNumber"
label="页号"
width="70">
</el-table-column>
<el-table-column
align="center"
label="责任者"
:formatter="getArchiveResponsiblePerson"
width="130">
</el-table-column>
<el-table-column
align="center"
prop="title"
label="正题名"
width="550">
</el-table-column>
<el-table-column
align="center"
prop="writtenTimeStr"
label="成文时间"
width="120">
</el-table-column>
<el-table-column
align="center"
prop="annex"
label="附件"
width="300">
</el-table-column>
<el-table-column
align="center"
prop="createTimeStr"
label="归档时间"
width="120">
</el-table-column>
<el-table-column
align="center"
label="档案类别"
:formatter="getArchiveFileType"
width="100">
</el-table-column>
<el-table-column
align="center"
label="二级类目"
:formatter="getArchiveSecondaryCategory"
width="250">
</el-table-column>
<el-table-column
align="center"
label="类别代码"
:formatter="getArchiveCategoryType"
width="60">
</el-table-column>
<el-table-column
align="center"
prop="name"
label="姓名"
width="100">
</el-table-column>
<el-table-column
align="center"
prop="idcard"
label="身份证"
width="200">
</el-table-column>
<el-table-column
align="center"
prop="concatAddress"
label="乡镇村社"
width="200">
</el-table-column>
<el-table-column
align="center"
label="业务类别"
:formatter="getArchiveBusinessType"
width="200">
</el-table-column>
<el-table-column
align="center"
label="案卷号"
:formatter="getArchiveFileNumber"
width="70">
</el-table-column>
<el-table-column
align="center"
label="附件"
width="600">
<template slot-scope="scope">
<div class="picPopover"
v-if="scope.row.idcardFrontPic">
<span style="float: top">身份证正面:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardFrontPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardFrontPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
<div class="files-of-archive">
<el-backtop target=".files-of-archive" right="70" bottom="70">
<div style="text-align: center;font-size: 20px"></div>
</el-backtop>
<div align="left" v-if="this.archiveObject" class="files-of-archive-form">
<el-form
ref="form"
:model="this.archiveObject"
label-position="left">
<el-form-item
label="当前档案案卷正题名"
label-width="150px"
style="width: 30%;float: left">
<div class="masks"></div>
<el-input
v-model="this.archiveObject.title"></el-input>
</el-form-item>
<el-form-item
label="当前档案案卷号"
label-width="110px"
style="width: 10%;float: left;margin-left: 20px">
<div class="masks"></div>
<el-input
v-model="this.archiveObject.fileNumber"></el-input>
</el-form-item>
<el-button
type="primary"
style="width: 10%;margin-left: 20px"
@click="searchAllArchiveFile">
查看所有档案文件
</el-button>
</el-form>
</div>
<div style="margin-top: 10px" class="files-of-archive-table">
<el-table
v-loading.fullscreen.lock="loading"
:data="tableData"
border
style="width: 100%">
<el-table-column
align="center"
label="序号"
type="index"
width="50"
:index="this.indexStart">
</el-table-column>
<el-table-column
align="center"
prop="type"
label="档案类别"
width="100">
</el-table-column>
<el-table-column
align="center"
prop="volumeNumber"
label="全宗号"
width="70">
</el-table-column>
<el-table-column
align="center"
prop="archiveNumber"
label="档号"
width="180">
</el-table-column>
<el-table-column
align="center"
prop="year"
label="年度"
width="70">
</el-table-column>
<el-table-column
align="center"
prop="retentionPeriod"
label="保管期限"
width="60">
</el-table-column>
<el-table-column
align="center"
prop="institution"
label="机构(问题)"
width="70">
</el-table-column>
<el-table-column
align="center"
prop="number"
label="本卷件号"
width="60">
</el-table-column>
<el-table-column
align="center"
prop="pageNumber"
label="页号"
width="70">
</el-table-column>
<el-table-column
align="center"
prop="responsiblePerson"
label="责任者"
width="130">
</el-table-column>
<el-table-column
align="center"
prop="title"
label="正题名"
width="550">
</el-table-column>
<el-table-column
align="center"
prop="writtenTimeStr"
label="成文时间"
width="120">
</el-table-column>
<el-table-column
align="center"
prop="annex"
label="附件"
width="300">
</el-table-column>
<el-table-column
align="center"
prop="createTimeStr"
label="归档时间"
width="120">
</el-table-column>
<el-table-column
align="center"
prop="fileType"
label="档案类别"
width="100">
</el-table-column>
<el-table-column
align="center"
prop="secondaryCategory"
label="二级类目"
width="250">
</el-table-column>
<el-table-column
align="center"
prop="categoryType"
label="类别代码"
width="60">
</el-table-column>
<el-table-column
align="center"
prop="name"
label="姓名"
width="100">
</el-table-column>
<el-table-column
align="center"
prop="idcard"
label="身份证"
width="200">
</el-table-column>
<el-table-column
align="center"
prop="concatAddress"
label="乡镇村社"
width="200">
</el-table-column>
<el-table-column
align="center"
prop="businessType"
label="业务类别"
width="200">
</el-table-column>
<el-table-column
align="center"
prop="fileNumber"
label="案卷号"
width="70">
</el-table-column>
<el-table-column
align="center"
label="附件"
width="600">
<template slot-scope="scope">
<div class="picPopover"
v-if="scope.row.idcardFrontPic">
<span style="float: top">身份证正面:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardFrontPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardFrontPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
</div>
</div>
</div>
<div class="picPopover"
v-if="scope.row.idcardBackPic">
<span style="float: top">身份证背面:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardBackPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardBackPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
<div class="picPopover"
v-if="scope.row.idcardBackPic">
<span style="float: top">身份证背面:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardBackPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.idcardBackPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
</div>
</div>
</div>
<div class="picPopover"
v-if="scope.row.bankPic">
<span style="float: top">银行卡:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bankPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bankPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
<div class="picPopover"
v-if="scope.row.bankPic">
<span style="float: top">银行卡:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bankPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bankPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
</div>
</div>
</div>
<div class="picPopover"
v-if="scope.row.specialPhotoPic">
<span style="float: top">特殊证明:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.specialPhotoPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.specialPhotoPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
<div class="picPopover"
v-if="scope.row.specialPhotoPic">
<span style="float: top">特殊证明:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.specialPhotoPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.specialPhotoPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
</div>
</div>
</div>
<div class="picPopover"
v-if="scope.row.bookPic">
<span style="float: top">户口簿:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bookPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bookPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
<div class="picPopover"
v-if="scope.row.bookPic">
<span style="float: top">户口簿:</span>
<div style="float: top">
<el-popover
placement="bottom"
trigger="hover">
<img slot="reference" :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bookPic" height="50px" width="50px" class="head_pic"/>
<img :src="'http://socialsecurity.oss-cn-beijing.aliyuncs.com/' + scope.row.bookPic" height="100%" width="100%" class="head_pic"/>
</el-popover>
</div>
</div>
</div>
</template>
</el-table-column>
</el-table>
<el-button
class="fileButton"
type="primary"
@click="fileEventLogs">
导出文件列表
</el-button>
<el-pagination
class="pone"
:page-size='pageSize'
:page-sizes="[10, 30, 50]"
@size-change="handleSizeChange"
layout="total, sizes, prev, pager, next, jumper"
:total="totals"
:current-page.sync="pageNum"
@current-change="current_change">
</el-pagination>
</template>
</el-table-column>
</el-table>
<el-button
class="fileButton"
type="primary"
>
导出文件列表
</el-button>
<el-pagination
class="pone"
:page-size='pageSize'
:page-sizes="[10, 30, 50, 100]"
@size-change="handleSizeChange"
layout="total, sizes, prev, pager, next, jumper"
:total="totals"
:current-page.sync="pageNum"
@current-change="current_change">
</el-pagination>
</div>
</div>
</template>
<script>
import CryptoJS from 'crypto-js'
import {Loading} from 'element-ui';
export default {
data() {
return {
......@@ -248,7 +280,7 @@
const data = {
pageNum: pageNum,
pageSize: this.pageSize,
archiveId: this.archiveObject.id
archiveId: this.archiveObject ? this.archiveObject.id : null
};
this.search(data);
},
......@@ -258,12 +290,15 @@
.then((response) => {
if (response.code === 200) {
for (const i in response.data.content) {
// if (response.data.content[i].name !== null && response.data.content[i].name !== "") {
// response.data.content[i].name = this.decrypt(response.data.content[i].name);
// }
// if (response.data.content[i].idcard !== null && response.data.content[i].idcard !== "") {
// response.data.content[i].idcard = this.decrypt(response.data.content[i].idcard);
// }
if (response.data.content[i].name !== null && response.data.content[i].name !== "") {
response.data.content[i].name = this.decrypt(response.data.content[i].name);
}
if (response.data.content[i].idcard !== null && response.data.content[i].idcard !== "") {
response.data.content[i].idcard = this.decrypt(response.data.content[i].idcard);
}
if (response.data.content[i].title !== null && response.data.content[i].title !== "") {
response.data.content[i].title = this.decrypt(response.data.content[i].title);
}
}
this.tableData = response.data.content;
this.totals = response.data.totalSize;
......@@ -280,7 +315,7 @@
const data = {
pageNum: 1,
pageSize: pageSize,
archiveId: this.archiveObject.id
archiveId: this.archiveObject ? this.archiveObject.id : null
};
this.search(data);
},
......@@ -299,42 +334,18 @@
});
return decrypted.toString(CryptoJS.enc.Utf8);
},
getArchiveType() {
return this.archiveObject.type;
},
getArchiveVolumeNumber() {
return this.archiveObject.volumeNumber;
},
getArchiveNumber() {
return this.archiveObject.number;
},
getArchiveYear() {
return this.archiveObject.year;
},
getArchiveRetentionPeriod() {
return this.archiveObject.retentionPeriod;
},
getArchiveInstitution() {
return this.archiveObject.institution;
},
getArchiveResponsiblePerson() {
return this.archiveObject.responsiblePerson;
},
getArchiveFileType() {
return this.archiveObject.fileType;
},
getArchiveSecondaryCategory() {
return this.archiveObject.secondaryCategory;
},
getArchiveCategoryType() {
return this.archiveObject.categoryType;
},
getArchiveBusinessType() {
return this.archiveObject.businessType;
},
getArchiveFileNumber() {
return this.archiveObject.fileNumber;
},
searchAllArchiveFile() {
this.pageNum = 1;
this.indexStart = 1;
this.archiveObject = null;
sessionStorage.setItem("archiveObject", null);
const data = {
pageNum: this.pageNum,
pageSize: this.pageSize,
archiveId: null
};
this.search(data);
}
},
created() {
// this.loading = true;
......@@ -345,18 +356,21 @@
const data = {
pageNum: 1,
pageSize: this.pageSize,
archiveId: this.archiveObject.id
archiveId: this.archiveObject ? this.archiveObject.id : null
};
this.$api.getlist.selectArchiveFiles(data)
.then((response) => {
if (response.code === 200) {
for (const i in response.data.content) {
// if (response.data.content[i].name !== null && response.data.content[i].name !== "") {
// response.data.content[i].name = this.decrypt(response.data.content[i].name);
// }
// if (response.data.content[i].idcard !== null && response.data.content[i].idcard !== "") {
// response.data.content[i].idcard = this.decrypt(response.data.content[i].idcard);
// }
if (response.data.content[i].name !== null && response.data.content[i].name !== "") {
response.data.content[i].name = this.decrypt(response.data.content[i].name);
}
if (response.data.content[i].idcard !== null && response.data.content[i].idcard !== "") {
response.data.content[i].idcard = this.decrypt(response.data.content[i].idcard);
}
if (response.data.content[i].title !== null && response.data.content[i].title !== "") {
response.data.content[i].title = this.decrypt(response.data.content[i].title);
}
}
this.tableData = response.data.content;
this.totals = response.data.totalSize;
......@@ -383,10 +397,6 @@
width: 10%;
margin-top: 10px;
}
.wrap {
overflow: hidden;
position: relative;
}
.masks {
width: 100%;
......@@ -397,30 +407,8 @@
z-index: 200
}
.form {
float: left;
width: 45%;
margin-left: 20px
}
.imgcon {
margin: 0 auto;
box-shadow: 0 0 15px lightgray;
overflow: hidden;
margin-bottom: 40px
}
.block {
width: 23%
}
.block {
float: left;
.files-of-archive {
height: 100%;
margin-right: 20px
}
.imtil {
padding: 0 0 20px 0
overflow-y: scroll;
}
</style>
<template xmlns:v-popover="http://www.w3.org/1999/xhtml">
<div>
<div class="no-archive-event-log">
<el-backtop target=".no-archive-event-log" right="70" bottom="70">
<div style="text-align: center;font-size: 20px"></div>
</el-backtop>
<div>
<el-alert
v-if="!showSelection"
......@@ -390,6 +393,7 @@
this.eventLogList = selection;
},
fileEventLogs() {
console.log(this.eventLogList);
if (this.eventLogList.length === 0) {
this.$message({
showClose: true,
......@@ -421,9 +425,11 @@
type: 'error',
duration: 10000
});
this.eventLogList.length = 0;
}
this.pageNum = 1;
this.reload();
this.loading = false;
})
.catch((response) => {
this.$message({
......@@ -432,9 +438,9 @@
type: 'error',
duration: 10000
});
this.eventLogList.length = 0;
this.loading = false;
});
this.loading = false;
},
reload() {
const data = {
......@@ -517,4 +523,8 @@
margin-left: 20px;
}
.no-archive-event-log {
height: 100%;
overflow-y: scroll;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment