From 5a00318cd245471eb2bb5082a960d0c367c4eb4a Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Thu, 9 Dec 2021 09:30:05 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=9B=BD=E5=86=85=E5=BA=93=E5=9B=9B?= =?UTF-8?q?=E4=B8=AA=E6=97=A5=E6=9C=9F=E5=A4=9A=E9=80=89=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domesticStandardsAndRegulations/index.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index 35cb33d8c..52208b187 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -243,8 +243,8 @@ {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }} - {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }} + style="color: #F56C6C">{{ scope.row.SSRQ }} + {{ scope.row.SSRQ }} @@ -270,8 +270,8 @@ {{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ : '-' }} - {{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ : '-' }} + style="color: #F56C6C">{{ scope.row.ZCCSSRQ }} + {{ scope.row.ZCCSSRQ }} Date: Wed, 8 Dec 2021 17:59:01 +0800 Subject: [PATCH 2/6] commit --- src/pages/details/complianceDetails/index.vue | 4 ++-- .../processCenter/pages/creatProcess/xmpg/step1-1.vue | 6 ------ .../processCenter/pages/creatProcess/xmpg/step1.vue | 6 ------ .../processCenter/pages/creatProcess/xmpg2/step1-1.vue | 9 --------- .../processCenter/pages/creatProcess/xmpg2/step1.vue | 9 --------- .../processCenter/pages/creatProcess/xmqdqr/step2.vue | 9 --------- 6 files changed, 2 insertions(+), 41 deletions(-) diff --git a/src/pages/details/complianceDetails/index.vue b/src/pages/details/complianceDetails/index.vue index 5ae648fb6..7fe30ebb5 100644 --- a/src/pages/details/complianceDetails/index.vue +++ b/src/pages/details/complianceDetails/index.vue @@ -32,12 +32,12 @@ > - - - - - - - - - - - - - Date: Thu, 9 Dec 2021 10:38:51 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/phone/jrbzhxh/step3.vue | 657 ++++++++++++++++ .../pages/phone/jrbzhxh/step4.vue | 657 ++++++++++++++++ .../processCenter/pages/phone/wbsm/step3.vue | 13 + .../pages/phone/xmqdqr/step5.vue | 715 ++++++++++++++++++ src/router/index.js | 30 + 5 files changed, 2072 insertions(+) create mode 100644 src/pages/processCenter/pages/phone/jrbzhxh/step3.vue create mode 100644 src/pages/processCenter/pages/phone/jrbzhxh/step4.vue create mode 100644 src/pages/processCenter/pages/phone/wbsm/step3.vue create mode 100644 src/pages/processCenter/pages/phone/xmqdqr/step5.vue diff --git a/src/pages/processCenter/pages/phone/jrbzhxh/step3.vue b/src/pages/processCenter/pages/phone/jrbzhxh/step3.vue new file mode 100644 index 000000000..7f473aeef --- /dev/null +++ b/src/pages/processCenter/pages/phone/jrbzhxh/step3.vue @@ -0,0 +1,657 @@ + + + + + + diff --git a/src/pages/processCenter/pages/phone/jrbzhxh/step4.vue b/src/pages/processCenter/pages/phone/jrbzhxh/step4.vue new file mode 100644 index 000000000..86697848d --- /dev/null +++ b/src/pages/processCenter/pages/phone/jrbzhxh/step4.vue @@ -0,0 +1,657 @@ + + + + + + diff --git a/src/pages/processCenter/pages/phone/wbsm/step3.vue b/src/pages/processCenter/pages/phone/wbsm/step3.vue new file mode 100644 index 000000000..feb758afb --- /dev/null +++ b/src/pages/processCenter/pages/phone/wbsm/step3.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/pages/processCenter/pages/phone/xmqdqr/step5.vue b/src/pages/processCenter/pages/phone/xmqdqr/step5.vue new file mode 100644 index 000000000..f78968e5e --- /dev/null +++ b/src/pages/processCenter/pages/phone/xmqdqr/step5.vue @@ -0,0 +1,715 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index e5ac293ed..86627116f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2054,6 +2054,36 @@ const routes = [ title: '项目合规评估流程' } }, + { + path: '/phoneXmqdqrStep5', + name: 'phoneXmqdqrStep5', + component: () => import('@/pages/processCenter/pages/phone/xmqdqr/step5.vue'), + meta: { + isBoolean: true, + requireAuth: true, + title: '项目清单确认流程' + } + }, + { + path: '/phoneGrbzhxhStep3', + name: 'phoneGrbzhxhStep3', + component: () => import('@/pages/processCenter/pages/phone/jrbzhxh/step3.vue'), + meta: { + isBoolean: true, + requireAuth: true, + title: '加入标准化协会信息提报流程' + } + }, + { + path: '/phoneGrbzhxhStep4', + name: 'phoneGrbzhxhStep4', + component: () => import('@/pages/processCenter/pages/phone/jrbzhxh/step4.vue'), + meta: { + isBoolean: true, + requireAuth: true, + title: '加入标准化协会信息提报流程' + } + }, { path: '/phoneWfhxStep5', name: 'phoneWfhxStep5', From a86b1c170be8e3ea81dc513645c193c604f77e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 9 Dec 2021 11:16:44 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E7=A1=AE=E8=AE=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/xmqdqr/step1-3.vue | 9 -- .../pages/creatProcess/xmqdqr/step2.vue | 38 +++--- .../pages/creatProcess/xmqdqr/step3.vue | 116 ++++++++---------- .../pages/creatProcess/xmqdqr/step4.vue | 45 +++---- .../pages/creatProcess/xmqdqr/step5.vue | 9 -- 5 files changed, 87 insertions(+), 130 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-3.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-3.vue index 08e1752ee..988f3e6f5 100644 --- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-3.vue @@ -102,18 +102,12 @@ align="center" sortable label="标准实施日期"> - - - +
{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }} - {{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }} + {{ scope.row.ssrq }} @@ -359,7 +360,7 @@ label="新车型实施日期"> {{ - scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' + scope.row.ssrq }} {{ - scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' + scope.row.ssrq }} - {{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }} + {{ scope.row.ssrq }} @@ -465,13 +466,13 @@ label="新车型实施日期"> @@ -481,13 +482,13 @@ label="在产车实施日期"> @@ -554,9 +555,9 @@ width="120" >
+ - - - - - - - - - - - {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }} - {{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }} + {{ scope.row.ssrq }} @@ -389,7 +372,7 @@ label="新车型实施日期"> {{ - scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' + scope.row.ssrq }} {{ - scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' + scope.row.ssrq }} - {{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }} + {{ scope.row.ssrq }} @@ -495,13 +478,13 @@ label="新车型实施日期"> @@ -511,13 +494,13 @@ label="在产车实施日期"> @@ -584,9 +567,9 @@ width="120" > { - if(item.ssrq === "-"){ - item.ssrq = '' - } - if(item.zrbm === '[]'){ - item.zrbm ='' - } - }) - this.standList.map(item => { - let addIndex - addIndex = this.dataList.findIndex(items =>{ - return items.id === item.id - }) - if(addIndex > -1){ - this.$message.warning('请勿重复添加数据') - }else{ - this.dataList.push(item) - } - }) - - this.standModel = false - } - - }, + // okStand() { + // if(this.standList.length < 1){ + // this.$message.warning('请至少选择一条数据进行添加') + // }else{ + // this.standList.forEach(item =>{ + // if(item.ssrq === "-"){ + // item.ssrq = '' + // } + // if(item.zrbm === '[]'){ + // item.zrbm ='' + // } + // }) + // this.standList.map(item => { + // let addIndex + // addIndex = this.dataList.findIndex(items =>{ + // return items.id === item.id + // }) + // if(addIndex > -1){ + // this.$message.warning('请勿重复添加数据') + // }else{ + // this.dataList.push(item) + // } + // }) + // + // this.standModel = false + // } + // + // }, //手动查找的清空按钮 clearLawBtn(){ this.lawInfoTableLoading = true @@ -1162,6 +1145,7 @@ export default { this.$message.warning('请先选择标准/政策来源') } }, + //添加标准带入事件 handleSelectConfirm(){ if(this.handleSelectTableList.length < 1){ this.$message.warning('请至少选择一条数据进行添加') @@ -1175,6 +1159,8 @@ export default { } }) this.handleSelectTableList.map(item => { + this.$set(item, 'involve', 'involve') + this.$set(item, 'remarks', '') let addIndex addIndex = this.dataList.findIndex(items =>{ return items.id === item.id @@ -1185,10 +1171,6 @@ export default { this.dataList.push(item) } }) - this.dataList.forEach(item => { - this.$set(item, 'involve', 'involve') - this.$set(item, 'remarks', '') - }) this.standModel = false } }, diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue index 2a2e58460..4fa29cf5e 100644 --- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue @@ -107,27 +107,18 @@ width="190px" align="center" label="标准实施日期"> - - - {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }} - {{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }} + {{ scope.row.ssrq }} @@ -373,7 +364,7 @@ label="新车型实施日期"> {{ - scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' + scope.row.ssrq }} {{ - scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' + scope.row.ssrq }} - {{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }} + {{ scope.row.ssrq }} @@ -479,13 +470,13 @@ label="新车型实施日期"> @@ -495,13 +486,13 @@ label="在产车实施日期"> @@ -568,9 +559,9 @@ width="120" > - - - Date: Thu, 9 Dec 2021 13:46:15 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E4=BC=81=E6=A0=87=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../otherBussStandardDetails/index.vue | 588 ++++++++++++++++-- 1 file changed, 523 insertions(+), 65 deletions(-) diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index c5282f73c..eaf946066 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -23,65 +23,66 @@
企标评价 - - + + + - - - - - - - - - - - - - - - - - - - {{ businessCommentForm.averageScore * 2 }} - - - - - + + + + + + + + + + + + + + + + + + + {{ businessCommentForm.averageScore * 2 }} + + + + +
取消
+ + + + + + + 质量评价总平均分 + {{ + qualityCommentScore * 2 + }} + + + + + 动态评价总平均分 + {{ + dynamicCommentScore * 2 + }} + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + {{ historyCommentForm.averageScore }} + + + + + +
+
+
+
+
+
@@ -1066,6 +1291,21 @@ export default { }, data () { return { + commentAverageScoreTag: '1', + firstHistoryPeopleId: '',//最新评价的人的id + historyInfoLoading: false,//历史评价信息的loading + historyCommentForm: { + averageScore: 0, // 平均分值 + revise: '', + reviseReason: '', // 修订理由 + }, // 历史评价表单 + dynamicHistoryCommentTable: [], // 动态评价历史评价表格 + qualityHistoryCommentTable: [], // 质量评价历史评价表格 + dynamicHistoryPeopleTable: [], // 动态评价历史评价人表格 + qualityHistoryPeopleTable: [], // 质量评价历史评价人表格 + dynamicCommentScore: 0,// 动态评价总平均分 + qualityCommentScore: 0,// 质量评价总平均分 + commentActiveName: 'dynamicComment', indexType: 'dynamic', commentReason: '', // 评价理由 commentReason1: '', // 评价理由 @@ -1293,6 +1533,108 @@ export default { watch: { }, methods: { + historyPeopleChange(row){ + this.historyInfoLoading = true + const allData = { + lawId: this.sarStandardsInfoEO.id, + userId: row.userId, + evaluationType: this.indexType + } + if (this.indexType === 'quality'){ + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , { + _this: this + }, res => { + this.qualityHistoryCommentTable = res.data + + this.historyInfoLoading = false + }, e => { + this.historyInfoLoading = false + }) + }else if (this.indexType === 'dynamic'){ + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , { + _this: this + }, res => { + this.dynamicHistoryCommentTable = res.data + + this.historyCommentForm.revise = res.data[0].targetScore + this.historyCommentForm.reviseReason = res.data[0].commentReason + + let averageScore = 0 + res.data.forEach(item => { + if (item.valueType === 'number'){ + averageScore += parseInt(item.targetScore) + } + }) + averageScore = averageScore / 4 + this.historyCommentForm.averageScore = averageScore + this.historyInfoLoading = false + }, e => { + this.historyInfoLoading = false + }) + } + + }, + tabsClick(tab, event){ + this.historyInfoLoading = true + if (this.commentAverageScoreTag === '1'){ + this.indexType = 'quality' + //查询评分表 + const allData = { + lawId: this.sarStandardsInfoEO.id, + userId: this.firstHistoryPeopleId, + evaluationType: this.indexType + } + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , { + _this: this + }, res => { + this.qualityHistoryCommentTable = res.data + this.historyInfoLoading = false + + }, e => { + this.historyInfoLoading = false + }) + } + else if (this.commentAverageScoreTag === '2'){ + this.indexType = 'dynamic' + //查询评分表 + const allData = { + lawId: this.sarStandardsInfoEO.id, + userId: this.firstHistoryPeopleId, + evaluationType: this.indexType + } + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , { + _this: this + }, res => { + this.dynamicHistoryCommentTable = res.data + this.historyCommentForm.revise = res.data[0].targetScore + this.historyCommentForm.reviseReason = res.data[0].commentReason + + let averageScore = 0 + res.data.forEach(item => { + if (item.valueType === 'number'){ + averageScore += parseInt(item.targetScore) + } + }) + averageScore = averageScore / 4 + this.historyCommentForm.averageScore = averageScore + this.historyInfoLoading = false + }, e => { + this.historyInfoLoading = false + }) + } + + //查询动态评价总平均分和质量评价总平均分 + let standId = this.sarStandardsInfoEO.id + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, { + _this: this + }, res => { + this.qualityCommentScore = res.data.quality.toFixed(3)/2 + this.dynamicCommentScore = res.data.dynamic.toFixed(3)/2 + + }, e => { + }) + + }, targetScoreChange(row){ if (this.targetScore1 === '') { this.targetScore1 = 0 @@ -1368,26 +1710,120 @@ export default { this.$message.warning('请填写修订理由') } if (submitFlag === true) { - this.$message.success('通过') - + this.commentSubmitLoading = true const allData = { tableData: this.businessCommentTable, formData: JSON.stringify(this.businessCommentForm), standId: this.sarStandardsInfoEO.id, - userId: this.$store.getters.userInfo.userId + userId: this.$store.getters.userInfo.userId, + evaluationType: this.indexType } - console.log(allData) this.$http.postData('sarEnterpriseStandardEvaluation/quality-evaluation/submitEvaluationForm', allData, { _this: this }, res => { - console.log(res) + if (res.ok){ + this.$message.success('提交成功') + this.commentSubmitLoading = false + //重新评分之后刷新历史评分人 + let standId = this.sarStandardsInfoEO.id + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', {lawId:standId}, { + _this: this + }, res => { + this.dynamicHistoryPeopleTable = [] + this.dynamicHistoryPeopleTable = res.data.records + this.firstHistoryPeopleId = res.data.records[0].userId + // for (let i = 0; i < res.data.records.length; i++) { + // this.dynamicHistoryPeopleTable.push(res.data.records[i].userName) + // } + + }, e => { + }) + } }, e => { }) } }, + getSummaries(param) { + const { columns, data } = param; + const sums = []; + columns.forEach((column, index) => { + if (index === 3) { + sums[index] = '合计:'; + return; + }else if(index === 6){ + sums[index] = ''; + return; + } + const values = data.map(item => Number(item[column.property])); + if (!values.every(value => isNaN(value))) { + sums[index] = values.reduce((prev, curr) => { + const value = Number(curr); + if (!isNaN(value)) { + return prev + curr; + } else { + return prev; + } + }, 0); + sums[index] += ' '; + } else { + sums[index] = ''; + } + if(sums[index] !== '' && sums[index].indexOf(".") !== -1){ + sums[index] = parseFloat(sums[index]).toFixed(1); + } + }); + return sums; + }, + objectSpanMethod({ row, column, rowIndex, columnIndex },value) { + if (columnIndex === 0) { + if (rowIndex === 0) { + return { + rowspan: value.length, + colspan: 1 + }; + } else { + return { + rowspan: 0, + colspan: 0 + }; + } + }else if(columnIndex === 1 ) { + const _row = (this.filterData2(this.qualityHistoryCommentTable).one)[rowIndex] + const _col = _row > 0 ? 1 : 0 + return { + rowspan: _row, + colspan: _col + } + } + }, + setScoreMin(row){ + return row.scoreMin = ((row.targetScore === undefined || row.targetScore === '') ? '' : row.valueType === 'add' ? row.targetScore : (row.targetScore / 10).toFixed(1)) + + }, + filterData2(){ + let spanOneArr = [] + let concatOne = 0 + this.qualityHistoryCommentTable.forEach((item,index)=>{//循环后端查询出来的数据(orderdata) + if(index === 0){ + spanOneArr.push(1) + }else{ + //name 修改 + if(item.twoIndexTitle === this.qualityHistoryCommentTable[index - 1].twoIndexTitle){ //第一列需合并相同内容的字段 + spanOneArr[concatOne] += 1 + spanOneArr.push(0) + }else{ + spanOneArr.push(1) + concatOne = index + } + } + }) + return { + one: spanOneArr, + } + }, child1Func(child1){ const list = [] if(child1 && child1.length > 1){ @@ -2383,12 +2819,34 @@ export default { // } }, async mounted () { + const qualityRequest = { + lawId: this.sarStandardsInfoEO.id, + evaluationType: 'quality' + } + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', qualityRequest, { + _this: this + }, res => { + this.qualityHistoryPeopleTable = res.data.records + this.firstHistoryPeopleId = res.data.records[0].userId + + }, e => { + }) + const dynamicRequest = { + lawId: this.sarStandardsInfoEO.id, + evaluationType: 'dynamic' + } + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', dynamicRequest, { + _this: this + }, res => { + this.dynamicHistoryPeopleTable = res.data.records + this.firstHistoryPeopleId = res.data.records[0].userId + + }, e => { + }) this.$http.get('sarEnterpriseStandardEvaluation/evaluation-index/getEvaluationIndex', {indexType:this.indexType}, { _this: this }, res => { - console.log('2371',res) this.businessCommentTable = res.data - console.log(this.businessCommentTable) }, e => { }) this.sarStandardsInfoEO.id = this.$route.params.id From 93f46dbe48fe13aec3fc61db816312db1a4cf041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 9 Dec 2021 14:06:36 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=A1=AB=E5=86=99?= =?UTF-8?q?=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processCenter/pages/creatProcess/xmpg/step4.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue index 76572cf45..0df3cde58 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue @@ -866,7 +866,7 @@ export default { saveBatchEditForm() { this.dataList.forEach(item => { this.selectList.forEach(items => { - if (item.id === items) { + if (item.itemNum === items.itemNum) { item.complianceReasons = this.batchEditForm.complianceReasons; //不合规 item.noCompliance = this.batchEditForm.noCompliance; @@ -884,10 +884,10 @@ export default { }, //标准表格选择框改变 selectStandChange(data) { - this.selectList = []; - for (let i = 0; i < data.length; i++) { - this.selectList.push(data[i].id); - } + this.selectList = data; + // for (let i = 0; i < data.length; i++) { + // this.selectList.push(data[i].id); + // } }, selectThree() {