-
+
专题研判
-
+
研判报告
-
+
-
+
-
+
-
+
-
+
-
+
查询
@@ -66,40 +63,29 @@
-
-
+
@@ -116,13 +102,13 @@ import MyTable from "@/components/aboutTable/DarkTable.vue";
import Pages from "@/components/aboutTable/Pages.vue";
import { useRoute, useRouter } from 'vue-router';
const router = useRouter();
-import { nextTick, onMounted, reactive,getCurrentInstance ,ref, watch } from 'vue';
+import { nextTick, onMounted, reactive, getCurrentInstance, ref, watch } from 'vue';
const { proxy } = getCurrentInstance();
-const { JQLB} = proxy.$dict("JQLB"); //获取字典数据
+const { JQLB } = proxy.$dict("JQLB"); //获取字典数据
const readonly_lx = ref(false)
const readonly_ry = ref(false)
const readonly_dd = ref(false)
-
+const cascaRef=ref()
const showModel = ref(false);
const detaileRef = ref();
const searchBox = ref();
@@ -130,99 +116,101 @@ const listBoxRef = ref();
const textContent = ref('');
// 图数据
const obj = reactive({
- data_lxtj:{
- xData:['网络舆情','警情','案件','风险隐患'],
- color:[['#0DBAC5','#28EEBF'],['#F06C0D','#EEB416']],
- labelColor:'#000',
- list:[
- {label:'总数',val:[0,0,0,0]},
+ data_lxtj: {
+ xData: ['网络舆情', '警情', '案件', '风险隐患'],
+ color: [['#0DBAC5', '#28EEBF'], ['#F06C0D', '#EEB416']],
+ labelColor: '#000',
+ list: [
+ { label: '总数', val: [0, 0, 0, 0] },
]
},
- data_hstj:{
- xData:['网络舆情','警情','案件','风险隐患'],
- color:['#0386FB','#00FFFF'],
- labelColor:'#000',
- list:[
- {label:'总数',val:[0,0,10,0]},
+ data_hstj: {
+ xData: ['网络舆情', '警情', '案件', '风险隐患'],
+ color: ['#0386FB', '#00FFFF'],
+ labelColor: '#000',
+ list: [
+ { label: '总数', val: [0, 0, 10, 0] },
]
}
})
const searchList = ref({})
let cascaderList = ref([
- { value: '01', label: '网络舆情',leaf: true },
- { 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 },
+ { value: '01', label: '网络舆情', leaf: true },
+ {
+ 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 },
])
// 每个列表对应的值
const list = reactive([
{
- title:'网络舆情', //标题
- tableList:[],
- keyCount:0,
- pageConfiger:{
- page:1,
- total:0,
- pageSize:6,
+ title: '网络舆情', //标题
+ tableList: [],
+ keyCount: 0,
+ pageConfiger: {
+ page: 1,
+ total: 0,
+ pageSize: 6,
},
- tableColumn:[
- { label: "舆情标题", prop: "yqbt",showOverflowTooltip: true},
- { label: "舆情内容", prop: "yqnr",showOverflowTooltip: true},
- { label: "舆情来源", prop: "yqly",showOverflowTooltip: true},
- { label: "舆情时间", prop: "yqsj",showOverflowTooltip: true},
+ 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,
- pageSize:6,
+ title: '警情', //标题
+ tableList: [],
+ keyCount: 1,
+ pageConfiger: {
+ page: 1,
+ total: 0,
+ pageSize: 6,
},
- tableColumn:[
- { label: "接警单编号", prop: "jjdbh",showOverflowTooltip: true},
- { label: "报警电话", prop: "bjdh",showOverflowTooltip: true},
- { label: "报警时间", prop: "bjsj",showOverflowTooltip: true},
- { label: "报警内容", prop: "bjnr",showOverflowTooltip: true},
- { label: "警情类型", prop: "jqlbdm",showSolt:true,showOverflowTooltip: true},
+ tableColumn: [
+ { label: "接警单编号", prop: "jjdbh", showOverflowTooltip: true },
+ { label: "报警电话", prop: "bjdh", showOverflowTooltip: true },
+ { label: "报警时间", prop: "bjsj", showOverflowTooltip: true },
+ { label: "报警内容", prop: "bjnr", showOverflowTooltip: true },
+ { label: "警情类型", prop: "jqlbdm", showSolt: true, showOverflowTooltip: true },
],
},
{
- title:'案件', //标题
- tableList:[],
- keyCount:2,
- pageConfiger:{
- page:1,
- total:0,
- pageSize:6,
+ title: '案件', //标题
+ tableList: [],
+ keyCount: 2,
+ pageConfiger: {
+ page: 1,
+ total: 0,
+ pageSize: 6,
},
- tableColumn:[
- { label: "案件编号", prop: "ajbh",showOverflowTooltip: true},
- { label: "案件内容", prop: "ajnr",showOverflowTooltip: true},
- { label: "案件类型", prop: "ajlx",showOverflowTooltip: true},
- { label: "案件时间", prop: "ajsj",showOverflowTooltip: true},
+ 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,
- pageSize:6,
+ title: '风险隐患', //标题
+ tableList: [],
+ keyCount: 3,
+ pageConfiger: {
+ page: 1,
+ total: 0,
+ pageSize: 6,
},
- tableColumn:[
- { label: "隐患标题", prop: "yhbt",showOverflowTooltip: true},
- { label: "隐患内容", prop: "yhnr",showOverflowTooltip: true},
- { label: "隐患类型", prop: "yhlx",showOverflowTooltip: true},
- { label: "上报时间", prop: "sbsj",showOverflowTooltip: true},
+ tableColumn: [
+ { label: "隐患标题", prop: "yhbt", showOverflowTooltip: true },
+ { label: "隐患内容", prop: "yhnr", showOverflowTooltip: true },
+ { label: "隐患类型", prop: "yhlx", showOverflowTooltip: true },
+ { label: "上报时间", prop: "sbsj", showOverflowTooltip: true },
],
},
])
@@ -235,12 +223,21 @@ const pageData = reactive({
rowHieght: 61,
showSelectType: "null",
loading: false,
- showIndex:false,
+ showIndex: false,
rowHeight: 30,
},
controlsWidth: 120, //操作栏宽度
});
-
+watch(() => JQLB.value, (val) => {
+ if (val) {
+ cascaderList.value[1].children = val.map((el) => {
+ return { value: el.dm, label: el.zdmc, leaf: true }
+ })
+ }
+},
+ {
+ deep: true, immediate: true
+ })
onMounted(() => {
// getCount(); //获取统计数据
tabHeightFn()
@@ -263,8 +260,8 @@ const getCount = () => {
};
// 分页
-const changeNo = (e,type) =>{
- switch(type){
+const changeNo = (e, type) => {
+ switch (type) {
case '网络舆情':
list[0].pageConfiger.page = e;
break;
@@ -281,8 +278,8 @@ const changeNo = (e,type) =>{
}
getJqList()
}
-const changeSize = (e,type) =>{
- switch(type){
+const changeSize = (e, type) => {
+ switch (type) {
case '网络舆情':
list[0].pageConfiger.pageSize = e;
break;
@@ -301,47 +298,55 @@ const changeSize = (e,type) =>{
}
// 警情列表
-const getJqList = () =>{
+const getJqList = () => {
let params = {
pageCurrent: list[1].pageConfiger.page,
pageSize: list[1].pageConfiger.pageSize,
}
- lzJcjPjdbSelectPage(params).then(res=>{
+ lzJcjPjdbSelectPage(params).then(res => {
list[1].tableList = res.records || [];
list[1].pageConfiger.total = res.total;
//模拟的统计警情接口
- obj.data_lxtj.list = [{ label: '总数', val: [0,res.total,0,0] }];
- obj.data_hstj.list = [{ label: '总数', val: [0,res.total,0,0] }];
+ obj.data_lxtj.list = [{ label: '总数', val: [0, res.total, 0, 0] }];
+ obj.data_hstj.list = [{ label: '总数', val: [0, res.total, 0, 0] }];
})
}
-const handleHs = (val) =>{
- router.push({path:'/MeetingRoom',query:{tsypid:val.id}})
+const handleHs = (val) => {
+ router.push({ path: '/MeetingRoom', query: { tsypid: val.id } })
}
-const handleYP = () =>{
+const handleYP = () => {
+ let arr=cascaRef.value.getCheckedNodes()
+ searchForm.value.jqlbdms=arr.map((el)=>{
+ return el.value
+ })
let params = {
- hskssj:searchForm.value.kssj,
- hsjssj:searchForm.value.jssj,
+ hskssj: searchForm.value.kssj,
+ hsjssj: searchForm.value.jssj,
+ jqlbdms:searchForm.value.jqlbdms
}
- qcckPost(params,'/mosty-gsxt/wshs/getDcypbg').then(res=>{
+ qcckPost(params, '/mosty-gsxt/lzJcjPjdb/getJqDcypbg').then(res => {
let data = res || {};
let html = `
${data.bt}
`
- html+=`
${data.head}
`
- html+=`
${data.nr}
`
- html+=`
${data.bc}
`
- html+=`
${data.end}
`
+ html += `
${data.head}
`
+ html += `
${data.nr}
`
+ html += `
${data.bc}
`
+ html += `
${data.end}
`
textContent.value = html;
showModel.value = true;
})
}
// 选择类型
-const changeCascader = (val) =>{
+const changeCascader = (val) => {
+ console.log(val,'val');
+ console.log(cascaRef.value.getCheckedNodes(),'++++++++');
+
readonly_lx.value = false;
readonly_ry.value = val ? true : false
readonly_dd.value = val ? true : false
@@ -350,7 +355,7 @@ const changeCascader = (val) =>{
}
// 选择人员
-const changeRy = (val) =>{
+const changeRy = (val) => {
readonly_ry.value = false;
readonly_lx.value = val ? true : false
readonly_dd.value = val ? true : false
@@ -358,7 +363,7 @@ const changeRy = (val) =>{
searchList.value.ssbm = ''
}
// 选择地点
-const changeBm = (val) =>{
+const changeBm = (val) => {
readonly_dd.value = false;
readonly_lx.value = val ? true : false
readonly_ry.value = val ? true : false
@@ -366,7 +371,7 @@ const changeBm = (val) =>{
searchList.value.ry = ''
}
// 重置
-const resetForm = () =>{
+const resetForm = () => {
searchForm.value = {}
readonly_lx.value = false
readonly_ry.value = false
@@ -374,10 +379,10 @@ const resetForm = () =>{
}
// 搜索
-const onSearch = () =>{
- if(searchList.value.lx || searchList.value.ry || searchList.value.dd){
+const onSearch = () => {
+ if (searchList.value.lx || searchList.value.ry || searchList.value.dd) {
detaileRef.value.init(searchList.value)
- }else{
+ } else {
ElMessage.warning('请选择查询条件')
}
}
@@ -397,25 +402,27 @@ const tabHeightFn = () => {
-
diff --git a/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/components/detail.vue b/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/components/detail.vue
index 5e5e3ce..6e6f7b8 100644
--- a/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/components/detail.vue
+++ b/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/components/detail.vue
@@ -1,5 +1,5 @@
-
+