Browse Source

首页-公文详情

master
xuhuajiao 2 weeks ago
parent
commit
8c434fa886
  1. 27
      src/views/home.vue

27
src/views/home.vue

@ -16,7 +16,7 @@
<span :class="{'home-tab-active': flowableTabIndex == 1}" @click="toMoreProcess">更多流程</span> <span :class="{'home-tab-active': flowableTabIndex == 1}" @click="toMoreProcess">更多流程</span>
</div> --> </div> -->
<div class="home-flowable-list" style="height: calc(100% - 45px); overflow-y: auto; overflow-x: hidden;"> <div class="home-flowable-list" style="height: calc(100% - 45px); overflow-y: auto; overflow-x: hidden;">
<el-table v-if="miodTableData.length !== 0" height="calc(100%)" :data="miodTableData" stripe style="width: 100%" :show-header="false">
<el-table v-if="miodTableData.length !== 0" height="calc(100%)" :data="miodTableData" stripe style="width: 100%" :show-header="false" @cell-dblclick="tableDoubleClick">
<el-table-column prop="title" label="标题" width="450" show-overflow-tooltip> <el-table-column prop="title" label="标题" width="450" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>[{{ scope.row.reg_no }}] - {{ scope.row.borrow_name }} - {{ scope.row.maintitle }}</span> <span>[{{ scope.row.reg_no }}] - {{ scope.row.borrow_name }} - {{ scope.row.maintitle }}</span>
@ -55,7 +55,7 @@
<!-- <serverProgress :system-data="systemData" /> --> <!-- <serverProgress :system-data="systemData" /> -->
<div class="home-flowable" style="height: calc(100% - 54px); overflow-x: hidden;"> <div class="home-flowable" style="height: calc(100% - 54px); overflow-x: hidden;">
<div class="home-flowable-list" style="height: calc(100% - 45px); overflow-y: auto; overflow-x: hidden;"> <div class="home-flowable-list" style="height: calc(100% - 45px); overflow-y: auto; overflow-x: hidden;">
<el-table v-if="remindData.length !== 0" height="calc(100%)" :data="remindData" stripe style="width: 100%" :show-header="false">
<el-table v-if="remindData.length !== 0" height="calc(100%)" :data="remindData" stripe style="width: 100%" :show-header="false" @cell-dblclick="tableDoubleClick">
<el-table-column prop="title" label="标题" min-width="450" show-overflow-tooltip> <el-table-column prop="title" label="标题" min-width="450" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>[{{ scope.row.reg_no }}] - {{ scope.row.maintitle }}</span> <span>[{{ scope.row.reg_no }}] - {{ scope.row.maintitle }}</span>
@ -134,6 +134,8 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<MidoArchivesInfo ref="archivesInfo" :is-mido-record="true" :parent-info="parentInfo" :page-type="pageType" />
</div> </div>
</template> </template>
@ -146,6 +148,7 @@ import typePie from '@/views/components/echarts/typePie.vue'
import { FetchInitStatisBase, FetchDocumentTypeByTime, FetchDocumentByDocDepartment, FetchHomeBorrowLog, FetchHomeRemindHandle } from '@/api/system/documentArchives' import { FetchInitStatisBase, FetchDocumentTypeByTime, FetchDocumentByDocDepartment, FetchHomeBorrowLog, FetchHomeRemindHandle } from '@/api/system/documentArchives'
import { FetchSystemInfo } from '@/api/home/cpu/index' import { FetchSystemInfo } from '@/api/home/cpu/index'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import MidoArchivesInfo from '@/views/archivesMIOD/miodLibrary/module/detail'
export default { export default {
name: 'Dashboard', name: 'Dashboard',
@ -153,7 +156,8 @@ export default {
PanelGroup, PanelGroup,
// lendAcross, // lendAcross,
catePie, catePie,
typePie
typePie,
MidoArchivesInfo
// serverProgress // serverProgress
}, },
data() { data() {
@ -186,7 +190,9 @@ export default {
memPercentage: 0, memPercentage: 0,
sysFilesPercentage: 0 sysFilesPercentage: 0
}, },
remindData: []
remindData: [],
parentInfo: null,
pageType: 'miodRecord'
} }
}, },
computed: { computed: {
@ -244,11 +250,22 @@ export default {
return { return {
reg_no: item[0], reg_no: item[0],
maintitle: item[1], maintitle: item[1],
latest_time: item[2]
latest_time: item[2],
document_id: item[3],
parents_id: item[4]
} }
}) })
}) })
}, },
tableDoubleClick(row) {
console.log('row', row)
this.parentInfo = row
this.$nextTick(() => {
this.$refs.archivesInfo.archivesInfoVisible = true
this.$refs.archivesInfo.archivesTabIndex = 0
this.$refs.archivesInfo.getDetial()
})
},
getSystemInfo() { getSystemInfo() {
FetchSystemInfo().then(res => { FetchSystemInfo().then(res => {
console.log('res', res) console.log('res', res)

Loading…
Cancel
Save