Commit 44f4a1b8 by Jaxon

feat(督导统计): 白点

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