提交 d6a282c3 编写于 作者: yi.li's avatar yi.li

手动添加埋点

上级 4afa62a5
......@@ -462,3 +462,40 @@ export const getIcdList = params => {
description: '选择或搜索诊断',
})
}
//手动添加埋点
export const postTrace = (actionName, viewPath) => {
let para = {
"datas": [
{
"pseudo_session": "",
"pseudo_id": "",
"class_name": "test-compontens",
"action": actionName, //"ACTION_WEB_ENTER"
"view_path": viewPath,//"http://10.177.11.248:8080/"
"created": new Date().getTime(),//"1568685179301"
"user_token": "",
"mobile": "",
"doctor_id": "",
"device_brand": "",
"device_model": "",
"app_version": "",
"device_type": "1",
"device_ip": "",
"web_data": {
},
"alternate_info": "",
"extra_info": "",
"web_data_type": "2"
}
]
}
return fetch({
headers,
url: getBaseUrl(`file/log/trace1`),
method: 'post',
data: para,
description: '手动添加埋点',
})
}
......@@ -93,6 +93,8 @@ import ChangeFollowupStatus from "./followup/record-manage/dialog/change-followu
import { mapGetters, mapState, mapActions } from 'vuex'
import * as commonUtil from '../utils/utils'
import { postTrace } from '@/utils/patients/patientsapi'
import { getBaseUrl } from '@/utils/index'
let vm = null
export default {
components: {
......@@ -127,6 +129,7 @@ export default {
/*vm.getTodayOverview({
status:0
});*/
postTrace('ACTION_WEB_ENTER', getBaseUrl(`#/home`));
},
computed: {
...mapGetters([
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册