|
@@ -13,6 +13,7 @@ import DateRangePicker from '/@/components/DateRangePicker/index.vue'
|
|
|
import { usePublicData } from '/@/stores/publicData'
|
|
|
import { useShopInfo } from '/@/stores/shopInfo'
|
|
|
import { GetAllPortfolios } from '/@/views/adManage/portfolios/api'
|
|
|
+import emitter from '/@/utils/emitter'
|
|
|
|
|
|
// const shopInfo = useShopInfo()
|
|
|
const publicData = usePublicData()
|
|
@@ -20,9 +21,11 @@ const selectedPortfolios: Ref<string[]> = ref([])
|
|
|
const portfolios: Ref<Portfolio[]> = ref([])
|
|
|
const { dateRange } = storeToRefs(publicData)
|
|
|
provide('dateRange', dateRange)
|
|
|
+
|
|
|
const shopInfo = useShopInfo()
|
|
|
const { profile } = storeToRefs(shopInfo)
|
|
|
provide('profile', profile)
|
|
|
+
|
|
|
const searchItem = ref('')
|
|
|
const filterItem = ref('')
|
|
|
provide('searchItem', searchItem)
|
|
@@ -32,6 +35,16 @@ function handleSearchChange() {
|
|
|
searchItem.value = filterItem.value
|
|
|
}
|
|
|
|
|
|
+// 提供给PopoverFilter组件的搜索内容
|
|
|
+emitter.on('PopoverFilter-allSkus', (data: any) => {
|
|
|
+ topSearchItem.value = data.allSkus.value
|
|
|
+ searchType.value = data.searchType.value
|
|
|
+})
|
|
|
+const topSearchItem = ref([])
|
|
|
+const searchType = ref('')
|
|
|
+provide('topSearchItem', topSearchItem)
|
|
|
+provide('searchType', searchType)
|
|
|
+
|
|
|
const tabActiveName = ref('Campaigns')
|
|
|
const tabs = [
|
|
|
{ label: '广告活动', name: 'Campaigns' },
|