This commit is contained in:
lcw
2025-12-27 11:10:31 +08:00
parent 596c9f99e4
commit 3fb06e3847
34 changed files with 1747 additions and 429 deletions

View File

@ -216,8 +216,6 @@ const gettingData = () => {
const getAllFestivals = (date,boolean=false) => {
console.log(date);
const time = new Date(date)
const solar = Solar.fromDate(time)
const lunar = solar.getLunar()

View File

@ -1,9 +1,10 @@
<template>
<div class="comom-title">
<span class="title">线索研判盯办统计</span>
<el-popover placement="right" :width="430" :visible="visible">
<el-popover placement="right" :width="430" :visible="visible">
<template #reference>
<div class="title" style="position: relative;z-index: 10000;height: 40px;width: 40px;" @click="visible = true"></div>
<div class="title" style="position: relative;z-index: 10000;height: 40px;width: 40px;" @click="visible = true">
</div>
</template>
<div>
<div class="qbltData">
@ -15,23 +16,27 @@
</el-popover>
</div>
<ul class="comom-cnt xsBox flex flex-warp just-between align-center">
<li class="xs-item" v-for="(item, idx) in contentItem" :key="idx">
<li class="xs-item" v-for="(item, idx) in contentItem" :key="idx" @click="openTc(item.type)">
{{ item.label }}:{{ item.value }}
</li>
</ul>
<TotalNumberClues v-model="openShow.xfzs" :title="title"/>
<TotalNumberDistributions v-model="openShow.xszs" />
</template>
<script setup>
import { ref, onMounted } from 'vue';
import { ref, onMounted, reactive } from 'vue';
import TimeData from '@/views/home/model/mesgSwitch/timeData.vue'
import TotalNumberClues from '@/views/home/components/totalNumberClues.vue'
import TotalNumberDistributions from '@/views/home/components/totalNumberDistributions.vue'
import { qbcjDpxsCount } from "@/api/model.js"
const contentItem = ref([
{ label: '线索总数', value: '0' },
{ label: '下发总数', value: '0' },
{ label: '已处置总数', value: '0' },
{ label: '反馈总数', value: '0' },
{ label: '未反馈总数', value: '0' },
{ label: '未处置总数', value: '0' },
{ label: '线索总数', value: '0', type: 'xszs' },
{ label: '下发总数', value: '0', type: 'xfzs' },
{ label: '已处置总数', value: '0', type: 'yczzs' },
{ label: '反馈总数', value: '0', type: 'fkzs' },
{ label: '未反馈总数', value: '0', type: 'wfks' },
{ label: '未处置总数', value: '0', type: 'wczzs' },
])
const visible = ref(false)
const changeTime = (val) => {
@ -40,22 +45,66 @@ const changeTime = (val) => {
}
getCount()
}
const title = ref('下发总数')
onMounted(() => {
qbcjDpxsCount({}, '/mosty-gsxt/tbXs/getXsCount').then(res => {
res = res || {}
// 根据API返回的数据更新contentItem
contentItem.value = [
{ label: '线索总数', value: res.xszs || 0 },
{ label: '下发总数', value: res.xfzs || 0 },
{ label: '已处置总数', value: res.yczzs || 0 },
{ label: '反馈总数', value: res.fkzs || 0 },
{ label: '未反馈总数', value: res.wfkzs || 0 },
{ label: '未处置总数', value: res.wczzs || 0 },
{ label: '线索总数', value: res.xszs || 0, type: 'xszs' },
{ label: '下发总数', value: res.xfzs || 0, type: 'xfzs' },
{ label: '已处置总数', value: res.yczzs || 0, type: 'yczzs' },
{ label: '反馈总数', value: res.fkzs || 0, type: 'fkzs' },
{ label: '未反馈总数', value: res.wfkzs || 0, type: 'wfks' },
{ label: '未处置总数', value: res.wczzs || 0, type: 'wczzs' },
]
})
})
const openShow=reactive({
xszs: false,
xfzs: false,
yczzs: false,
fkzs: false,
wfks: false,
wczzs: false,
})
const openTc = (val) => {
console.log(val);
switch (val) {
case 'xszs':
openShow.xszs = true
break;
case 'xfzs':
openShow.xfzs = true
title.value = '下发总数'
break;
case 'yjzs': break;
case 'yczzs': break;
case 'fkzs': break;
case 'wfks':
openShow.xfzs = true
title.value = '未反馈数'
break;
case 'wczzs': break;
}
}
// // 线索总数
// const xsCount = () => {
// xxcjQbcjSelectPage({}).then(res => {
// console.log(res);
// })
// }
// // 下发总数
// const xfxsCount = () => {
// xxcjXfxsSelectPage({}).then(res => {
// console.log(res);
// })
// }
const close = () => {
visible.value = false
}
@ -68,8 +117,10 @@ const close = () => {
.xsBox {
background: url("~@/assets/images/bg_12.png") no-repeat center center;
background-size: 100% 100%;
position: relative;
z-index: 299;
.xs-item {
cursor: pointer;
width: 31%;
height: 36px;
line-height: 36px;
@ -78,6 +129,7 @@ const close = () => {
background-size: 100% 100%;
}
}
.qbltData {
width: 100%;
display: flex;

View File

@ -1,7 +1,7 @@
<template>
<div class="comom-title" @click="chooseForumPost">
<!-- <span class="title">情报论坛</span> -->
<div class="title">情报论坛<span class="switchover" @click.stop="reversalPush">切换</span></div>
<div class="title" style="width: 100%;">情报论坛<span class="switchover" @click.stop="reversalPush">切换</span></div>
</div>
<div class="comom-cnt" >
<div class="zdryBox">
@ -213,7 +213,8 @@ onBeforeUnmount(() => {
.switchover{
cursor: pointer;
font-size: 14px;
margin-left: 20px;
margin-left: 20%;
color: rgb(255, 146, 4);
}
</style>

View File

@ -1,7 +1,7 @@
<template>
<div class="comom-title">
<div class="title">重点人员类型<span class="switchover" @click.stop="reversalPush">切换</span></div>
<div class="title titleFz" style="" @click="visible = true">
<div class="title" style="width: 70%;">重点人员类型<span class="switchover" @click.stop="reversalPush">切换</span></div>
<div class="title titleFz" @click="visible = true">
查看列表
</div>
</div>
@ -65,5 +65,6 @@ tbGsxtZdryzdryBqtjFn()
font-size: 14px;
margin-left: 20px;
color: rgb(255, 146, 4);
margin-left: 23%;
}
</style>

View File

@ -37,6 +37,7 @@ import MyTable from "@/components/aboutTable/MyTable.vue";
import Search from "@/components/aboutTable/Search.vue";
import Pages from "@/components/aboutTable/Pages.vue";
import { qbcjSelectPage } from "@/api/Intelligence.js";
import {xxcjSelectPage,xxcjXxzsx} from '@/api/xxcj.js'
import { ref, reactive, getCurrentInstance, watch } from "vue";
import { useRoute,useRouter } from 'vue-router'
const route = useRoute()
@ -68,9 +69,9 @@ const searchConfiger = ref([
options: D_BZ_QBSBLY
}, {
label: "上报时间",
prop: "lrkssj",
prop: "startTime",
placeholder: "请选择时间",
showType: "daterange"
showType: "datetimerange"
},
@ -86,7 +87,7 @@ const pageData = reactive({
tableConfiger: {
loading: false,
rowHieght: 40,
haveControls: true,
haveControls: false,
},
controlsWidth: 160, //操作栏宽度
total: 0,
@ -109,8 +110,8 @@ const pageData = reactive({
const parameter = ref()
const onSearch = (val) => {
const promes = {
lrkssj: val.lrkssj && val.lrkssj.length > 0 ? val.lrkssj[0] : '',
lrjssj: val.lrkssj && val.lrkssj.length > 0 ? val.lrkssj[1] : '',
startTime: val.startTime && val.startTime.length > 0 ? val.startTime[0] : '',
endTime: val.startTime && val.startTime.length > 0 ? val.startTime[1] : '',
}
parameter.value = { ...val, ...promes }
pageData.pageConfiger.pageCurrent = 1;
@ -123,8 +124,8 @@ watch(() => props.modelValue, (val) => {
})
const changePage = () => {
pageData.tableConfiger.loading = true;
let data = { ...pageData.pageConfiger, ...parameter.value };
qbcjSelectPage(data).then(res => {
let data = { ...pageData.pageConfiger, ...parameter.value,qbjb:'01' };
xxcjSelectPage(data).then(res => {
pageData.tableData = res.records || [];
pageData.total = res.total;
pageData.tableConfiger.loading = false;

View File

@ -1,6 +1,6 @@
<template>
<div class="comom-title">
<div class="title">岗位标兵<span class="switchover" @click="reversalPush">切换</span></div>
<div class="title" style="width: 100%;">岗位标兵<span class="switchover" @click="reversalPush">切换</span></div>
<el-popover :visible="visible" placement="right" :width="430">
<template #reference>
<div class="title" style="position: relative;z-index: 10000;height: 40px;width: 40px;" @click="visible = true">
@ -100,5 +100,6 @@ const close = () => {
font-size: 14px;
margin-left: 20px;
color: rgb(255, 146, 4);
margin-left: 25%;
}
</style>

View File

@ -1,6 +1,6 @@
<template>
<div class="comom-title">
<div class="title">信息来源类型统计<span class="switchover" @click="reversalPush">切换</span></div>
<div style=" width: 100%;" class="title">信息来源类型统计<span class="switchover" @click="reversalPush">切换</span></div>
<el-popover placement="right" :width="430" :visible="visible">
<template #reference>
<div class="title" style="position: relative;z-index: 10000;height: 40px;width: 40px;" @click="visible = true"></div>
@ -88,5 +88,7 @@ const close = () => {
font-size: 14px;
margin-left: 20px;
color: rgb(255, 146, 4);
width: 100%;
margin-left: 10%;
}
</style>

View File

@ -23,8 +23,8 @@ import keyPerson from "@/views/home/components/keyPerson.vue";
import keyGroups from "@/views/home/components/keyGroups.vue";
const contentItem = ref([
{ type:"jqzs", label: "警情总数", value: "0" ,icon:require('@/assets/images/top-1.png')},
{ type:"yjzs", label: "预警总数", value: "0",icon:require('@/assets/images/top-2.png') },
{ type:"jqzs", label: "今日警情", value: "0" ,icon:require('@/assets/images/top-1.png')},
{ type:"yjzs", label: "今日预警", value: "0",icon:require('@/assets/images/top-2.png') },
{ type:"zdry", label: "重点人员总数", value: "0",icon:require('@/assets/images/top-3.png') },
{ type:"zdqt", label: "重点群体总数", value: "0" ,icon:require('@/assets/images/top-4.png')},
]);