|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div class=""> |
|
|
|
<el-table :data="tableData" border class="m-table-item" :height="tableHeight" v-if="pageType=='list'"> |
|
|
|
<div class="" :style="{height: tableHeight}"> |
|
|
|
<el-table :data="tableData" border class="m-table-item" :height="tableHeight" v-if="pageType=='list'"> |
|
|
|
<el-table-column prop="taskTitle" label="文件名称" min-width="140" align="center" |
|
|
|
:show-overflow-tooltip="true" > |
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -34,7 +34,7 @@ |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
<div v-if="pageType == 'info'"> |
|
|
|
<share-excel @handleShowPage="handleShowPage" :workbookId=task></share-excel> |
|
|
|
<share-excel :infoObj="infoObj" @handleShowPage="handleShowPage" :workbookId=task></share-excel> |
|
|
|
</div> |
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" :page-size="parseInt(pageSize)" layout="sizes, prev, pager, next, total" |
|
|
|
@ -50,6 +50,7 @@ import shareExcel from "./share-excel"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
infoObj:{}, |
|
|
|
pageType:"list", |
|
|
|
formData:{}, |
|
|
|
showdownloadRecord:false, |
|
|
|
@ -66,6 +67,8 @@ mounted() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleInfo(item) { |
|
|
|
const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction,subWorkBookId,workBookId,taskStateName} = item; |
|
|
|
this.infoObj = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction}; |
|
|
|
this.task = item.workBookId |
|
|
|
this.pageType = 'info' |
|
|
|
}, |
|
|
|
@ -109,9 +112,7 @@ components:{exportShared,shareExcel |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
tableHeight() { |
|
|
|
const h = this.clientHeight - this.searchH - 100+ this.iframeHeight; |
|
|
|
const _h = this.clientHeight - 100- this.searchH; |
|
|
|
return this.$store.state.inIframe ? h : _h; |
|
|
|
return (this.clientHeight - 300) + 'px' |
|
|
|
}, |
|
|
|
...mapGetters(['clientHeight', 'resolution']), |
|
|
|
}, |
|
|
|
|