|
|
@ -5,14 +5,15 @@ import { getStatistics } from '@/http/api' |
|
|
/** |
|
|
/** |
|
|
* @param {string} tag 设备点击量:device,导航使用次数:navigation,店铺点击次数:shop,业态点击次数:industry, 搜索店铺: brandSearch |
|
|
* @param {string} tag 设备点击量:device,导航使用次数:navigation,店铺点击次数:shop,业态点击次数:industry, 搜索店铺: brandSearch |
|
|
*/ |
|
|
*/ |
|
|
export const useStatistics = tag => { |
|
|
|
|
|
|
|
|
export const useStatistics = (tag, rest = {}) => { |
|
|
const store = useStore() |
|
|
const store = useStore() |
|
|
const { currentFloor } = storeToRefs(store) |
|
|
const { currentFloor } = storeToRefs(store) |
|
|
const { projectCode, deviceCode } = currentFloor.value |
|
|
const { projectCode, deviceCode } = currentFloor.value |
|
|
const params = { |
|
|
const params = { |
|
|
projectCode, |
|
|
projectCode, |
|
|
deviceCode, |
|
|
deviceCode, |
|
|
tag |
|
|
|
|
|
|
|
|
tag, |
|
|
|
|
|
...rest |
|
|
} |
|
|
} |
|
|
getStatistics(params) |
|
|
getStatistics(params) |
|
|
} |
|
|
} |
|
|
|