|
@@ -39,7 +39,6 @@ export default defineComponent({
|
|
|
videoContent: '',
|
|
|
videoUrl: '',
|
|
|
coverUrl: '',
|
|
|
- relationType: 'RECOMMEND',
|
|
|
relationList: [],
|
|
|
posterUrl: '' // 视频封面图
|
|
|
})
|
|
@@ -164,16 +163,25 @@ export default defineComponent({
|
|
|
<ColField title="关联曲目或专辑">
|
|
|
<Field
|
|
|
modelValue={
|
|
|
- item.relationList.length > 0 ? this.getName(item) : ''
|
|
|
+ item.relationList.length > 0 &&
|
|
|
+ item.relationList[0].musicAlbumId
|
|
|
+ ? this.getName(item)
|
|
|
+ : ''
|
|
|
}
|
|
|
readonly
|
|
|
isLink
|
|
|
clickable={false}
|
|
|
clearable
|
|
|
- rightIcon={item.relationList.length > 0 ? 'clear' : ''}
|
|
|
+ rightIcon={
|
|
|
+ item.relationList.length > 0 &&
|
|
|
+ item.relationList[0].musicAlbumId
|
|
|
+ ? 'clear'
|
|
|
+ : ''
|
|
|
+ }
|
|
|
onClick-right-icon={(e: MouseEvent) => {
|
|
|
e.stopPropagation()
|
|
|
- item.relationList = []
|
|
|
+ item.relationList[0].musicAlbumId = 0
|
|
|
+ item.relationList[0].musicAlbumName = ''
|
|
|
}}
|
|
|
onClick={() => {
|
|
|
this.selectItem = item
|