Files
sgxt_web/src/views/backOfficeSystem/JudgmentHome/ResearchHome/index.vue

562 lines
15 KiB
Vue
Raw Normal View History

2025-05-19 15:50:38 +08:00
<template>
<div class="yp—home flex">
2025-05-19 17:22:53 +08:00
<!-- 左边 -->
2025-05-19 15:50:38 +08:00
<div class="leftbox">
<div class="title">
<span v-for="idx in 3" :key="idx" :class="'sircleL'+idx" class="sircle mr5"></span>
<span class="ml10 mr10">专题统计</span>
<span v-for="idx in 3" :key="idx" :class="'sircleR'+idx" class="sircle ml5"></span>
</div>
<div class="commCnt">
<div class="hh50">
2025-07-07 17:36:07 +08:00
<div class="comm-title">类型统计</div>
2025-05-19 15:50:38 +08:00
<div class="echartsBox">
2025-07-07 17:36:07 +08:00
<MoreBarEcharts echartsId="cztjEcharts" :data="obj.data_lxtj"></MoreBarEcharts>
2025-05-19 15:50:38 +08:00
</div>
</div>
2025-09-15 14:58:42 +08:00
2025-05-19 15:50:38 +08:00
<div class="hh50">
<div class="comm-title">会商统计</div>
<div class="echartsBox">
<LineEcharts echartsId="hstjEcharts" :data="obj.data_hstj"></LineEcharts>
</div>
</div>
</div>
</div>
2025-05-19 17:22:53 +08:00
<!-- 右边 -->
2025-05-19 15:50:38 +08:00
<div class="rightbox">
<div class="title">
<span v-for="idx in 3" :key="idx" :class="'sircleL'+idx" class="sircle mr5"></span>
2025-07-21 16:14:09 +08:00
<span class="ml10 mr10">专题研判</span>
2025-05-19 15:50:38 +08:00
<span v-for="idx in 3" :key="idx" :class="'sircleR'+idx" class="sircle ml5"></span>
2025-07-22 17:20:57 +08:00
<el-button class="btn" type="primary" @click="handleYP">研判报告</el-button>
2025-05-19 17:22:53 +08:00
</div>
2025-09-15 14:58:42 +08:00
<div class="commCnt" >
2025-05-19 17:22:53 +08:00
<div ref="searchBox">
2025-09-15 14:58:42 +08:00
<el-form :model="searchList" ref="searchFormRef" :inline="true">
<el-form-item label="类型">
<el-cascader @change="changeCascader" :disabled="readonly_lx" v-model="searchList.lx" clearable :options="cascaderList" :props="{ checkStrictly: true }" placeholder="请选择类型"/>
</el-form-item>
<el-form-item label="人员">
<el-input @change="changeRy" v-model="searchList.ry" :disabled="readonly_ry" clearable placeholder="请输入姓名或身份证"></el-input>
</el-form-item>
<el-form-item label="地点">
<div class="flex align-center">
<el-select v-model="searchList.dd" @change="changeBm" style="width: 180px;" :disabled="readonly_dd" placeholder="行政区划">
<el-option label="区域" value="1"></el-option>
<el-option label="部门" value="2"></el-option>
</el-select>
<el-input @change="changeRy" :disabled="readonly_dd" v-model="searchList.xxdz" clearable placeholder="请输入详细地址"></el-input>
</div>
</el-form-item>
<el-form-item label="时间">
<el-date-picker
v-model="searchList.datetimes"
type="datetimerange"
unlink-panels
:range-separator="'至'"
start-placeholder="开始日期时间"
end-placeholder="结束日期时间"
value-format="YYYY-MM-DD HH:mm:ss"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSearch">查询</el-button>
<el-button type="primary" @click="resetForm">重置</el-button>
</el-form-item>
</el-form>
2025-05-19 17:22:53 +08:00
</div>
2025-09-15 14:58:42 +08:00
<ul class="listBox" :style="{ height:pageData.boxHeight +'px'}">
2025-05-19 17:22:53 +08:00
<li class="list-item" ref="listBoxRef" v-for="(it,idx) in list" :key="idx">
<div class="comm-title title-s">{{ it.title }}</div>
<div class="list-table" >
<MyTable
2025-07-07 17:36:07 +08:00
:tableData="it.tableList"
2025-09-15 14:58:42 +08:00
:tableColumn="it.tableColumn"
:key="idx+''+it.keyCount"
2025-05-19 17:22:53 +08:00
:fixed="false"
2025-09-15 16:11:38 +08:00
:tableHeight="pageData.tableHeight"
2025-05-19 17:22:53 +08:00
:tabelModel="it.title"
:tableConfiger="pageData.tableConfiger"
:controlsWidth="pageData.controlsWidth"
>
2025-09-15 15:48:56 +08:00
<template #jqlbdm="{ row }">
<DictTag :tag="false" :value="row.jqlbdm" :options="JQLB" />
</template>
2025-05-19 17:22:53 +08:00
<template #controls="{ row }">
2025-07-24 14:40:46 +08:00
<el-link type="primary" size="small" @click="handleHs(row)">网上会商</el-link>
2025-05-19 17:22:53 +08:00
</template>
</MyTable>
2025-09-15 14:58:42 +08:00
<Pages
2025-09-15 15:48:56 +08:00
@changeNo="changeNo($event,it.title)"
@changeSize="changeSize($event,it.title)"
2025-09-15 14:58:42 +08:00
:tableHeight="pageData.tableHeight"
:pageConfiger="{ ...it.pageConfiger }"
2025-09-15 16:11:38 +08:00
></Pages>
2025-05-19 17:22:53 +08:00
</div>
</li>
</ul>
2025-05-19 15:50:38 +08:00
</div>
</div>
</div>
2025-07-22 17:20:57 +08:00
<YpModel v-model="showModel" :textContent="textContent" ></YpModel>
2025-09-15 14:58:42 +08:00
<!-- 弹窗 -->
2025-09-15 14:59:29 +08:00
<DetailDialog ref="detaileRef"></DetailDialog>
2025-05-19 15:50:38 +08:00
</template>
<script setup>
2025-09-15 15:48:56 +08:00
import { lzJcjPjdbSelectPage } from '@/api/semanticAnalysis.js'
2025-09-15 14:58:42 +08:00
import { ElMessage } from "element-plus";
import DetailDialog from './components/detailDialog.vue'
2025-07-22 17:20:57 +08:00
import YpModel from '@/components/ypModel/index.vue'
2025-07-07 17:36:07 +08:00
import { qcckPost, qcckGet } from "@/api/qcckApi.js";
2025-05-19 15:50:38 +08:00
import MoreBarEcharts from "@/views/home/echarts/moreBarEcharts.vue";
import LineEcharts from "@/views/home/echarts/moreLineEcharts.vue";
2025-05-19 17:22:53 +08:00
import MyTable from "@/components/aboutTable/DarkTable.vue";
2025-09-15 14:58:42 +08:00
import Pages from "@/components/aboutTable/Pages.vue";
2025-07-24 14:40:46 +08:00
import { useRoute, useRouter } from 'vue-router';
const router = useRouter();
2025-07-07 17:36:07 +08:00
import { nextTick, onMounted, reactive,getCurrentInstance ,ref, watch } from 'vue';
const { proxy } = getCurrentInstance();
2025-09-15 15:48:56 +08:00
const { JQLB} = proxy.$dict("JQLB"); //获取字典数据
2025-09-15 14:58:42 +08:00
const readonly_lx = ref(false)
const readonly_ry = ref(false)
const readonly_dd = ref(false)
const showModel = ref(false);
const detaileRef = ref();
2025-05-19 17:22:53 +08:00
const searchBox = ref();
const listBoxRef = ref();
2025-07-22 17:20:57 +08:00
const textContent = ref('');
2025-05-20 17:00:56 +08:00
// 图数据
2025-05-19 15:50:38 +08:00
const obj = reactive({
2025-07-07 17:36:07 +08:00
data_lxtj:{
2025-09-15 14:58:42 +08:00
xData:['网络舆情','警情','案件','风险隐患'],
2025-05-19 15:50:38 +08:00
color:[['#0DBAC5','#28EEBF'],['#F06C0D','#EEB416']],
labelColor:'#000',
list:[
2025-09-15 16:16:02 +08:00
{label:'总数',val:[0,0,0,0]},
2025-05-19 15:50:38 +08:00
]
},
data_hstj:{
2025-09-15 14:58:42 +08:00
xData:['网络舆情','警情','案件','风险隐患'],
2025-05-19 15:50:38 +08:00
color:['#0386FB','#00FFFF'],
labelColor:'#000',
list:[
2025-09-15 16:16:02 +08:00
{label:'总数',val:[0,0,10,0]},
2025-05-19 15:50:38 +08:00
]
}
})
2025-09-15 14:58:42 +08:00
const searchList = ref({})
let cascaderList = ref([
{ value: '01', label: '网络舆情',leaf: true },
2025-09-15 15:01:40 +08:00
{ value: '02', label: '警情',children:[
{ value: '021', label: '治安警情',leaf: true },
{ value: '022', label: '刑事警情',leaf: true },
{ value: '023', label: '交通警情',leaf: true },
] },
{ value: '03', label: '案件',leaf: true },
{ value: '04', label: '风险隐患',leaf: true },
2025-05-19 17:22:53 +08:00
])
2025-05-20 17:00:56 +08:00
// 每个列表对应的值
2025-09-15 15:48:56 +08:00
const list = reactive([
2025-09-15 14:58:42 +08:00
{
title:'网络舆情', //标题
2025-09-15 15:01:40 +08:00
tableList:[],
2025-09-15 14:58:42 +08:00
keyCount:0,
pageConfiger:{
page:1,
total:0,
2025-09-15 16:11:38 +08:00
pageSize:6,
2025-09-15 14:58:42 +08:00
},
tableColumn:[
{ label: "舆情标题", prop: "yqbt",showOverflowTooltip: true},
{ label: "舆情内容", prop: "yqnr",showOverflowTooltip: true},
{ label: "舆情来源", prop: "yqly",showOverflowTooltip: true},
{ label: "舆情时间", prop: "yqsj",showOverflowTooltip: true},
],
},
{
title:'警情', //标题
tableList:[],
keyCount:1,
pageConfiger:{
page:1,
total:0,
2025-09-15 16:11:38 +08:00
pageSize:6,
2025-09-15 14:58:42 +08:00
},
tableColumn:[
{ label: "接警单编号", prop: "jjdbh",showOverflowTooltip: true},
{ label: "报警电话", prop: "bjdh",showOverflowTooltip: true},
{ label: "报警时间", prop: "bjsj",showOverflowTooltip: true},
{ label: "报警内容", prop: "bjnr",showOverflowTooltip: true},
2025-09-15 15:48:56 +08:00
{ label: "警情类型", prop: "jqlbdm",showSolt:true,showOverflowTooltip: true},
2025-09-15 14:58:42 +08:00
],
},
{
title:'案件', //标题
tableList:[],
keyCount:2,
pageConfiger:{
page:1,
total:0,
2025-09-15 16:11:38 +08:00
pageSize:6,
2025-09-15 14:58:42 +08:00
},
tableColumn:[
{ label: "案件编号", prop: "ajbh",showOverflowTooltip: true},
{ label: "案件内容", prop: "ajnr",showOverflowTooltip: true},
{ label: "案件类型", prop: "ajlx",showOverflowTooltip: true},
{ label: "案件时间", prop: "ajsj",showOverflowTooltip: true},
],
},
{
title:'风险隐患', //标题
tableList:[],
keyCount:3,
pageConfiger:{
page:1,
total:0,
2025-09-15 16:11:38 +08:00
pageSize:6,
2025-09-15 14:58:42 +08:00
},
tableColumn:[
{ label: "隐患标题", prop: "yhbt",showOverflowTooltip: true},
{ label: "隐患内容", prop: "yhnr",showOverflowTooltip: true},
{ label: "隐患类型", prop: "yhlx",showOverflowTooltip: true},
{ label: "上报时间", prop: "sbsj",showOverflowTooltip: true},
],
},
])
2025-07-22 17:20:57 +08:00
const searchForm = ref({}) //赛选
2025-05-20 17:00:56 +08:00
// 列表公用
2025-05-19 17:22:53 +08:00
const pageData = reactive({
keyCount: 0,
tableConfiger: {
rowHieght: 61,
showSelectType: "null",
loading: false,
showIndex:false,
rowHeight: 30,
},
2025-07-08 10:26:48 +08:00
controlsWidth: 120, //操作栏宽度
2025-05-19 17:22:53 +08:00
});
2025-09-15 14:58:42 +08:00
2025-05-19 17:22:53 +08:00
onMounted(() => {
2025-09-15 14:58:42 +08:00
// getCount(); //获取统计数据
2025-09-15 16:11:38 +08:00
tabHeightFn()
2025-09-15 15:48:56 +08:00
getJqList() //警情列表
2025-05-19 17:22:53 +08:00
});
2025-05-19 15:50:38 +08:00
2025-07-07 17:36:07 +08:00
const getCount = () => {
// 获取处置状态统计
qcckPost({}, '/mosty-gsxt/qbcj/getXscjTjByXslx').then(res => {
let arr = res || [];
obj.data_lxtj.xData = arr.map(v => v.zdmc);
obj.data_lxtj.list = [{ label: '总数', val: arr.map(v => v.count) }];
});
// 会商统计
qcckPost({}, '/mosty-gsxt/wshs/getWshyZttj').then(res => {
let arr = res || [];
obj.data_hstj.xData = arr.map(v => v.zdmc);
obj.data_hstj.list = [{ label: '总数', val: arr.map(v => v.count) }];
});
};
2025-09-15 15:48:56 +08:00
// 分页
const changeNo = (e,type) =>{
switch(type){
case '网络舆情':
list[0].pageConfiger.page = e;
break;
case '警情':
list[1].pageConfiger.page = e;
getJqList()
break;
case '案件':
list[2].pageConfiger.page = e;
break;
case '风险隐患':
list[3].pageConfiger.page = e;
break;
}
getJqList()
}
const changeSize = (e,type) =>{
switch(type){
case '网络舆情':
list[0].pageConfiger.pageSize = e;
break;
case '警情':
list[1].pageConfiger.pageSize = e;
getJqList()
break;
case '案件':
list[2].pageConfiger.pageSize = e;
break;
case '风险隐患':
list[3].pageConfiger.pageSize = e;
break;
}
}
2025-09-15 16:11:38 +08:00
// 警情列表
2025-09-15 15:48:56 +08:00
const getJqList = () =>{
let params = {
pageCurrent: list[1].pageConfiger.page,
pageSize: list[1].pageConfiger.pageSize,
}
lzJcjPjdbSelectPage(params).then(res=>{
list[1].tableList = res.records || [];
list[1].pageConfiger.total = res.total;
2025-09-15 16:16:02 +08:00
//模拟的统计警情接口
obj.data_lxtj.list = [{ label: '总数', val: [0,0,res.total,0] }];
obj.data_hstj.list = [{ label: '总数', val: [0,0,res.total,0] }];
2025-09-15 15:48:56 +08:00
})
}
2025-07-07 17:36:07 +08:00
2025-07-24 14:40:46 +08:00
const handleHs = (val) =>{
router.push({path:'/MeetingRoom',query:{tsypid:val.id}})
}
2025-07-22 17:20:57 +08:00
const handleYP = () =>{
let params = {
hskssj:searchForm.value.kssj,
hsjssj:searchForm.value.jssj,
}
qcckPost(params,'/mosty-gsxt/wshs/getDcypbg').then(res=>{
let data = res || {};
let html = `<p class="html_bt">${data.bt}</p>`
2025-07-22 18:00:05 +08:00
html+=`<p>${data.head}</p>`
2025-07-22 17:20:57 +08:00
html+=`<p>${data.nr}</p>`
html+=`<p>${data.bc}</p>`
2025-07-22 18:00:05 +08:00
html+=`<p>${data.end}</p>`
2025-07-22 17:20:57 +08:00
textContent.value = html;
showModel.value = true;
})
}
2025-09-15 14:58:42 +08:00
// 选择类型
const changeCascader = (val) =>{
readonly_lx.value = false;
readonly_ry.value = val ? true : false
readonly_dd.value = val ? true : false
searchList.value.ry = ''
searchList.value.ssbm = ''
}
// 选择人员
const changeRy = (val) =>{
readonly_ry.value = false;
readonly_lx.value = val ? true : false
readonly_dd.value = val ? true : false
searchList.value.lx = ''
searchList.value.ssbm = ''
}
// 选择地点
const changeBm = (val) =>{
readonly_dd.value = false;
readonly_lx.value = val ? true : false
readonly_ry.value = val ? true : false
searchList.value.lx = ''
searchList.value.ry = ''
}
// 重置
const resetForm = () =>{
searchForm.value = {}
readonly_lx.value = false
readonly_ry.value = false
readonly_dd.value = false
}
// 搜索
const onSearch = () =>{
if(searchList.value.lx || searchList.value.ry || searchList.value.ssbm){
detaileRef.value.init(searchList.value)
}else{
ElMessage.warning('请选择查询条件')
}
}
2025-07-22 17:20:57 +08:00
2025-09-15 14:58:42 +08:00
// 表格高度计算
const tabHeightFn = () => {
pageData.boxHeight = window.innerHeight - searchBox.value.offsetHeight - 250
nextTick(() => {
2025-09-15 16:11:38 +08:00
pageData.tableHeight = listBoxRef.value[0].offsetHeight - 70;
2025-09-15 14:58:42 +08:00
});
window.onresize = function () {
2025-07-07 17:36:07 +08:00
tabHeightFn();
2025-09-15 14:58:42 +08:00
};
};
2025-07-07 17:36:07 +08:00
2025-05-19 17:22:53 +08:00
</script>
<style lang="scss" scoped>
2025-05-19 15:50:38 +08:00
.yphome{
width: 100%;
height: 100%;
padding-top: 15px;
box-sizing: border-box;
color: #000;
.leftbox{
width:500px;
height: 100%;
margin-right: 10px;
background: #fff;
}
.rightbox{
flex: 1 0 0;
background: #fff;
}
}
@mixin common($width: 16px,$opacity:1){
height: $width;
width: $width;
border-radius: 50%;
background: #0386FB;
opacity: $opacity;
}
// 共同
.title{
display: flex;
align-items: center;
justify-content: center;
height: 60px;
font-size: 24px;
2025-05-19 17:22:53 +08:00
position: relative;
2025-05-19 15:50:38 +08:00
.sircle{
display: inline-block;
}
.sircleL1{
@include common(8px,0.5);
}
.sircleL2{
@include common(12px,0.75);
}
.sircleL3{
@include common(16px);
}
.sircleR1{
@include common(16px);
}
.sircleR2{
@include common(12px,0.75);
}
.sircleR3{
@include common(8px,0.5);
}
2025-05-19 17:22:53 +08:00
.btn{
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
}
2025-05-19 15:50:38 +08:00
}
.commCnt{
height: calc(100% - 60px);
overflow: hidden;
overflow-y: auto;
padding: 10px 20px;
box-sizing: border-box;
.comm-title{
position: relative;
font-size: 20px;
&::before{
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 78px;
height: 4px;
background: linear-gradient( 90deg, #3596F9 0%, rgba(53,150,249,0) 100%);
border-radius: 4px 4px 4px 4px;
}
}
2025-08-29 19:32:41 +08:00
2025-05-19 15:50:38 +08:00
.echartsBox{
height: calc(100% - 30px);
margin-top: 4px;
}
2025-08-29 19:32:41 +08:00
2025-05-19 15:50:38 +08:00
}
2025-05-19 17:22:53 +08:00
.listBox{
2025-09-15 16:11:38 +08:00
height: calc(100% - 110px);
2025-05-19 17:22:53 +08:00
margin-top: 4px;
border-radius: 10px;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
2025-05-19 17:51:16 +08:00
overflow: hidden;
2025-05-19 17:22:53 +08:00
.list-item{
width: 49.5%;
2025-05-19 17:51:16 +08:00
height: calc(100% / 2 - 5px);
2025-05-19 17:22:53 +08:00
box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.02);
border-radius: 8px 8px 8px 8px;
border: 1px solid #E8EDF6;
2025-05-19 17:39:23 +08:00
padding: 4px 4px;
2025-05-19 17:22:53 +08:00
box-sizing: border-box;
2025-05-19 17:57:12 +08:00
margin-bottom: 5px;
2025-05-19 17:22:53 +08:00
.title-s{
2025-05-19 17:57:12 +08:00
font-size: 16px;
2025-05-19 17:22:53 +08:00
}
.list-table{
margin-top: 5px;
2025-09-15 14:58:42 +08:00
overflow: hidden;
2025-05-19 17:22:53 +08:00
}
}
.list-item:nth-child(2n+1){
margin-right: 1%;
}
}
::v-deep .searchBox{
margin-bottom:0 !important;
padding: 2px !important;
}
::v-deep .el-table .table_blue_row {
background: #fff !important;
}
::v-deep .el-table th.el-table__cell{
font-size: 13px;
background: #EFF5F7;
}
::v-deep .el-table__empty-block{
width: 100%!important;
}
::v-deep .el-scrollbar__view{
border-right: none;
}
::v-deep .el-table .el-table__cell{
padding: 0;
}
::v-deep .el-table th.el-table__cell>.cell{
2025-05-19 17:57:12 +08:00
padding: 8px 0;
2025-05-19 17:22:53 +08:00
}
2025-05-20 16:10:59 +08:00
::v-deep .el-link {
margin: 3px;
}
2025-07-22 17:20:57 +08:00
.html_bt >>>p{
color: red;
}
2025-05-20 16:10:59 +08:00
2025-09-15 14:58:42 +08:00
::v-deep .el-date-editor .el-range-separator {
color: #333;
}
2025-08-29 19:32:41 +08:00
2025-05-19 17:22:53 +08:00
</style>
2025-09-15 16:11:38 +08:00