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()