This commit is contained in:
13684185576
2025-09-22 15:38:33 +08:00
parent b1e9518952
commit 2f82dcfccf
2 changed files with 205 additions and 183 deletions

View File

@ -35,30 +35,27 @@
<div ref="searchBox"> <div ref="searchBox">
<el-form :model="searchList" ref="searchFormRef" :inline="true"> <el-form :model="searchList" ref="searchFormRef" :inline="true">
<el-form-item label="类型"> <el-form-item label="类型">
<el-cascader @change="changeCascader" :disabled="readonly_lx" v-model="searchList.lx" clearable :options="cascaderList" :props="{ checkStrictly: true }" placeholder="请选择类型"/> <el-cascader ref="cascaRef" @change="changeCascader" :disabled="readonly_lx" v-model="searchList.lx" clearable
:options="cascaderList" :props="{ checkStrictly: true,multiple: true }" placeholder="请选择类型" />
</el-form-item> </el-form-item>
<el-form-item label="人员"> <el-form-item label="人员">
<el-input @change="changeRy" v-model="searchList.ry" :disabled="readonly_ry" clearable placeholder="请输入姓名或身份证"></el-input> <el-input @change="changeRy" v-model="searchList.ry" :disabled="readonly_ry" clearable
placeholder="请输入姓名或身份证"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="地点"> <el-form-item label="地点">
<div class="flex align-center"> <div class="flex align-center">
<el-select v-model="searchList.dd" @change="changeBm" style="width: 180px;" :disabled="readonly_dd" placeholder="行政区划"> <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="1"></el-option>
<el-option label="部门" value="2"></el-option> <el-option label="部门" value="2"></el-option>
</el-select> </el-select>
<el-input @change="changeRy" :disabled="readonly_dd" v-model="searchList.xxdz" clearable placeholder="请输入详细地址"></el-input> <el-input @change="changeRy" :disabled="readonly_dd" v-model="searchList.xxdz" clearable
placeholder="请输入详细地址"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="时间"> <el-form-item label="时间">
<el-date-picker <el-date-picker v-model="searchList.datetimes" type="datetimerange" unlink-panels :range-separator="'至'"
v-model="searchList.datetimes" start-placeholder="开始日期时间" end-placeholder="结束日期时间" value-format="YYYY-MM-DD HH:mm:ss" />
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-form-item> <el-form-item>
<el-button type="primary" @click="onSearch">查询</el-button> <el-button type="primary" @click="onSearch">查询</el-button>
@ -70,16 +67,9 @@
<li class="list-item" ref="listBoxRef" v-for="(it, idx) in list" :key="idx"> <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="comm-title title-s">{{ it.title }}</div>
<div class="list-table"> <div class="list-table">
<MyTable <MyTable :tableData="it.tableList" :tableColumn="it.tableColumn" :key="idx + '' + it.keyCount" :fixed="false"
:tableData="it.tableList" :tableHeight="pageData.tableHeight" :tabelModel="it.title" :tableConfiger="pageData.tableConfiger"
:tableColumn="it.tableColumn" :controlsWidth="pageData.controlsWidth">
:key="idx+''+it.keyCount"
:fixed="false"
:tableHeight="pageData.tableHeight"
:tabelModel="it.title"
:tableConfiger="pageData.tableConfiger"
:controlsWidth="pageData.controlsWidth"
>
<template #jqlbdm="{ row }"> <template #jqlbdm="{ row }">
<DictTag :tag="false" :value="row.jqlbdm" :options="JQLB" /> <DictTag :tag="false" :value="row.jqlbdm" :options="JQLB" />
</template> </template>
@ -87,12 +77,8 @@
<el-link type="primary" size="small" @click="handleHs(row)">网上会商</el-link> <el-link type="primary" size="small" @click="handleHs(row)">网上会商</el-link>
</template> </template>
</MyTable> </MyTable>
<Pages <Pages @changeNo="changeNo($event, it.title)" @changeSize="changeSize($event, it.title)"
@changeNo="changeNo($event,it.title)" :tableHeight="pageData.tableHeight" :pageConfiger="{ ...it.pageConfiger }"></Pages>
@changeSize="changeSize($event,it.title)"
:tableHeight="pageData.tableHeight"
:pageConfiger="{ ...it.pageConfiger }"
></Pages>
</div> </div>
</li> </li>
</ul> </ul>
@ -122,7 +108,7 @@ const { JQLB} = proxy.$dict("JQLB"); //获取字典数据
const readonly_lx = ref(false) const readonly_lx = ref(false)
const readonly_ry = ref(false) const readonly_ry = ref(false)
const readonly_dd = ref(false) const readonly_dd = ref(false)
const cascaRef=ref()
const showModel = ref(false); const showModel = ref(false);
const detaileRef = ref(); const detaileRef = ref();
const searchBox = ref(); const searchBox = ref();
@ -150,11 +136,13 @@ const obj = reactive({
const searchList = ref({}) const searchList = ref({})
let cascaderList = ref([ let cascaderList = ref([
{ value: '01', label: '网络舆情', leaf: true }, { value: '01', label: '网络舆情', leaf: true },
{ value: '02', label: '警情',children:[ {
value: '02', label: '警情', children: [
{ value: '021', label: '治安警情', leaf: true }, { value: '021', label: '治安警情', leaf: true },
{ value: '022', label: '刑事警情', leaf: true }, { value: '022', label: '刑事警情', leaf: true },
{ value: '023', label: '交通警情', leaf: true }, { value: '023', label: '交通警情', leaf: true },
] }, ]
},
{ value: '03', label: '案件', leaf: true }, { value: '03', label: '案件', leaf: true },
{ value: '04', label: '风险隐患', leaf: true }, { value: '04', label: '风险隐患', leaf: true },
]) ])
@ -240,7 +228,16 @@ const pageData = reactive({
}, },
controlsWidth: 120, //操作栏宽度 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(() => { onMounted(() => {
// getCount(); //获取统计数据 // getCount(); //获取统计数据
tabHeightFn() tabHeightFn()
@ -324,11 +321,16 @@ const handleHs = (val) =>{
} }
const handleYP = () => { const handleYP = () => {
let arr=cascaRef.value.getCheckedNodes()
searchForm.value.jqlbdms=arr.map((el)=>{
return el.value
})
let params = { let params = {
hskssj: searchForm.value.kssj, hskssj: searchForm.value.kssj,
hsjssj: searchForm.value.jssj, 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 data = res || {};
let html = `<p class="html_bt">${data.bt}</p>` let html = `<p class="html_bt">${data.bt}</p>`
html += `<p>${data.head}</p>` html += `<p>${data.head}</p>`
@ -342,6 +344,9 @@ const handleYP = () =>{
// 选择类型 // 选择类型
const changeCascader = (val) => { const changeCascader = (val) => {
console.log(val,'val');
console.log(cascaRef.value.getCheckedNodes(),'++++++++');
readonly_lx.value = false; readonly_lx.value = false;
readonly_ry.value = val ? true : false readonly_ry.value = val ? true : false
readonly_dd.value = val ? true : false readonly_dd.value = val ? true : false
@ -403,12 +408,14 @@ const tabHeightFn = () => {
padding-top: 15px; padding-top: 15px;
box-sizing: border-box; box-sizing: border-box;
color: #000; color: #000;
.leftbox { .leftbox {
width: 500px; width: 500px;
height: 100%; height: 100%;
margin-right: 10px; margin-right: 10px;
background: #fff; background: #fff;
} }
.rightbox { .rightbox {
flex: 1 0 0; flex: 1 0 0;
background: #fff; background: #fff;
@ -431,27 +438,35 @@ const tabHeightFn = () => {
height: 60px; height: 60px;
font-size: 24px; font-size: 24px;
position: relative; position: relative;
.sircle { .sircle {
display: inline-block; display: inline-block;
} }
.sircleL1 { .sircleL1 {
@include common(8px, 0.5); @include common(8px, 0.5);
} }
.sircleL2 { .sircleL2 {
@include common(12px, 0.75); @include common(12px, 0.75);
} }
.sircleL3 { .sircleL3 {
@include common(16px); @include common(16px);
} }
.sircleR1 { .sircleR1 {
@include common(16px); @include common(16px);
} }
.sircleR2 { .sircleR2 {
@include common(12px, 0.75); @include common(12px, 0.75);
} }
.sircleR3 { .sircleR3 {
@include common(8px, 0.5); @include common(8px, 0.5);
} }
.btn { .btn {
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -466,9 +481,11 @@ const tabHeightFn = () => {
overflow-y: auto; overflow-y: auto;
padding: 10px 20px; padding: 10px 20px;
box-sizing: border-box; box-sizing: border-box;
.comm-title { .comm-title {
position: relative; position: relative;
font-size: 20px; font-size: 20px;
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
@ -496,6 +513,7 @@ const tabHeightFn = () => {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
overflow: hidden; overflow: hidden;
.list-item { .list-item {
width: 49.5%; width: 49.5%;
height: calc(100% / 2 - 5px); height: calc(100% / 2 - 5px);
@ -505,18 +523,22 @@ const tabHeightFn = () => {
padding: 4px 4px; padding: 4px 4px;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 5px; margin-bottom: 5px;
.title-s { .title-s {
font-size: 16px; font-size: 16px;
} }
.list-table { .list-table {
margin-top: 5px; margin-top: 5px;
overflow: hidden; overflow: hidden;
} }
} }
.list-item:nth-child(2n+1) { .list-item:nth-child(2n+1) {
margin-right: 1%; margin-right: 1%;
} }
} }
::v-deep .searchBox { ::v-deep .searchBox {
margin-bottom: 0 !important; margin-bottom: 0 !important;
padding: 2px !important; padding: 2px !important;
@ -525,6 +547,7 @@ const tabHeightFn = () => {
::v-deep .el-table .table_blue_row { ::v-deep .el-table .table_blue_row {
background: #fff !important; background: #fff !important;
} }
::v-deep .el-table th.el-table__cell { ::v-deep .el-table th.el-table__cell {
font-size: 13px; font-size: 13px;
background: #EFF5F7; background: #EFF5F7;
@ -549,6 +572,7 @@ const tabHeightFn = () => {
::v-deep .el-link { ::v-deep .el-link {
margin: 3px; margin: 3px;
} }
.html_bt>>>p { .html_bt>>>p {
color: red; color: red;
} }
@ -556,6 +580,4 @@ const tabHeightFn = () => {
::v-deep .el-date-editor .el-range-separator { ::v-deep .el-date-editor .el-range-separator {
color: #333; color: #333;
} }
</style> </style>

View File

@ -5,9 +5,9 @@ function resolve(dir) {
} }
// const serverHost = "http://47.108.232.77:9537"//波哥 // const serverHost = "http://47.108.232.77:9537"//波哥
const serverHost = "http://192.168.0.231:8006"//线上 // const serverHost = "http://192.168.0.231:8006"//线上
// const serverHost = "http://192.168.1.117:8006"//周 // const serverHost = "http://192.168.1.117:8006"//周
// const serverHost = "http://192.168.1.98:8006"//毛毛 const serverHost = "http://192.168.1.98:8006"//毛毛
module.exports = { module.exports = {
// configureWebpack: { // configureWebpack: {