From a8e09b3e46e3f15725870a499d408a6ecd04c7f1 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 12 四月 2024 16:45:41 +0800 Subject: [PATCH] 只有一条数据的时候,新增和放弃操作的问题修改 --- src/views/productManage/silkRegisterForm/addPage.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/views/productManage/silkRegisterForm/addPage.vue b/src/views/productManage/silkRegisterForm/addPage.vue index 6c4e516..8328a2b 100644 --- a/src/views/productManage/silkRegisterForm/addPage.vue +++ b/src/views/productManage/silkRegisterForm/addPage.vue @@ -545,7 +545,15 @@ }, // 涓嬫鍥炶鏃ユ湡 ], }, - tableData: [], + tableData: [ + { + productId: 1, + position: null, + fineness: null, + quantity: null, + sum: null, + } + ], registerId: "", inspectID: "", isRegisterSave: false, @@ -772,6 +780,7 @@ }, // 浜у搧鏂板 addProductClick() { + debugger this.productId++; this.tableData.push({ productId: this.productId, @@ -842,6 +851,7 @@ sum: "", }, ]; + this.tableData =this.tableList.tableData } else { this.form.measureFineness = ""; this.form.twiceChange = ""; -- Gitblit v1.8.0