Commit 2b6ae2e8 by 李伟康

feat(report): 添加资金预警和支付管理页面的埋点及事件代码更新

- 在资金预警详情弹窗中引入 reportTrackPageMixin 并添加导出按钮的埋点调用
- 更新资金预警列表页按钮的事件代码,新增数据跟踪属性
- 在支付管理详情弹窗中引入 reportTrackPageMixin 并增加推送、回单等操作的埋点
- 修改支付管理列表页按钮的事件代码,并为详情和回单按钮添加数据跟踪配置
1 parent 5d92d4e3
...@@ -55,9 +55,10 @@ ...@@ -55,9 +55,10 @@
<script> <script>
import { getFundUsageLimitDetail, getFundUsageLimitOaList } from "@api/usedCarManagement" import { getFundUsageLimitDetail, getFundUsageLimitOaList } from "@api/usedCarManagement"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default { export default {
name: "DetailDialog", name: "DetailDialog",
mixins: [reportTrackPageMixin],
components: { components: {
}, },
props: { props: {
...@@ -221,6 +222,7 @@ export default { ...@@ -221,6 +222,7 @@ export default {
}) })
}, },
handleExport () { handleExport () {
this.setReportTrackData(0, 'usedcar_fund_warning_oa_list_export', {})
let params = { let params = {
method: "dj.smartcarlife.api.fund.usage.limit.oa.export.async", method: "dj.smartcarlife.api.fund.usage.limit.oa.export.async",
fundUsageLimitId: this.paramsObj.id fundUsageLimitId: this.paramsObj.id
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</div> </div>
</template> </template>
<div class="btns flex"> <div class="btns flex">
<span data-event-code="usedcar_fund_warning_management_list_export"> <span data-event-code="usedcar_add_fund_warning">
<auth-button <auth-button
category="Button" category="Button"
:show-btn-ids="['9051501']" :show-btn-ids="['9051501']"
...@@ -102,7 +102,15 @@ ...@@ -102,7 +102,15 @@
slot-scope="scope" slot-scope="scope"
> >
<!-- 详情 --> <!-- 详情 -->
<span style="margin-right: 10px"> <span
style="margin-right: 10px"
:data-track="
JSON.stringify({
id: scope.scope.id
})
"
data-event-code="used_car_fund_warning_detail"
>
<auth-button <auth-button
:data="scope.scope" :data="scope.scope"
:show-btn-ids="['9051503']" :show-btn-ids="['9051503']"
......
...@@ -91,7 +91,10 @@ import { ...@@ -91,7 +91,10 @@ import {
NB_TRANSFER_STATUS, NB_TRANSFER_STATUS,
} from "../contant" } from "../contant"
import dayjs from 'dayjs' import dayjs from 'dayjs'
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default { export default {
mixins: [reportTrackPageMixin],
name: "DetailDialog", name: "DetailDialog",
components: { components: {
}, },
...@@ -267,6 +270,7 @@ export default { ...@@ -267,6 +270,7 @@ export default {
} }
}, },
dataPush () { dataPush () {
this.setReportTrackData(0, 'usedcar_payment_push', {})
this.pushLoading = true this.pushLoading = true
this.$confirm('请确认是否要执行当前操作?', '提示', { this.$confirm('请确认是否要执行当前操作?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -289,6 +293,7 @@ export default { ...@@ -289,6 +293,7 @@ export default {
}, },
handleReceipt (url) { handleReceipt (url) {
this.setReportTrackData(0, 'usedcar_payment_receipt', {})
window.open(url) window.open(url)
} }
} }
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span <span
data-event-code="usedcar_payment_management_list_export" data-event-code="usedcar_payment_push_list"
style="margin-right: 10px;" style="margin-right: 10px;"
> >
<auth-button <auth-button
...@@ -108,14 +108,22 @@ ...@@ -108,14 +108,22 @@
slot-scope="scope" slot-scope="scope"
> >
<!-- 详情 --> <!-- 详情 -->
<span style="margin-right: 10px"> <span
style="margin-right: 10px"
:data-track="
JSON.stringify({
id: scope.scope.id
})
"
data-event-code="usedcar_payment_detail"
>
<auth-button <auth-button
:data="scope.scope" :data="scope.scope"
:show-btn-ids="['9051403']" :show-btn-ids="['9051403']"
/> />
</span> </span>
<!-- 回单 --> <!-- 回单 -->
<span> <span data-event-code="usedcar_payment_receipt">
<auth-button <auth-button
:data="scope.scope" :data="scope.scope"
:show-btn-ids="['9051404']" :show-btn-ids="['9051404']"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!