From 036ca42ae9eda007ab8f70dd6bee15ac9126b823 Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Fri, 22 Sep 2023 11:39:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=A0=87=E7=AD=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../book/bookcomment-add-or-update.vue | 10 ++---
.../shop/shopproduct-add-or-update.vue | 37 ++++++++++++++++++-
2 files changed, 40 insertions(+), 7 deletions(-)
diff --git a/src/views/modules/book/bookcomment-add-or-update.vue b/src/views/modules/book/bookcomment-add-or-update.vue
index bf8558e..817be63 100644
--- a/src/views/modules/book/bookcomment-add-or-update.vue
+++ b/src/views/modules/book/bookcomment-add-or-update.vue
@@ -93,11 +93,11 @@
trigger: 'blur'
}],
- productImages: [{
- required: true,
- message: '商品图不能为空',
- trigger: 'blur'
- }],
+ // productImages: [{
+ // required: true,
+ // message: '商品图不能为空',
+ // trigger: 'blur'
+ // }],
},
// 富文本编辑器配置
diff --git a/src/views/modules/shop/shopproduct-add-or-update.vue b/src/views/modules/shop/shopproduct-add-or-update.vue
index afab288..2f555cc 100644
--- a/src/views/modules/shop/shopproduct-add-or-update.vue
+++ b/src/views/modules/shop/shopproduct-add-or-update.vue
@@ -14,6 +14,11 @@
+
+
+ {{item.labelName}}
+
+
{
+ if (data && data.code === 0) {
+ this.tagList = data.result.labels
+ // this.totalPage = data.page.totalCount
+ } else {
+ this.tagList = []
+ // this.totalPage = 0
+ }
+
+ })
+ },
showChooseBook() {
// 显示图书列表
this.$emit("showchooseBookf", { 'bookIds': this.dataForm.Books });
@@ -334,6 +363,8 @@
data
}) => {
if (data && data.code === 0) {
+ this.dataForm.tags = data.labels
+ console.log('收到的值', this.dataForm.tags)
this.dataForm.productName = data.shopProduct.productName
this.dataForm.price = data.shopProduct.price
this.dataForm.goodsType = data.shopProduct.goodsType
@@ -455,6 +486,7 @@
'author': this.dataForm.author,
'publisher': this.dataForm.publisher,
'pubDate': this.dataForm.pubDate,
+ 'shoproudLabels': this.dataForm.tagList,
// 'format': this.dataForm.format, // 开本
'isFreeMail': this.dataForm.isFreeMail,
// 'pageNum': this.dataForm.pageNum,
@@ -556,8 +588,9 @@
this.dataForm.noneBtnImg = fileList.length >= this.dataForm.limitCountImg;
},
handlereset() {
- this.fileList = [],
+ this.fileList = [],
this.visible = false
+ this.dataForm.tagList = []
this.dataForm.Books = []
this.swiperfileList = []
this.$refs['dataForm'].resetFields()