|
|
|
@ -20,7 +20,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="showView"> |
|
|
|
<excel-view @close="close" :workbookId="workbookId" :infoObj="infoObj" :pageType="'add'" :sheetTotal="sheetTotal"></excel-view> |
|
|
|
<excel-view @close="close" :workbookId="workbookId" :infoObj="infoObj" :pageType="'add'" :sheetTotal="sheetTotal" :mergeObj="mergeObj"></excel-view> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -36,7 +36,8 @@ export default { |
|
|
|
], |
|
|
|
workbookId:'', |
|
|
|
sheetTotal:false, |
|
|
|
infoObj:{} |
|
|
|
infoObj:{}, |
|
|
|
mergeObj:null//用于传递subworkbookId与workbookId |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -80,12 +81,13 @@ export default { |
|
|
|
this.$emit('close') |
|
|
|
}, |
|
|
|
handleClickShowView(val){ |
|
|
|
const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } = val; |
|
|
|
const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction,subWorkBookId,workBookId } = val; |
|
|
|
this.$store.state.sidebarFold = true; |
|
|
|
this.showView = true; |
|
|
|
this.sheetTotal = false |
|
|
|
this.workbookId = val.taskId; |
|
|
|
this.infoObj = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction }; |
|
|
|
this.infoObj = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction}; |
|
|
|
this.mergeObj = {subWorkBookId,workBookId } |
|
|
|
}, |
|
|
|
handleClickShowViewAll(val){ |
|
|
|
this.$store.state.sidebarFold = true; |
|
|
|
|