|
@@ -932,10 +932,16 @@
|
|
<tableList
|
|
<tableList
|
|
:columns="columns1"
|
|
:columns="columns1"
|
|
:getDataWay="getDataWay1"
|
|
:getDataWay="getDataWay1"
|
|
- propMaxHeight="calc(85vh - 294px)"
|
|
|
|
|
|
+ :propMaxHeight="propMaxHeight"
|
|
|
|
+ :indexFixed="true"
|
|
style="margin: 0 -10px 15px -10px"
|
|
style="margin: 0 -10px 15px -10px"
|
|
index
|
|
index
|
|
- >
|
|
|
|
|
|
+ >
|
|
|
|
+ <!--
|
|
|
|
+ :indexFixed="true"
|
|
|
|
+ propHeight="300"
|
|
|
|
+ propMaxHeight="calc(85vh - 294px)"
|
|
|
|
+ -->
|
|
<el-table-column
|
|
<el-table-column
|
|
v-for="(column, index) in columns1"
|
|
v-for="(column, index) in columns1"
|
|
:key="`col_${index}`"
|
|
:key="`col_${index}`"
|
|
@@ -1027,7 +1033,8 @@
|
|
<tableList
|
|
<tableList
|
|
:columns="columns2"
|
|
:columns="columns2"
|
|
:getDataWay="getDataWay2"
|
|
:getDataWay="getDataWay2"
|
|
- propMaxHeight="calc(85vh - 294px)"
|
|
|
|
|
|
+ :propMaxHeight="propMaxHeight"
|
|
|
|
+ :indexFixed="true"
|
|
style="margin: 0 -10px 15px -10px"
|
|
style="margin: 0 -10px 15px -10px"
|
|
index
|
|
index
|
|
>
|
|
>
|
|
@@ -1083,7 +1090,8 @@
|
|
<tableList
|
|
<tableList
|
|
:columns="columns2A"
|
|
:columns="columns2A"
|
|
:getDataWay="getDataWay2A"
|
|
:getDataWay="getDataWay2A"
|
|
- propMaxHeight="calc(85vh - 294px)"
|
|
|
|
|
|
+ :propMaxHeight="propMaxHeight"
|
|
|
|
+ :indexFixed="true"
|
|
style="margin: 0 -10px 15px -10px"
|
|
style="margin: 0 -10px 15px -10px"
|
|
index
|
|
index
|
|
>
|
|
>
|
|
@@ -1168,7 +1176,8 @@
|
|
<tableList
|
|
<tableList
|
|
:columns="columns3"
|
|
:columns="columns3"
|
|
:getDataWay="getDataWay3"
|
|
:getDataWay="getDataWay3"
|
|
- propMaxHeight="calc(85vh - 294px)"
|
|
|
|
|
|
+ :propMaxHeight="propMaxHeight"
|
|
|
|
+ :indexFixed="true"
|
|
style="margin: 0 -10px 15px -10px"
|
|
style="margin: 0 -10px 15px -10px"
|
|
index
|
|
index
|
|
>
|
|
>
|
|
@@ -1238,7 +1247,8 @@
|
|
<tableList
|
|
<tableList
|
|
:columns="columns3A"
|
|
:columns="columns3A"
|
|
:getDataWay="getDataWay3A"
|
|
:getDataWay="getDataWay3A"
|
|
- propMaxHeight="calc(85vh - 294px)"
|
|
|
|
|
|
+ :propMaxHeight="propMaxHeight"
|
|
|
|
+ :indexFixed="true"
|
|
style="margin: 0 -10px 15px -10px"
|
|
style="margin: 0 -10px 15px -10px"
|
|
index
|
|
index
|
|
>
|
|
>
|
|
@@ -1975,6 +1985,7 @@ export default {
|
|
dia2Type: 0, // 判断可输入单y轴数据的dialog类型
|
|
dia2Type: 0, // 判断可输入单y轴数据的dialog类型
|
|
// xName: "", // 图表x轴name
|
|
// xName: "", // 图表x轴name
|
|
// yName: "", // 图表y轴name
|
|
// yName: "", // 图表y轴name
|
|
|
|
+ propMaxHeight: 300, // table最大高度
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
@@ -3117,9 +3128,18 @@ export default {
|
|
isSorted(arr = []) {
|
|
isSorted(arr = []) {
|
|
return arr.every((x, i) => i === 0 || +x > +arr[i - 1]);
|
|
return arr.every((x, i) => i === 0 || +x > +arr[i - 1]);
|
|
},
|
|
},
|
|
|
|
+ getMaxHeight() {
|
|
|
|
+ this.propMaxHeight = $(window).height() -294;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
|
|
|
|
- mounted() {},
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getMaxHeight();
|
|
|
|
+
|
|
|
|
+ window.addEventListener("resize", () => {
|
|
|
|
+ this.getMaxHeight();
|
|
|
|
+ }, false);
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|