|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div class='flex' :style="{ height: tableHeight }"> |
|
|
|
<div class='flex' > |
|
|
|
<div class="left_menu flex flex-y" v-if="!sheetTotal && pageType !== 'filling'"> |
|
|
|
<el-button type="text" round @click="handelClickBack" icon="el-icon-back">返回</el-button> |
|
|
|
<section> |
|
|
@ -31,7 +31,7 @@ |
|
|
|
<el-button type="primary" @click="handleClickExportExcel()" v-if="sheetTotal"> 导出</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="luckysheet" style="height: 100%"></div> |
|
|
|
<div id="luckysheet" :style="{ height: tableHeight }"></div> |
|
|
|
</div> |
|
|
|
<el-dialog title="上传共享数据" v-if="showUploadData" :visible.sync="showUploadData" width="60%" |
|
|
|
:close-on-click-modal="false"> |
|
|
@ -95,7 +95,7 @@ export default { |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
tableHeight() { |
|
|
|
return (this.clientHeight - 10) + 'px' |
|
|
|
return (this.clientHeight - 255) + 'px' |
|
|
|
}, |
|
|
|
...mapGetters(['clientHeight', 'resolution']), |
|
|
|
}, |
|
|
@ -115,6 +115,7 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleClickExportExcel(){ |
|
|
|
console.log(luckysheet.getAllSheets(),'seee1'); |
|
|
|
exportSheetExcel(luckysheet.getAllSheets(),this.infoObj.taskTitle) |
|
|
|
}, |
|
|
|
async getTaskList() { |
|
|
@ -218,18 +219,12 @@ export default { |
|
|
|
options.container = 'luckysheet' |
|
|
|
options.loadUrl = `${process.env.VUE_APP_API_SERVER}/actual/base/luckySheet/workbook/load?workbookId=${this.currentId}` |
|
|
|
options.updateUrl = `${process.env.VUE_APP_SOCKET_SERVER}/actual/base/ws/luckysheet/${this.currentId}/${id}` |
|
|
|
options.loadSheetUrl = `${process.env.VUE_APP_API_SERVER}/actual/base/luckySheet/workbook/loadSheets` |
|
|
|
// options.loadSheetUrl = `${process.env.VUE_APP_API_SERVER}/actual/base/luckySheet/workbook/loadSheets` |
|
|
|
window.luckysheet.create({ |
|
|
|
...options, |
|
|
|
hook: { |
|
|
|
cellEditBefore: this.handleCellEditBefore, |
|
|
|
sheetCreateAfter: this.handleSheetCreateAfter, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleSheetCreateAfter(e) { |
|
|
|
console.log('setsheet', e); |
|
|
|
}, |
|
|
|
|
|
|
|
handleClickMenu(i, val) { |
|
|
|
this.menuActive = i; |
|
|
|
this.currentId = val.subWorkBookId; |
|
|
|