Commit cd16fc55 by xue_wengang

各州地市发案情况、重大案件发案情况

parent b5e95b53
......@@ -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 =>
......
......@@ -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()
})
......
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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment