This commit is contained in:
‘937886381’
2025-08-20 15:04:09 +08:00
parent d77bebd375
commit f23e025974
5 changed files with 641 additions and 598 deletions

View File

@@ -132,7 +132,7 @@ export default {
},
],
queryParams: {
equipmentId: null,
equipmentId: undefined,
recordTime: null,
},
graphList: [],
@@ -153,7 +153,7 @@ export default {
this.$nextTick(() => {
this.$refs['search-bar'].formInline.recordTime = formattedDate;
});
this.queryParams.equipmentId = Number(this.$route.query.eqid);
this.queryParams.equipmentId = this.$route.query.eqid? Number(this.$route.query.eqid): undefined
this.startTime = new Date(formattedDate);
this.queryParams.recordTime = formattedDate
? [
@@ -207,7 +207,7 @@ export default {
/** 重置查询条件 */
initQuery() {
this.queryParams.equipmentId = null;
this.queryParams.equipmentId = undefined;
this.queryParams.recordTime = null;
},
@@ -251,7 +251,7 @@ export default {
},
handleSearchBarBtnClick({ btnName, ...payload }) {
this.queryParams.equipmentId = Number(this.$route.query.eqid);
this.queryParams.equipmentId = this.$route.query.eqid ? Number(this.$route.query.eqid) :undefined
switch (btnName) {
case 'search':
if (!payload.recordTime || payload.recordTime.length <= 0) {