|
|
@ -238,13 +238,21 @@ const echart3Option = ref({ |
|
|
|
const setReportData = async (data) => { |
|
|
|
const setReportData = async (data) => { |
|
|
|
// const data = await HomeApi.getClueSignSignRate() |
|
|
|
// const data = await HomeApi.getClueSignSignRate() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const channelClueArr = showChannel.value.sort((pre, cur) => { |
|
|
|
|
|
|
|
const preArr = tableList.value.find((it) => it.sourceName == pre).clueIntentionNumVOList || [] |
|
|
|
|
|
|
|
const curArr = tableList.value.find((it) => it.sourceName == cur).clueIntentionNumVOList || [] |
|
|
|
|
|
|
|
const preCount = preArr.reduce((preVal, curVal) => preVal + curVal.intentionNum, 0) |
|
|
|
|
|
|
|
const curCount = curArr.reduce((preVal, curVal) => preVal + curVal.intentionNum, 0) |
|
|
|
|
|
|
|
return preCount - curCount |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const arr1 = intentionOptions.map((intention) => { |
|
|
|
const arr1 = intentionOptions.map((intention) => { |
|
|
|
const list = [] |
|
|
|
const list = [] |
|
|
|
tableList.value.map((it) => { |
|
|
|
channelClueArr.map((item) => { |
|
|
|
if (showChannel.value.includes(it.sourceName)) { |
|
|
|
const row = tableList.value.find((it) => item == it.sourceName) |
|
|
|
|
|
|
|
if (row) { |
|
|
|
list.push( |
|
|
|
list.push( |
|
|
|
it.clueIntentionNumVOList.find((row) => row.intentionState == intention.value) |
|
|
|
row.clueIntentionNumVOList.find((it) => it.intentionState == intention.value).intentionNum |
|
|
|
.intentionNum |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
@ -264,12 +272,20 @@ const setReportData = async (data) => { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const channelSignArr = showChannel.value.sort((pre, cur) => { |
|
|
|
|
|
|
|
const preArr = tableList.value.find((it) => it.sourceName == pre).signLicenseTypeNumVOList || [] |
|
|
|
|
|
|
|
const curArr = tableList.value.find((it) => it.sourceName == cur).signLicenseTypeNumVOList || [] |
|
|
|
|
|
|
|
const preCount = preArr.reduce((preVal, curVal) => preVal + curVal.licenseTypeNum, 0) |
|
|
|
|
|
|
|
const curCount = curArr.reduce((preVal, curVal) => preVal + curVal.licenseTypeNum, 0) |
|
|
|
|
|
|
|
return preCount - curCount |
|
|
|
|
|
|
|
}) |
|
|
|
const arr2 = props.licenseTypeOptions.map((cartype) => { |
|
|
|
const arr2 = props.licenseTypeOptions.map((cartype) => { |
|
|
|
const list = [] |
|
|
|
const list = [] |
|
|
|
tableList.value.map((it) => { |
|
|
|
channelClueArr.map((item) => { |
|
|
|
if (showChannel.value.includes(it.sourceName)) { |
|
|
|
const row = tableList.value.find((it) => item == it.sourceName) |
|
|
|
|
|
|
|
if (row) { |
|
|
|
list.push( |
|
|
|
list.push( |
|
|
|
it.signLicenseTypeNumVOList.find((row) => row.licenseType == cartype.label).licenseTypeNum |
|
|
|
row.signLicenseTypeNumVOList.find((it) => it.licenseType == cartype.label).licenseTypeNum |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
@ -291,7 +307,7 @@ const setReportData = async (data) => { |
|
|
|
|
|
|
|
|
|
|
|
set(echart1Option.value, 'radiusAxis', { |
|
|
|
set(echart1Option.value, 'radiusAxis', { |
|
|
|
type: 'category', |
|
|
|
type: 'category', |
|
|
|
data: showChannel.value, |
|
|
|
data: channelClueArr, |
|
|
|
axisLabel: { |
|
|
|
axisLabel: { |
|
|
|
margin: 5, |
|
|
|
margin: 5, |
|
|
|
fontSize: 10, |
|
|
|
fontSize: 10, |
|
|
@ -303,7 +319,7 @@ const setReportData = async (data) => { |
|
|
|
|
|
|
|
|
|
|
|
set(echart2Option.value, 'radiusAxis', { |
|
|
|
set(echart2Option.value, 'radiusAxis', { |
|
|
|
type: 'category', |
|
|
|
type: 'category', |
|
|
|
data: showChannel.value, |
|
|
|
data: channelSignArr, |
|
|
|
axisLabel: { |
|
|
|
axisLabel: { |
|
|
|
margin: 5, |
|
|
|
margin: 5, |
|
|
|
fontSize: 10, |
|
|
|
fontSize: 10, |
|
|
|