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