From 4c9582d8fa815e22a677adbca16b12806fc44e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=B9=85=E5=93=A5?= <787952492@qq.com> Date: Tue, 24 May 2022 18:30:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E4=BD=9C=E7=89=A9?= =?UTF-8?q?=E5=87=BA=E5=85=A5=E8=AE=B0=E5=BD=95=E5=8D=95=E9=80=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/farm/cropRecord/index.vue | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/views/farm/cropRecord/index.vue b/src/views/farm/cropRecord/index.vue index d13f9b0..9482e0f 100644 --- a/src/views/farm/cropRecord/index.vue +++ b/src/views/farm/cropRecord/index.vue @@ -3,8 +3,13 @@ - + + + + + @@ -75,8 +80,8 @@ - 出库 - 入库 + 出库 + 入库 @@ -184,7 +189,7 @@ export default { this.form = { id: undefined, cropId: undefined, - type: undefined, + type: false, stock: undefined, afterStock: undefined, }; @@ -204,7 +209,6 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset(); - this.form.type = "true"; this.open = true; this.title = "添加"; }, @@ -214,8 +218,6 @@ export default { const id = row.id; getCropRecord(id).then(response => { this.form = response.data; - console.log("111111111111", this.form.type); - console.log("111111111111", response.data.type); this.open = true; this.title = "修改"; }); @@ -226,9 +228,6 @@ export default { if (!valid) { return; } - - console.log("11111", this.form.type); - // 修改的提交 if (this.form.id != null) { updateCropRecord(this.form).then(response => {