@@ -547,13 +548,16 @@ export default {
importLoading: false,
searchH: 0,
- tableHeight: 0,
changeRecordShow: false,
};
},
computed: {
...mapGetters(["clientHeight", "iframeHeight"]),
-
+ tableHeight(){
+ const h = this.clientHeight - 450 + this.iframeHeigh;
+ const _h = this.clientHeight - 450;
+ return this.$store.state.inIframe ? h : _h;
+ },
changeVDisabled() {
return !this.fmData.villageId;
},
@@ -563,6 +567,7 @@ export default {
changeDDisabled() {
return !this.fmData.unitId;
},
+
},
watch: {
rangeTime: function (val) {
@@ -575,15 +580,6 @@ export default {
this.fmData.endTime = "";
}
},
- searchH() {
- const h = this.clientHeight - this.searchH + this.iframeHeight;
- const _h = this.clientHeight - this.searchH;
- console.log("computed-searchH---_h", _h);
-
- this.$nextTick(() => {
- this.tableHeight = this.$store.state.inIframe ? h : _h;
- });
- },
},
mounted() {
this.getGridList();
diff --git a/src/views/modules/plugins/change/changedeath.vue b/src/views/modules/plugins/change/changedeath.vue
index 86a05754c..4a2159a12 100644
--- a/src/views/modules/plugins/change/changedeath.vue
+++ b/src/views/modules/plugins/change/changedeath.vue
@@ -69,8 +69,11 @@
-->
-
-
+
+
+ 重置
查询
-
-
+
+
@@ -96,6 +99,7 @@
class="m-table-item"
v-loading="dataListLoading"
:data="dataList"
+ :height="tableHeight"
border
>
@@ -277,7 +281,7 @@ import nextTick from "dai-js/tools/nextTick";
import resiChangeRecord from "@/views/components/resiChangeRecord.vue";
import { requestPost } from "@/js/dai/request";
import resiInfo from "@/views/components/resiInfo.vue";
-
+import { mapGetters } from "vuex";
export default {
mixins: [mixinViewModule],
data() {
@@ -328,6 +332,14 @@ export default {
resiInfo,
resiChangeRecord,
},
+ computed:{
+ ...mapGetters(["clientHeight", "iframeHeight"]),
+ tableHeight(){
+ const h = this.clientHeight - 410 + this.iframeHeigh;
+ const _h = this.clientHeight - 410;
+ return this.$store.state.inIframe ? h : _h;
+ },
+ },
methods: {
async handleRecovery(rowData) {
console.log("11111");
diff --git a/src/views/modules/plugins/change/changerelocation.vue b/src/views/modules/plugins/change/changerelocation.vue
index 8fd6d43e7..88c1e9ca7 100644
--- a/src/views/modules/plugins/change/changerelocation.vue
+++ b/src/views/modules/plugins/change/changerelocation.vue
@@ -441,7 +441,6 @@ export default {
changeRecordShow: false,
searchH: 0,
- tableHeight: 0,
};
},
components: {
@@ -451,6 +450,11 @@ export default {
},
computed: {
...mapGetters(["clientHeight", "iframeHeight"]),
+ tableHeight(){
+ const h = this.clientHeight - 420 + this.iframeHeigh;
+ const _h = this.clientHeight - 420;
+ return this.$store.state.inIframe ? h : _h;
+ },
changeVDisabled() {
return !this.dataForm.villageId;
},
@@ -479,15 +483,6 @@ export default {
this.dataForm.endTime = "";
}
},
- searchH() {
- const h = this.clientHeight - this.searchH + this.iframeHeight;
- const _h = this.clientHeight - this.searchH;
- console.log("computed-searchH---_h", _h);
-
- this.$nextTick(() => {
- this.tableHeight = this.$store.state.inIframe ? h : _h;
- });
- },
},
methods: {
async handleRecovery(rowData) {