Commit 44f4a1b8 by Jaxon

feat(督导统计): 白点

1 parent ab6a651b
...@@ -90,6 +90,7 @@ import RegionPicker from "@/components/regionPicker/index.vue"; ...@@ -90,6 +90,7 @@ import RegionPicker from "@/components/regionPicker/index.vue";
import SearchInput from "@/components/searchBar/index.vue"; import SearchInput from "@/components/searchBar/index.vue";
import StaticInfo from "@/components/staticInfo/index.vue"; import StaticInfo from "@/components/staticInfo/index.vue";
import SvgIcon from "@/components/svgIcon/index.vue"; import SvgIcon from "@/components/svgIcon/index.vue";
import reportTrackFunMixin from "@/mixins/reportTrackFunMixin";
import { getStorePerformance } from "@/views/performance/api"; import { getStorePerformance } from "@/views/performance/api";
import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue"; import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue";
import WarnList from "@/views/performance/components/warnList/index.vue"; import WarnList from "@/views/performance/components/warnList/index.vue";
...@@ -99,6 +100,7 @@ import { supervisorCommonSchemaList, supervisorSchemaList } from "./index.data"; ...@@ -99,6 +100,7 @@ import { supervisorCommonSchemaList, supervisorSchemaList } from "./index.data";
export default { export default {
name: "StoreTabItem", name: "StoreTabItem",
components: { components: {
Empty, Empty,
SvgIcon, SvgIcon,
...@@ -111,6 +113,7 @@ export default { ...@@ -111,6 +113,7 @@ export default {
RegionPicker, RegionPicker,
WarnList, WarnList,
}, },
mixins: [reportTrackFunMixin],
inject: { inject: {
// 自定义内部变量名 // 自定义内部变量名
getPageActive: { getPageActive: {
...@@ -161,6 +164,9 @@ export default { ...@@ -161,6 +164,9 @@ export default {
}; };
}, },
created() { created() {
if (this.getPageActive()) {
this.setReportTrackData(0, "data_guard_view_store_list", {});
}
this.throttledFilterSearchKeyword = throttle(() => { this.throttledFilterSearchKeyword = throttle(() => {
this.list.data = this.filterSearchKeyword(); this.list.data = this.filterSearchKeyword();
}, 300); }, 300);
...@@ -174,7 +180,6 @@ export default { ...@@ -174,7 +180,6 @@ export default {
}, },
methods: { methods: {
async handleDatePickerChange(e) { async handleDatePickerChange(e) {
console.log("e", e);
await this.getData(); await this.getData();
}, },
async handleChangeRegion(row) { async handleChangeRegion(row) {
...@@ -247,6 +252,10 @@ export default { ...@@ -247,6 +252,10 @@ export default {
return this.list.originData.filter(item => item?.merchantName?.includes(keyword)); return this.list.originData.filter(item => item?.merchantName?.includes(keyword));
}, },
handleTapItem(row) { handleTapItem(row) {
this.setReportTrackData(0, "data_guard_view_store_list", {
merchantId: row.merchantId,
});
this.$router.push({ this.$router.push({
name: "supervisorOutletStaff", name: "supervisorOutletStaff",
query: { query: {
......
...@@ -66,6 +66,7 @@ import DatePicker from "@/components/datePicker/index.vue"; ...@@ -66,6 +66,7 @@ import DatePicker from "@/components/datePicker/index.vue";
import DateTypeTabs from "@/components/dateTypeTabs/index.vue"; import DateTypeTabs from "@/components/dateTypeTabs/index.vue";
import SearchInput from "@/components/searchBar/index.vue"; import SearchInput from "@/components/searchBar/index.vue";
import StaticInfo from "@/components/staticInfo/index.vue"; import StaticInfo from "@/components/staticInfo/index.vue";
import reportTrackFunMixin from "@/mixins/reportTrackFunMixin";
import { getSupervisorPerformance } from "@/views/performance/api"; import { getSupervisorPerformance } from "@/views/performance/api";
import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue"; import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue";
import { BASE_IMG_URL, brandTypeList, staticInfoList } from "@/views/performance/constant/performance"; import { BASE_IMG_URL, brandTypeList, staticInfoList } from "@/views/performance/constant/performance";
...@@ -82,6 +83,8 @@ export default { ...@@ -82,6 +83,8 @@ export default {
StatisticsItem, StatisticsItem,
Empty, Empty,
}, },
mixins: [reportTrackFunMixin],
inject: { inject: {
// 自定义内部变量名 // 自定义内部变量名
getPageActive: { getPageActive: {
...@@ -129,6 +132,9 @@ export default { ...@@ -129,6 +132,9 @@ export default {
}, },
}, },
created() { created() {
if (this.getPageActive()) {
this.setReportTrackData(0, "data_guard_view_supervisor_list", {});
}
this.throttledFilterSearchKeyword = throttle(() => { this.throttledFilterSearchKeyword = throttle(() => {
this.list.data = this.filterSearchKeyword(); this.list.data = this.filterSearchKeyword();
}, 300); }, 300);
...@@ -206,6 +212,10 @@ export default { ...@@ -206,6 +212,10 @@ export default {
await this.getData(); await this.getData();
}, },
handleTapItem(row) { handleTapItem(row) {
this.setReportTrackData(0, "data_guard_view_supervisor_detail", {
supervisorId: row.supervisorId,
});
this.$router.push({ this.$router.push({
name: "supervisorOutlet", name: "supervisorOutlet",
query: { query: {
......
...@@ -43,12 +43,10 @@ export default { ...@@ -43,12 +43,10 @@ export default {
}; };
}, },
activated() { activated() {
console.log("当前页面激活了 ✅");
this.isPageActive = true; this.isPageActive = true;
}, },
// 页面被隐藏时触发 // 页面被隐藏时触发
deactivated() { deactivated() {
console.log("当前页面离开了 ❌");
this.isPageActive = false; this.isPageActive = false;
}, },
created() { created() {
......
...@@ -76,6 +76,7 @@ import DateTypeTabs from "@/components/dateTypeTabs/index.vue"; ...@@ -76,6 +76,7 @@ import DateTypeTabs from "@/components/dateTypeTabs/index.vue";
import SearchInput from "@/components/searchBar/index.vue"; import SearchInput from "@/components/searchBar/index.vue";
import StaticInfo from "@/components/staticInfo/index.vue"; import StaticInfo from "@/components/staticInfo/index.vue";
import SvgIcon from "@/components/svgIcon/index.vue"; import SvgIcon from "@/components/svgIcon/index.vue";
import reportTrackFunMixin from "@/mixins/reportTrackFunMixin";
import { getSupervisorStorePerformance } from "@/views/performance/api"; import { getSupervisorStorePerformance } from "@/views/performance/api";
import BrandTabs from "@/views/performance/components/brandTabs/index.vue"; import BrandTabs from "@/views/performance/components/brandTabs/index.vue";
import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue"; import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue";
...@@ -96,6 +97,8 @@ export default { ...@@ -96,6 +97,8 @@ export default {
StatisticsItem, StatisticsItem,
WarnList, WarnList,
}, },
mixins: [reportTrackFunMixin],
data() { data() {
return { return {
throttledFilterSearchKeyword: null, throttledFilterSearchKeyword: null,
...@@ -135,6 +138,8 @@ export default { ...@@ -135,6 +138,8 @@ export default {
}; };
}, },
created() { created() {
this.setReportTrackData(0, "data_guard_view_store_list", {});
const { query: _query = "{}", supervisorId, supervisorName } = this.$route.query; const { query: _query = "{}", supervisorId, supervisorName } = this.$route.query;
const query = JSON.parse(_query); const query = JSON.parse(_query);
this.list.query.supervisorId = supervisorId; this.list.query.supervisorId = supervisorId;
...@@ -215,6 +220,9 @@ export default { ...@@ -215,6 +220,9 @@ export default {
return this.list.originData.filter(item => item?.merchantName?.includes(keyword)); return this.list.originData.filter(item => item?.merchantName?.includes(keyword));
}, },
handleTapItem(row) { handleTapItem(row) {
this.setReportTrackData(0, "data_guard_view_store_detail", {
merchantId: row.merchantId,
});
this.$router.push({ this.$router.push({
name: "supervisorOutletStaff", name: "supervisorOutletStaff",
query: { query: {
......
...@@ -65,6 +65,7 @@ import DatePicker from "@/components/datePicker/index.vue"; ...@@ -65,6 +65,7 @@ import DatePicker from "@/components/datePicker/index.vue";
import DateTypeTabs from "@/components/dateTypeTabs/index.vue"; import DateTypeTabs from "@/components/dateTypeTabs/index.vue";
import SearchInput from "@/components/searchBar/index.vue"; import SearchInput from "@/components/searchBar/index.vue";
import StaticInfo from "@/components/staticInfo/index.vue"; import StaticInfo from "@/components/staticInfo/index.vue";
import reportTrackFunMixin from "@/mixins/reportTrackFunMixin";
import { getSupervisorStoreStaffPerformance } from "@/views/performance/api"; import { getSupervisorStoreStaffPerformance } from "@/views/performance/api";
import BrandTabs from "@/views/performance/components/brandTabs/index.vue"; import BrandTabs from "@/views/performance/components/brandTabs/index.vue";
import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue"; import StatisticsItem from "@/views/performance/components/statisticsItem/statisticsItem.vue";
...@@ -83,6 +84,8 @@ export default { ...@@ -83,6 +84,8 @@ export default {
StatisticsItem, StatisticsItem,
Empty, Empty,
}, },
mixins: [reportTrackFunMixin],
data() { data() {
return { return {
throttledFilterSearchKeyword: null, throttledFilterSearchKeyword: null,
...@@ -119,6 +122,8 @@ export default { ...@@ -119,6 +122,8 @@ export default {
}; };
}, },
created() { created() {
this.setReportTrackData(0, "data_guard_view_stationed_list", {});
const { query: _query = "{}", merchantId, merchantName, supervisorName } = this.$route.query; const { query: _query = "{}", merchantId, merchantName, supervisorName } = this.$route.query;
const query = JSON.parse(_query); const query = JSON.parse(_query);
if (query.statDimension) { if (query.statDimension) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!