From c1e3981515c6124cb075e01904460fad81212544 Mon Sep 17 00:00:00 2001 From: danshihao Date: Thu, 11 Jul 2024 11:45:29 +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 --- .../modules/InterpretationInterpreterFillInfo.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue index 4af391f..8e8c822 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue @@ -119,6 +119,10 @@ export default { async getData (isValidate) { const obj = {} if (isValidate) { + if (!this.$refs.interpretationClauseTable.getData().length) { + this.$message.warn('addAtLeastOneRowOfData') + obj._flag = true + } // 汇总节点,处理表单 if (this.isStandardInterpreterSummary) { obj.formData = await new Promise((resolve) => { @@ -132,7 +136,7 @@ export default { } else { obj.formData = this.form.getFieldsValue() } - obj.clauseInterpretData = this.dataSource + obj.clauseInterpretData = this.$refs.interpretationClauseTable.getData() return obj }, // 更新组件内的数据