xiugai
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user