From e0a7bb86a621f14be574000dae9179e3f9ecc4f9 Mon Sep 17 00:00:00 2001 From: mabo Date: Thu, 24 Jun 2021 17:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/goods/goods-seller/goodsOperation.vue | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/seller/src/views/goods/goods-seller/goodsOperation.vue b/seller/src/views/goods/goods-seller/goodsOperation.vue index e55795d9..2d39f1a4 100644 --- a/seller/src/views/goods/goods-seller/goodsOperation.vue +++ b/seller/src/views/goods/goods-seller/goodsOperation.vue @@ -67,8 +67,7 @@ > {{ activeCategoryName3 }}

@@ -727,7 +726,8 @@ export default { this.logisticsTemplate = res.result; } }) - //编辑商品 + + // 编辑商品 if (this.$route.query.id) { this.activestep = 1; this.goodsId = this.$route.query.id; @@ -735,7 +735,7 @@ export default { this.selectGoodsType = false; } - //编辑模版 + // 编辑模板 else if (this.$route.query.draftId) { this.draftId = this.$route.query.draftId; this.activestep = 1; @@ -776,7 +776,14 @@ export default { this.GET_GoodsTemplate(); this.GET_NextLevelCategory(); }, - + // 获取已选模板 + checkedTemplate () { + if(this.goodsTemplates.length) { + return this.goodsTemplates.find(item=>{return item.id == this.draftId}).goodsName + } else { + return "" + } + }, // 选择商品模板 handleClickGoodsTemplate(val) { this.draftId = val.id;