| | |
| | | this.videoTagList = res.data; |
| | | }) |
| | | this.upLoadVideoShow = true; |
| | | this.chooseTag = row.tagList.map(item => { |
| | | return item.tagName |
| | | }) |
| | | console.log('--------------------->',row.tagList) |
| | | if (row.tagList){ |
| | | this.chooseTag = row.tagList.map(item => { |
| | | return item.tagName |
| | | }) |
| | | } |
| | | console.log('选中列表---》',row.goodsList) |
| | | row.goodsList.forEach(item => { |
| | | item.goodsSkuId = item.id |
| | | }) |
| | | if (row.goodsList){ |
| | | row.goodsList.forEach(item => { |
| | | item.goodsSkuId = item.id |
| | | }) |
| | | } |
| | | |
| | | this.uploadVideoForm = { |
| | | id: '', |
| | | title: '', |
| | |
| | | } |
| | | |
| | | |
| | | // 遍历已选择的标签 |
| | | row.tagList.forEach(tag => { |
| | | // 检查标签是否已存在于videoTagList中 |
| | | const exists = this.videoTagList.some(item => item.tagName === tag.tagName); |
| | | // 如果不存在,则添加到选项列表 |
| | | if (!exists) { |
| | | this.videoTagList.push({ |
| | | id: tag.id, // 生成临时ID |
| | | tagName: tag.tagName |
| | | }); |
| | | } |
| | | }); |
| | | if (row.tagList){ |
| | | // 遍历已选择的标签 |
| | | row.tagList.forEach(tag => { |
| | | // 检查标签是否已存在于videoTagList中 |
| | | const exists = this.videoTagList.some(item => item.tagName === tag.tagName); |
| | | // 如果不存在,则添加到选项列表 |
| | | if (!exists) { |
| | | this.videoTagList.push({ |
| | | id: tag.id, // 生成临时ID |
| | | tagName: tag.tagName |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | this.uploadVideoForm = row |
| | | console.log("打印值",this.uploadVideoForm) |
| | | this.uploadVideoForm.fileInfo= {}; |