Commit e3ea3ac5 by wangzhihui

```

feat(evection): 调整埋点数据结构并修复样式问题

- 修改公司页面埋点记录批量插入方法,将参数改为数组格式
- 修改部门页面埋点记录批量插入方法,将参数改为数组格式
- 修改个人页面埋点记录批量插入方法,将参数改为数组格式
- 修复个人页面模板中条件判断的空格格式问题
- 修复公司页面样式中的空格外边距格式问题
- 移除个人页面created钩子中的多余空行
```
1 parent 274fa2fa
......@@ -271,17 +271,20 @@ export default {
this.getData()
},
methods: {
insertBurialPointRecordBatch(){
evectionApi.insertBurialPointRecordBatch({
loginAccount:this.infoData.staffName,
phoneNumber:this.infoData.staffPhone,
userType:1,
systemSource:10,
eventTime:parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}'),
eventType:0,
pagePath:'company',
eventCode:'meituan'
})
insertBurialPointRecordBatch() {
let recordList = [
{
loginAccount: this.infoData.staffName,
phoneNumber: this.infoData.staffPhone,
userType: 1,
systemSource: 10,
eventTime: parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}'),
eventType: 0,
pagePath: 'company',
eventCode: 'meituan'
}
]
evectionApi.insertBurialPointRecordBatch(recordList)
},
getData() {
evectionApi
......@@ -291,7 +294,7 @@ export default {
.then(res => {
console.log(res)
this.infoData = res.data
this.insertBurialPointRecordBatch()
this.insertBurialPointRecordBatch()
})
}
}
......@@ -352,13 +355,13 @@ $boxWidth: 351;
font-size: 18px;
font-family: numberBold;
margin: 4px 0;
margin-left:14px;
margin-left: 14px;
}
.data-item-ratio {
display: flex;
align-items: center;
font-size: 11px;
margin-left:14px;
margin-left: 14px;
.data-item-label {
color: #999999;
}
......
......@@ -260,9 +260,11 @@ export default {
this.getData()
},
methods: {
insertBurialPointRecordBatch(){
evectionApi.insertBurialPointRecordBatch({
loginAccount:this.infoData.staffName,
let recordList = [
{
loginAccount:this.infoData.staffName,
phoneNumber:this.infoData.staffPhone,
userType:1,
systemSource:10,
......@@ -270,7 +272,10 @@ export default {
eventType:0,
pagePath:'department',
eventCode:'meituan'
})
}
]
evectionApi.insertBurialPointRecordBatch(recordList)
},
getData() {
evectionApi
......
......@@ -17,7 +17,7 @@
</template>
</div>
</div>
<div class="standard" v-if="infoData.reportDetail&&infoData.reportDetail.exceedCount != 0">
<div class="standard" v-if="infoData.reportDetail && infoData.reportDetail.exceedCount != 0">
招待标准
<span>{{ infoData.reportDetail.dinnerStandardAmount || 0 }}元/人</span>
</div>
......@@ -159,7 +159,6 @@ export default {
},
created() {
this.getData()
},
methods: {
getData() {
......@@ -172,17 +171,20 @@ export default {
this.insertBurialPointRecordBatch()
})
},
insertBurialPointRecordBatch(){
evectionApi.insertBurialPointRecordBatch({
loginAccount:this.infoData.staffName,
phoneNumber:this.infoData.staffPhone,
userType:1,
systemSource:10,
eventTime:parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}'),
eventType:0,
pagePath:'personage',
eventCode:'meituan'
})
insertBurialPointRecordBatch() {
let recordList = [
{
loginAccount: this.infoData.staffName,
phoneNumber: this.infoData.staffPhone,
userType: 1,
systemSource: 10,
eventTime: parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}'),
eventType: 0,
pagePath: 'personage',
eventCode: 'meituan'
}
]
evectionApi.insertBurialPointRecordBatch(recordList)
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!