Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-scene
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8d2ef368
authored
Jan 29, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
52 deletions
src/assets/images/knownledge1.png
src/utils/util.js
src/views/lifeSceneDataPage/LifeSceneLeft.vue
src/views/lifeSceneDataPage/components/KnownlageBase.vue
src/views/lifeSceneDataPage/const/index.js
src/assets/images/knownledge1.png
View file @
8d2ef36
12 KB
|
W:
|
H:
12 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/utils/util.js
View file @
8d2ef36
...
@@ -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'
;
}
}
}
// 获取当前时间
// 获取当前时间
...
...
src/views/lifeSceneDataPage/LifeSceneLeft.vue
View file @
8d2ef36
...
@@ -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=
"
equity
DataObj"
:data=
"'knownledge2'"
/>
<KnownlageBase
:title=
"'轻改知识库'"
:dataObj=
"
change
DataObj"
:data=
"'knownledge2'"
/>
<KnownlageBase
:title=
"'延保知识库'"
:dataObj=
"
equit
yDataObj"
:data=
"'knownledge3'"
/>
<KnownlageBase
:title=
"'延保知识库'"
:dataObj=
"
dela
yDataObj"
: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
}
}
},
},
...
...
src/views/lifeSceneDataPage/components/KnownlageBase.vue
View file @
8d2ef36
...
@@ -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
;
...
...
src/views/lifeSceneDataPage/const/index.js
View file @
8d2ef36
...
@@ -32,9 +32,19 @@ const AIBarLineData = [
...
@@ -32,9 +32,19 @@ const AIBarLineData = [
]
]
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
=
[
{
{
...
@@ -60,38 +70,33 @@ const equityData = [
...
@@ -60,38 +70,33 @@ const equityData = [
]
]
const
maintenanceStatisData
=
[
const
maintenanceStatisData
=
[
{
{
name
:
'网联设备数'
,
name
:
'覆盖门店数'
,
value
:
1700
,
value
:
2335
unit
:
'个'
},
},
{
{
name
:
'覆盖门店数'
,
name
:
'网联设备数'
,
value
:
80
,
value
:
1910000
unit
:
'场'
},
},
{
{
name
:
'线索推送数'
,
name
:
'线索推送数'
,
value
:
1620
,
value
:
5800000
unit
:
'场'
}
}
]
]
const
marketingStatisData
=
[
const
marketingStatisData
=
[
{
{
name
:
'覆盖门店数'
,
name
:
'覆盖门店数'
,
value
:
1700
,
value
:
1280
unit
:
'个'
},
},
{
{
name
:
'生成的活动数'
,
name
:
'生成的活动数'
,
value
:
80
,
value
:
4437
unit
:
'场'
},
},
{
{
name
:
'触达的客户数'
,
name
:
'触达的客户数'
,
value
:
1620
,
value
:
13310000
unit
:
'人'
}
}
]
]
...
@@ -148,24 +153,19 @@ const nearThreadDataList = [
...
@@ -148,24 +153,19 @@ const nearThreadDataList = [
const
activityListData
=
[
const
activityListData
=
[
{
{
isused
:
"精品升级"
,
isused
:
'售后团购'
,
num
:
2400
,
num
:
2982
,
rate
:
35.3
rate
:
67.2
},
{
isused
:
"权益升级"
,
num
:
1850
,
rate
:
27.22
},
},
{
{
isused
:
"售后团购"
,
isused
:
'续保营销'
,
num
:
1599
,
num
:
805
,
rate
:
23.52
rate
:
18.14
},
},
{
{
isused
:
"节假日关怀"
,
isused
:
'节假日关怀'
,
num
:
9
50
,
num
:
6
50
,
rate
:
13.96
rate
:
14.64
}
}
]
]
...
@@ -193,7 +193,7 @@ const bigModuleChartDataList = [
...
@@ -193,7 +193,7 @@ const bigModuleChartDataList = [
{
{
statMonth
:
'01月'
,
statMonth
:
'01月'
,
val
:
1107
val
:
1107
},
}
]
]
const
threadData
=
[
const
threadData
=
[
...
@@ -203,7 +203,7 @@ const threadData = [
...
@@ -203,7 +203,7 @@ const threadData = [
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
,
...
@@ -211,7 +211,7 @@ const threadData = [
...
@@ -211,7 +211,7 @@ const threadData = [
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
,
...
@@ -219,18 +219,8 @@ const threadData = [
...
@@ -219,18 +219,8 @@ const threadData = [
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
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment