From dd02774695c9ab8bc983995f66bf4c4d86f3d5f0 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Sat, 24 Nov 2018 09:55:33 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E9=9B=B6=E4=BB=B6=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E9=A2=9C=E8=89=B2=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8F=8A=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 '' } } } From bbca4d7afc2c581c21599fc17a0c7eaf8f3bc62b Mon Sep 17 00:00:00 2001 From: liushuai Date: Sat, 24 Nov 2018 10:23:12 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/curd.js | 9 +-- .../MaintenanceEquipmentPerson/index.vue | 5 +- .../SystemRrolemaintenance/index.vue | 1 - .../WorkshopPersonnelRoleMana/index.vue | 58 ++++++++++++------- 4 files changed, 42 insertions(+), 31 deletions(-) diff --git a/src/utils/curd.js b/src/utils/curd.js index 3cca2d30..1436c6b3 100644 --- a/src/utils/curd.js +++ b/src/utils/curd.js @@ -79,9 +79,6 @@ export default { }) } } - if (this[carrier].length !== 0) { - this[carrier] = response.data[0][select[0]] - } }) } else { requestData(param).then(response => { // 这个方法没什么难度,不注释了 @@ -139,7 +136,7 @@ export default { // 3)接受值,数组,一般是['table','total','loading']顺序不能变 Vue.prototype.getTable = function(requestData, param, e) { requestData(...param).then(response => { - const data = response.data.rows ? response.data.rows : response.data + const data = response.data.rows this[e[0]] = [] this[e[1]] = 0 if (data && data.length > 0) { @@ -159,9 +156,7 @@ export default { // console.log('暂无数据') } }).then(() => { - if (this[e[2]]) { - this[e[2]] = false - } + this[e[2]] = false }) } // 添加表格数据 diff --git a/src/views/BasicData/MaintenanceEquipmentPerson/index.vue b/src/views/BasicData/MaintenanceEquipmentPerson/index.vue index 3b86d47d..bf91fc18 100644 --- a/src/views/BasicData/MaintenanceEquipmentPerson/index.vue +++ b/src/views/BasicData/MaintenanceEquipmentPerson/index.vue @@ -135,7 +135,7 @@ export default { equipmentNameCheck: null, equipmentName: [], operator: '', - operatorNum: null, + operatorNum: '', operatorCheck: null, dialogFormVisible: false, tablePeople: [], @@ -200,10 +200,11 @@ export default { } }, getTableData() { + console.log(typeof (this.equipmentName)) this.equipmentNameValue ? this.equipmentNameCheck = 1 : this.equipmentNameCheck = 0 this.operator ? this.operatorCheck = 1 : this.operatorCheck = 0 this.loading = true - this.getTable(getTableData, [this.equipmentNameCheck, this.equipmentNameValue, this.operatorCheck, this.operator, this.pageCurrent, this.pageSize], ['tableData', 'total', 'loading']) + this.getTable(getTableData, [this.equipmentNameCheck, this.equipmentNameValue, this.operatorCheck, this.operatorNum, this.pageCurrent, this.pageSize], ['tableData', 'total', 'loading']) }, handleAdd() { this.addForm('form', [this.dialogFormVisible_form = true, this.title = '增加']) diff --git a/src/views/BasicData/SystemRrolemaintenance/index.vue b/src/views/BasicData/SystemRrolemaintenance/index.vue index c7cfe2bd..d43cd398 100644 --- a/src/views/BasicData/SystemRrolemaintenance/index.vue +++ b/src/views/BasicData/SystemRrolemaintenance/index.vue @@ -10,7 +10,6 @@ diff --git a/src/views/BasicData/WorkshopPersonnelRoleMana/index.vue b/src/views/BasicData/WorkshopPersonnelRoleMana/index.vue index 739da3b8..627dcda8 100644 --- a/src/views/BasicData/WorkshopPersonnelRoleMana/index.vue +++ b/src/views/BasicData/WorkshopPersonnelRoleMana/index.vue @@ -4,7 +4,7 @@ 员工姓名: - + 角色名称: - +