From d1a974f6b056f979f8aceb04b1cb2ccb245cf371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B?= <994041296@163.com> Date: Mon, 17 Apr 2023 10:13:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E6=A0=BC=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=B8=8D=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/goods/goods-manage/spec.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/manager/src/views/goods/goods-manage/spec.vue b/manager/src/views/goods/goods-manage/spec.vue index a3719fb6..73ba2c8b 100644 --- a/manager/src/views/goods/goods-manage/spec.vue +++ b/manager/src/views/goods/goods-manage/spec.vue @@ -29,7 +29,7 @@ @@ -149,6 +149,9 @@ export default { }; }, methods: { + handleCreate2 (v) { + console.log(v); + }, //初始化,获取数据 init () { this.getDataList(); @@ -255,7 +258,6 @@ export default { }, //弹出编辑框 edit (v) { - console.log(v); this.modalType = 1; this.modalTitle = "编辑"; // 转换null为"" @@ -265,19 +267,17 @@ export default { } } let localVal = v.specValue; - console.log(localVal.split(",")) this.form.specName = v.specName; this.form.id = v.id; - this.$nextTick(() => { - this.$set(this.form, 'specValue', localVal.split(",")) - }) - + // this.$nextTick(() => { + // this.$set(this.form, 'specValue', localVal.split(",")) + // }) + this.form.specValue = localVal.split(",") if (localVal && localVal.indexOf("," > 0)) { this.specValue = this.form.specValue; } else { this.specValue = []; } - console.log("form.specValue", this.form); this.modalVisible = true; }, // 删除规格