更新下班
This commit is contained in:
@ -8,13 +8,12 @@
|
||||
label-position="right"
|
||||
>
|
||||
<el-form-item
|
||||
:class="myClass"
|
||||
v-for="item in props.formList"
|
||||
v-for="(item,idx) in props.formList"
|
||||
:style="item.width && { width: item.width }"
|
||||
:prop="item.prop"
|
||||
:label="item.label"
|
||||
:label-width="item.labelWidth"
|
||||
:key="item"
|
||||
:key="idx"
|
||||
>
|
||||
<!-- input表单 input-->
|
||||
<MOSTY.Other
|
||||
|
@ -3,13 +3,7 @@
|
||||
<div class="head_box">
|
||||
<span class="title">重点群体管理 </span>
|
||||
<div>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
:loading="loading"
|
||||
@click="submit"
|
||||
>保存</el-button
|
||||
>
|
||||
<el-button type="primary" size="small" :loading="loading" @click="submit" >保存</el-button>
|
||||
<el-button size="small" @click="close">关闭</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,26 +2,30 @@
|
||||
<div>
|
||||
<div class="titleBox">
|
||||
<PageTitle title="重点群体管理">
|
||||
<el-button type="primary" size="small" v-for="it in btns" :key="it">
|
||||
{{ it }}</el-button
|
||||
>
|
||||
<el-popover placement="bottom" :visible="visible" :width="400" trigger="click">
|
||||
<template #reference>
|
||||
<el-button type="primary" @click="visible =!visible" size="small">布控申请
|
||||
</el-button>
|
||||
</template>
|
||||
<div class="flex just-center">
|
||||
<el-button size="small" type="primary">列控申请</el-button>
|
||||
<el-button size="small" type="primary">变更申请</el-button>
|
||||
<el-button size="small" type="primary">管控申请</el-button>
|
||||
<el-button size="small" type="primary">协控申请</el-button>
|
||||
</div>
|
||||
</el-popover>
|
||||
<el-button size="small" type="primary">指定分配</el-button>
|
||||
<el-button size="small" type="primary">转线索</el-button>
|
||||
<el-button size="small" type="primary">移交管控</el-button>
|
||||
<el-button type="primary" size="small" @click="addEdit('add', '')">
|
||||
<el-icon style="vertical-align: middle"><CirclePlus /></el-icon>
|
||||
<span style="vertical-align: middle">新增</span>
|
||||
</el-button>
|
||||
<el-button type="danger" size="small" @click="addEdit('add', '')">
|
||||
<el-icon style="vertical-align: middle"><Dete /></el-icon>
|
||||
<span style="vertical-align: middle">批量删除</span>
|
||||
</el-button>
|
||||
</PageTitle>
|
||||
</div>
|
||||
<!-- 搜索 -->
|
||||
<div ref="searchBox">
|
||||
<Search
|
||||
:searchArr="searchConfiger"
|
||||
@submit="onSearch"
|
||||
:key="pageData.keyCount"
|
||||
/>
|
||||
<Search :searchArr="searchConfiger" @submit="onSearch" />
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div class="tabBox">
|
||||
@ -66,7 +70,6 @@
|
||||
<div>创建单位:{{ row.xtCjbmmc }}</div>
|
||||
</template>
|
||||
<template #gkxx="{ row }">
|
||||
<!-- <div>群体标签:{{ }}</div> -->
|
||||
<div>管辖单位:{{ row.gxSsdwmc }}</div>
|
||||
<div>列控原因:{{ row.zdrLkyy }}</div>
|
||||
<div>开始时间:{{ row.startTime }}</div>
|
||||
@ -81,24 +84,10 @@
|
||||
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link
|
||||
v-if="row.qtZt == '01' || row.qtZt == '03' || row.qtZt == '06'"
|
||||
@click="openDetail(row)"
|
||||
>送审</el-link
|
||||
>
|
||||
<el-link
|
||||
size="small"
|
||||
type="success"
|
||||
@click="addEdit('edit', row)"
|
||||
v-if="row.qtZt !== '05'"
|
||||
>编辑</el-link
|
||||
>
|
||||
<el-link size="small" type="primary" @click="infoList('info', row)"
|
||||
>查看</el-link
|
||||
>
|
||||
<el-link size="small" type="danger" @click="deleteRow(row)"
|
||||
>删除</el-link
|
||||
>
|
||||
<el-link v-if="row.qtZt == '01' || row.qtZt == '03' || row.qtZt == '06'" @click="openDetail(row)" >送审</el-link >
|
||||
<el-link size="small" type="success" @click="addEdit('edit', row)" v-if="row.qtZt !== '05'" >编辑</el-link>
|
||||
<el-link size="small" type="primary" @click="infoList('info', row)">查看</el-link>
|
||||
<el-link size="small" type="danger" @click="deleteRow(row)">删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages
|
||||
@ -111,12 +100,7 @@
|
||||
}"
|
||||
></Pages>
|
||||
</div>
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
title="发起送审"
|
||||
width="500px"
|
||||
:before-close="handleClose"
|
||||
>
|
||||
<el-dialog v-model="dialogVisible" title="发起送审" width="500px" :before-close="handleClose" >
|
||||
<span>是否要发起送审</span>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
@ -126,7 +110,7 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 编辑 -->
|
||||
<EditForm @updateDate="updateDate" ref="editFormDiloag" />
|
||||
<EditForm v-if="show" @updateDate="updateDate" ref="editFormDiloag" />
|
||||
<!-- 详情 -->
|
||||
<DetailForm ref="detailDiloag" />
|
||||
</div>
|
||||
@ -141,7 +125,6 @@ import Search from "@/components/aboutTable/Search.vue";
|
||||
import EditForm from "./components/addForm.vue";
|
||||
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
||||
import { ElMessage } from "element-plus";
|
||||
|
||||
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const {
|
||||
@ -159,23 +142,13 @@ const {
|
||||
"D_GS_BQ_LX",
|
||||
"D_GS_ZDQT_ZT"
|
||||
); //获取字典数据
|
||||
const show = ref(false);
|
||||
const editFormDiloag = ref();
|
||||
const detailDiloag = ref();
|
||||
const searchBox = ref(); //搜索框
|
||||
const autoId = ref();
|
||||
const dialogVisible = ref(false);
|
||||
const btns = reactive([
|
||||
"一键布控",
|
||||
"维护群体",
|
||||
"矛盾化解",
|
||||
"转指令",
|
||||
"转线索",
|
||||
"转督导",
|
||||
"转合成",
|
||||
"移交管控",
|
||||
"批量导入",
|
||||
"导出"
|
||||
]);
|
||||
const visible = ref(false);
|
||||
const searchConfiger = ref([
|
||||
{
|
||||
label: "群体名称",
|
||||
@ -197,12 +170,6 @@ const searchConfiger = ref([
|
||||
showType: "select",
|
||||
options: D_GS_ZDR_RYJB
|
||||
},
|
||||
{
|
||||
label: "成员姓名",
|
||||
prop: "cyXm ",
|
||||
placeholder: "请输入成员姓名",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "群体类别",
|
||||
prop: "qtLb",
|
||||
@ -210,42 +177,6 @@ const searchConfiger = ref([
|
||||
showType: "select",
|
||||
options: D_GS_ZDQT_LB
|
||||
},
|
||||
{
|
||||
label: "成员身份证号",
|
||||
prop: "cySfzh",
|
||||
placeholder: "请输入成员身份证号",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "群体大类",
|
||||
prop: "qtDl",
|
||||
placeholder: "请输入群体大类",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "群体细类",
|
||||
prop: "qtXl",
|
||||
placeholder: "请输入群体细类",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "管辖单位名称",
|
||||
prop: "gxSsdwmc",
|
||||
placeholder: "请输入管辖单位名称",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "开始时间",
|
||||
prop: "startTime",
|
||||
placeholder: "请输入开始时间",
|
||||
showType: "date"
|
||||
},
|
||||
{
|
||||
label: "截至时间",
|
||||
prop: "endTime",
|
||||
placeholder: "请输入截至时间",
|
||||
showType: "date"
|
||||
},
|
||||
{
|
||||
label: "布控状态",
|
||||
prop: "zdrBkZt",
|
||||
@ -263,13 +194,7 @@ const searchConfiger = ref([
|
||||
]);
|
||||
|
||||
const pageData = reactive({
|
||||
tableData: [
|
||||
{
|
||||
img: "",
|
||||
jbxx: "",
|
||||
wkrs: "1/5"
|
||||
}
|
||||
],
|
||||
tableData: [],
|
||||
keyCount: 0,
|
||||
tableConfiger: {
|
||||
rowHieght: 61,
|
||||
@ -286,7 +211,7 @@ const pageData = reactive({
|
||||
{ label: "群体基本信息", prop: "jbxx", showSolt: true },
|
||||
{ label: "背景信息", prop: "bgxx", showSolt: true },
|
||||
{ label: "管控信息", prop: "gkxx", showSolt: true },
|
||||
{ label: "稳控人数", prop: "wkrs", showSolt: true, width: 80 },
|
||||
{ label: "稳控人数", prop: "wkrs", showSolt: true},
|
||||
{ label: "状态", prop: "qtZt", showSolt: true }
|
||||
]
|
||||
});
|
||||
@ -361,13 +286,15 @@ const getList = (val) => {
|
||||
|
||||
// 详情
|
||||
const addEdit = (type, row) => {
|
||||
editFormDiloag.value.init(type, row);
|
||||
show.value = true;
|
||||
nextTick(() => {
|
||||
editFormDiloag.value.init(type, row);
|
||||
});
|
||||
};
|
||||
|
||||
// 表格高度计算
|
||||
const tabHeightFn = () => {
|
||||
pageData.tableHeight =
|
||||
window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||
window.onresize = function () {
|
||||
tabHeightFn();
|
||||
};
|
||||
|
@ -214,7 +214,6 @@ const multipleUserRef = ref(null);
|
||||
const emits = defineEmits(["update:modelValue", "chooseDate"]);
|
||||
const type = ref("标签大类");
|
||||
onMounted(() => {
|
||||
console.log(props.dic.D_GS_BQ_ZL, "props.dic.D_GS_BQ_ZL");
|
||||
tabs.value = props.dic.D_GS_BQ_ZL;
|
||||
activeTab.value = tabs.value?.[0]?.dm || "01";
|
||||
handleFilter();
|
||||
|
@ -3,23 +3,12 @@
|
||||
<div class="head_box">
|
||||
<span class="title">{{ title }}重点人管理</span>
|
||||
<div>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
:loading="loading"
|
||||
@click="submit"
|
||||
>保存</el-button
|
||||
>
|
||||
<el-button type="primary" size="small" :loading="loading" @click="submit">保存</el-button >
|
||||
<el-button size="small" @click="close">关闭</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form_cnt">
|
||||
<FormMessage
|
||||
v-model="listQuery"
|
||||
:formList="formData"
|
||||
ref="elform"
|
||||
:rules="rules"
|
||||
>
|
||||
<FormMessage v-model="listQuery" :formList="formData" ref="elform" :rules="rules">
|
||||
<template #basic>
|
||||
<el-divider content-position="left">基础管理</el-divider>
|
||||
</template>
|
||||
@ -45,22 +34,19 @@
|
||||
:tableHeight="tableDate.tableHeight"
|
||||
:key="tableDate.keyCount"
|
||||
:tableConfiger="tableDate.tableConfiger"
|
||||
:controlsWidth="tableDate.controlsWidth"
|
||||
>
|
||||
:controlsWidth="tableDate.controlsWidth">
|
||||
<template #bqLb="{ row }">
|
||||
<DictTag :value="row.bqLb" :tag="false" :options="D_GS_BQ_LB" />
|
||||
<DictTag :value="row.bqLb" :tag="false" :options="props.dic.D_GS_BQ_LB" />
|
||||
</template>
|
||||
<template #bqLx="{ row }">
|
||||
<DictTag :value="row.bqLx" :tag="false" :options="D_GS_BQ_LX" />
|
||||
<DictTag :value="row.bqLx" :tag="false" :options="props.dic.D_GS_BQ_LX" />
|
||||
</template>
|
||||
<template #bqZl="{ row }">
|
||||
<DictTag :value="row.bqZl" :tag="false" :options="D_GS_BQ_ZL" />
|
||||
<DictTag :value="row.bqZl" :tag="false" :options="props.dic.D_GS_BQ_ZL" />
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link type="danger" @click="delDictItem(row.bqId)"
|
||||
>删除</el-link
|
||||
>
|
||||
<el-link type="danger" @click="delDictItem(row.bqId)">删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
</div>
|
||||
@ -68,92 +54,37 @@
|
||||
|
||||
<!-- 管辖单位 -->
|
||||
<template #gxSsbmdm>
|
||||
<el-select
|
||||
v-model="listQuery.gxSsbmdm"
|
||||
placeholder="请选择管辖单位"
|
||||
style="width: 240px"
|
||||
@change="handleDeptChange('gxSsbmmc', $event)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
<el-select v-model="listQuery.gxSsbmdm" placeholder="请选择管辖单位" style="width: 240px" @change="handleDeptChange('gxSsbmmc', $event)" >
|
||||
<el-option v-for="item in deptList" :key="item.value" :label="item.label" :value="item.value.toString()"/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 户籍派出所 -->
|
||||
<template #hjdPcsdm>
|
||||
<el-select
|
||||
v-model="listQuery.hjdPcsdm"
|
||||
placeholder="请选择户籍派出所"
|
||||
style="width: 240px"
|
||||
@change="handleDeptChange('hjdPcsmc', $event)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
<el-select v-model="listQuery.hjdPcsdm" placeholder="请选择户籍派出所" style="width: 240px" @change="handleDeptChange('hjdPcsmc', $event)">
|
||||
<el-option v-for="item in deptList" :key="item.value" :label="item.label" :value="item.value.toString()"/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 诉求单位 -->
|
||||
<template #sqSsbmdm>
|
||||
<el-select
|
||||
v-model="listQuery.sqSsbmdm"
|
||||
placeholder="请选择户籍派出所"
|
||||
style="width: 240px"
|
||||
@change="handleDeptChange('sqSsbmmc', $event)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
<el-select v-model="listQuery.sqSsbmdm" placeholder="请选择户籍派出所" style="width: 240px" @change="handleDeptChange('sqSsbmmc', $event)" >
|
||||
<el-option v-for="item in deptList" :key="item.value" :label="item.label" :value="item.value.toString()"/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 现住地派出所 -->
|
||||
<template #xzdPcsdm>
|
||||
<el-select
|
||||
v-model="listQuery.xzdPcsdm"
|
||||
placeholder="请选择现住地派出所"
|
||||
style="width: 240px"
|
||||
@change="handleDeptChange('xzdPcsmc', $event)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
<el-select v-model="listQuery.xzdPcsdm" placeholder="请选择现住地派出所" style="width: 240px" @change="handleDeptChange('xzdPcsmc', $event)">
|
||||
<el-option v-for="item in deptList" :key="item.value" :label="item.label" :value="item.value.toString()"/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 责任单位 -->
|
||||
<template #zrSsbmdm>
|
||||
<el-select
|
||||
v-model="listQuery.zrSsbmdm"
|
||||
placeholder="请选择责任单位"
|
||||
style="width: 240px"
|
||||
@change="handleDeptChange('zrSsbmmc', $event)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
<el-select v-model="listQuery.zrSsbmdm" placeholder="请选择责任单位" style="width: 240px" @change="handleDeptChange('zrSsbmmc', $event)">
|
||||
<el-option v-for="item in deptList" :key="item.value" :label="item.label" :value="item.value.toString()"/>
|
||||
</el-select>
|
||||
</template>
|
||||
</FormMessage>
|
||||
<!-- 列表弹窗 -->
|
||||
<TagSelectorDialog
|
||||
v-model="chooseShow"
|
||||
ref="tagDialog"
|
||||
@chooseDate="handleTagSelect"
|
||||
:dic="{ D_GS_BQ_ZL, D_GS_BQ_LB, D_GS_BQ_LX }"
|
||||
/>
|
||||
<TagSelectorDialog v-model="chooseShow" ref="tagDialog" @chooseDate="handleTagSelect" :dic="props.dic"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -163,129 +94,47 @@ import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||
import FormMessage from "@/components/aboutTable/FormMessage.vue";
|
||||
import { qcckGet, qcckPost, qcckPut } from "@/api/qcckApi.js";
|
||||
import TagSelectorDialog from "./TagSelectorDialog.vue";
|
||||
import * as rule from "@/utils/rules.js";
|
||||
import {
|
||||
ref,
|
||||
defineExpose,
|
||||
reactive,
|
||||
onMounted,
|
||||
defineEmits,
|
||||
getCurrentInstance,
|
||||
nextTick
|
||||
} from "vue";
|
||||
import { ref, defineExpose, reactive, onMounted, defineEmits, getCurrentInstance, nextTick } from "vue";
|
||||
import { selectUserDeptPage } from "@/api/user-manage";
|
||||
const emit = defineEmits(["updateDate"]);
|
||||
|
||||
const props = defineProps({
|
||||
dic: Object
|
||||
});
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const {
|
||||
D_GS_BK_SSJZ,
|
||||
D_GS_ZDR_RYJB,
|
||||
D_GS_SSYJ,
|
||||
D_GS_BQ_DJ,
|
||||
D_BZ_XZQHDM,
|
||||
D_BZ_MZ,
|
||||
D_BZ_XB,
|
||||
D_GS_ZDR_CZZT,
|
||||
D_GS_BQ_ZL,
|
||||
D_GS_BQ_LB,
|
||||
D_GS_BQ_LX,
|
||||
D_GS_ZDR_YJDJ
|
||||
} = proxy.$dict(
|
||||
"D_GS_BK_SSJZ",
|
||||
"D_GS_ZDR_RYJB",
|
||||
"D_GS_SSYJ",
|
||||
"D_GS_BQ_DJ",
|
||||
"D_BZ_XZQHDM",
|
||||
"D_BZ_MZ",
|
||||
"D_BZ_XB",
|
||||
"D_GS_ZDR_CZZT",
|
||||
"D_GS_BQ_ZL",
|
||||
"D_GS_BQ_LB",
|
||||
"D_GS_BQ_LX",
|
||||
"D_GS_ZDR_YJDJ"
|
||||
); //获取字典数据
|
||||
const tagDialog = ref();
|
||||
|
||||
const dialogForm = ref(false); //弹窗
|
||||
const formData = ref([
|
||||
{ label: "", prop: "basic", type: "slot", width: "100%" },
|
||||
{ label: "姓名", prop: "ryXm", type: "input" },
|
||||
{ label: "性别", prop: "ryXb", type: "select", options: D_BZ_XB },
|
||||
{ label: "民族", prop: "ryMz", type: "select", options: D_BZ_MZ },
|
||||
{ label: "性别", prop: "ryXb", type: "select", options: props.dic.D_BZ_XB },
|
||||
{ label: "民族", prop: "ryMz", type: "select", options: props.dic.D_BZ_MZ },
|
||||
{ label: "身份证号", prop: "rySfzh", type: "input" },
|
||||
{ label: "联系电话", prop: "ryLxdh", type: "input" },
|
||||
{ label: "出生日期", prop: "ryCsrq", type: "date" },
|
||||
{ label: "籍贯", prop: "ryJg", type: "select", options: D_BZ_XZQHDM },
|
||||
{
|
||||
label: "级别",
|
||||
prop: "zdrRyjb",
|
||||
type: "select",
|
||||
options: D_GS_ZDR_RYJB
|
||||
},
|
||||
{
|
||||
label: "预警等级",
|
||||
prop: "zdrYjdj",
|
||||
type: "select",
|
||||
options: D_GS_ZDR_YJDJ
|
||||
},
|
||||
{ label: "籍贯", prop: "ryJg", type: "select", options: props.dic.D_BZ_XZQHDM },
|
||||
{ label: "级别", prop: "zdrRyjb", type: "select", options: props.dic.D_GS_ZDR_RYJB },
|
||||
{ label: "预警等级", prop: "zdrYjdj", type: "select", options: props.dic.D_GS_ZDR_YJDJ },
|
||||
{ label: "", prop: "address", type: "slot", width: "100%" },
|
||||
{ label: "户籍地区划", prop: "hjdQh", type: "select", options: D_BZ_XZQHDM },
|
||||
{ label: "户籍地区划", prop: "hjdQh", type: "select", options: props.dic.D_BZ_XZQHDM },
|
||||
{ label: "户籍地详址", prop: "hjdXz", type: "input" },
|
||||
{
|
||||
label: "户籍地派出所",
|
||||
prop: "hjdPcsdm",
|
||||
type: "slot"
|
||||
},
|
||||
{ label: "现住地区划", prop: "xzdQh", type: "select", options: D_BZ_XZQHDM },
|
||||
{ label: "户籍地派出所", prop: "hjdPcsdm", type: "slot" },
|
||||
{ label: "现住地区划", prop: "xzdQh", type: "select", options: props.dic.D_BZ_XZQHDM },
|
||||
{ label: "现住地详址", prop: "xzdXz", type: "input" },
|
||||
{
|
||||
label: "现住地派出所",
|
||||
prop: "xzdPcsdm",
|
||||
type: "slot"
|
||||
},
|
||||
{ label: "现住地派出所", prop: "xzdPcsdm", type: "slot" },
|
||||
{ label: "", prop: "jurisdiction", type: "slot", width: "100%" },
|
||||
{
|
||||
label: "管辖单位",
|
||||
prop: "gxSsbmdm",
|
||||
type: "slot"
|
||||
},
|
||||
{
|
||||
label: "诉求单位",
|
||||
prop: "sqSsbmdm",
|
||||
type: "slot"
|
||||
},
|
||||
{
|
||||
label: "责任单位",
|
||||
prop: "zrSsbmdm",
|
||||
type: "slot"
|
||||
},
|
||||
{ label: "所属警种", prop: "zdrSsjz", type: "select", options: D_GS_BK_SSJZ },
|
||||
{
|
||||
label: "涉及警种",
|
||||
prop: "zdrSjjz",
|
||||
type: "select",
|
||||
options: D_GS_BK_SSJZ,
|
||||
multiple: true
|
||||
},
|
||||
{ label: "管辖单位", prop: "gxSsbmdm", type: "slot" },
|
||||
{ label: "诉求单位", prop: "sqSsbmdm", type: "slot" },
|
||||
{ label: "责任单位", prop: "zrSsbmdm", type: "slot" },
|
||||
{ label: "所属警种", prop: "zdrSsjz", type: "select", options: props.dic.D_GS_BK_SSJZ },
|
||||
{ label: "涉及警种", prop: "zdrSjjz", type: "select", options: props.dic.D_GS_BK_SSJZ, multiple: true },
|
||||
{ label: "管控民警姓名", prop: "gkMjXm", type: "input" },
|
||||
{ label: "管控民警警号", prop: "gkMjJh", type: "input" },
|
||||
{ label: "管控原因", prop: "zdrLkyy", type: "textarea", width: "100%" },
|
||||
{ label: "", prop: "status", type: "slot", width: "100%" },
|
||||
{
|
||||
label: "处置状态",
|
||||
prop: "zdrCzzt",
|
||||
type: "select",
|
||||
options: D_GS_ZDR_CZZT
|
||||
},
|
||||
|
||||
{ label: "处置状态", prop: "zdrCzzt", type: "select", options: props.dic.D_GS_ZDR_CZZT },
|
||||
{ label: "入库开始时间", prop: "zdrRkkssj", type: "datetime" },
|
||||
{ label: "入库结束时间", prop: "zdrRkjssj", type: "datetime" },
|
||||
|
||||
// { label: "人员标签大类", prop: "bqdl", type: "select", options: [] },
|
||||
// { label: "人员标签细类", prop: "bqxl", type: "select", options: [] },
|
||||
{ label: "", prop: "bqInfo", type: "slot", width: "100%" },
|
||||
{ label: "标签列表", prop: "bqList", type: "slot", width: "80%" }
|
||||
]);
|
||||
@ -322,7 +171,6 @@ const title = ref("");
|
||||
const rules = reactive({
|
||||
xsbt: [{ required: true, message: "请输入线索标题", trigger: "blur" }]
|
||||
});
|
||||
const editpeo = ref();
|
||||
onMounted(() => {
|
||||
getdepartmentList();
|
||||
});
|
||||
@ -353,19 +201,13 @@ const getdepartmentList = () => {
|
||||
const submit = () => {
|
||||
elform.value.submit((data) => {
|
||||
data.zdrSjjz = data.zdrSjjz.join(",");
|
||||
let url =
|
||||
title.value == "新增"
|
||||
? "/mosty-gsxt/tbGsxtZdry/save"
|
||||
: "/mosty-gsxt/tbGsxtZdry/update";
|
||||
let url = title.value == "新增" ? "/mosty-gsxt/tbGsxtZdry/save" : "/mosty-gsxt/tbGsxtZdry/update";
|
||||
let params = { ...data };
|
||||
|
||||
qcckPost(params, url)
|
||||
.then((res) => {
|
||||
proxy.$message({ type: "success", message: title.value + "成功" });
|
||||
emit("onSearch");
|
||||
close();
|
||||
})
|
||||
.catch(() => {});
|
||||
qcckPost(params, url).then((res) => {
|
||||
proxy.$message({ type: "success", message: title.value + "成功" });
|
||||
emit("onSearch");
|
||||
close();
|
||||
}).catch(() => {});
|
||||
});
|
||||
};
|
||||
// 打开弹窗
|
||||
@ -378,9 +220,7 @@ const openDialog = (type) => {
|
||||
|
||||
const handleDeptChange = (nameField, selectedValue) => {
|
||||
// 找到选中的部门
|
||||
const selectedDept = deptList.value.find(
|
||||
(item) => item.value.toString() === selectedValue
|
||||
);
|
||||
const selectedDept = deptList.value.find((item) => item.value.toString() === selectedValue );
|
||||
// 更新名称
|
||||
listQuery.value[nameField] = selectedDept ? selectedDept.label : "";
|
||||
};
|
||||
@ -428,10 +268,12 @@ defineExpose({ init, setFormData });
|
||||
<style lang="scss" scoped>
|
||||
@import "~@/assets/css/layout.scss";
|
||||
@import "~@/assets/css/element-plus.scss";
|
||||
|
||||
::v-deep .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
|
||||
color: #0072ff;
|
||||
background: rgba(0, 114, 255, 0.3);
|
||||
}
|
||||
|
||||
.boxlist {
|
||||
width: 99%;
|
||||
height: 225px;
|
||||
|
@ -1,662 +0,0 @@
|
||||
<template>
|
||||
<div class="dialog" v-if="dialogForm">
|
||||
<div class="head_box">
|
||||
<span class="title">{{ title }}重点人管理</span>
|
||||
<div>
|
||||
<el-button size="small" @click="close">关闭</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form_cnt">
|
||||
<FormMessage
|
||||
v-model="listQuery"
|
||||
:formList="formData"
|
||||
ref="elform"
|
||||
:rules="rules"
|
||||
>
|
||||
<template #basic>
|
||||
<el-divider content-position="left">基础管理</el-divider>
|
||||
</template>
|
||||
<template #address>
|
||||
<el-divider content-position="left">地址信息</el-divider>
|
||||
</template>
|
||||
<template #jurisdiction>
|
||||
<el-divider content-position="left">管辖信息</el-divider>
|
||||
</template>
|
||||
<template #status>
|
||||
<el-divider content-position="left">状态信息</el-divider>
|
||||
</template>
|
||||
<template #bqInfo>
|
||||
<el-divider content-position="left">标签信息</el-divider>
|
||||
</template>
|
||||
<!-- 人员标签模型-->
|
||||
<template #bqList>
|
||||
<!-- <el-button @click="openDialog('01')">选择</el-button> -->
|
||||
<div class="boxlist">
|
||||
<MyTable
|
||||
:tableData="tableDate.bqList"
|
||||
:tableColumn="tableDate.tableColumn"
|
||||
:tableHeight="tableDate.tableHeight"
|
||||
:key="tableDate.keyCount"
|
||||
:tableConfiger="tableDate.tableConfiger"
|
||||
:controlsWidth="tableDate.controlsWidth"
|
||||
>
|
||||
<template #bqLb="{ row }">
|
||||
<DictTag :value="row.bqLb" :tag="false" :options="D_GS_BQ_LB" />
|
||||
</template>
|
||||
<template #bqLx="{ row }">
|
||||
<DictTag :value="row.bqLx" :tag="false" :options="D_GS_BQ_LX" />
|
||||
</template>
|
||||
<template #bqZl="{ row }">
|
||||
<DictTag :value="row.bqZl" :tag="false" :options="D_GS_BQ_ZL" />
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<!-- <template #controls="{ row }">
|
||||
<el-link type="danger" @click="delDictItem(row.bqId)"
|
||||
>删除</el-link
|
||||
>
|
||||
</template> -->
|
||||
</MyTable>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- 管辖单位 -->
|
||||
<template #gxSsbmdm>
|
||||
<el-select
|
||||
v-model="listQuery.gxSsbmdm"
|
||||
placeholder="请选择管辖单位"
|
||||
style="width: 240px"
|
||||
:disabled="true"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 户籍派出所 -->
|
||||
<template #hjdPcsdm>
|
||||
<el-select
|
||||
v-model="listQuery.hjdPcsdm"
|
||||
placeholder="请选择户籍派出所"
|
||||
style="width: 240px"
|
||||
:disabled="true"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 诉求单位 -->
|
||||
|
||||
<template #sqSsbmdm>
|
||||
<el-select
|
||||
v-model="listQuery.sqSsbmdm"
|
||||
placeholder="请选择户籍派出所"
|
||||
style="width: 240px"
|
||||
:disabled="true"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 现住地派出所 -->
|
||||
<template #xzdPcsdm>
|
||||
<el-select
|
||||
v-model="listQuery.xzdPcsdm"
|
||||
placeholder="请选择现住地派出所"
|
||||
style="width: 240px"
|
||||
:disabled="true"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
<!-- 责任单位 -->
|
||||
<template #zrSsbmdm>
|
||||
<el-select
|
||||
v-model="listQuery.zrSsbmdm"
|
||||
placeholder="请选择责任单位"
|
||||
style="width: 240px"
|
||||
:disabled="true"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</FormMessage>
|
||||
<!-- 列表弹窗 -->
|
||||
<TagSelectorDialog
|
||||
v-model="chooseShow"
|
||||
ref="tagDialog"
|
||||
@chooseDate="handleTagSelect"
|
||||
:dic="{ D_GS_BQ_ZL, D_GS_BQ_LB, D_GS_BQ_LX }"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||
import FormMessage from "@/components/aboutTable/FormMessage.vue";
|
||||
import { qcckGet, qcckPost, qcckPut } from "@/api/qcckApi.js";
|
||||
import TagSelectorDialog from "./TagSelectorDialog.vue";
|
||||
import * as rule from "@/utils/rules.js";
|
||||
import {
|
||||
ref,
|
||||
defineExpose,
|
||||
reactive,
|
||||
onMounted,
|
||||
defineEmits,
|
||||
getCurrentInstance,
|
||||
nextTick
|
||||
} from "vue";
|
||||
import { selectUserDeptPage } from "@/api/user-manage";
|
||||
const emit = defineEmits(["updateDate"]);
|
||||
|
||||
const props = defineProps({
|
||||
dic: Object
|
||||
});
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const {
|
||||
D_GS_BK_SSJZ,
|
||||
D_GS_ZDR_RYJB,
|
||||
D_GS_SSYJ,
|
||||
D_GS_BQ_DJ,
|
||||
D_BZ_XZQHDM,
|
||||
D_BZ_MZ,
|
||||
D_BZ_XB,
|
||||
D_GS_ZDR_CZZT,
|
||||
D_GS_BQ_ZL,
|
||||
D_GS_BQ_LB,
|
||||
D_GS_BQ_LX,
|
||||
D_GS_ZDR_YJDJ
|
||||
} = proxy.$dict(
|
||||
"D_GS_BK_SSJZ",
|
||||
"D_GS_ZDR_RYJB",
|
||||
"D_GS_SSYJ",
|
||||
"D_GS_BQ_DJ",
|
||||
"D_BZ_XZQHDM",
|
||||
"D_BZ_MZ",
|
||||
"D_BZ_XB",
|
||||
"D_GS_ZDR_CZZT",
|
||||
"D_GS_BQ_ZL",
|
||||
"D_GS_BQ_LB",
|
||||
"D_GS_BQ_LX",
|
||||
"D_GS_ZDR_YJDJ"
|
||||
); //获取字典数据
|
||||
const tagDialog = ref();
|
||||
const dialogForm = ref(false); //弹窗
|
||||
// const formData = ref([
|
||||
// { label: "", prop: "basic", type: "slot", width: "100%" },
|
||||
|
||||
// { label: "姓名", prop: "ryXm", type: "input", disabled: true },
|
||||
// { label: "身份证号", prop: "rySfzh", type: "input", disabled: true },
|
||||
// {
|
||||
// label: "户籍地派出所名称",
|
||||
// prop: "hjdPcsmc",
|
||||
// type: "input",
|
||||
// disabled: true
|
||||
// },
|
||||
// {
|
||||
// label: "户籍地派出所代码",
|
||||
// prop: "hjdPcsdm",
|
||||
// type: "slot",
|
||||
// disabled: true
|
||||
// },
|
||||
// { label: "管辖单位", prop: "gxSsbmmc", type: "input", disabled: true },
|
||||
// {
|
||||
// label: "管辖单位代码",
|
||||
// prop: "gxSsbmdm",
|
||||
// type: "slot",
|
||||
// disabled: true
|
||||
// },
|
||||
|
||||
// {
|
||||
// label: "户籍地区划",
|
||||
// prop: "hjdQh",
|
||||
// type: "select",
|
||||
// options: D_BZ_XZQHDM,
|
||||
// disabled: true
|
||||
// },
|
||||
// { label: "户籍地详址", prop: "hjdXz", type: "input", disabled: true },
|
||||
// { label: "人员出生日期", prop: "ryCsrq", type: "date", disabled: true },
|
||||
// {
|
||||
// label: "人员籍贯",
|
||||
// prop: "ryJg",
|
||||
// type: "select",
|
||||
// options: D_BZ_XZQHDM,
|
||||
// disabled: true
|
||||
// },
|
||||
// { label: "人员联系电话", prop: "ryLxdh", type: "input", disabled: true },
|
||||
// {
|
||||
// label: "人员民族",
|
||||
// prop: "ryMz",
|
||||
// type: "select",
|
||||
// options: D_BZ_MZ,
|
||||
// disabled: true
|
||||
// },
|
||||
// {
|
||||
// label: "人员性别",
|
||||
// prop: "ryXb",
|
||||
// type: "select",
|
||||
// options: D_BZ_XB,
|
||||
// disabled: true
|
||||
// },
|
||||
// { label: "诉求单位名称", prop: "sqSsbmmc", type: "input", disabled: true },
|
||||
// {
|
||||
// label: "诉求单位代码",
|
||||
// prop: "sqSsbmdm",
|
||||
// type: "slot",
|
||||
// disabled: true
|
||||
// },
|
||||
|
||||
// {
|
||||
// label: "现住地派出所名称",
|
||||
// prop: "xzdPcsmc",
|
||||
// type: "input",
|
||||
// disabled: true
|
||||
// },
|
||||
// {
|
||||
// label: "现住地派出所代码",
|
||||
// prop: "xzdPcsdm",
|
||||
// type: "slot",
|
||||
// disabled: true
|
||||
// },
|
||||
|
||||
// {
|
||||
// label: "现住地区划",
|
||||
// prop: "xzdQh",
|
||||
// type: "select",
|
||||
// options: D_BZ_XZQHDM,
|
||||
// disabled: true
|
||||
// },
|
||||
// { label: "现住地详址", prop: "xzdXz", type: "input", disabled: true },
|
||||
// {
|
||||
// label: "重点人处置状态",
|
||||
// prop: "zdrCzzt",
|
||||
// type: "select",
|
||||
// options: D_GS_ZDR_CZZT,
|
||||
// disabled: true
|
||||
// },
|
||||
|
||||
// {
|
||||
// label: "入库开始时间",
|
||||
// prop: "zdrRkkssj",
|
||||
// type: "datetime",
|
||||
// disabled: true
|
||||
// },
|
||||
// {
|
||||
// label: "入库结束时间",
|
||||
// prop: "zdrRkjssj",
|
||||
// type: "datetime",
|
||||
// disabled: true
|
||||
// },
|
||||
// {
|
||||
// label: "人员级别",
|
||||
// prop: "zdrRyjb",
|
||||
// type: "select",
|
||||
// options: D_GS_ZDR_RYJB,
|
||||
// disabled: true
|
||||
// },
|
||||
// {
|
||||
// label: "所属警种",
|
||||
// prop: "zdrSsjz",
|
||||
// type: "select",
|
||||
// options: D_GS_BK_SSJZ,
|
||||
// disabled: true
|
||||
// },
|
||||
|
||||
// {
|
||||
// label: "涉及警种",
|
||||
// prop: "zdrSjjz",
|
||||
// type: "select",
|
||||
// options: D_GS_BK_SSJZ,
|
||||
// multiple: true,
|
||||
// disabled: true
|
||||
// },
|
||||
// {
|
||||
// label: "重点人预警等级",
|
||||
// prop: "zdrYjdj",
|
||||
// type: "select",
|
||||
// options: D_GS_ZDR_YJDJ,
|
||||
// disabled: true
|
||||
// },
|
||||
|
||||
// { label: "管控民警姓名", prop: "gkMjXm", type: "input", disabled: true },
|
||||
// { label: "管控民警警号", prop: "gkMjJh", type: "input", disabled: true },
|
||||
// {
|
||||
// label: "管控原因",
|
||||
// prop: "zdrLkyy",
|
||||
// type: "textarea",
|
||||
// width: "100%",
|
||||
// disabled: true
|
||||
// },
|
||||
// { label: "责任单位", prop: "zrSsbmmc", type: "input", disabled: true },
|
||||
// {
|
||||
// label: "责任单位代码",
|
||||
// prop: "zrSsbmdm",
|
||||
// type: "slot",
|
||||
// disabled: true
|
||||
// },
|
||||
// // { label: "人员标签大类", prop: "bqdl", type: "select", options: [] },
|
||||
// // { label: "人员标签细类", prop: "bqxl", type: "select", options: [] },
|
||||
// { label: "标签列表", prop: "bqList", type: "slot", width: "80%" }
|
||||
// ]);
|
||||
|
||||
const formData = ref([
|
||||
{ label: "", prop: "basic", type: "slot", width: "100%" },
|
||||
{ label: "姓名", prop: "ryXm", type: "input", disabled: true },
|
||||
{
|
||||
label: "性别",
|
||||
prop: "ryXb",
|
||||
type: "select",
|
||||
options: D_BZ_XB,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "民族",
|
||||
prop: "ryMz",
|
||||
type: "select",
|
||||
options: D_BZ_MZ,
|
||||
disabled: true
|
||||
},
|
||||
{ label: "身份证号", prop: "rySfzh", type: "input", disabled: true },
|
||||
{ label: "联系电话", prop: "ryLxdh", type: "input", disabled: true },
|
||||
{ label: "出生日期", prop: "ryCsrq", type: "date", disabled: true },
|
||||
{
|
||||
label: "籍贯",
|
||||
prop: "ryJg",
|
||||
type: "select",
|
||||
options: D_BZ_XZQHDM,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "级别",
|
||||
prop: "zdrRyjb",
|
||||
type: "select",
|
||||
options: D_GS_ZDR_RYJB,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "预警等级",
|
||||
prop: "zdrYjdj",
|
||||
type: "select",
|
||||
options: D_GS_ZDR_YJDJ,
|
||||
disabled: true
|
||||
},
|
||||
{ label: "", prop: "address", type: "slot", width: "100%" },
|
||||
{
|
||||
label: "户籍地区划",
|
||||
prop: "hjdQh",
|
||||
type: "select",
|
||||
options: D_BZ_XZQHDM,
|
||||
disabled: true
|
||||
},
|
||||
{ label: "户籍地详址", prop: "hjdXz", type: "input", disabled: true },
|
||||
{
|
||||
label: "户籍地派出所",
|
||||
prop: "hjdPcsdm",
|
||||
type: "slot",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "现住地区划",
|
||||
prop: "xzdQh",
|
||||
type: "select",
|
||||
options: D_BZ_XZQHDM,
|
||||
disabled: true
|
||||
},
|
||||
{ label: "现住地详址", prop: "xzdXz", type: "input", disabled: true },
|
||||
{
|
||||
label: "现住地派出所",
|
||||
prop: "xzdPcsdm",
|
||||
type: "slot",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "",
|
||||
prop: "jurisdiction",
|
||||
type: "slot",
|
||||
width: "100%"
|
||||
},
|
||||
{
|
||||
label: "管辖单位",
|
||||
prop: "gxSsbmdm",
|
||||
type: "slot",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "诉求单位",
|
||||
prop: "sqSsbmdm",
|
||||
type: "slot",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "责任单位",
|
||||
prop: "zrSsbmdm",
|
||||
type: "slot",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "所属警种",
|
||||
prop: "zdrSsjz",
|
||||
type: "select",
|
||||
options: D_GS_BK_SSJZ,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "涉及警种",
|
||||
prop: "zdrSjjz",
|
||||
type: "select",
|
||||
options: D_GS_BK_SSJZ,
|
||||
multiple: true,
|
||||
disabled: true
|
||||
},
|
||||
{ label: "管控民警姓名", prop: "gkMjXm", type: "input", disabled: true },
|
||||
{ label: "管控民警警号", prop: "gkMjJh", type: "input", disabled: true },
|
||||
{
|
||||
label: "管控原因",
|
||||
prop: "zdrLkyy",
|
||||
type: "textarea",
|
||||
width: "100%",
|
||||
disabled: true
|
||||
},
|
||||
{ label: "", prop: "status", type: "slot", width: "100%" },
|
||||
{
|
||||
label: "处置状态",
|
||||
prop: "zdrCzzt",
|
||||
type: "select",
|
||||
options: D_GS_ZDR_CZZT,
|
||||
disabled: true
|
||||
},
|
||||
|
||||
{
|
||||
label: "入库开始时间",
|
||||
prop: "zdrRkkssj",
|
||||
type: "datetime",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: "入库结束时间",
|
||||
prop: "zdrRkjssj",
|
||||
type: "datetime",
|
||||
disabled: true
|
||||
},
|
||||
|
||||
// { label: "人员标签大类", prop: "bqdl", type: "select", options: [] },
|
||||
// { label: "人员标签细类", prop: "bqxl", type: "select", options: [] },
|
||||
{ label: "", prop: "bqInfo", type: "slot", width: "100%" },
|
||||
{
|
||||
label: "标签列表",
|
||||
prop: "bqList",
|
||||
type: "slot",
|
||||
width: "80%",
|
||||
disabled: true
|
||||
}
|
||||
]);
|
||||
const listQuery = ref({}); //表单
|
||||
const deptList = ref([]); //部门列表
|
||||
|
||||
const chooseShow = ref(false); //选择弹窗
|
||||
const tableDate = reactive({
|
||||
bqList: [], //表格数据
|
||||
keyCount: 0,
|
||||
rykeyCount: 0,
|
||||
tableConfiger: {
|
||||
rowHieght: 61,
|
||||
showSelectType: "null",
|
||||
loading: false
|
||||
},
|
||||
total: 0,
|
||||
tableHeight: 225,
|
||||
pageConfiger: {
|
||||
pageSize: 20,
|
||||
pageCurrent: 1
|
||||
}, //分页
|
||||
controlsWidth: 90, //操作栏宽度
|
||||
tableColumn: [
|
||||
{ label: "标签名称", prop: "bqMc" },
|
||||
{ label: "标签代码", prop: "bqDm" },
|
||||
{ label: "标签种类", prop: "bqZl", showSolt: true },
|
||||
{ label: "标签类型", prop: "bqLx", showSolt: true },
|
||||
{ label: "标签类别", prop: "bqLb", showSolt: true }
|
||||
]
|
||||
});
|
||||
const chooseType = ref("01"); //选择弹窗类型
|
||||
const chooseTitle = ref(""); //选择弹窗
|
||||
const loading = ref(false);
|
||||
const elform = ref();
|
||||
const title = ref("");
|
||||
const rules = reactive({
|
||||
xsbt: [{ required: true, message: "请输入线索标题", trigger: "blur" }]
|
||||
});
|
||||
const editpeo = ref();
|
||||
onMounted(() => {
|
||||
getdepartmentList();
|
||||
});
|
||||
// 初始化数据
|
||||
const init = (type, row) => {
|
||||
dialogForm.value = true;
|
||||
title.value = type == "add" ? "新增" : type == "info" ? "详情" : "编辑";
|
||||
if (row) getDataById(row.id);
|
||||
};
|
||||
// 根据id查询详情
|
||||
const getDataById = (id) => {
|
||||
qcckGet({}, "/mosty-gsxt/tbGsxtZdry/selectVoById/" + id).then((res) => {
|
||||
listQuery.value = res;
|
||||
listQuery.value.zdrSjjz = listQuery.value.zdrSjjz.split(",");
|
||||
tableDate.bqList = res.bqList;
|
||||
});
|
||||
};
|
||||
// 获取部门列表
|
||||
const getdepartmentList = () => {
|
||||
selectUserDeptPage().then((res) => {
|
||||
deptList.value = res?.records.map((item) => ({
|
||||
label: item.deptName,
|
||||
value: item.deptId
|
||||
}));
|
||||
});
|
||||
};
|
||||
// 提交
|
||||
const submit = () => {
|
||||
elform.value.submit((data) => {
|
||||
data.zdrSjjz = data.zdrSjjz.join(",");
|
||||
let url =
|
||||
title.value == "新增"
|
||||
? "/mosty-gsxt/tbGsxtZdry/save"
|
||||
: "/mosty-gsxt/tbGsxtZdry/update";
|
||||
let params = { ...data };
|
||||
|
||||
qcckPost(params, url)
|
||||
.then((res) => {
|
||||
proxy.$message({ type: "success", message: title.value + "成功" });
|
||||
emit("onSearch");
|
||||
close();
|
||||
})
|
||||
.catch(() => {});
|
||||
});
|
||||
};
|
||||
// 打开弹窗
|
||||
const openDialog = (type) => {
|
||||
chooseShow.value = true;
|
||||
chooseType.value = type;
|
||||
chooseTitle.value = "请选择标签";
|
||||
nextTick(() => {
|
||||
tagDialog.value.setValues(listQuery.value.bqList);
|
||||
});
|
||||
};
|
||||
|
||||
const handleTagSelect = (selectedTags) => {
|
||||
console.log("已选标签:", selectedTags);
|
||||
tableDate.bqList = selectedTags.map((item) => ({
|
||||
bqDm: item.bqDm || "",
|
||||
bqId: item.bqId || "",
|
||||
bqLb: item.bqLb || "",
|
||||
bqLx: item.bqLx || "",
|
||||
bqMc: item.bqMc || "",
|
||||
bqZl: item.bqZl || ""
|
||||
}));
|
||||
listQuery.value.bqList = tableDate.bqList;
|
||||
// 每个标签包含: bqDm, bqId, bqLb, bqLx, bqMc, bqZl 属性
|
||||
};
|
||||
|
||||
// 接收父组件传入的数据并回显
|
||||
const setFormData = (data) => {
|
||||
tableDate.bqList = data.bqList ?? [];
|
||||
listQuery.value = {
|
||||
...data // 假设 data 包含所有需要的字段
|
||||
};
|
||||
};
|
||||
// 关闭
|
||||
const close = () => {
|
||||
listQuery.value = {};
|
||||
dialogForm.value = false;
|
||||
loading.value = false;
|
||||
};
|
||||
// 删除
|
||||
const delDictItem = (bqId) => {
|
||||
tableDate.bqList = tableDate.bqList.filter((item) => item.bqId !== bqId);
|
||||
listQuery.value.bqList = tableDate.bqList;
|
||||
};
|
||||
// 2. 暴露获取数据的方法
|
||||
const getFormData = () => {
|
||||
// 可以在这里添加验证逻辑
|
||||
return {
|
||||
formData: listQuery.value
|
||||
};
|
||||
};
|
||||
defineExpose({ init, setFormData });
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "~@/assets/css/layout.scss";
|
||||
@import "~@/assets/css/element-plus.scss";
|
||||
::v-deep .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
|
||||
color: #0072ff;
|
||||
background: rgba(0, 114, 255, 0.3);
|
||||
}
|
||||
.boxlist {
|
||||
width: 99%;
|
||||
height: 225px;
|
||||
margin-top: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
@ -2,26 +2,30 @@
|
||||
<div>
|
||||
<div class="titleBox">
|
||||
<PageTitle title="重点人管理">
|
||||
<el-button type="primary" size="small" v-for="it in btns" :key="it">
|
||||
{{ it }}</el-button
|
||||
>
|
||||
<el-popover placement="bottom" :visible="visible" :width="400" trigger="click">
|
||||
<template #reference>
|
||||
<el-button type="primary" @click="visible =!visible" size="small">布控申请
|
||||
</el-button>
|
||||
</template>
|
||||
<div class="flex just-center">
|
||||
<el-button size="small" type="primary">列控申请</el-button>
|
||||
<el-button size="small" type="primary">变更申请</el-button>
|
||||
<el-button size="small" type="primary">管控申请</el-button>
|
||||
<el-button size="small" type="primary">协控申请</el-button>
|
||||
</div>
|
||||
</el-popover>
|
||||
<el-button size="small" type="primary">指定分配</el-button>
|
||||
<el-button size="small" type="primary">转线索</el-button>
|
||||
<el-button size="small" type="primary">移交管控</el-button>
|
||||
<el-button type="primary" size="small" @click="addEdit('add', '')">
|
||||
<el-icon style="vertical-align: middle"><CirclePlus /></el-icon>
|
||||
<span style="vertical-align: middle">新增</span>
|
||||
</el-button>
|
||||
<el-button type="danger" size="small" @click="addEdit('add', '')">
|
||||
<el-icon style="vertical-align: middle"><Dete /></el-icon>
|
||||
<span style="vertical-align: middle">批量删除</span>
|
||||
</el-button>
|
||||
</PageTitle>
|
||||
</div>
|
||||
<!-- 搜索 -->
|
||||
<div ref="searchBox">
|
||||
<Search
|
||||
:searchArr="searchConfiger"
|
||||
@submit="onSearch"
|
||||
:key="pageData.keyCount"
|
||||
/>
|
||||
<Search :searchArr="searchConfiger" @submit="onSearch"/>
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div class="tabBox">
|
||||
@ -39,84 +43,39 @@
|
||||
<img src="" alt="" />
|
||||
<ul>
|
||||
<li>姓名:{{ row.ryXm }}</li>
|
||||
<li class="rowClass">
|
||||
性别:
|
||||
<DictTag :tag="false" :value="row.ryXb" :options="D_BZ_XB" />
|
||||
</li>
|
||||
<li class="rowClass">
|
||||
籍贯:
|
||||
<DictTag
|
||||
:tag="false"
|
||||
:value="row.ryJg"
|
||||
:options="D_BZ_XZQHDM"
|
||||
/>
|
||||
</li>
|
||||
<li class="rowClass"> 性别:<DictTag :tag="false" :value="row.ryXb" :options="D_BZ_XB" /></li>
|
||||
<li class="rowClass">籍贯:<DictTag :tag="false" :value="row.ryJg" :options="D_BZ_XZQHDM"/> </li>
|
||||
<li>身份证:{{ row.rySfzh }}</li>
|
||||
<li>出生日期:{{ row.ryCsrq }}</li>
|
||||
<li class="rowClass">
|
||||
民族:
|
||||
<DictTag :tag="false" :value="row.ryMz" :options="D_BZ_MZ" />
|
||||
</li>
|
||||
<li class="rowClass">民族:<DictTag :tag="false" :value="row.ryMz" :options="D_BZ_MZ" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
v-for="(item, index) in row.bqList"
|
||||
>
|
||||
{{ item.bqMc }}</el-button
|
||||
>
|
||||
<el-button :key="index" type="primary" size="small" v-for="(item, index) in row.bqList">{{ item.bqMc }}</el-button>
|
||||
</div>
|
||||
</template>
|
||||
<template #jzxx="{ row }">
|
||||
<div class="rowClass">
|
||||
户籍地区划:
|
||||
<DictTag :tag="false" :value="row.hjdQh" :options="D_BZ_XZQHDM" />
|
||||
</div>
|
||||
<div class="rowClass">户籍地区划:<DictTag :tag="false" :value="row.hjdQh" :options="D_BZ_XZQHDM" /></div>
|
||||
<div>户籍派出所:{{ row.hjdPcsmc }}</div>
|
||||
<div>户籍地详址:{{ row.hjdXz }}</div>
|
||||
</template>
|
||||
<template #gxdw="{ row }">
|
||||
<div>管辖单位:{{ row.gxSsbmmc }}</div>
|
||||
<div class="rowClass">
|
||||
人员级别:
|
||||
<DictTag
|
||||
:tag="false"
|
||||
:value="row.zdrRyjb"
|
||||
:options="D_GS_ZDR_RYJB"
|
||||
/>
|
||||
</div>
|
||||
<div class="rowClass">人员级别: <DictTag :tag="false" :value="row.zdrRyjb" :options="D_GS_ZDR_RYJB"/> </div>
|
||||
<div>管控原因:{{ zdrLkyy }}</div>
|
||||
<div class="rowClass">
|
||||
管控状态:
|
||||
<DictTag
|
||||
:tag="false"
|
||||
:value="row.zdrBkZt"
|
||||
:options="D_GS_ZDR_BK_ZT"
|
||||
/>
|
||||
</div>
|
||||
<div class="rowClass">管控状态:<DictTag :tag="false" :value="row.zdrBkZt" :options="D_GS_ZDR_BK_ZT"/></div>
|
||||
</template>
|
||||
<template #zdrCzzt="{ row }">
|
||||
<DictTag :tag="false" :value="row.zdrCzzt" :options="D_GS_ZDR_CZZT" />
|
||||
</template>
|
||||
<template #xtSjzt="{ row }">
|
||||
<div>
|
||||
{{ row.xtSjzt == 0 ? "注销" : row.xtSjzt == 1 ? "正常" : "封存" }}
|
||||
</div>
|
||||
<div>{{ row.xtSjzt == 0 ? "注销" : row.xtSjzt == 1 ? "正常" : "封存" }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link size="small" type="success" @click="addEdit('edit', row)"
|
||||
>编辑</el-link
|
||||
>
|
||||
<el-link size="small" type="primary" @click="infoList('info', row)"
|
||||
>查看</el-link
|
||||
>
|
||||
<el-link size="small" type="danger" @click="deleteRow(row)"
|
||||
>删除</el-link
|
||||
>
|
||||
<el-link size="small" type="success" @click="addEdit('edit', row)">编辑</el-link >
|
||||
<el-link size="small" type="danger" @click="deleteRow(row)" >删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages
|
||||
@ -130,8 +89,7 @@
|
||||
></Pages>
|
||||
</div>
|
||||
<!-- 详情 -->
|
||||
<addForm ref="addFormDiloag" />
|
||||
<DetailForm ref="detailDiloag" />
|
||||
<AddForm ref="addFormDiloag" v-if="show" :dic="{D_GS_ZDR_RYJB,D_BZ_XB,D_BZ_MZ,D_BZ_XZQHDM,D_GS_ZDR_BK_ZT,D_GS_ZDR_CZZT,D_GS_BQ_ZL,D_GS_BQ_LB,D_GS_BQ_LX,D_GS_ZDR_YJDJ,D_GS_BK_SSJZ}" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -140,45 +98,14 @@ 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 addForm from "./components/addForm.vue";
|
||||
import DetailForm from "./components/infoForm.vue";
|
||||
|
||||
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
||||
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
|
||||
import AddForm from "./components/addForm.vue";
|
||||
import { qcckGet } from "@/api/qcckApi.js";
|
||||
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const {
|
||||
D_GS_BK_SSJZ,
|
||||
D_GS_ZDR_RYJB,
|
||||
D_BZ_XB,
|
||||
D_BZ_MZ,
|
||||
D_BZ_XZQHDM,
|
||||
D_GS_ZDR_BK_ZT,
|
||||
D_GS_ZDR_CZZT
|
||||
} = proxy.$dict(
|
||||
"D_GS_BK_SSJZ",
|
||||
"D_GS_ZDR_RYJB",
|
||||
"D_BZ_XB",
|
||||
"D_BZ_MZ",
|
||||
"D_BZ_XZQHDM",
|
||||
"D_GS_ZDR_BK_ZT",
|
||||
"D_GS_ZDR_CZZT"
|
||||
); //获取字典数据
|
||||
const detailDiloag = ref();
|
||||
const {D_GS_ZDR_RYJB,D_BZ_XB,D_BZ_MZ,D_BZ_XZQHDM,D_GS_ZDR_BK_ZT,D_GS_ZDR_CZZT,D_GS_BQ_ZL,D_GS_BQ_LB,D_GS_BQ_LX,D_GS_ZDR_YJDJ,D_GS_BK_SSJZ } = proxy.$dict("D_GS_ZDR_RYJB","D_BZ_XB","D_BZ_MZ","D_BZ_XZQHDM","D_GS_ZDR_BK_ZT","D_GS_ZDR_CZZT","D_GS_BQ_ZL","D_GS_BQ_LB","D_GS_BQ_LX","D_GS_ZDR_YJDJ","D_GS_BK_SSJZ");
|
||||
const show = ref(false);
|
||||
const addFormDiloag = ref();
|
||||
const searchBox = ref(); //搜索框
|
||||
const btns = reactive([
|
||||
"一键布控",
|
||||
"维护群体",
|
||||
"矛盾化解",
|
||||
"转指令",
|
||||
"转线索",
|
||||
"转督导",
|
||||
"转合成",
|
||||
"移交管控",
|
||||
"批量导入",
|
||||
"导出"
|
||||
]);
|
||||
const searchConfiger = ref([
|
||||
{
|
||||
label: "姓名",
|
||||
@ -198,36 +125,6 @@ const searchConfiger = ref([
|
||||
placeholder: "请输入户籍地",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "户籍地派出所",
|
||||
prop: "hjdPcsdm",
|
||||
placeholder: "请输入户籍地派出所",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "现居地",
|
||||
prop: "xzdXz",
|
||||
placeholder: "请输入现居地",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "现居地派出所",
|
||||
prop: "xzdPcsmc",
|
||||
placeholder: "请输入现居地派出所",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "入库开始时间",
|
||||
prop: "startTime",
|
||||
placeholder: "请选择入库开始时间",
|
||||
showType: "date"
|
||||
},
|
||||
{
|
||||
label: "入库结束时间",
|
||||
prop: "endTime",
|
||||
placeholder: "请输入入库结束时间",
|
||||
showType: "date"
|
||||
},
|
||||
{
|
||||
label: "人员级别",
|
||||
prop: "zdrRyjb",
|
||||
@ -235,89 +132,14 @@ const searchConfiger = ref([
|
||||
showType: "select",
|
||||
options: D_GS_ZDR_RYJB
|
||||
},
|
||||
{
|
||||
label: "所属警种",
|
||||
prop: "zdrSsjz",
|
||||
placeholder: "请选择所属警种",
|
||||
showType: "select",
|
||||
options: D_GS_BK_SSJZ
|
||||
},
|
||||
{
|
||||
label: "管辖单位",
|
||||
prop: "gxSsbmmc",
|
||||
placeholder: "请选择管辖单位",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "涉及警种",
|
||||
prop: "zdrSjjz",
|
||||
placeholder: "请选择涉及警种",
|
||||
showType: "select",
|
||||
options: D_GS_BK_SSJZ,
|
||||
multiple: true
|
||||
},
|
||||
{
|
||||
label: "管辖民警姓名",
|
||||
prop: "gkMjXm",
|
||||
placeholder: "请输入管辖民警姓名",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "管辖民警警号",
|
||||
prop: "gkMjJh",
|
||||
placeholder: "请输入管辖民警警号",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "管辖民警联系方式",
|
||||
prop: "gkMjLxfs",
|
||||
placeholder: "请输入管辖民警联系方式",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "管辖原因",
|
||||
prop: "zdrLkyy",
|
||||
placeholder: "请输入管辖原因",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "被管控人联系方式",
|
||||
prop: "ryLxdh",
|
||||
placeholder: "请输入被管控人联系方式",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "责任单位",
|
||||
prop: "zrSsbmmc",
|
||||
placeholder: "请选择责任单位",
|
||||
showType: "input"
|
||||
},
|
||||
{
|
||||
label: "人员标签大类",
|
||||
prop: "bqDl",
|
||||
placeholder: "请选择人员标签大类",
|
||||
showType: "select"
|
||||
},
|
||||
{
|
||||
label: "人员标签细类",
|
||||
prop: "bqXl",
|
||||
placeholder: "请选择人员标签细类",
|
||||
showType: "select"
|
||||
}
|
||||
]);
|
||||
|
||||
const pageData = reactive({
|
||||
tableData: [
|
||||
{
|
||||
img: "",
|
||||
jbxx: "",
|
||||
wkrs: "1/5"
|
||||
}
|
||||
],
|
||||
tableData: [],
|
||||
keyCount: 0,
|
||||
tableConfiger: {
|
||||
rowHieght: 61,
|
||||
showSelectType: "checkBox",
|
||||
showSelectType: "null",
|
||||
loading: false
|
||||
},
|
||||
total: 0,
|
||||
@ -342,12 +164,6 @@ onMounted(() => {
|
||||
tabHeightFn();
|
||||
});
|
||||
|
||||
//选择类型
|
||||
const handleType = (val) => {
|
||||
pageData.keyCount++;
|
||||
pageData.pageConfiger.pageCurrent = 1;
|
||||
getList();
|
||||
};
|
||||
// 搜索
|
||||
const onSearch = (val) => {
|
||||
queryFrom.value = { ...val };
|
||||
@ -368,30 +184,26 @@ const changeSize = (val) => {
|
||||
const getList = (val) => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
||||
let url = "/mosty-gsxt/tbGsxtZdry/selectPage";
|
||||
qcckGet(data, url)
|
||||
.then((res) => {
|
||||
pageData.tableData = res.records || [];
|
||||
pageData.total = res.total;
|
||||
pageData.tableConfiger.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
pageData.tableConfiger.loading = false;
|
||||
});
|
||||
qcckGet(data, "/mosty-gsxt/tbGsxtZdry/selectPage").then((res) => {
|
||||
pageData.tableData = res.records || [];
|
||||
pageData.total = res.total;
|
||||
pageData.tableConfiger.loading = false;
|
||||
}).catch(() => {
|
||||
pageData.tableConfiger.loading = false;
|
||||
});
|
||||
};
|
||||
|
||||
//新增编辑
|
||||
const addEdit = (type, row) => {
|
||||
addFormDiloag.value.init(type, row);
|
||||
};
|
||||
// 详情
|
||||
const infoList = (type, row) => {
|
||||
detailDiloag.value.init(type, row);
|
||||
show.value = true;
|
||||
setTimeout(() => {
|
||||
addFormDiloag.value.init(type, row);
|
||||
},400);
|
||||
};
|
||||
|
||||
// 表格高度计算
|
||||
const tabHeightFn = () => {
|
||||
pageData.tableHeight =
|
||||
window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||
window.onresize = function () {
|
||||
tabHeightFn();
|
||||
};
|
||||
|
@ -52,7 +52,6 @@
|
||||
>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link type="primary" size="small">详情</el-link>
|
||||
<el-link type="primary" size="small">网上会商</el-link>
|
||||
<el-link type="primary" size="small">处置</el-link>
|
||||
<el-link type="primary" size="small">反馈</el-link>
|
||||
|
Reference in New Issue
Block a user