|
@@ -29,14 +29,12 @@
|
|
<el-form-item label="时间范围:" style="margin-left: 50px">
|
|
<el-form-item label="时间范围:" style="margin-left: 50px">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="dateTime"
|
|
v-model="dateTime"
|
|
- :clearable="false" :append-to-body="false"
|
|
|
|
class="times"
|
|
class="times"
|
|
type="datetimerange"
|
|
type="datetimerange"
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
|
range-separator="至"
|
|
range-separator="至"
|
|
start-placeholder="开始时间"
|
|
start-placeholder="开始时间"
|
|
end-placeholder="结束时间"
|
|
end-placeholder="结束时间"
|
|
- @change="timeChange"
|
|
|
|
|
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
@@ -144,7 +142,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 查询时间数组
|
|
// 查询时间数组
|
|
- dateTime: [],
|
|
|
|
|
|
+ dateTime: "",
|
|
// 充电机ID下拉列表
|
|
// 充电机ID下拉列表
|
|
// 数据列表
|
|
// 数据列表
|
|
datalist: [],
|
|
datalist: [],
|
|
@@ -204,7 +202,7 @@ export default {
|
|
column.label,
|
|
column.label,
|
|
]);
|
|
]);
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
selectAll() {
|
|
selectAll() {
|
|
if (this.robotValue.length < this.logOptions.length) {
|
|
if (this.robotValue.length < this.logOptions.length) {
|
|
this.robotValue = [];
|
|
this.robotValue = [];
|
|
@@ -215,17 +213,6 @@ export default {
|
|
this.robotValue = [];
|
|
this.robotValue = [];
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- /**基础信息时间选择 */
|
|
|
|
- timeChange(data) {
|
|
|
|
- if (data) {
|
|
|
|
- this.queryParams.startTime = this.$checks.DateTimeToStr(data[0]);
|
|
|
|
- this.queryParams.endTime = this.$checks.DateTimeToStr(data[1]);
|
|
|
|
- // this.getLineDataView();
|
|
|
|
- } else {
|
|
|
|
- this.queryParams.startTime = null;
|
|
|
|
- this.queryParams.endTime = null;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
changeSelect(val) {
|
|
changeSelect(val) {
|
|
if (!val.includes("全选") && val.length === this.logOptions.length) {
|
|
if (!val.includes("全选") && val.length === this.logOptions.length) {
|
|
this.robotValue.unshift("全选");
|
|
this.robotValue.unshift("全选");
|
|
@@ -336,7 +323,7 @@ export default {
|
|
resetForm() {
|
|
resetForm() {
|
|
// window.location.reload();
|
|
// window.location.reload();
|
|
this.robotValue = "";
|
|
this.robotValue = "";
|
|
- this.dateTime = [];
|
|
|
|
|
|
+ this.dateTime = "";
|
|
this.queryParams.page = 1;
|
|
this.queryParams.page = 1;
|
|
this.queryParams.pageSize = 10;
|
|
this.queryParams.pageSize = 10;
|
|
this.queryParams.startTime = "";
|
|
this.queryParams.startTime = "";
|
|
@@ -405,12 +392,12 @@ export default {
|
|
width: 5px !important;
|
|
width: 5px !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
::v-deep .el-table__header colgroup col[name="gutter"] {
|
|
::v-deep .el-table__header colgroup col[name="gutter"] {
|
|
display: table-cell !important;
|
|
display: table-cell !important;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
::v-deep .el-table__body{
|
|
::v-deep .el-table__body{
|
|
width: 100% !important;
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
@@ -419,7 +406,7 @@ export default {
|
|
}
|
|
}
|
|
/* .serch{
|
|
/* .serch{
|
|
min-width: 70px;
|
|
min-width: 70px;
|
|
- width: 70px;
|
|
|
|
- height: 40px;
|
|
|
|
|
|
+ width: 70px;
|
|
|
|
+ height: 40px;
|
|
} */
|
|
} */
|
|
</style>
|
|
</style>
|