预览文件
This commit is contained in:
parent
a790de5264
commit
248844a73c
|
|
@ -55,7 +55,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="archiveName" label="档案名称" min-width="300">
|
<el-table-column prop="archiveName" label="档案名称" min-width="300">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="archive-name-cell">{{ scope.row.archiveName }}</div>
|
<div class="archive-name-cell file-name-link" @click="viewFile(scope.row)">{{ scope.row.archiveName }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -103,6 +103,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 预览文件 -->
|
||||||
|
<ViewFile v-if="isViewflag" :rowData="row" :title="title" @closeDialog="closeDialog" @showColose="showColose" :width="600" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -113,8 +115,11 @@ import {
|
||||||
getTransferApplyApi,
|
getTransferApplyApi,
|
||||||
} from '@/api/filesTransfer/apply'
|
} from '@/api/filesTransfer/apply'
|
||||||
import {auditTransferApplyApi} from '@/api/filesTransfer/audit'
|
import {auditTransferApplyApi} from '@/api/filesTransfer/audit'
|
||||||
|
import ViewFile from '@/views/viewFile/viewFile.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DetailData',
|
name: 'DetailData',
|
||||||
|
components:{ViewFile},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
id: decryptWithSM4(this.$route.query.id),
|
id: decryptWithSM4(this.$route.query.id),
|
||||||
|
|
@ -127,7 +132,10 @@ export default {
|
||||||
// 审批信息展示
|
// 审批信息展示
|
||||||
auditUserName: '',
|
auditUserName: '',
|
||||||
auditDate: '',
|
auditDate: '',
|
||||||
auditOpinion: ''
|
auditOpinion: '',
|
||||||
|
isViewflag: false,
|
||||||
|
row: {},
|
||||||
|
title: "",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -166,6 +174,20 @@ export default {
|
||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 预览文件
|
||||||
|
viewFile(row) {
|
||||||
|
console.error(row);
|
||||||
|
|
||||||
|
this.title = "预览";
|
||||||
|
this.row = row;
|
||||||
|
this.isViewflag = true;
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.isViewflag = false;
|
||||||
|
},
|
||||||
|
showColose() {
|
||||||
|
this.isflag = false;
|
||||||
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
if (this.viewStatus === 'audit') {
|
if (this.viewStatus === 'audit') {
|
||||||
const obj = { path: "/archivesManagement/filesTransfer/audit" }
|
const obj = { path: "/archivesManagement/filesTransfer/audit" }
|
||||||
|
|
@ -184,8 +206,8 @@ export default {
|
||||||
this.projectName = res2?.data?.proName || '/';
|
this.projectName = res2?.data?.proName || '/';
|
||||||
this.receivingOrg = res2?.data?.deptName || '/';
|
this.receivingOrg = res2?.data?.deptName || '/';
|
||||||
// 审批信息
|
// 审批信息
|
||||||
this.auditUserName = res2?.data?.auditUserName || '--';
|
this.auditUserName = res2?.data?.auditUser || '--';
|
||||||
this.auditDate = res2?.data?.transfertTime || '--';
|
this.auditDate = res2?.data?.auditTime || '--';
|
||||||
this.auditOpinion = res2?.data?.auditOpinion || '--';
|
this.auditOpinion = res2?.data?.auditOpinion || '--';
|
||||||
if (Array.isArray(res.data) && res.data.length > 0) {
|
if (Array.isArray(res.data) && res.data.length > 0) {
|
||||||
res.data.map(item => {
|
res.data.map(item => {
|
||||||
|
|
@ -195,6 +217,7 @@ export default {
|
||||||
createUserName: item.createUserName,
|
createUserName: item.createUserName,
|
||||||
createTime: item.createTime,
|
createTime: item.createTime,
|
||||||
archiveName: item?.parParentName + '/' + item?.parentName + '/' + item?.fileName,
|
archiveName: item?.parParentName + '/' + item?.parentName + '/' + item?.fileName,
|
||||||
|
fileId: item?.fileId || '',
|
||||||
}
|
}
|
||||||
this.fileList.push(newFile);
|
this.fileList.push(newFile);
|
||||||
})
|
})
|
||||||
|
|
@ -470,4 +493,11 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.file-name-link {
|
||||||
|
color: #409EFF;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.file-name-link:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<!-- 档案移交申请 -->
|
<!-- 档案移交申请 -->
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<TableModel :formLabel="formLabel" :showOperation="true" :showRightTools="true" ref="recordTableRef"
|
<TableModel :formLabel="formLabel" :showOperation="true" :showRightTools="true" ref="recordTableRef"
|
||||||
:columnsList="columnsList" :request-api="getTransferApplyListApi">
|
:columnsList="columnsList" :request-api="getTransferRecordListApi">
|
||||||
<template #form="{ queryParams }">
|
<template #form="{ queryParams }">
|
||||||
<el-form-item prop="deptId" style="width: 240px;">
|
<el-form-item prop="deptId" style="width: 240px;">
|
||||||
<treeselect v-model="queryParams.deptId" :options="treeDataList" placeholder="请选择接收单位" value-key="id"
|
<treeselect v-model="queryParams.deptId" :options="treeDataList" placeholder="请选择接收单位" value-key="id"
|
||||||
|
|
@ -40,7 +40,7 @@ import TableModel from '@/components/TableModel'
|
||||||
import { columnsList, formLabel } from './config'
|
import { columnsList, formLabel } from './config'
|
||||||
import {
|
import {
|
||||||
delTransferApplyApi,
|
delTransferApplyApi,
|
||||||
getTransferApplyListApi,
|
getTransferRecordListApi,
|
||||||
} from '@/api/filesTransfer/record.js'
|
} from '@/api/filesTransfer/record.js'
|
||||||
import RecordList from './components/recordList'
|
import RecordList from './components/recordList'
|
||||||
import { encryptWithSM4 } from '@/utils/sm'
|
import { encryptWithSM4 } from '@/utils/sm'
|
||||||
|
|
@ -60,7 +60,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
formLabel,
|
formLabel,
|
||||||
columnsList,
|
columnsList,
|
||||||
getTransferApplyListApi,
|
getTransferRecordListApi,
|
||||||
title: "",
|
title: "",
|
||||||
isflag: false,
|
isflag: false,
|
||||||
row: {},
|
row: {},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue