From dd02774695c9ab8bc983995f66bf4c4d86f3d5f0 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Sat, 24 Nov 2018 09:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B6=E4=BB=B6=E5=B7=A5=E8=89=BA=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=EF=BC=9A=E9=A2=9C=E8=89=B2=E6=98=BE=E7=A4=BA=E5=8F=8A?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/ProcessAdjustQuery/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue b/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue index 9c87f9a4..95da1adb 100644 --- a/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue +++ b/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue @@ -218,18 +218,24 @@ export default { }, tableRowClassName2({ row }) { for (let i = 0; i < this.tableData1.length; i++) { + row.工艺编号 === null ? row.工艺编号 = 0 : row.工艺编号 if (this.tableData1[i].工序流水号 === row.工序流水号 && this.tableData1[i].工艺编号 !== null) { - if (this.tableData1[i].工艺编号 !== row.工艺编号 || this.tableData1[i].工艺要求 !== row.工艺要求 || this.tableData1[i].工艺难度等级 !== row.工艺难度等级 || this.tableData1[i].工序顺序 !== row.工序顺序) { + if (this.tableData1[i].工艺编号 !== row.工艺编号 || this.tableData1[i].工艺要求 !== row.工艺要求 || this.tableData1[i].工艺难度等级 !== row.工艺难度等级) { return 'change' + } else { + return '' } } } }, tableRowClassName1({ row }) { for (let i = 0; i < this.tableData2.length; i++) { + row.工艺编号 === null ? row.工艺编号 = 0 : row.工艺编号 if (this.tableData2[i].工序流水号 === row.工序流水号 && this.tableData2[i].工艺编号 !== null) { - if (this.tableData2[i].工艺编号 !== row.工艺编号 || this.tableData2[i].工艺要求 !== row.工艺要求 || this.tableData2[i].工艺难度等级 !== row.工艺难度等级 || this.tableData2[i].工序顺序 !== row.工序顺序) { + if (this.tableData2[i].工艺编号 !== row.工艺编号 || this.tableData2[i].工艺要求 !== row.工艺要求 || this.tableData2[i].工艺难度等级 !== row.工艺难度等级) { return 'change' + } else { + return '' } } }