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', // 批准人员