|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<div class="box">
|
|
|
- <div class="header">功率数据</div>
|
|
|
<div class="queryParam">
|
|
|
<span>
|
|
|
时间:
|
|
@@ -13,9 +12,35 @@
|
|
|
/>
|
|
|
</a-space>
|
|
|
</span>
|
|
|
- <button class="OneButton" @click="queryTime()">查询</button>
|
|
|
- <button class="OneButton" @click="resetTime()">重置</button>
|
|
|
- <button class="OneButton" @click="exportAllData()">导出</button>
|
|
|
+ <span>
|
|
|
+ 线名:
|
|
|
+ <a-input
|
|
|
+ v-model:value="selectindex.xlm"
|
|
|
+ placeholder="请输入线名"
|
|
|
+ style="width: 100px"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ 车站:
|
|
|
+ <a-input
|
|
|
+ v-model:value="selectindex.chezhan"
|
|
|
+ placeholder="请输入车站"
|
|
|
+ style="width: 100px"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ 道岔编号:
|
|
|
+ <a-input
|
|
|
+ v-model:value="selectindex.dcbh"
|
|
|
+ placeholder="请输入道岔编号"
|
|
|
+ style="width: 100px"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <div class="BtnList">
|
|
|
+ <button class="OneButton" @click="queryTime()">查询</button>
|
|
|
+ <button class="OneButton" @click="resetTime()">重置</button>
|
|
|
+ <button class="OneButton" @click="exportAllData()">导出</button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<a-table
|
|
|
:columns="columns"
|
|
@@ -42,7 +67,6 @@ import axios from "@/utils/axios.js";
|
|
|
import * as moment from "moment";
|
|
|
import { export_json_to_excel } from "@/utils/vendor/Export2Excel";
|
|
|
|
|
|
-
|
|
|
const columns = [
|
|
|
{
|
|
|
title: "序号",
|
|
@@ -112,7 +136,11 @@ export default {
|
|
|
endTime: "",
|
|
|
valueTime: ["", ""],
|
|
|
columns,
|
|
|
- selectindex: {},
|
|
|
+ selectindex: {
|
|
|
+ xlm: "",
|
|
|
+ chezhan: "",
|
|
|
+ dcbh: "",
|
|
|
+ },
|
|
|
columnsdata: [],
|
|
|
selectedRowKeys: [],
|
|
|
outPut: {
|
|
@@ -129,8 +157,8 @@ export default {
|
|
|
// 查询条件的所有数据 用于导出
|
|
|
let param1 = {
|
|
|
tbName: "t_point_list",
|
|
|
- startTime:'',
|
|
|
- endTime: '',
|
|
|
+ startTime: "",
|
|
|
+ endTime: "",
|
|
|
};
|
|
|
const url1 = "/EchartRouter/getDwDataManage";
|
|
|
axios.post(url1, param1).then((res) => {
|
|
@@ -155,9 +183,13 @@ export default {
|
|
|
},
|
|
|
|
|
|
async resetTime() {
|
|
|
- this.startTime = "";
|
|
|
- this.endTime = "";
|
|
|
+ this.selectindex = {
|
|
|
+ xlm: "",
|
|
|
+ chezhan: "",
|
|
|
+ dcbh: "",
|
|
|
+ };
|
|
|
this.valueTime = ["", ""];
|
|
|
+ this.initTable();
|
|
|
},
|
|
|
|
|
|
onChange(value, dateString) {
|
|
@@ -166,7 +198,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
async queryTime() {
|
|
|
- this.initTable()
|
|
|
+ this.initTable();
|
|
|
},
|
|
|
customRow(record, index) {
|
|
|
return {
|
|
@@ -176,7 +208,7 @@ export default {
|
|
|
dcbh: record.dcbh,
|
|
|
xlm: record.xm,
|
|
|
czm: record.czm,
|
|
|
- type: 'gl'
|
|
|
+ type: "功率",
|
|
|
});
|
|
|
this.$store.dispatch("handleRightPanelVisible", true);
|
|
|
this.$store.dispatch("handleLeftPanelVisible", true);
|
|
@@ -205,6 +237,9 @@ export default {
|
|
|
tbName: "t_point_list",
|
|
|
startTime: this.startTime,
|
|
|
endTime: this.endTime,
|
|
|
+ xlm: this.selectindex.xlm,
|
|
|
+ chezhan: this.selectindex.chezhan,
|
|
|
+ dcbh: this.selectindex.dcbh,
|
|
|
};
|
|
|
const url1 = "/EchartRouter/getDwDataManage";
|
|
|
axios.post(url1, param1).then((res) => {
|
|
@@ -220,10 +255,10 @@ export default {
|
|
|
time: tableData[i].time,
|
|
|
directionalmarker: tableData[i].directionalmarker,
|
|
|
curvetype: tableData[i].curvetype,
|
|
|
- totalwork: tableData[i].totalwork,
|
|
|
- changerate: tableData[i].changerate,
|
|
|
- offsetvalue: tableData[i].offsetvalue,
|
|
|
- powervariance: tableData[i].powervariance,
|
|
|
+ totalwork: parseFloat(Number(tableData[i].totalwork).toFixed(2)),
|
|
|
+ changerate: parseFloat(Number(tableData[i].changerate).toFixed(2)),
|
|
|
+ offsetvalue: parseFloat(Number(tableData[i].offsetvalue).toFixed(2)),
|
|
|
+ powervariance: parseFloat(Number(tableData[i].powervariance).toFixed(2)),
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -242,7 +277,6 @@ export default {
|
|
|
cursor: pointer;
|
|
|
right: 8rem;
|
|
|
top: 8rem;
|
|
|
- z-index: inherit;
|
|
|
}
|
|
|
|
|
|
.box {
|
|
@@ -256,15 +290,20 @@ export default {
|
|
|
margin-top: 10%;
|
|
|
left: 25%;
|
|
|
position: absolute;
|
|
|
- z-index: 99;
|
|
|
+ z-index: 999;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
.queryParam {
|
|
|
- margin: 96px 16px 5rem 32rem;
|
|
|
+ margin: 16px 32rem;
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+.BtnList{
|
|
|
+ margin-top: 16px;
|
|
|
+ float: right
|
|
|
+}
|
|
|
+
|
|
|
.OneButton {
|
|
|
color: #fff;
|
|
|
background-color: #00485c;
|
|
@@ -273,7 +312,6 @@ export default {
|
|
|
margin-left: 15px;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
:deep(.ant-table-thead > tr > th) {
|
|
|
background: rgba(11, 47, 91, 1);
|
|
|
text-align: center;
|
|
@@ -314,14 +352,4 @@ export default {
|
|
|
:global(.ant-table-tbody > tr.ant-table-row-selected > td) {
|
|
|
background: #6b8595 !important;
|
|
|
}
|
|
|
-
|
|
|
-.header > span {
|
|
|
- font-size: 18px;
|
|
|
- font-weight: bold;
|
|
|
- margin-bottom: 10px; /* 仅在这里应用 */
|
|
|
-}
|
|
|
-
|
|
|
-.header {
|
|
|
- height: 54px; /* 仅在这里应用 */
|
|
|
-}
|
|
|
</style>
|