Commit 1976bf68 authored by qjeslks's avatar qjeslks
parents f8a125d5 459cd631
...@@ -13,58 +13,59 @@ ...@@ -13,58 +13,59 @@
style="background-color: #99bbe8" style="background-color: #99bbe8"
> >
<tr> <tr>
<th width="25%"> <th>
<span>记录时间</span> <span>打印时间</span>
</th> </th>
<th style="text-align: left; background-color: #ffffff"> <th style="text-align: left; background-color: #ffffff">
<el-config-provider :locale="zhCn"> <el-config-provider :locale="zhCn">
<el-date-picker <el-date-picker
type="datetime" type="date"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD"
placeholder="选择查询时间" placeholder="选择查询时间"
style="width: 180px" style="width: 180px"
v-model="enertyInfo.queryTime" v-model="enertyInfo.printTime"
/> />
</el-config-provider> </el-config-provider>
</th> </th>
<th width="25%"> <th>
<el-button <el-button
type="primary" type="primary"
style="min-width: 70px" style="min-width: 70px"
@click="postHeatForecastFun"
class="printHidden" class="printHidden"
v-show="printHidden" v-show="printHidden"
>历史查询</el-button @click="postPrintHeatForecastFun"
>打印查询</el-button
> >
</th> </th>
</tr> </tr>
<tr> <tr>
<th> <th width="25%">
<span>打印时间</span> <span>记录时间</span>
</th> </th>
<th style="text-align: left; background-color: #ffffff"> <th style="text-align: left; background-color: #ffffff">
<el-config-provider :locale="zhCn"> <el-config-provider :locale="zhCn">
<el-date-picker <el-date-picker
type="date" type="datetime"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择查询时间" placeholder="选择查询时间"
style="width: 180px" style="width: 180px"
v-model="enertyInfo.printTime" v-model="enertyInfo.queryTime"
/> />
</el-config-provider> </el-config-provider>
</th> </th>
<th> <th width="25%">
<el-button <el-button
type="primary" type="primary"
style="min-width: 70px" style="min-width: 70px"
@click="postHeatForecastFun"
class="printHidden" class="printHidden"
v-show="printHidden" v-show="printHidden"
@click="postPrintHeatForecastFun" >历史查询</el-button
>打印查询</el-button
> >
</th> </th>
</tr> </tr>
</table> </table>
<div class="overflowBlock">
<table <table
cellpadding="0" cellpadding="0"
cellspacing="1" cellspacing="1"
...@@ -248,6 +249,7 @@ ...@@ -248,6 +249,7 @@
<td>领导:</td> <td>领导:</td>
</tr> </tr>
</table> </table>
</div>
<div> <div>
<div class="btngrounp printHidden" v-show="printHidden"> <div class="btngrounp printHidden" v-show="printHidden">
<el-button <el-button
...@@ -720,7 +722,7 @@ function postPrintHeatForecastFun() { ...@@ -720,7 +722,7 @@ function postPrintHeatForecastFun() {
weather.value = {}; weather.value = {};
dataList.value = {}; dataList.value = {};
dataTime.value = {}; dataTime.value = {};
ElMessage.error(res.message); ElMessage.error("没有获取到打印记录");
} }
loading.value = false; loading.value = false;
}); });
...@@ -765,12 +767,11 @@ onUnmounted(() => {}); ...@@ -765,12 +767,11 @@ onUnmounted(() => {});
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.contentBlock { .contentBlock {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ffffff; background-color: #ffffff;
}
.overflowBlock {
width: 100%;
height: 60vh;
overflow: auto; overflow: auto;
} }
table { table {
...@@ -829,4 +830,14 @@ table.botList td { ...@@ -829,4 +830,14 @@ table.botList td {
height: auto !important; height: auto !important;
} }
} }
@media (min-width: 1700px) {
.overflowBlock {
height: 67vh;
}
}
@media (min-width: 2560px) {
.overflowBlock {
height: 100%;
}
}
</style> </style>
\ No newline at end of file
...@@ -40,10 +40,15 @@ ...@@ -40,10 +40,15 @@
@click="postHeatAnalysisFun" @click="postHeatAnalysisFun"
>历史查询</el-button >历史查询</el-button
> >
<el-button type="primary" v-print="printObj">打印</el-button>
<el-button type="primary" @click="exportTableToExcel"
>导出</el-button
>
</div> </div>
</th> </th>
</tr> </tr>
</table> </table>
<div class="overflowBlock">
<table <table
cellpadding="0" cellpadding="0"
cellspacing="1" cellspacing="1"
...@@ -69,7 +74,9 @@ ...@@ -69,7 +74,9 @@
<tr> <tr>
<th>预测室外平均温度(℃)</th> <th>预测室外平均温度(℃)</th>
<td> <td>
{{ predictionTemp.avgTemp ? predictionTemp.avgTemp : "-" }} {{
predictionTemp.avgTemp ? predictionTemp.avgTemp : "-"
}}
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -322,26 +329,6 @@ ...@@ -322,26 +329,6 @@
</tr> </tr>
</template> </template>
</table> </table>
<div class="printHidden">
<div class="btngrounp">
<el-button
type="primary"
style="margin: 15px 0 0 0"
v-print="printObj"
>打印</el-button
>
<!--<el-button
type="primary"
style="margin: 15px 0 0 10px"
>打印预览</el-button
-->
<el-button
type="primary"
@click="exportTableToExcel"
style="margin: 15px 0 0 10px"
>导出</el-button
>
</div>
</div> </div>
</el-card> </el-card>
</div> </div>
...@@ -877,12 +864,11 @@ onUnmounted(() => {}); ...@@ -877,12 +864,11 @@ onUnmounted(() => {});
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.contentBlock { .contentBlock {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ffffff; background-color: #ffffff;
}
.overflowBlock {
width: 100%;
height: 68vh;
overflow: auto; overflow: auto;
} }
table { table {
...@@ -930,4 +916,14 @@ table td { ...@@ -930,4 +916,14 @@ table td {
height: auto !important; height: auto !important;
} }
} }
@media (min-width: 1700px) {
.overflowBlock {
height: 74vh;
}
}
@media (min-width: 2560px) {
.overflowBlock {
height: 100%;
}
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment