2025-04-12 14:54:02 +08:00
|
|
|
|
<template>
|
2025-07-03 21:32:25 +08:00
|
|
|
|
<div>
|
|
|
|
|
<div class="titleBox">
|
|
|
|
|
<PageTitle title="预警列表"></PageTitle>
|
2025-04-12 14:54:02 +08:00
|
|
|
|
</div>
|
2025-07-03 21:32:25 +08:00
|
|
|
|
<!-- 搜索 -->
|
|
|
|
|
<div ref="searchBox">
|
|
|
|
|
<Search :searchArr="searchConfiger" @submit="onSearch" />
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 表格 -->
|
|
|
|
|
<div class="tabBox">
|
|
|
|
|
<MyTable
|
|
|
|
|
:tableData="pageData.tableData"
|
|
|
|
|
:tableColumn="pageData.tableColumn"
|
|
|
|
|
:tableHeight="pageData.tableHeight"
|
|
|
|
|
:key="pageData.keyCount"
|
|
|
|
|
:tableConfiger="pageData.tableConfiger"
|
|
|
|
|
:controlsWidth="pageData.controlsWidth"
|
|
|
|
|
>
|
2025-07-16 11:54:27 +08:00
|
|
|
|
<template #ryXm="{ row }">
|
|
|
|
|
<div class="flex one_text_detail">姓名:{{ row.ryXm }} ;</div>
|
|
|
|
|
<div class="flex one_text_detail">电话:{{ row.rySjhm }} ;</div>
|
|
|
|
|
<div class="flex one_text_detail">身份证:{{ row.rySfzh }} </div>
|
|
|
|
|
</template>
|
|
|
|
|
<template #fxDj="{ row }">
|
|
|
|
|
<DictTag :tag="false" :value="row.fxDj" :options="D_GS_RQFJ_FXDJ"/>
|
|
|
|
|
</template>
|
|
|
|
|
<template #fxLb="{ row }">
|
|
|
|
|
<DictTag :tag="false" :value="row.fxLb" :options="D_GS_RQFJ_FXLB"/>
|
|
|
|
|
</template>
|
|
|
|
|
<template #bqList="{ row }">
|
|
|
|
|
<div v-if="row.bqList">
|
|
|
|
|
<el-tag v-for="(it,idx) in row.bqList" :key="idx">{{ it.bqMc }}、</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
2025-07-03 21:32:25 +08:00
|
|
|
|
<template #controls="{ row }">
|
2025-07-16 11:54:27 +08:00
|
|
|
|
<el-link type="primary" size="small" >详情</el-link >
|
2025-04-17 17:11:41 +08:00
|
|
|
|
</template>
|
2025-07-03 21:32:25 +08:00
|
|
|
|
</MyTable>
|
|
|
|
|
<Pages
|
|
|
|
|
@changeNo="changeNo"
|
|
|
|
|
@changeSize="changeSize"
|
|
|
|
|
:tableHeight="pageData.tableHeight"
|
|
|
|
|
:pageConfiger="{
|
|
|
|
|
...pageData.pageConfiger,
|
|
|
|
|
total: pageData.total
|
|
|
|
|
}"
|
|
|
|
|
></Pages>
|
2025-04-12 14:54:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2025-07-03 21:32:25 +08:00
|
|
|
|
import { ElMessage } from "element-plus";
|
2025-04-12 14:54:02 +08:00
|
|
|
|
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
|
|
|
|
import MyTable from "@/components/aboutTable/MyTable.vue";
|
|
|
|
|
import Pages from "@/components/aboutTable/Pages.vue";
|
|
|
|
|
import Search from "@/components/aboutTable/Search.vue";
|
|
|
|
|
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
|
|
|
|
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
|
2025-07-03 21:32:25 +08:00
|
|
|
|
const { proxy } = getCurrentInstance();
|
2025-07-16 11:54:27 +08:00
|
|
|
|
const {D_GS_ZDRFJ_SPZT,D_BZ_SF, D_GS_RQFJ_FXDJ, D_GS_RQFJ_FXLB } = proxy.$dict('D_GS_ZDRFJ_SPZT',"D_BZ_SF","D_GS_RQFJ_FXDJ","D_GS_RQFJ_FXLB"); //获取字典数据
|
2025-07-12 18:28:29 +08:00
|
|
|
|
const queryFrom = ref({})
|
2025-07-03 21:32:25 +08:00
|
|
|
|
const searchBox = ref(); //搜索框
|
|
|
|
|
|
2025-04-12 14:54:02 +08:00
|
|
|
|
const searchConfiger = ref([
|
2025-07-03 21:32:25 +08:00
|
|
|
|
{
|
|
|
|
|
label: "所属部门",
|
|
|
|
|
prop: "department",
|
|
|
|
|
placeholder: "请选择所属部门",
|
|
|
|
|
showType: "department"
|
|
|
|
|
},
|
2025-04-12 14:54:02 +08:00
|
|
|
|
]);
|
2025-07-03 21:32:25 +08:00
|
|
|
|
|
2025-04-12 14:54:02 +08:00
|
|
|
|
const pageData = reactive({
|
2025-07-03 21:32:25 +08:00
|
|
|
|
tableData: [
|
|
|
|
|
{image:'',yjnr:'xxxj街道抢劫xxx',hjdz:'sssss',jzdz:'22222'}
|
|
|
|
|
],
|
2025-04-12 14:54:02 +08:00
|
|
|
|
keyCount: 0,
|
|
|
|
|
tableConfiger: {
|
2025-04-17 17:11:41 +08:00
|
|
|
|
rowHieght: 61,
|
2025-07-03 21:32:25 +08:00
|
|
|
|
showSelectType: "null",
|
2025-04-17 17:11:41 +08:00
|
|
|
|
loading: false
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
2025-04-12 14:54:02 +08:00
|
|
|
|
pageConfiger: {
|
2025-04-17 17:11:41 +08:00
|
|
|
|
pageSize: 20,
|
|
|
|
|
pageCurrent: 1
|
2025-04-12 14:54:02 +08:00
|
|
|
|
},
|
2025-04-17 17:11:41 +08:00
|
|
|
|
controlsWidth: 120,
|
2025-04-12 14:54:02 +08:00
|
|
|
|
tableColumn: [
|
2025-07-16 11:54:27 +08:00
|
|
|
|
{ label: "姓名", prop: "ryXm",showOverflowTooltip:true ,showSolt: true},
|
|
|
|
|
{ label: "户籍地址", prop: "ryHjdz" ,showOverflowTooltip:true},
|
|
|
|
|
{ label: "护照号码", prop: "ryHzhm" ,showOverflowTooltip:true},
|
|
|
|
|
{ label: "现住地址", prop: "ryXzdz" ,showOverflowTooltip:true},
|
|
|
|
|
{ label: "附件照片", prop: "ryFjZp" ,showOverflowTooltip:true},
|
|
|
|
|
{ label: "管辖单位", prop: "gxDwDm" ,showOverflowTooltip:true},
|
|
|
|
|
{ label: "责任部门", prop: "ssbm",showOverflowTooltip:true},
|
|
|
|
|
{ label: "标签", prop: "bqList",showOverflowTooltip:true,showSolt: true},
|
|
|
|
|
{ label: "风险积分", prop: "fxjf",showOverflowTooltip:true},
|
|
|
|
|
{ label: "风险等级", prop: "fxDj",showOverflowTooltip:true, showSolt: true },
|
|
|
|
|
{ label: "风险类别", prop: "fxLb",showOverflowTooltip:true, showSolt: true },
|
|
|
|
|
{ label: "处置方式", prop: "czfs",showOverflowTooltip:true, showSolt: true },
|
2025-07-03 21:32:25 +08:00
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getList();
|
|
|
|
|
tabHeightFn();
|
|
|
|
|
});
|
2025-04-12 14:54:02 +08:00
|
|
|
|
|
2025-07-03 21:32:25 +08:00
|
|
|
|
// 搜索
|
|
|
|
|
const onSearch = (val) => {
|
|
|
|
|
queryFrom.value = { ...val };
|
|
|
|
|
pageData.pageConfiger.pageCurrent = 1;
|
|
|
|
|
getList();
|
2025-04-17 17:11:41 +08:00
|
|
|
|
};
|
2025-04-12 14:54:02 +08:00
|
|
|
|
|
2025-07-03 21:32:25 +08:00
|
|
|
|
const changeNo = (val) => {
|
2025-07-15 16:56:26 +08:00
|
|
|
|
pageData.pageConfiger.pageCurrent = val;
|
2025-07-03 21:32:25 +08:00
|
|
|
|
getList();
|
2025-04-17 17:11:41 +08:00
|
|
|
|
};
|
|
|
|
|
|
2025-07-03 21:32:25 +08:00
|
|
|
|
const changeSize = (val) => {
|
|
|
|
|
pageData.pageConfiger.pageSize = val;
|
|
|
|
|
getList();
|
2025-04-17 17:11:41 +08:00
|
|
|
|
};
|
|
|
|
|
|
2025-07-03 21:32:25 +08:00
|
|
|
|
// 获取列表
|
|
|
|
|
const getList = () => {
|
|
|
|
|
|
2025-04-12 14:54:02 +08:00
|
|
|
|
};
|
|
|
|
|
|
2025-07-03 21:32:25 +08:00
|
|
|
|
// 表格高度计算
|
2025-04-12 14:54:02 +08:00
|
|
|
|
const tabHeightFn = () => {
|
2025-07-03 21:32:25 +08:00
|
|
|
|
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
2025-04-12 14:54:02 +08:00
|
|
|
|
window.onresize = function () {
|
|
|
|
|
tabHeightFn();
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
2025-04-17 17:11:41 +08:00
|
|
|
|
<style lang="scss" scoped>
|
2025-07-03 21:32:25 +08:00
|
|
|
|
.checkbox-group {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.basic-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
overflow: hidden;
|
2025-04-17 17:11:41 +08:00
|
|
|
|
border-radius: 4px;
|
2025-07-03 21:32:25 +08:00
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
2025-04-17 17:11:41 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-03 21:32:25 +08:00
|
|
|
|
|
|
|
|
|
.info-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.control-buttons {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
2025-04-12 14:54:02 +08:00
|
|
|
|
}
|
|
|
|
|
</style>
|