2025-09-16 13:42:54 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
2025-09-16 14:37:37 +08:00
|
|
|
<el-card class="toolbar-card">
|
|
|
|
|
<div class="toolbar">
|
|
|
|
|
<div class="toolbar-left">
|
|
|
|
|
<el-button type="warning" plain icon="el-icon-bottom" size="mini" @click="handleClose">档案抽取</el-button>
|
|
|
|
|
<el-button type="success" plain icon="el-icon-finished" size="mini" @click="handleClose">移交清单确认</el-button>
|
|
|
|
|
<el-button type="danger" plain icon="el-icon-close" size="mini" @click="handleClose">返回</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-row :gutter="24" class="content-row">
|
2025-09-17 18:11:19 +08:00
|
|
|
<el-col :span="8" class="pane-left">
|
2025-09-16 15:03:25 +08:00
|
|
|
<LeftTree @handleNodeClick="handleNodeClick" :projectId="projectId" />
|
2025-09-16 14:37:37 +08:00
|
|
|
</el-col>
|
2025-09-17 18:11:19 +08:00
|
|
|
<el-col :span="16" class="pane-right">
|
2025-09-17 10:02:31 +08:00
|
|
|
<RightTable :selectedNode = "selectedNode" :projectId="projectId"/>
|
2025-09-16 14:37:37 +08:00
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
2025-09-16 13:42:54 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-09-16 14:37:37 +08:00
|
|
|
import LeftTree from './components/leftTree.vue'
|
|
|
|
|
import RightTable from './components/rightTable.vue'
|
2025-09-16 13:42:54 +08:00
|
|
|
export default {
|
|
|
|
|
name: 'FileData',
|
2025-09-16 14:37:37 +08:00
|
|
|
components: {
|
|
|
|
|
LeftTree,
|
|
|
|
|
RightTable,
|
|
|
|
|
},
|
2025-09-16 13:42:54 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
2025-09-16 14:37:37 +08:00
|
|
|
projectId: null,
|
|
|
|
|
// 选中的节点
|
|
|
|
|
selectedNode: null,
|
2025-09-16 13:42:54 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
// 获取传递的项目ID
|
|
|
|
|
this.projectId = this.$route.query.id
|
|
|
|
|
console.log('接收到的项目ID:', this.projectId)
|
2025-09-16 14:37:37 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleClose() {
|
|
|
|
|
const obj = { path: "/archivesManagement/fileManager" }
|
|
|
|
|
this.$tab.closeOpenPage(obj)
|
|
|
|
|
},
|
|
|
|
|
// 节点点击事件
|
|
|
|
|
handleNodeClick(data) {
|
|
|
|
|
this.selectedNode = data;
|
|
|
|
|
},
|
2025-09-16 13:42:54 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2025-09-16 14:37:37 +08:00
|
|
|
.app-container {
|
|
|
|
|
padding: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbar-card {
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbar {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbar-left :deep(.el-button) + :deep(.el-button) {
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbar-right :deep(.el-tag) {
|
|
|
|
|
border-color: #dcdfe6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-row {
|
|
|
|
|
min-height: calc(100vh - 200px);
|
2025-09-16 13:42:54 +08:00
|
|
|
}
|
|
|
|
|
|
2025-09-16 14:37:37 +08:00
|
|
|
.pane-left, .pane-right {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
|
2025-09-16 13:42:54 +08:00
|
|
|
}
|
|
|
|
|
|
2025-09-16 14:37:37 +08:00
|
|
|
.pane-left {
|
|
|
|
|
overflow: auto;
|
2025-09-16 13:42:54 +08:00
|
|
|
}
|
|
|
|
|
|
2025-09-16 14:37:37 +08:00
|
|
|
.pane-right {
|
|
|
|
|
overflow: hidden;
|
2025-09-16 13:42:54 +08:00
|
|
|
}
|
|
|
|
|
</style>
|