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.startTime = new Date(payload.recordTime)
this.queryParams.lineId = payload.lineId || null; this.queryParams.lineId = payload.lineId || null;
this.queryParams.sectionId = payload.sectionId || 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 this.queryParams.recordTime = payload.recordTime
? [ ? [
payload.recordTime, payload.recordTime,

View File

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

View File

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

File diff suppressed because it is too large Load Diff