|
@@ -4,9 +4,10 @@
|
|
|
<avue-form :option="optionForm" v-model="query" class="form-mb">
|
|
|
<tempalte slot="button" slot-scope="{ row }">
|
|
|
<span style="display: flex;justify-content: end;">
|
|
|
- <el-button icon="el-icon-arrow-down" size="small" @click="searchShow = true" v-if="!searchShow">展
|
|
|
+ <el-button icon="el-icon-arrow-down" size="small" @click="searchShow = true, showHight()" v-if="!searchShow">展
|
|
|
开</el-button>
|
|
|
- <el-button icon="el-icon-arrow-up" size="small" @click="searchShow = false" v-if="searchShow">收 缩</el-button>
|
|
|
+ <el-button icon="el-icon-arrow-up" size="small" @click="searchShow = false, showHight()" v-if="searchShow">收
|
|
|
+ 缩</el-button>
|
|
|
<el-button type="primary" size="small" plain @click="inItial">初始入账
|
|
|
</el-button>
|
|
|
<el-button type="success" size="small" plain @click="outExport">导出
|
|
@@ -31,7 +32,7 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
</basic-container>
|
|
|
- <basic-container v-show="treeData.length > 0">
|
|
|
+ <basic-container v-show="treeData.length > 0" >
|
|
|
<el-row>
|
|
|
<el-col :span="4">
|
|
|
<avue-tree ref="tree" :class="searchShow ? 'treeStyle' : 'bigTreeStyle'" :option="treeOption" :data="treeData"
|
|
@@ -56,7 +57,7 @@ import {
|
|
|
fingenlegInitialization
|
|
|
} from "@/api/iosBasicData/fingenlegcalc";
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
-import {dateFormat} from "@/util/date";
|
|
|
+import { dateFormat } from "@/util/date";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
|
|
|
export default {
|
|
@@ -89,7 +90,7 @@ export default {
|
|
|
noAmountIncurred: 0,
|
|
|
doNotDisplayYear: 0
|
|
|
},
|
|
|
- outExportQuery:{},
|
|
|
+ outExportQuery: {},
|
|
|
searchShow: true,
|
|
|
optionForm: {
|
|
|
submitBtn: false,
|
|
@@ -411,26 +412,34 @@ export default {
|
|
|
deep: false, // 深度监听
|
|
|
immediate: false // 第一次改变就执行
|
|
|
},
|
|
|
- "searchShow": {
|
|
|
- handler(newVla, oldVal) {
|
|
|
- if (newVla) {
|
|
|
- this.option.height = this.option.height - 149;
|
|
|
- } else {
|
|
|
- this.option.height = this.option.height + 149;
|
|
|
- }
|
|
|
- this.$refs.crud.getTableHeight();
|
|
|
- },
|
|
|
- deep: false, // 深度监听
|
|
|
- immediate: false // 第一次改变就执行
|
|
|
- },
|
|
|
+ // "searchShow": {
|
|
|
+ // handler(newVla, oldVal) {
|
|
|
+ // // if (newVla) {
|
|
|
+ // // this.option.height = this.option.height - 30;
|
|
|
+ // // } else {
|
|
|
+ // // this.option.height = this.option.height + 30;
|
|
|
+ // // }
|
|
|
+ // this.$refs.crud.getTableHeight();
|
|
|
+ // },
|
|
|
+ // deep: false, // 深度监听
|
|
|
+ // immediate: false // 第一次改变就执行
|
|
|
+ // },
|
|
|
},
|
|
|
created() {
|
|
|
- this.option.height = window.innerHeight - 337;
|
|
|
+ this.option.height = window.innerHeight - 190;
|
|
|
getAllList({ type: this.query.type }).then(res => {
|
|
|
this.corpDic = res.data.data
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ showHight() {
|
|
|
+ if (this.searchShow) {
|
|
|
+ this.option.height = this.option.height - 115;
|
|
|
+ } else {
|
|
|
+ this.option.height = this.option.height + 115;
|
|
|
+ }
|
|
|
+ this.$refs.crud.getTableHeight();
|
|
|
+ },
|
|
|
nodeClick(data) {
|
|
|
this.getList(data)
|
|
|
},
|
|
@@ -512,7 +521,7 @@ export default {
|
|
|
corpIds: data.id,
|
|
|
accType: data.type,
|
|
|
}
|
|
|
- this.outExportQuery=obj
|
|
|
+ this.outExportQuery = obj
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: '加载中',
|
|
@@ -581,11 +590,11 @@ export default {
|
|
|
}
|
|
|
|
|
|
.treeStyle {
|
|
|
- height: 60vh;
|
|
|
+ height: 61vh;
|
|
|
/* overflow-y: scroll; */
|
|
|
}
|
|
|
|
|
|
.bigTreeStyle {
|
|
|
- height: 76vh;
|
|
|
+ height: 74vh;
|
|
|
}
|
|
|
</style>
|