This commit is contained in:
@fawn-nine
2023-09-22 14:29:13 +08:00
parent 14e286a7b6
commit bc111c4abe

View File

@@ -325,7 +325,6 @@
methods: { methods: {
handleCheckedCitiesChange(value) { handleCheckedCitiesChange(value) {
console.log(value, 'value') console.log(value, 'value')
this.dataForm.tagList = value
}, },
// 获取商品标签 // 获取商品标签
getTags() { getTags() {
@@ -352,6 +351,7 @@
init(id) { init(id) {
this.dataForm.productId = id || 0 this.dataForm.productId = id || 0
this.visible = true this.visible = true
this.getTags()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (this.dataForm.productId) { if (this.dataForm.productId) {
@@ -486,7 +486,7 @@
'author': this.dataForm.author, 'author': this.dataForm.author,
'publisher': this.dataForm.publisher, 'publisher': this.dataForm.publisher,
'pubDate': this.dataForm.pubDate, 'pubDate': this.dataForm.pubDate,
'shoproudLabels': this.dataForm.tagList, 'shoproudLabels': this.dataForm.tags,
// 'format': this.dataForm.format, // 开本 // 'format': this.dataForm.format, // 开本
'isFreeMail': this.dataForm.isFreeMail, 'isFreeMail': this.dataForm.isFreeMail,
// 'pageNum': this.dataForm.pageNum, // 'pageNum': this.dataForm.pageNum,