Commit 1f1c4026 authored by ytbdmhy's avatar ytbdmhy

归档version:0.4.0

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