Commit 4d46a8a7 by chenwq

feat: 添加报告跟踪混入并在策略提交时记录数据

1 parent 1ee699f1
...@@ -151,6 +151,7 @@ ...@@ -151,6 +151,7 @@
<script> <script>
import { cloneDeep, isArray } from "lodash-es"; import { cloneDeep, isArray } from "lodash-es";
import reportTrackFunMixin from "@/mixins/reportTrackFunMixin";
import { createStrategy, getMarketingPushStrategyDetailApi, getMetaOptionsApi, updateStrategy } from "@/views/marketingManagement/marketingPushStrategy/api/index.js"; import { createStrategy, getMarketingPushStrategyDetailApi, getMetaOptionsApi, updateStrategy } from "@/views/marketingManagement/marketingPushStrategy/api/index.js";
import BranchGroup from "@/views/marketingManagement/marketingPushStrategy/components/branchGroup/index.vue"; import BranchGroup from "@/views/marketingManagement/marketingPushStrategy/components/branchGroup/index.vue";
import ConditionPanel from "@/views/marketingManagement/marketingPushStrategy/components/conditionPanel/index.vue"; import ConditionPanel from "@/views/marketingManagement/marketingPushStrategy/components/conditionPanel/index.vue";
...@@ -165,6 +166,7 @@ export default { ...@@ -165,6 +166,7 @@ export default {
BranchGroup, BranchGroup,
ConditionPanel, ConditionPanel,
}, },
mixins: [reportTrackFunMixin], // 导入混入
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
to.meta.title = to.query.editType === "edit" ? "修改策略" : "新增策略"; to.meta.title = to.query.editType === "edit" ? "修改策略" : "新增策略";
...@@ -356,6 +358,7 @@ export default { ...@@ -356,6 +358,7 @@ export default {
const params = this.dealParams(); const params = this.dealParams();
const api = this.$route.query.editType === "edit" ? updateStrategy : createStrategy; const api = this.$route.query.editType === "edit" ? updateStrategy : createStrategy;
api(params).then((res) => { api(params).then((res) => {
this.setReportTrackData(0, "sop_strategy_web_submit_change", {});
this.$message.success("操作成功"); this.$message.success("操作成功");
this.handleCancel(); this.handleCancel();
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!