提交 d6f77f2f 编写于 作者: zhangping's avatar zhangping

Merge branch 'dev-pv-20190917' into release

...@@ -462,3 +462,40 @@ export const getIcdList = params => { ...@@ -462,3 +462,40 @@ export const getIcdList = params => {
description: '选择或搜索诊断', 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,7 @@ import ChangeFollowupStatus from "./followup/record-manage/dialog/change-followu ...@@ -93,6 +93,7 @@ import ChangeFollowupStatus from "./followup/record-manage/dialog/change-followu
import { mapGetters, mapState, mapActions } from 'vuex' import { mapGetters, mapState, mapActions } from 'vuex'
import * as commonUtil from '../utils/utils' import * as commonUtil from '../utils/utils'
import { postTrace } from '@/utils/patients/patientsapi'
let vm = null let vm = null
export default { export default {
components: { components: {
...@@ -127,6 +128,7 @@ export default { ...@@ -127,6 +128,7 @@ export default {
/*vm.getTodayOverview({ /*vm.getTodayOverview({
status:0 status:0
});*/ });*/
postTrace('ACTION_WEB_ENTER', `${window.location.href}`);
}, },
computed: { computed: {
...mapGetters([ ...mapGetters([
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册