Browse Source

bi大数据

newStyle
风继续吹 1 year ago
parent
commit
b659cc3da2
5 changed files with 2459 additions and 268 deletions
  1. BIN
      public/img/bidata/ic_hse_tab_h@2x.png
  2. BIN
      public/img/bidata/ic_hse_tab_n@2x.png
  3. +83
    -0
      src/api/modules/http.js
  4. +2187
    -261
      src/page/bi/bi.vue
  5. +189
    -7
      src/page/bi/index.js

BIN
public/img/bidata/ic_hse_tab_h@2x.png View File

Before After
Width: 576  |  Height: 80  |  Size: 3.1 KiB

BIN
public/img/bidata/ic_hse_tab_n@2x.png View File

Before After
Width: 576  |  Height: 80  |  Size: 3.2 KiB

+ 83
- 0
src/api/modules/http.js View File

@@ -1420,6 +1420,89 @@ export function biRankingData(data) {
})
}

// 接待分析数据
export function biTendencyDataContrast(data) {
return request({
url: 'autoSR/biData/tendencyDataContrast',
method: 'post',
data
})
}
// 接待质量趋势&销讲质量分布
export function biReceptionDetail(data) {
return request({
url: 'autoSR/biData/receptionDetail',
method: 'post',
data
})
}

// 销讲执行分布
export function biCusAgentRelationDistribute(data) {
return request({
url: 'autoSR/biData/cusAgentRelationDistribute',
method: 'post',
data
})
}

// 预警提醒
export function biWarningList(params) {
return request({
url: 'autoSR/warning/list',
method: 'get',
params
})
}

// 预警提醒
export function biWarningFindByHouseId(params) {
return request({
url: 'autoSR/warning/findByHouseId',
method: 'get',
params
})
}

// 获取公司列表
export function biFindHouseByOrgCode(params) {
return request({
url: 'autoSR/biData/findHouseByOrgCode',
method: 'get',
params
})
}

// 违禁预警消息列表
export function biWarningMessageList(params) {
return request({
url: 'autoSR/warning/messageList',
method: 'get',
params
})
}


// 修改消息状态
export function biWarningUpdateShowStatus(params) {
return request({
url: 'autoSR/warning/updateShowStatus',
method: 'get',
params
})
}


// 修改项目预警配置
export function biWarningUpdate(data) {
return request({
url: 'autoSR/warning/update',
method: 'post',
data
})
}


// 重新转写
export function toMergeRecord(params) {
return request({


+ 2187
- 261
src/page/bi/bi.vue
File diff suppressed because it is too large
View File


+ 189
- 7
src/page/bi/index.js View File

@@ -33,7 +33,7 @@ const recordingNotMerged = [
showTitle: '顾问',
showParams: 'agentName',
},
{
showTitle: '设备号',
showParams: 'imei',
@@ -42,7 +42,7 @@ const recordingNotMerged = [
showTitle: '接待开启时间',
showParams: 'startTime',
},
{
showTitle: '客户姓名',
showParams: 'name',
@@ -96,7 +96,7 @@ const InvalidPendingReview = [
showParams: 'value',
},
]
// 正在接待
const Receiving = [
{
@@ -249,7 +249,7 @@ const rankingTypeList = [
]

const lsideDataList = [
{
title: "接待量排名 (Top10)",
params: "receptionRankingByHouseTop10", //接待排名(按项目)
@@ -300,6 +300,26 @@ const rsideDataList = [
},
]

// 项目预警弹窗表头以及字段
const earlyWarningTable = [
{
showTitle: '项目名称',
showParams: 'propertyName'
},
{
showTitle: '预警设置',
showParams: 'warningStatusName'
},
{
showTitle: '更新时间',
showParams: 'updateTime'
},
{
showTitle: '更新人',
showParams: 'updateUser'
},
]

const jiedaiList = [
{
title: "正在接待",
@@ -422,13 +442,13 @@ const headList = [
title: "接待分析",
showInput: true,
show: false,
methods: "",
methods: "initReceptionAnalysis",
},
{
title: "销讲执行分布",
showInput: true,
show: false,
methods: "",
methods: "initSalesExecutionDistribution",
},
{
title: "案场排名",
@@ -446,7 +466,7 @@ const headList = [
title: "违禁预警",
showInput: false,
show: false,
methods: "",
methods: "initWarningReminder",
},
]

@@ -487,9 +507,162 @@ const rankingEchartsBarList = [
params: 'avgWordFinishFractionRanking',
unit: '%',
},

]

const ReceptionTrendsIndex = [
{
title: '接待量',
params: 'receptionCount'
},
{
title: '有效接待',
params: 'activeCustomer'
},
{
title: '违禁接待',
params: 'prohibitedCustomer'
},
]


const SalesExecutionTrendsIndex = [
{
title: '平均销讲执行率',
params: 'fraction'
},
{
title: '平均挖掘执行率',
params: 'wordFraction'
},
{
title: '平均挖掘成功率',
params: 'wordFinishFraction'
},
]

const SalesExecutionDistributionIndex = [
{
title: '到访次数分布',
params: 'visitReceptionDistribute'
},
{
title: '无效接待原因分布',
params: 'invalidReceptionDistribute',
legend: true,
},
{
title: '销讲执行率分布',
params: 'fractionDistribute',
},
{
title: '平均接待时长分布',
params: 'durationDistribute',
legend: true,
},
{
title: '接待挖掘执行率分布',
params: 'wordFractionDistribute'
},
{
title: '接待挖掘成功率分布',
params: 'wordFinishFractionDistribute'
},
{
title: '客户意向度分布',
params: 'levelFractionDistribute'
},
{
title: '客户等级分布',
params: 'systemLevelDistribute',
legend: true,
},
]

// 指标常量
const targetArray = [
{
label: '接待量',
value: 0,
},
{
label: '无录音',
value: 1,
},
{
label: '标记无效',
value: 2,
},
{
label: '销讲执行率',
value: 3,
},
{
label: '平均接待时长',
value: 4,
},
]


// jobTime 指标日预警提醒定时时间
// upOrDown 上升或下降预警 0上 1下
const targetArrUp = [
{
label: '大于',
value: 0,
},
{
label: '小于',
value: 1,
},
{
label: '等于',
value: 2,
},
]

const contrastArr = [
{
label: '对比昨日',
value: 0
},
{
label: '对比上周',
value: 1
},
]


const upOrDownArr = [
{
label: '上升预警',
value: 0
},
{
label: '下降预警',
value: 1
},
]

const warningStatusArr = [
{
label: '定时提醒',
value: 0
},
{
label: '到达即提醒',
value: 2
},
]




export {
recordingNotTurned,
recordingNotMerged,
@@ -511,4 +684,13 @@ export {
dateSelect,
headList,
rankingEchartsBarList,
ReceptionTrendsIndex,
SalesExecutionTrendsIndex,
SalesExecutionDistributionIndex,
earlyWarningTable,
targetArray,
targetArrUp,
contrastArr,
upOrDownArr,
warningStatusArr,
}

Loading…
Cancel
Save