档案管理

This commit is contained in:
cwchen 2025-09-17 18:11:19 +08:00
parent 8eb6eca7c7
commit 5ad60bcfbe
6 changed files with 35 additions and 14 deletions

View File

@ -106,3 +106,12 @@ export function geMaxSortApi(params) {
params params
}) })
} }
// 查询详情
export function getFileManageByIdApi(params) {
return request({
url: '/smartArchives/fileManage/getFileManageById',
method: 'get',
params
})
}

View File

@ -71,6 +71,7 @@ import _ from 'lodash'
import { import {
addFileManageRightApi, addFileManageRightApi,
updateFileManageRightApi, updateFileManageRightApi,
getFileManageByIdApi
} from '@/api/archivesManagement/fileManager/fileManager.js' } from '@/api/archivesManagement/fileManager/fileManager.js'
import { getClassifyMarkSelApi } from '@/api/select.js' import { getClassifyMarkSelApi } from '@/api/select.js'
export default { export default {
@ -192,14 +193,16 @@ export default {
proId:this.projectId proId:this.projectId
}; };
} else { } else {
const res = await getFileManageByIdApi({id:this.rowData.id});
const obj =res.data;
// //
this.form = { this.form = {
contentName: null, contentName: null,
term: null, term: obj.term || null,
unitName: null, unitName: obj.unitName || null,
major: null, major: obj.major || null,
markCode: null, markCode: obj.markCode || null,
classifyMark: null, classifyMark: obj.classifyMark || null,
parentId: this.rowData.id || null, parentId: this.rowData.id || null,
level: 5, level: 5,
proId:this.projectId proId:this.projectId

View File

@ -16,10 +16,10 @@ export const formLabel = [
export const columnsList = [ export const columnsList = [
{ t_props: 'contentName', t_label: '档案名称',t_width:200 }, { t_props: 'contentName', t_label: '档案名称',t_width:200 },
{ t_props: 'fileName', t_label: '档案文件' }, { t_slot: 'fileName', t_label: '档案文件',t_width:140},
{ t_props: 'createUserName', t_label: '上传人' }, { t_props: 'createUserName', t_label: '上传人' },
{ t_props: 'term', t_label: '保管期限' }, { t_props: 'term', t_label: '保管期限' },
{ t_slot: 'dataSource', t_label: '来源' }, { t_slot: 'dataSource', t_label: '来源' },
{ t_props: 'unitName', t_label: '责任单位' }, { t_props: 'unitName', t_label: '责任单位' },
{ t_props: 'createTime', t_label: '上传时间' } { t_props: 'createTime', t_label: '上传时间',t_width:160 }
] ]

View File

@ -2,7 +2,7 @@
<!-- 左侧树 --> <!-- 左侧树 -->
<div> <div>
<el-card style="min-height: calc(100vh - 190px)"> <el-card style="min-height: calc(100vh - 190px)">
<el-row :gutter="20" style="display: flex; align-items: center"> <el-row :gutter="24" style="display: flex; align-items: center">
<el-col :span="16"> <el-col :span="16">
<el-input v-model="filterText" placeholder="输入关键字" @keyup.enter.native="onHandleSearch"> <el-input v-model="filterText" placeholder="输入关键字" @keyup.enter.native="onHandleSearch">
</el-input> </el-input>
@ -203,6 +203,7 @@ export default {
const res = await getFileManageTreeApi({proId:this.projectId}) const res = await getFileManageTreeApi({proId:this.projectId})
const transformedData = this.convertToVueTree(res.data) const transformedData = this.convertToVueTree(res.data)
this.treeDataList = transformedData; this.treeDataList = transformedData;
console.log(this.treeDataList);
// //
this.originalTreeData = JSON.parse(JSON.stringify(this.treeDataList)) this.originalTreeData = JSON.parse(JSON.stringify(this.treeDataList))

View File

@ -7,15 +7,14 @@
<template slot="dataSource" slot-scope="{ data }"> <template slot="dataSource" slot-scope="{ data }">
<span>{{ data.dataSource === '1' ? '本系统上传' : '智慧现场' }}</span> <span>{{ data.dataSource === '1' ? '本系统上传' : '智慧现场' }}</span>
</template> </template>
<template slot="fileName" slot-scope="{ data }">
<span class="file-name-link" @click="viewFile(data)">{{ data.fileName }}</span>
</template>
<template slot="btn"> <template slot="btn">
<el-button plain size="mini" type="primary" icon="el-icon-plus" v-hasPermi="['file:manage:add']" <el-button plain size="mini" type="primary" icon="el-icon-plus" v-hasPermi="['file:manage:add']"
@click="handleAdd" :disabled="addBtnIsShow"> @click="handleAdd" :disabled="addBtnIsShow">
新增 新增
</el-button> </el-button>
<el-button plain size="mini" type="primary" icon="el-icon-plus" v-hasPermi="['file:manage:add']"
@click="viewFile">
预览文件
</el-button>
</template> </template>
<template slot="handle" slot-scope="{ data }"> <template slot="handle" slot-scope="{ data }">
@ -169,3 +168,12 @@ export default {
}, },
} }
</script> </script>
<style scoped>
.file-name-link {
color: #409EFF;
cursor: pointer;
}
.file-name-link:hover {
text-decoration: underline;
}
</style>

View File

@ -11,10 +11,10 @@
</div> </div>
</el-card> </el-card>
<el-row :gutter="24" class="content-row"> <el-row :gutter="24" class="content-row">
<el-col :span="9" class="pane-left"> <el-col :span="8" class="pane-left">
<LeftTree @handleNodeClick="handleNodeClick" :projectId="projectId" /> <LeftTree @handleNodeClick="handleNodeClick" :projectId="projectId" />
</el-col> </el-col>
<el-col :span="15" class="pane-right"> <el-col :span="16" class="pane-right">
<RightTable :selectedNode = "selectedNode" :projectId="projectId"/> <RightTable :selectedNode = "selectedNode" :projectId="projectId"/>
</el-col> </el-col>
</el-row> </el-row>