Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
cd16fc55
Commit
cd16fc55
authored
Aug 10, 2023
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
各州地市发案情况、重大案件发案情况
parent
b5e95b53
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
169 additions
and
12 deletions
+169
-12
src/api/ypbg.js
+7
-3
src/router/index.js
+9
-9
src/views/index/echarts/zztCharts.js
+153
-0
src/views/index/ypbg.vue
+0
-0
No files found.
src/api/ypbg.js
View file @
cd16fc55
...
...
@@ -14,9 +14,13 @@ import base from "@/api/base";
export
const
EsNldQuery
=
params
=>
post
(
`
${
base
.
alyIP
}
/latsfx/EsNldQuery`
,
params
)
//类案件嫌疑人户籍分布
export
const
EshjfbQuery
=
params
=>
post
(
`
${
base
.
alyIP
}
/latsfx/EshjfbQuery`
,
params
)
//各地州市发破案情况
export
const
getJqzs
=
params
=>
post
(
`
${
base
.
alyIP
}
/jqyp/getJqzs`
,
params
)
//各地州市重大案件
export
const
getZdaj
=
params
=>
post
(
`
${
base
.
alyIP
}
/jqyp/getZdajqk`
,
params
)
//类案件嫌疑人抓获情况
export
const
EszhqkQuery
=
params
=>
...
...
src/router/index.js
View file @
cd16fc55
...
...
@@ -165,15 +165,15 @@ router.beforeEach((to, from, next) => {
}
to
.
meta
.
title
=
str
;
}
//
let userInfo = JSON.parse(window.sessionStorage.getItem("userInfo"))
//
let name = userInfo.realname.substring(0, userInfo.realname.length - 1)
//
let names = userInfo.realname.replace(name, '***')
//
let zjhm = userInfo.identitycard.replace(/^(.{10})(?:\d+)(.{4})$/, "$1****$2")
//
let one = `${zjhm} ${names}`
//
let xmmc = '西藏刑侦综合应用系统'
//
let two = `${userInfo.ip} ${xmmc}`
//
let time = moment.timeStampTurnTime(new Date().getTime())
//
Watermark.set(one, time, two, userInfo.unitname)
let
userInfo
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
"userInfo"
))
let
name
=
userInfo
.
realname
.
substring
(
0
,
userInfo
.
realname
.
length
-
1
)
let
names
=
userInfo
.
realname
.
replace
(
name
,
'***'
)
let
zjhm
=
userInfo
.
identitycard
.
replace
(
/^
(
.
{10})(?:\d
+
)(
.
{4})
$/
,
"$1****$2"
)
let
one
=
`
${
zjhm
}
${
names
}
`
let
xmmc
=
'西藏刑侦综合应用系统'
let
two
=
`
${
userInfo
.
ip
}
${
xmmc
}
`
let
time
=
moment
.
timeStampTurnTime
(
new
Date
().
getTime
())
Watermark
.
set
(
one
,
time
,
two
,
userInfo
.
unitname
)
}
next
()
})
...
...
src/views/index/echarts/zztCharts.js
0 → 100644
View file @
cd16fc55
import
echarts
from
'echarts'
// 主要发案
export
function
zztCharts
(
row
)
{
let
option
=
{
title
:
{
text
:
row
.
title
,
x
:
"center"
,
subtext
:
``
,
show
:
true
,
textStyle
:
{
fontFamily
:
''
,
fontSize
:
18
,
fontWeight
:
'500'
,
fontStyle
:
'normal'
,
color
:
'#242424'
,
verticalAlign
:
'middle'
,
lineHeight
:
24
,
rich
:
{
las
:
{
color
:
'#4795FF'
,
fontSize
:
18
,
},
pas
:
{
color
:
'#fa8c16'
,
fontSize
:
18
,
},
a
:
{
verticalAlign
:
'middle'
,
height
:
24
,
width
:
24
,
backgroundColor
:
{
//添加的图片
},
},
}
},
subtextStyle
:
{
// 设置二级标题的样式
fontSize
:
16
,
color
:
"#242424"
}
},
tooltip
:
{
trigger
:
'axis'
,
},
color
:
[
'#FF72B8'
],
legend
:
{
textStyle
:
{
fontSize
:
14
,
//字体大小
color
:
'A2B3C3'
,
//字体颜色
lineHeight
:
25
,
background
:
'red'
,
},
data
:
[{
name
:
''
,
icon
:
'circle'
,
}],
right
:
'2%'
},
xAxis
:
[
{
type
:
'category'
,
data
:
row
.
x
,
axisPointer
:
{
type
:
'shadow'
},
axisTick
:
{
show
:
false
,
},
axisLabel
:
{
//x轴文字的配置
show
:
true
,
rotate
:
0
,
textStyle
:
{
color
:
"#242424"
,
}
},
axisLine
:
{
//y轴线的颜色以及宽度
show
:
true
,
lineStyle
:
{
color
:
"#E6F7FF"
,
width
:
1
,
type
:
"solid"
},
},
}
],
// row.y[0] || 5
// row.y[0] / 5 || 1
yAxis
:
[
{
type
:
'value'
,
splitLine
:
{
//网格线
lineStyle
:
{
type
:
'dashed'
//设置网格线类型 dotted:虚线 solid:实线
},
show
:
true
//隐藏或显示
},
name
:
''
,
// min: 0,
// max: 150000,
// splitNumber: 5,
// interval: 150000 / 5,
axisLabel
:
{
formatter
:
'{value} '
,
textStyle
:
{
color
:
"#7697B7"
,
}
},
},
],
series
:
[
{
barWidth
:
80
,
//柱子宽度
barGap
:
0
,
//柱子间距
name
:
''
,
type
:
'bar'
,
label
:
{
position
:
'top'
,
show
:
true
},
showBackground
:
true
,
backgroundStyle
:
{
color
:
'rgba(255,255,255,0.1000)'
},
itemStyle
:
{
normal
:
{
color
:
'#4795FF'
,
}
},
tooltip
:
{
valueFormatter
:
function
(
value
)
{
return
value
;
}
},
data
:
row
.
y
},
],
grid
:
{
x
:
80
,
y
:
70
,
x2
:
5
,
y2
:
25
,
borderWidth
:
1
,
},
};
return
option
}
src/views/index/ypbg.vue
View file @
cd16fc55
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment