Commit de66e4f4 by wuwx

sop分析

1 parent 253e0511
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
this.$apis.sop.getSopBaseInfoApi({ sopId: this.sopId }).then(res => { this.$apis.sop.getSopBaseInfoApi({ sopId: this.sopId }).then(res => {
this.sopInfo = res this.sopInfo = res
this.sopInfo.touchPercent = Math.round((this.selectedEventInfo.eventStatistics.reachCustomerCount / this.sopInfo.customerCount) * 100).toFixed(0) this.sopInfo.touchPercent = Math.round((this.selectedEventInfo.eventStatistics.reachCustomerCount / this.sopInfo.customerCount) * 100).toFixed(0)
this.drawPie()
}) })
}, },
...@@ -162,7 +163,6 @@ export default { ...@@ -162,7 +163,6 @@ export default {
this.searchForm.eventId = this.baseData.sopEventList[0].id this.searchForm.eventId = this.baseData.sopEventList[0].id
this.selectedEventInfo = this.baseData.sopEventList[0] this.selectedEventInfo = this.baseData.sopEventList[0]
this.getBaseInfo() this.getBaseInfo()
this.drawPie()
this.$refs.touchListRef.refreshTable() this.$refs.touchListRef.refreshTable()
}) })
}, },
...@@ -258,8 +258,6 @@ export default { ...@@ -258,8 +258,6 @@ export default {
let myChart = echarts.init(chartDom) let myChart = echarts.init(chartDom)
let option = JSON.parse(JSON.stringify(pieOption)) let option = JSON.parse(JSON.stringify(pieOption))
console.log(this.selectedEventInfo)
option.series[0].data = [ option.series[0].data = [
{ {
value: this.selectedEventInfo.eventStatistics.reachCustomerCount, value: this.selectedEventInfo.eventStatistics.reachCustomerCount,
......
...@@ -133,9 +133,10 @@ export default { ...@@ -133,9 +133,10 @@ export default {
}, },
methods: { methods: {
handleJump(path) { handleJump(path, row = {}) {
this.$router.push({ this.$router.push({
path: '/sop/' + path path: '/sop/' + path,
query: row ? { id: row.id } : ''
}) })
}, },
// getParams() { // getParams() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!