2025-04-12 14:54:02 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="titleBox">
|
2025-04-17 17:11:41 +08:00
|
|
|
|
<PageTitle title="重点人员深度发掘">
|
|
|
|
|
<el-button type="primary" @click="addEdit('add', '')">
|
|
|
|
|
<el-icon style="vertical-align: middle"><CirclePlus /></el-icon>
|
|
|
|
|
<span style="vertical-align: middle">新增</span>
|
|
|
|
|
</el-button>
|
|
|
|
|
</PageTitle>
|
2025-04-12 14:54:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- 搜索 -->
|
|
|
|
|
<div ref="searchBox">
|
2025-06-17 20:04:43 +08:00
|
|
|
|
<Search
|
|
|
|
|
:searchArr="searchConfiger"
|
|
|
|
|
@submit="onSearch"
|
|
|
|
|
:key="pageData.keyCount"
|
|
|
|
|
>
|
2025-04-17 17:11:41 +08:00
|
|
|
|
<template #defaultSlot>
|
|
|
|
|
<div class="checkbox-group">
|
|
|
|
|
<el-checkbox v-model="queryFrom.myNote">我的笔记</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="queryFrom.myCheck">我的审核</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="queryFrom.myApprove">我的审批</el-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</Search>
|
2025-04-12 14:54:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- 表格 -->
|
|
|
|
|
<div class="tabBox">
|
|
|
|
|
<MyTable
|
|
|
|
|
:tableData="pageData.tableData"
|
|
|
|
|
:tableColumn="pageData.tableColumn"
|
|
|
|
|
:tableHeight="pageData.tableHeight"
|
|
|
|
|
:key="pageData.keyCount"
|
|
|
|
|
:tableConfiger="pageData.tableConfiger"
|
|
|
|
|
:controlsWidth="pageData.controlsWidth"
|
2025-04-17 17:11:41 +08:00
|
|
|
|
@chooseData="chooseData"
|
|
|
|
|
>
|
|
|
|
|
<!-- 基础信息 -->
|
2025-06-17 20:04:43 +08:00
|
|
|
|
<!-- <template #basicInfo="{ row }">
|
2025-04-17 17:11:41 +08:00
|
|
|
|
<div class="basic-info">
|
|
|
|
|
<div class="avatar">
|
|
|
|
|
<el-image :src="row.avatar" fit="cover"></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-list">
|
|
|
|
|
<div>姓名:{{ row.name }}</div>
|
|
|
|
|
<div>性别:{{ row.gender }}</div>
|
|
|
|
|
<div>年龄:{{ row.age }}</div>
|
|
|
|
|
<div>身份证号:{{ row.idCard }}</div>
|
|
|
|
|
<div>出生日期:{{ row.birthDate }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-06-17 20:04:43 +08:00
|
|
|
|
</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 #sfGz="{ row }">
|
|
|
|
|
<DictTag :tag="false" :value="row.sfGz" :options="D_BZ_SF" />
|
|
|
|
|
</template>
|
|
|
|
|
<template #sfZbkry="{ row }">
|
|
|
|
|
<DictTag :tag="false" :value="row.sfZbkry" :options="D_BZ_SF" />
|
|
|
|
|
</template>
|
|
|
|
|
<template #sfZzdry="{ row }">
|
|
|
|
|
<DictTag :tag="false" :value="row.sfZzdry" :options="D_BZ_SF" />
|
2025-04-12 14:54:02 +08:00
|
|
|
|
</template>
|
|
|
|
|
<!-- 操作 -->
|
|
|
|
|
<template #controls="{ row }">
|
2025-04-17 17:11:41 +08:00
|
|
|
|
<div class="control-buttons">
|
2025-06-17 20:04:43 +08:00
|
|
|
|
<el-button type="primary" size="small" @click="handleDetail(row)"
|
|
|
|
|
>审核</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="info" size="small" @click="handleApprove(row)"
|
|
|
|
|
>审批</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="warning" size="small" @click="handleDelete(row)"
|
|
|
|
|
>去除</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="danger" size="small" @click="handleBlacklist(row)"
|
|
|
|
|
>拉黑</el-button
|
|
|
|
|
>
|
2025-04-17 17:11:41 +08:00
|
|
|
|
</div>
|
2025-04-12 14:54:02 +08:00
|
|
|
|
</template>
|
|
|
|
|
</MyTable>
|
|
|
|
|
<Pages
|
|
|
|
|
@changeNo="changeNo"
|
|
|
|
|
@changeSize="changeSize"
|
|
|
|
|
:tableHeight="pageData.tableHeight"
|
|
|
|
|
:pageConfiger="{
|
|
|
|
|
...pageData.pageConfiger,
|
|
|
|
|
total: pageData.total
|
|
|
|
|
}"
|
|
|
|
|
></Pages>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 详情 -->
|
|
|
|
|
<DetailForm ref="detailDiloag" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
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 DetailForm from "./components/detailForm.vue";
|
|
|
|
|
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
|
|
|
|
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
|
2025-04-17 17:11:41 +08:00
|
|
|
|
|
2025-04-12 14:54:02 +08:00
|
|
|
|
const { proxy } = getCurrentInstance();
|
2025-06-17 20:04:43 +08:00
|
|
|
|
const { D_GS_RQFJ_LX, D_GS_RQFJ_FXDJ, D_BZ_SF, D_GS_RQFJ_FXLB } = proxy.$dict(
|
|
|
|
|
"D_GS_RQFJ_LX",
|
|
|
|
|
"D_GS_RQFJ_FXDJ",
|
|
|
|
|
"D_BZ_SF",
|
|
|
|
|
"D_GS_RQFJ_FXLB"
|
|
|
|
|
);
|
2025-04-12 14:54:02 +08:00
|
|
|
|
const detailDiloag = ref();
|
|
|
|
|
const searchBox = ref(); //搜索框
|
|
|
|
|
|
|
|
|
|
const searchConfiger = ref([
|
2025-04-17 17:11:41 +08:00
|
|
|
|
{
|
|
|
|
|
label: "所属部门",
|
|
|
|
|
prop: "department",
|
|
|
|
|
placeholder: "请选择所属部门",
|
|
|
|
|
showType: "department"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "是否关注",
|
|
|
|
|
prop: "isFollowed",
|
|
|
|
|
placeholder: "请选择是否关注",
|
|
|
|
|
showType: "select",
|
|
|
|
|
options: [
|
|
|
|
|
{ label: "是", value: true },
|
|
|
|
|
{ label: "否", value: false }
|
|
|
|
|
]
|
|
|
|
|
}
|
2025-04-12 14:54:02 +08:00
|
|
|
|
]);
|
|
|
|
|
|
2025-04-17 17:11:41 +08:00
|
|
|
|
const queryFrom = ref({
|
|
|
|
|
myNote: false,
|
|
|
|
|
myCheck: false,
|
|
|
|
|
myApprove: false
|
|
|
|
|
});
|
|
|
|
|
|
2025-04-12 14:54:02 +08:00
|
|
|
|
const pageData = reactive({
|
2025-04-17 17:11:41 +08:00
|
|
|
|
tableData: [],
|
2025-04-12 14:54:02 +08:00
|
|
|
|
keyCount: 0,
|
|
|
|
|
tableConfiger: {
|
2025-04-17 17:11:41 +08:00
|
|
|
|
rowHieght: 61,
|
|
|
|
|
showSelectType: "checkbox",
|
|
|
|
|
loading: false
|
2025-04-12 14:54:02 +08:00
|
|
|
|
},
|
2025-04-17 17:11:41 +08:00
|
|
|
|
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: 300,
|
2025-04-12 14:54:02 +08:00
|
|
|
|
tableColumn: [
|
2025-06-17 20:04:43 +08:00
|
|
|
|
{ label: "姓名", prop: "ryXm" },
|
|
|
|
|
{ label: "英文姓名", prop: "ryXmYw" },
|
|
|
|
|
{ label: "别名", prop: "ryBm" },
|
|
|
|
|
{ label: "网名", prop: "ryWm" },
|
|
|
|
|
{ label: "绰号", prop: "ryCh" },
|
|
|
|
|
{ label: "手机号码", prop: "rySjhm" },
|
|
|
|
|
{ label: "身份证号码", prop: "rySfzh" },
|
|
|
|
|
{ label: "户籍地址", prop: "ryHjdz" },
|
|
|
|
|
{ label: "护照号码", prop: "ryHzhm" },
|
|
|
|
|
{ label: "现住地址", prop: "ryXzdz" },
|
|
|
|
|
{ label: "银行卡号", prop: "ryYhkh" },
|
|
|
|
|
{ label: "附件照片", prop: "ryFjZp" },
|
|
|
|
|
{ label: "管辖单位", prop: "gxDwDm" },
|
|
|
|
|
{ label: "风险等级", prop: "fxDj", showSolt: true },
|
|
|
|
|
{ label: "风险类别", prop: "fxLb", showSolt: true },
|
|
|
|
|
{ label: "是否关注", prop: "sfGz", showSolt: true },
|
|
|
|
|
{ label: "是否转布控人员", prop: "sfZbkry", showSolt: true },
|
|
|
|
|
{ label: "是否转重点人员", prop: "sfZzdry", showSolt: true }
|
2025-04-12 14:54:02 +08:00
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2025-04-17 17:11:41 +08:00
|
|
|
|
getList();
|
2025-04-12 14:54:02 +08:00
|
|
|
|
tabHeightFn();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 搜索
|
2025-04-17 17:11:41 +08:00
|
|
|
|
const onSearch = (val) => {
|
|
|
|
|
queryFrom.value = { ...val };
|
2025-04-12 14:54:02 +08:00
|
|
|
|
pageData.pageConfiger.pageCurrent = 1;
|
2025-04-17 17:11:41 +08:00
|
|
|
|
getList();
|
|
|
|
|
};
|
2025-04-12 14:54:02 +08:00
|
|
|
|
|
2025-04-17 17:11:41 +08:00
|
|
|
|
const changeNo = (val) => {
|
2025-04-12 14:54:02 +08:00
|
|
|
|
pageData.pageConfiger.pageNum = val;
|
2025-04-17 17:11:41 +08:00
|
|
|
|
getList();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const changeSize = (val) => {
|
2025-04-12 14:54:02 +08:00
|
|
|
|
pageData.pageConfiger.pageSize = val;
|
2025-04-17 17:11:41 +08:00
|
|
|
|
getList();
|
|
|
|
|
};
|
2025-04-12 14:54:02 +08:00
|
|
|
|
|
|
|
|
|
// 获取列表
|
2025-04-17 17:11:41 +08:00
|
|
|
|
const getList = () => {
|
2025-06-17 20:04:43 +08:00
|
|
|
|
pageData.tableConfiger.loading = true;
|
|
|
|
|
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
|
|
|
|
qcckGet(data, "/mosty-gsxt/tbGsxtRqfjRy/selectPage")
|
|
|
|
|
.then((res) => {
|
|
|
|
|
pageData.tableData = res.records || [];
|
|
|
|
|
pageData.total = res.total;
|
|
|
|
|
pageData.tableConfiger.loading = false;
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
pageData.tableConfiger.loading = false;
|
|
|
|
|
});
|
2025-04-17 17:11:41 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 操作按钮处理函数
|
|
|
|
|
const handleDetail = (row) => {
|
2025-06-17 20:04:43 +08:00
|
|
|
|
detailDiloag.value.init("detail", row);
|
2025-04-17 17:11:41 +08:00
|
|
|
|
};
|
2025-04-12 14:54:02 +08:00
|
|
|
|
|
|
|
|
|
// 详情
|
|
|
|
|
const addEdit = (type, row) => {
|
|
|
|
|
detailDiloag.value.init(type, row);
|
|
|
|
|
};
|
|
|
|
|
|
2025-04-17 17:11:41 +08:00
|
|
|
|
const handleApprove = (row) => {
|
2025-06-17 20:04:43 +08:00
|
|
|
|
detailDiloag.value.init("approve", row);
|
2025-04-17 17:11:41 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleDelete = (row) => {
|
|
|
|
|
// 实现删除逻辑
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleBlacklist = (row) => {
|
|
|
|
|
// 实现拉黑逻辑
|
|
|
|
|
};
|
|
|
|
|
|
2025-04-12 14:54:02 +08:00
|
|
|
|
// 表格高度计算
|
|
|
|
|
const tabHeightFn = () => {
|
2025-06-17 20:04:43 +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>
|
|
|
|
|
.checkbox-group {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.basic-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.control-buttons {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
2025-04-12 14:54:02 +08:00
|
|
|
|
}
|
|
|
|
|
</style>
|