Commit 5b7d193a by 匡雅琴

改数据

1 parent 0a5050f0

12 KB | W: | H:

12 KB | W: | H:

src/assets/images/knownledge1.png
src/assets/images/knownledge1.png
src/assets/images/knownledge1.png
src/assets/images/knownledge1.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -75,7 +75,14 @@ const getQuery = name => { ...@@ -75,7 +75,14 @@ const getQuery = name => {
/** 三个数字加一个逗号 */ /** 三个数字加一个逗号 */
const numAddSymbol = val => { const numAddSymbol = val => {
return val ? (val + '').replace(/\B(?=(?:\d{3})+\b)/g, ',') : 0 if (val >= 10000) {
const num = Math.floor(val / 10000);
const remainder = val % 10000;
const formattedNum = num.toString().replace(/\B(?=(?:\d{3})+\b)/g, ',');
return `${formattedNum} 万`;
} else {
return val ? (val + '').replace(/\B(?=(?:\d{3})+\b)/g, ',') : '0';
}
} }
// 获取当前时间 // 获取当前时间
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<BoxTitle :title="'智能知识库'" :textAlign="'center'"></BoxTitle> <BoxTitle :title="'智能知识库'" :textAlign="'center'"></BoxTitle>
<div class="left-top"> <div class="left-top">
<KnownlageBase :title="'权益知识库'" :dataObj="equityDataObj" :data="'knownledge1'" /> <KnownlageBase :title="'权益知识库'" :dataObj="equityDataObj" :data="'knownledge1'" />
<KnownlageBase :title="'轻改知识库'" :dataObj="equityDataObj" :data="'knownledge2'" /> <KnownlageBase :title="'轻改知识库'" :dataObj="changeDataObj" :data="'knownledge2'" />
<KnownlageBase :title="'延保知识库'" :dataObj="equityDataObj" :data="'knownledge3'" /> <KnownlageBase :title="'延保知识库'" :dataObj="delayDataObj" :data="'knownledge3'" />
</div> </div>
<div class="left-center"> <div class="left-center">
<AIMerchant /> <AIMerchant />
...@@ -21,7 +21,7 @@ import AIMerchant from './components/AIMerchant.vue' ...@@ -21,7 +21,7 @@ import AIMerchant from './components/AIMerchant.vue'
import MarketingQuestion from './components/MarketingQuestion.vue' import MarketingQuestion from './components/MarketingQuestion.vue'
import KnownlageBase from './components/KnownlageBase.vue' import KnownlageBase from './components/KnownlageBase.vue'
import HotWords from './components/HotWords.vue' import HotWords from './components/HotWords.vue'
import { equityData, equityDataObj } from './const/index' import { equityData, equityDataObj, changeDataObj, delayDataObj } from './const/index'
export default { export default {
name: 'LifeSceneLeft', name: 'LifeSceneLeft',
components: { components: {
...@@ -33,7 +33,9 @@ export default { ...@@ -33,7 +33,9 @@ export default {
data() { data() {
return { return {
equityData, equityData,
equityDataObj equityDataObj,
changeDataObj,
delayDataObj
} }
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="bottom-data"> <div class="bottom-data">
<div> <div>
<div class="title">知识条数</div> <div class="title">知识条数</div>
<div class="text">{{ dataObj.KnownledgeNum }}</div> <div class="text">{{ numAddSymbol(dataObj.KnownledgeNum) }}</div>
</div> </div>
<div> <div>
<div class="title">提问数</div> <div class="title">提问数</div>
...@@ -65,6 +65,7 @@ export default { ...@@ -65,6 +65,7 @@ export default {
.bottom-data { .bottom-data {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 0.8vh;
.title { .title {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
......
const AIBarLineData = [ const AIBarLineData = [
{ {
statMonth: '8月', statMonth: '8月',
outputvalue: 312, outputvalue: 312,
perCusTrans: 297 perCusTrans: 297
}, },
{ {
statMonth: '9月', statMonth: '9月',
outputvalue: 416, outputvalue: 416,
perCusTrans: 355 perCusTrans: 355
}, },
{ {
statMonth: '10月', statMonth: '10月',
outputvalue: 827, outputvalue: 827,
perCusTrans: 446 perCusTrans: 446
}, },
{ {
statMonth: '11月', statMonth: '11月',
outputvalue: 855, outputvalue: 855,
perCusTrans: 452 perCusTrans: 452
}, },
{ {
statMonth: '12月', statMonth: '12月',
outputvalue: 901, outputvalue: 901,
perCusTrans: 587 perCusTrans: 587
}, },
{ {
statMonth: '01月', statMonth: '01月',
outputvalue: 977, outputvalue: 977,
perCusTrans: 701 perCusTrans: 701
} }
] ]
const equityDataObj = { const equityDataObj = {
KnownledgeNum: 8712, KnownledgeNum: 2712,
askNum: 15820 askNum: '6万+'
} }
const changeDataObj = {
KnownledgeNum: 8325,
askNum: '10万+'
}
const delayDataObj = {
KnownledgeNum: 1683,
askNum: '5万+'
}
const equityData = [ const equityData = [
{ {
statMonth: '2023-10', statMonth: '2023-10',
val: 10 val: 10
}, },
{ {
statMonth: '2023-11', statMonth: '2023-11',
val: 9 val: 9
}, },
{ {
statMonth: '2023-12', statMonth: '2023-12',
val: 50 val: 50
}, },
{ {
statMonth: '2024-01', statMonth: '2024-01',
val: 30 val: 30
}, },
{ {
statMonth: '2024-02', statMonth: '2024-02',
val: 10 val: 10
} }
] ]
const maintenanceStatisData = [ const maintenanceStatisData = [
{
name: '网联设备数', {
value: 1700, name: '覆盖门店数',
unit: '个' value: 2335
}, },
{ {
name: '覆盖门店数', name: '网联设备数',
value: 80, value: 1910000
unit: '场' },
}, {
{ name: '线索推送数',
name: '线索推送数', value: 5800000
value: 1620, }
unit: '场'
}
] ]
const marketingStatisData = [ const marketingStatisData = [
{ {
name: '覆盖门店数', name: '覆盖门店数',
value: 1700, value: 1280
unit: '个' },
}, {
{ name: '生成的活动数',
name: '生成的活动数', value: 4437
value: 80, },
unit: '场' {
}, name: '触达的客户数',
{ value: 13310000
name: '触达的客户数', }
value: 1620,
unit: '人'
}
] ]
const nearThreadDataList = [ const nearThreadDataList = [
{ {
statMonth: '23.02', statMonth: '23.02',
val: 899 val: 899
}, },
{ {
statMonth: '23.03', statMonth: '23.03',
val: 757 val: 757
}, },
{ {
statMonth: '23.04', statMonth: '23.04',
val: 997 val: 997
}, },
{ {
statMonth: '23.05', statMonth: '23.05',
val: 876 val: 876
}, },
{ {
statMonth: '23.06', statMonth: '23.06',
val: 878 val: 878
}, },
{ {
statMonth: '23.07', statMonth: '23.07',
val: 1219 val: 1219
}, },
{ {
statMonth: '23.08', statMonth: '23.08',
val: 861 val: 861
}, },
{ {
statMonth: '23.09', statMonth: '23.09',
val: 911 val: 911
}, },
{ {
statMonth: '23.10', statMonth: '23.10',
val: 983 val: 983
}, },
{ {
statMonth: '23.11', statMonth: '23.11',
val: 864 val: 864
}, },
{ {
statMonth: '23.12', statMonth: '23.12',
val: 903 val: 903
}, },
{ {
statMonth: '23.01', statMonth: '23.01',
val: 1001 val: 1001
} }
] ]
const activityListData = [ const activityListData = [
{ {
isused: "精品升级", isused: '售后团购',
num: 2400, num: 2982,
rate: 35.3 rate: 67.2
}, },
{ {
isused: "权益升级", isused: '续保营销',
num: 1850, num: 805,
rate: 27.22 rate: 18.14
}, },
{ {
isused: "售后团购", isused: '节假日关怀',
num: 1599, num: 650,
rate: 23.52 rate: 14.64
}, }
{
isused: "节假日关怀",
num: 950,
rate: 13.96
}
] ]
const bigModuleChartDataList = [ const bigModuleChartDataList = [
{ {
statMonth: '8月', statMonth: '8月',
val: 248 val: 248
}, },
{ {
statMonth: '9月', statMonth: '9月',
val: 375 val: 375
}, },
{ {
statMonth: '10月', statMonth: '10月',
val: 623 val: 623
}, },
{ {
statMonth: '11月', statMonth: '11月',
val: 746 val: 746
}, },
{ {
statMonth: '12月', statMonth: '12月',
val: 921 val: 921
}, },
{ {
statMonth: '01月', statMonth: '01月',
val: 1107 val: 1107
}, }
] ]
const threadData = [ const threadData = [
{ {
key: 1, key: 1,
name: '吴*新', name: '吴*新',
phone: '18715147799', phone: '18715147799',
carNum: '苏K12A2G', carNum: '苏K12A2G',
type: 'OBD', type: 'OBD',
time: '2023-03-15 10:00:00', time: '2023-03-15 10:00:00'
}, },
{ {
key: 2, key: 2,
name: '吴*新', name: '吴*新',
phone: '18715147799', phone: '18715147799',
carNum: '苏K12A2G', carNum: '苏K12A2G',
type: 'OBD', type: 'OBD',
time: '2023-03-15 10:00:00', time: '2023-03-15 10:00:00'
}, },
{ {
key: 3, key: 3,
name: '吴*新', name: '吴*新',
phone: '18715147799', phone: '18715147799',
carNum: '苏K12A2G', carNum: '苏K12A2G',
type: 'OBD', type: 'OBD',
time: '2023-03-15 10:00:00', time: '2023-03-15 10:00:00'
} }
] ]
export {
AIBarLineData,
equityData,
equityDataObj,
maintenanceStatisData,
nearThreadDataList,
marketingStatisData,
activityListData,
bigModuleChartDataList,
threadData
}
\ No newline at end of file \ No newline at end of file
export { AIBarLineData, equityData, equityDataObj, maintenanceStatisData, nearThreadDataList, marketingStatisData, activityListData, bigModuleChartDataList, threadData, changeDataObj, delayDataObj }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!