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
cfa4a0a7
Commit
cfa4a0a7
authored
Aug 11, 2023
by
yuhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加八类案件和主要案件
parent
dcf0e42b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
211 additions
and
8 deletions
+211
-8
src/api/ypbg.js
+6
-0
src/components/Mytable.vue
+51
-5
src/views/index/echarts/zyfa.js
+153
-2
src/views/index/ypbg.vue
+0
-0
vue.config.js
+1
-1
No files found.
src/api/ypbg.js
View file @
cfa4a0a7
...
...
@@ -42,5 +42,11 @@ export const getJqzsQk = params =>
export
const
getAjBzTj
=
params
=>
post
(
`
${
base
.
alyIP
}
/latsfx/getAjBzTj`
,
params
)
// 八类案件发案情况
export
const
getBlajfaqk
=
params
=>
post
(
`
${
base
.
alyIP
}
/jqyp/getBlajfaqk`
,
params
)
// 主要类别案件发案情况
export
const
getXqlaqkFa
=
params
=>
post
(
`
${
base
.
alyIP
}
/jqyp/getXqlaqkFa`
,
params
)
src/components/Mytable.vue
View file @
cfa4a0a7
...
...
@@ -4,10 +4,9 @@
<el-table
:data=
"tableData"
element-loading-text=
"加载中..."
tooltip-effect=
"dark"
:header-cell-style=
"
{ textAlign: 'center',background: '#FAFAFA' }"
:cell-style="{ textAlign: 'center' }"
style="width: 100%"
style=
"98%"
border
size=
"small"
v-loading=
"columObj.loading"
>
<!-- 选择框是否开启,selectable控制是否单行禁用 -->
<el-table-column
v-if=
"columObj.selection"
...
...
@@ -113,6 +112,44 @@
style=
"color:#4B4B4B"
>
{{
(
row
[
column
.
prop
]
+
''
)
||
'--'
}}
</span>
</
template
>
</span>
<!-- 研判报告 -->
<span
v-if=
"column.ypbg"
>
<
template
>
<span
v-if=
"column.label == '发案数'||column.label == '破案数量'||column.label == '破案占比'||column.label == '发案占比'||column.label == '损失金额(元)'||column.label == '损失占比'"
>
<span
v-if=
"row[column.prop]==0"
>
{{
(
row
[
column
.
prop
]
+
''
)
}}
</span>
<span
v-else
style=
"color:red"
>
{{
(
row
[
column
.
prop
]
+
''
)
}}
</span>
</span>
<span
v-if=
"column.label == '发案环比'||column.label == '破案环比'"
>
<span>
环比上期:
{{
row
[
"sqCount"
]
}}
起
</span>
<span
:class=
"
row.hbAjclass == 'up' ? 'upclass' : 'downclass'
"
>
{{
row
[
"hbAjClass"
]
==
"up"
?
"⬆"
:
"⬇"
}}{{
row
[
"hbAjBfb"
]
}}
</span>
</span>
<span
v-if=
"column.label == '发案同比'||column.label == '破案同比'"
>
<span>
同比上期:
{{
row
[
"tqCount"
]
}}
起
</span>
<span
:class=
"
row.tbAjClass == 'up' ? 'upclass' : 'downclass'
"
>
{{
row
[
"tbAjClass"
]
==
"up"
?
"⬆"
:
"⬇"
}}{{
row
[
"tbAjBfb"
]
}}
</span>
</span>
<span
v-if=
"column.label == '损失环比'"
>
<span>
环比上期:
{{
row
[
"sqSsRMB"
]
}}
起
</span>
<span
:class=
"
row.hbRmbClass == 'up' ? 'upclass' : 'downclass'
"
>
{{
row
[
"hbRmbClass"
]
==
"up"
?
"⬆"
:
"⬇"
}}{{
row
[
"hbRmbBfb"
]
}}
</span>
</span>
<span
v-if=
"column.label == '损失同比'"
>
<span>
同比去年:
{{
row
[
"tqSsRMB"
]
}}
起
</span>
<span
:class=
"
row.tbRmbClass == 'up' ? 'upclass' : 'downclass'
"
>
{{
row
[
"tbRmbClass"
]
==
"up"
?
"⬆"
:
"⬇"
}}{{
row
[
"tbRmbBfb"
]
}}
</span>
</span>
</
template
>
</span>
<!-- 状态对象展示 -->
<span
v-if=
"column.status
&&
...
...
@@ -202,7 +239,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.table-info
{
/*
.table-info {
display: flex;
justify-content: space-between;
align-items: center;
...
...
@@ -242,7 +279,7 @@ export default {
margin-left: 20px;
}
}
}
}
*/
.page_div
{
margin-top
:
20px
;
...
...
@@ -255,4 +292,12 @@ export default {
text-align
:
right
!important
;
padding-right
:
24px
;
}
.upclass
{
color
:
#ef4c4c
!important
;
padding-left
:
5px
;
}
.downclass
{
color
:
#35ca1e
!important
;
padding-left
:
5px
;
}
</
style
>
\ No newline at end of file
src/views/index/echarts/zyfa.js
View file @
cfa4a0a7
...
...
@@ -69,7 +69,7 @@ export function zyfaData (row) {
axisTick
:
{
show
:
false
,
},
axisLabel
:
{
//x轴文字的配置
show
:
true
,
rotate
:
0
,
rotate
:
45
,
textStyle
:
{
color
:
"#242424"
,
...
...
@@ -144,7 +144,158 @@ export function zyfaData (row) {
x
:
80
,
y
:
70
,
x2
:
5
,
y2
:
25
,
y2
:
70
,
borderWidth
:
1
,
},
};
return
option
}
// 主要发案
export
function
zypaData
(
row
)
{
let
option
=
{
title
:
{
text
:
`辖区类案破案情况`
,
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
:
45
,
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
:
70
,
borderWidth
:
1
,
},
};
...
...
src/views/index/ypbg.vue
View file @
cfa4a0a7
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
cfa4a0a7
...
...
@@ -58,7 +58,7 @@ module.exports = {
},
proxy
:
{
"/apialy"
:
{
target
:
"http://192.168.1.10
8
:8762"
,
//西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
target
:
"http://192.168.1.10
7
:8762"
,
//西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
// ws: true,
changeOrigin
:
true
,
secure
:
false
,
...
...
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