|
@@ -18,10 +18,11 @@
|
|
|
:data="tableData"
|
|
|
:header-cell-class-name="setHeaderClassName"
|
|
|
:cell-class-name="setCellClassName"
|
|
|
- default-expand-all
|
|
|
+ :default-expand-all="isDefaultExpandAll"
|
|
|
row-key="companyNo"
|
|
|
:load="load"
|
|
|
lazy
|
|
|
+ @expand-change="handleExpandChange"
|
|
|
>
|
|
|
<el-table-column fixed="left" label="公司" prop="companyName" align="center" width="120px">
|
|
|
<template slot-scope="scope">
|
|
@@ -213,6 +214,8 @@ export default {
|
|
|
props: ['companies', 'costField', 'isTenThound'],
|
|
|
data() {
|
|
|
return {
|
|
|
+ isDefaultExpandAll: false,
|
|
|
+ cacheDefaultExpandAll: false,
|
|
|
isShowTable: false,
|
|
|
filterCompany: {},
|
|
|
daytime: "",
|
|
@@ -262,6 +265,10 @@ export default {
|
|
|
this.requestData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleExpandChange(_,isExpand){
|
|
|
+ // console.log(isExpand)
|
|
|
+ this.isDefaultExpandAll = isExpand
|
|
|
+ },
|
|
|
calcAmountRealRate(){
|
|
|
const msale_total = this.calcAmount('msale_total')
|
|
|
const gross_completion = this.calcAmount('gross_completion')
|
|
@@ -507,7 +514,6 @@ export default {
|
|
|
this.tableData = platformlist
|
|
|
|
|
|
this.isShowTable = false
|
|
|
-
|
|
|
this.$nextTick(() => {
|
|
|
this.isShowTable = true
|
|
|
})
|