From af21943b50f50700d55fc440fff9b4d0ed185669 Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 16 Jul 2024 18:21:07 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E6=B5=81=E7=A8=8B]=20=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInterpretationProcess.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue index 57cdb90..64e9dc8 100644 --- a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue +++ b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue @@ -415,7 +415,7 @@ export default { standardId: standardData.standardId, projectId: this.projectId }) - params.data.processStandardInterpretClauseList = compData.clauseData + params.data.processStandardInterpretClauseList = compData.clauseData || [] } else if (this.currentNodeId === StandardInterpretationNodes.controlDepartLiaisonDistribution.value) { // 联络人分发节点 params.data.processStandardInterpret = Object.assign({}, this.info.data.processStandardInterpret, compData.formData, { @@ -453,6 +453,13 @@ export default { params.data.processStandardInterpretClauseList = [] params.data.processStandardInterpretClauseSublistList = compData.clauseInterpretData } + // 如果两个列表没有获取到值就返回空数据,防止后端报错 + if (!params.data.processStandardInterpretClauseList) { + params.data.processStandardInterpretClauseList = [] + } + if (!params.data.processStandardInterpretClauseSublistList) { + params.data.processStandardInterpretClauseSublistList = [] + } // 后端取值不能为空,设置成空字符串 const notIsNullField = [ 'approvePersonId', // 批准人员