|
|
|
@ -6,21 +6,21 @@ |
|
|
|
<h3 class="title">汇总文件</h3> |
|
|
|
<el-button type="text" icon="el-icon-back" @click="handleClickBack">返回</el-button> |
|
|
|
</div> |
|
|
|
<div class="item flex flex-y flex-center-deputy " @click="handleClickShowView(list[0].workBookId,true)"> |
|
|
|
<div class="item flex flex-y flex-center-deputy " @click="handleClickShowViewAll(list[0].workBookId)"> |
|
|
|
<img :src="require(`@/assets/images/index/Excel.png`)" alt=""> |
|
|
|
<div class="agencyName">周期更新表</div> |
|
|
|
</div> |
|
|
|
<h3 class="title">提报的文件</h3> |
|
|
|
<div class="flex-wrap flex"> |
|
|
|
<div class="item flex flex-y flex-center-deputy" v-for="(item, index) in list" @click="handleClickShowView(summaryDetal.taskId)" :key="index"> |
|
|
|
<div class="item flex flex-y flex-center-deputy" v-for="(item, index) in list" @click="handleClickShowView(item)" :key="index"> |
|
|
|
<img :src="require(`@/assets/images/index/Excel.png`)" alt=""> |
|
|
|
<div class="agencyName">{{ item.taskTitle }}周期更新表</div> |
|
|
|
<div>({{ getStateDescription(item.state) }})</div> |
|
|
|
<div>({{ getStateDescription(item.taskState) }})</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="showView"> |
|
|
|
<excel-view @close="close" :workbookId="workbookId" :pageType="'add'" :sheetTotal="sheetTotal"></excel-view> |
|
|
|
<excel-view @close="close" :workbookId="workbookId" :infoObj="infoObj" :pageType="'add'" :sheetTotal="sheetTotal"></excel-view> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -35,14 +35,14 @@ export default { |
|
|
|
list: [ |
|
|
|
], |
|
|
|
workbookId:'', |
|
|
|
sheetTotal:false |
|
|
|
sheetTotal:false, |
|
|
|
infoObj:{} |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
|
|
|
|
}, |
|
|
|
async mounted(){ |
|
|
|
console.log(this.summaryDetal,"dsalkjdlfks"); |
|
|
|
this.getTableList() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -79,12 +79,21 @@ export default { |
|
|
|
handleClickBack() { |
|
|
|
this.$emit('close') |
|
|
|
}, |
|
|
|
handleClickShowView(val,total){ |
|
|
|
handleClickShowView(val){ |
|
|
|
const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } = val; |
|
|
|
this.$store.state.sidebarFold = true; |
|
|
|
this.showView = true; |
|
|
|
this.sheetTotal = total || false |
|
|
|
this.workbookId = val |
|
|
|
this.sheetTotal = false |
|
|
|
this.workbookId = val.taskId; |
|
|
|
this.infoObj = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction }; |
|
|
|
}, |
|
|
|
handleClickShowViewAll(val){ |
|
|
|
this.$store.state.sidebarFold = true; |
|
|
|
this.showView = true; |
|
|
|
this.sheetTotal = true |
|
|
|
this.workbookId = val |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
components: { excelView }, |
|
|
|
computed: { |
|
|
|
|