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

Binary file not shown.

View File

@ -305,7 +305,7 @@ export default {
this.startTime = new Date(payload.recordTime)
this.queryParams.lineId = payload.lineId || null;
this.queryParams.sectionId = payload.sectionId || null;
this.queryParams.equipmentId = payload.equipmentId || null;
this.queryParams.equipmentId = payload.equipmentId ? Number(payload.equipmentId) : undefined
this.queryParams.recordTime = payload.recordTime
? [
payload.recordTime,

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) {

View File

@ -260,14 +260,16 @@ export default {
// Create a new array by duplicating each item
const duplicatedArr = [];
this.lineArr.forEach((item, index) => {
console.log(item,'item');
// Process original item
const num = [
'',
'1672847052717821953',
'1672847052717821954',
'1686260211054157825',
'1701892552632770122',
'1714562503683465331',
20001,
20002,
20003,
20004,
20005,
].indexOf(item.id);
if (num > 0) {
// Original item with copy=1

File diff suppressed because it is too large Load Diff