diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index 4b5912b2..6defc5bc 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -318,12 +318,24 @@ :list="props.videoList" tip="支持视频类型,大小不超过100M" > - 请选择来源应用 - + --> + { + const dataList = [] + res.data.data.notLinked.forEach((element) => { + dataList.push({ + value: element.id, + label: element.name, + }) + }) + item.options = dataList + }) } else { data.value.list.push(item) } @@ -744,7 +769,7 @@ const targetKeysOther = ref([]) // 上一步关联数据 // const targetKeysBack = ref([]) - + // 来源应用-back const sourceClick = () => { mockData.value = [] visibleAssociatedApplication.value = true @@ -915,18 +940,35 @@ const handleChange2 = (value) => { console.log(`selected ${value}`) } + const applicationsChange = (value) => { + data.value.list.map((item) => { + if (item.name === '来源应用') { + item.note1 = value + data.value.list.push(item } + }) + console.log(`selected ${value}`) + } const handleBlur = () => { console.log('blur') } + const applicationsBlur = () => { + console.log('blur') + } const handleFocus = () => { console.log('focus') } + const applicationsFocus = () => { + console.log('focus') + } const filterOption = (input, option) => { return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 } + const applicationsOption = (input, option) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }