Commit 8d2ef368 by 胡悦

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-scene into v1.0.0

2 parents 9adae29c 5144f962

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