Browse Source

样式更改

luckysheet_xiaowang
是小王呀\24601 1 year ago
parent
commit
da53f059e0
  1. 13
      src/views/modules/base/smartExcel/cpts/data-sharing.vue
  2. 9
      src/views/modules/base/smartExcel/cpts/share-excel.vue
  3. 5
      src/views/modules/base/smartExcel/sharedSpace.vue

13
src/views/modules/base/smartExcel/cpts/data-sharing.vue

@ -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']),
},

9
src/views/modules/base/smartExcel/cpts/share-excel.vue

@ -28,7 +28,7 @@
import { mapGetters } from 'vuex'
import { requestPost, requestGet } from "@/js/dai/request";
import nextTick from "dai-js/tools/nextTick";
import {exportSheetExcel} from "@/utils/export";
export default {
data() {
@ -95,8 +95,11 @@
},
methods: {
handleClickCurrencyEvent(){
var objsheet = luckysheet.getAllSheets()[0] //
console.log(objsheet,"打算离开房间四点零分");
console.log(this.infoObj,"this.infoObj.taskTitle");
exportSheetExcel(luckysheet.getAllSheets(),this.infoObj.taskTitle)
// var objsheet = luckysheet.getAllSheets()[0] //
// console.log(objsheet,"");
// this.options = objsheet //
// this.postsheet()
},

5
src/views/modules/base/smartExcel/sharedSpace.vue

@ -96,7 +96,7 @@
</el-dialog>
</div>
<div v-if="pageType == 'info'">
<share-excel @handleShowPage="handleShowPage" :workbookId=task></share-excel>
<share-excel @handleShowPage="handleShowPage" :infoObj="infoObj" :workbookId=task></share-excel>
</div>
</div>
</template>
@ -136,6 +136,7 @@
return time.getTime() > nowData;
};
return {
infoObj:{},
searchBox:"按文件名称关键字搜素",
showTitle:true,
name:"",
@ -390,6 +391,8 @@
console.log(this.pageType);
},
handleInfo(item) {
const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction,subWorkBookId,workBookId,taskStateName} = item;
this.infoObj = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction};
console.log(item, "dkljsfdlk");
this.task = item.workBookId
this.pageType = 'info'

Loading…
Cancel
Save