Commit e3ea3ac5 by wangzhihui

```

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

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