Browse Source

fit: 问题录入区分二级录的和市局录入数据。

fit: 风险人员库,增加人员标签和高风险因素标签的查询条件;
fit: 预警问题,增加批量加入“问题分发”列表的功能;
fit: 核查办理,当“问题类型”选择“其他”时,需要填写其他具体问题类型
main
wxc 1 year ago
parent
commit
c1525b9c57
  1. 44
      src/components/negative/add.vue
  2. 8
      src/components/negative/verify-description.vue
  3. 2152
      src/components/negative/verify.vue
  4. 58
      src/components/problem-type-select.vue
  5. 97
      src/views/sensitivePerception/Model.vue
  6. 111
      src/views/sensitivePerception/ModelClueManual.vue
  7. 870
      src/views/sensitivePerception/RiskPersonnel.vue
  8. 26
      src/views/work/Query.vue

44
src/components/negative/add.vue

@ -45,28 +45,6 @@
message: '请选择业务类别',
trigger: ['blur'],
}"
content="梳理出13个业务类别和18种涉嫌问题这个结合事情的简要描述来判断一般情况下可与问题来源对应<br />
信访投诉督察支队<br />
业务类别除了支撑保障外都可能涉及<br />
涉嫌问题主要是不作为慢作为乱作为违法违纪违规最大限度遵循系统原来确定的<br />
警务调查督察支队<br />
业务类别110接处警122接处警人境窗口服务车驾管服务交警执法执法办案<br />
涉嫌问题主要是自动回访不满意处警速度不满意办事态度不满意办事效率不满意现场处置不满意调查取证不满意公正廉洁不满意<br />
警意调查警令部<br />
业务类别支撑保障<br />
涉嫌问题主要是警意调查不满意警意调查满意率低食堂测评<br />
执法监督法制支队<br />
业务类别执法办案<br />
涉嫌问题主要是调查取证不满意公正廉洁不满意执法安全不作为慢作为乱作为违法违纪违规业务工作问题突出<br />
钉钉考勤机关纪委<br />
业务类别队伍管理<br />
涉嫌问题主要是弄虚作假<br />
监督管理纪检组政治部机关党委机关纪委<br />
业务类别队伍管理<br />
涉嫌问题主要是违法违纪违规队伍管理问题<br />
检查考核六大中心<br />
业务类别都可包含<br />
涉嫌问题主要是业务工作问题突出"
>
<el-select
v-model="form.businessTypeCode"
@ -143,28 +121,6 @@
<el-col :span="12">
<el-form-item
label="涉嫌问题"
content="梳理出13个业务类别和18种涉嫌问题这个结合事情的简要描述来判断一般情况下可与问题来源对应<br />
信访投诉督察支队<br />
业务类别除了支撑保障外都可能涉及<br />
涉嫌问题主要是不作为慢作为乱作为违法违纪违规最大限度遵循系统原来确定的<br />
警务调查督察支队<br />
业务类别110接处警122接处警人境窗口服务车驾管服务交警执法执法办案<br />
涉嫌问题主要是自动回访不满意处警速度不满意办事态度不满意办事效率不满意现场处置不满意调查取证不满意公正廉洁不满意<br />
警意调查警令部<br />
业务类别支撑保障<br />
涉嫌问题主要是警意调查不满意警意调查满意率低食堂测评<br />
执法监督法制支队<br />
业务类别执法办案<br />
涉嫌问题主要是调查取证不满意公正廉洁不满意执法安全不作为慢作为乱作为违法违纪违规业务工作问题突出<br />
钉钉考勤机关纪委<br />
业务类别队伍管理<br />
涉嫌问题主要是弄虚作假<br />
监督管理纪检组政治部机关党委机关纪委<br />
业务类别队伍管理<br />
涉嫌问题主要是违法违纪违规队伍管理问题<br />
检查考核六大中心<br />
业务类别都可包含<br />
涉嫌问题主要是业务工作问题突出"
prop="involveProblem"
:rules="{
required: true,

8
src/components/negative/verify-description.vue

@ -75,7 +75,9 @@
<span
>{{ problem.oneLevelContent }} /
{{ problem.twoLevelContent }} /
{{ problem.threeLevelContent }}</span
{{ problem.threeLevelContent }}
{{ problem.threeLevelContent === '其他' && problem.threeLevelContentOther ? `(${problem.threeLevelContentOther})` : ''}}
</span
>
</div>
</div>
@ -186,7 +188,9 @@
<span
>{{ problem.oneLevelContent }} /
{{ problem.twoLevelContent }} /
{{ problem.threeLevelContent }}</span
{{ problem.threeLevelContent }}
{{ problem.threeLevelContent === '其他' && problem.threeLevelContentOther ? `(${problem.threeLevelContentOther})` : ''}}
</span
>
</div>
</div>

2152
src/components/negative/verify.vue

File diff suppressed because it is too large Load Diff

58
src/components/problem-type-select.vue

@ -1,52 +1,42 @@
<template>
<div class="flex">
<el-tree-select
v-model="value"
:data="dictContent"
:props="{
label: 'name',
value: 'code',
}"
node-key="code"
clearable
filterable
accordion
style="width: 420px"
@current-change="handleChange"
/>
<div class="ml-16">
<span>{{ activeNode.parent?.parent?.label ? activeNode.parent.parent.label + ' / ': '' }}</span>
<span>{{ activeNode.parent?.label ? activeNode.parent.label + ' / ': '' }}</span>
<span>{{ activeNode.label }}</span>
</div>
</div>
<el-tree-select
v-model="value"
:data="dictContent"
:props="{
label: 'name',
value: 'code',
}"
node-key="code"
clearable
filterable
accordion
style="width: 320px"
@current-change="handleChange"
/>
</template>
<script setup>
import useCatchStore from "@/stores/modules/catch";
const catchSotre = useCatchStore();
const dictContent = catchSotre.getDictContent();
const activeNode = ref({})
const props = defineProps({
modelValue: {
type: String
}
})
const emit = defineEmits(['update:modelValue', 'change'])
type: String,
},
});
const emit = defineEmits(["update:modelValue", "change"]);
const value = ref(props.modelValue)
const value = ref(props.modelValue);
watch(props.modelValue, (val) => {
value.value = val
})
value.value = val;
});
watch(value, (val) => {
emit('update:modelValue', val)
})
emit("update:modelValue", val);
});
function handleChange(nodeData, node) {
activeNode.value = node
emit('change', node)
emit("change", node);
}
</script>
<style lang="scss" scoped>

97
src/views/sensitivePerception/Model.vue

@ -228,7 +228,7 @@
prop="modelDataType"
v-if="form.classId === GRJDBLFX_CLASS_ID"
>
<el-checkbox value="2" label="提醒通知" />
<el-checkbox value="2" label="预警通知" />
</el-form-item>
<el-form-item
label="数据类型"
@ -249,7 +249,24 @@
>
</el-radio-group>
</el-form-item>
<el-form-item
label="预警通知处置"
prop="modelDataType"
:rules="{
required: true,
message: '请选择数据类型',
}"
v-if="form.modelDataType === '2'"
>
<el-select
style="width: 280px"
clearable
v-model="form.warningHandling"
>
<el-option label="预警处置" :value="1" />
<el-option label="提醒通知" :value="2" />
</el-select>
</el-form-item>
<el-form-item
label="分发方式"
prop="distributionMethod"
@ -341,6 +358,65 @@
</el-form-item>
</div>
</el-form-item>
<el-form-item
label="业务类别"
prop="businessTypeCode"
:rules="{
required: true,
message: '请选择业务类别',
trigger: ['blur'],
}"
>
<el-select v-model="form.businessTypeCode" style="width: 280px">
<el-option
v-for="item in dict.businessType"
:key="item.id"
:label="item.dictLabel"
:value="item.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item
label="涉嫌问题"
prop="involveProblem"
:rules="{
required: true,
message: '请选择涉嫌问题',
trigger: ['blur'],
}"
>
<el-select
v-model="form.involveProblemCode"
multiple
@change="handleSelectInvolveProblem"
clearable
style="width: 280px"
>
<el-option
v-for="item in dict.suspectProblem"
:key="item.id"
:label="item.dictLabel"
:value="item.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item label="涉及警种" prop="policeType">
<el-select
v-model="form.policeType"
clearable
style="width: 280px"
>
<el-option
v-for="item in dict.policeType"
:key="item.id"
:label="item.dictLabel"
:value="item.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item label="问题类型" prop="">
<problem-type-select />
</el-form-item>
<el-form-item
label="办理时限"
prop="timeLimit"
@ -767,6 +843,19 @@ function goClue() {
});
}
}
function handleSelectInvolveProblem(vals) {
form.value.involveProblem = vals.map((val) => {
const dictItem = dict.suspectProblem.filter(
(item) => item.dictValue === val
)[0];
return {
dictType: "suspectProblem",
dictLabel: dictItem.dictLabel,
dictValue: dictItem.dictValue,
};
});
}
</script>
<style lang="scss" scoped>
.menu {
@ -774,13 +863,13 @@ function goClue() {
height: 47px;
line-height: 47px;
padding-left: 36px;
white-space: nowrap;
text-overflow: ellipsis;
&:hover,
&[active="true"] {
background: #e1e5ff;
cursor: pointer;
}
white-space: nowrap;
text-overflow: ellipsis;
}
}
.model-card {

111
src/views/sensitivePerception/ModelClueManual.vue

@ -35,14 +35,22 @@
</el-row>
</el-form>
<div class="flex between mb-20">
<el-badge :value="manualList.length">
<el-button
type="primary"
:disabled="manualList.length === 0"
@click="manualShow = true"
>问题分发</el-button
<div class="flex gap">
<el-button type="primary" @click="handleBathJoin">
<template #icon>
<icon name="el-icon-Plus" />
</template>
批量加入</el-button
>
</el-badge>
<el-badge :value="manualList.length">
<el-button
type="primary"
:disabled="manualList.length === 0"
@click="manualShow = true"
>分发列表</el-button
>
</el-badge>
</div>
<div>
<el-button type="primary" @click="getList">
<template #icon>
@ -55,7 +63,8 @@
</div>
</header>
<div class="table-container">
<el-table :data="list">
<el-table :data="list" ref="tableRef">
<el-table-column type="selection" width="55" />
<el-table-column
label="预警时间"
prop="createTime"
@ -64,7 +73,7 @@
<el-table-column
label="预警模型"
prop="modelName"
width="160"
width="180"
show-overflow-tooltip
/>
<el-table-column
@ -80,7 +89,7 @@
<el-table-column
label="涉及人员"
prop="involvePoliceName"
width="120"
width="100"
/>
<el-table-column
label="预警内容"
@ -94,7 +103,11 @@
>
<template #default="{ row }">
<span
:class="row.involveDepartId ? '' : 'text-warning'"
:class="
row.involveDepartId
? ''
: 'text-warning'
"
>{{
getDictLable(
dict.distributionState,
@ -104,7 +117,7 @@
>
</template>
</el-table-column>
<el-table-column label="操作" width="240">
<el-table-column label="操作" width="200">
<template #default="{ row }">
<el-button
type="primary"
@ -124,7 +137,7 @@
v-else
>从分发列表移除</el-button
>
<el-button
<!-- <el-button
type="danger"
link
@click="handleNotProcessed(row)"
@ -134,7 +147,7 @@
).length === 0
"
>暂不处理</el-button
>
> -->
</template>
</el-table-column>
</el-table>
@ -351,22 +364,29 @@
</el-dialog>
<el-dialog title="配置涉及单位" v-model="editDepartShow" width="500">
<el-form :label-width="120" :model="editDepartForm" ref="editDepartFormRef">
<el-form-item label="涉及单位" :rules="{
required: true,
message: '请选择涉及单位',
}">
<depart-tree-select v-model="editDepartForm.departId" @node-click="(node) => editDepartForm.name = node.shortName" />
<el-form
:label-width="120"
:model="editDepartForm"
ref="editDepartFormRef"
>
<el-form-item
label="涉及单位"
:rules="{
required: true,
message: '请选择涉及单位',
}"
>
<depart-tree-select
v-model="editDepartForm.departId"
@node-click="
(node) => (editDepartForm.name = node.shortName)
"
/>
</el-form-item>
</el-form>
<footer class="flex end mt-40">
<el-button
@click="editDepartShow = false"
>取消</el-button
>
<el-button
type="primary"
@click="handleUpdatDepartModelClue"
<el-button @click="editDepartShow = false">取消</el-button>
<el-button type="primary" @click="handleUpdatDepartModelClue"
>确认</el-button
>
</footer>
@ -377,7 +397,7 @@ import { DistributionMethod } from "@/enums/dictEnums";
import {
listModelClue,
manuelModelClueTask,
updateDepartModelClue
updateDepartModelClue,
} from "@/api/sensitivePerception/modelClue";
import useCatchStore from "@/stores/modules/catch";
@ -427,10 +447,13 @@ const manualList = ref([]);
async function handleAddManuel(row) {
if (!row.involveDepartId) {
activeModelClueId = row.id
await feedback.confirm(`该数据的"涉及单位"为空,请先配置"涉及单位"再下发`, '去配置');
editDepartShow.value = true
return
activeModelClueId = row.id;
await feedback.confirm(
`该数据的"涉及单位"为空,请先配置"涉及单位"再下发`,
"去配置"
);
editDepartShow.value = true;
return;
}
manualList.value.push(row);
}
@ -511,18 +534,28 @@ async function handleSubmitManuelModelClueTask() {
getList();
}
const editDepartShow = ref(false)
const editDepartForm = ref({})
const editDepartFormRef = ref()
const editDepartShow = ref(false);
const editDepartForm = ref({});
const editDepartFormRef = ref();
let activeModelClueId = 0;
async function handleUpdatDepartModelClue() {
await editDepartFormRef.value.validate()
await updateDepartModelClue(activeModelClueId, editDepartForm.value)
editDepartShow.value = false
editDepartForm.value = {}
await editDepartFormRef.value.validate();
await updateDepartModelClue(activeModelClueId, editDepartForm.value);
editDepartShow.value = false;
editDepartForm.value = {};
getList();
}
const tableRef = ref();
function handleBathJoin() {
const rows = tableRef.value.getSelectionRows();
rows.forEach((row) => {
if (manualList.value.filter((item) => item.id === row.id).length === 0) {
manualList.value.push(row);
}
});
}
</script>
<style lang="scss" scoped>
</style>

870
src/views/sensitivePerception/RiskPersonnel.vue

@ -1,499 +1,501 @@
<template>
<div class="container">
<header>
<el-form :label-width="114">
<div class="container">
<header>
<el-form :label-width="114">
<el-row>
<el-col :span="6">
<el-form-item label="姓名">
<el-input
placeholder="请输入"
v-model="query.name"
clearable
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="身份证号">
<el-input
placeholder="请输入"
v-model="query.idCode"
clearable
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="手机号">
<el-input
placeholder="请输入"
v-model="query.mobileNumber"
clearable
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="年龄">
<el-input
placeholder="请输入"
v-model="query.age"
type="number"
clearable
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="人员标签">
<el-input v-model="query.tags" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="高风险因素">
<el-input v-model="query.smallTags" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="mb-25 flex end">
<div>
<el-button type="primary" @click="getList">
<template #icon>
<icon name="el-icon-Search" />
</template>
查询
</el-button>
<el-button @click="reset">重置</el-button>
</div>
</div>
</header>
<div class="table-container">
<el-table :data="list">
<el-table-column label="姓名" prop="name" width="100" />
<el-table-column
label="性别"
prop="gender"
width="60"
align="center"
>
<template #default="{ row }">
<span>{{ getGender(row.gender) }}</span>
</template>
</el-table-column>
<el-table-column label="年龄" prop="age" width="60" />
<el-table-column label="身份证号" prop="idCode" width="180" />
<el-table-column
label="手机号"
prop="mobileNumber"
width="120"
/>
<el-table-column
label="管控单位"
prop="controlDepartName"
width="120"
/>
<el-table-column label="人员标签" show-overflow-tooltip>
<template #default="{ row }">
<div class="flex gap-4 wrap" v-if="row.tags">
<el-tag
v-for="item in row.tags.split(',')"
:key="item"
>{{ item }}
</el-tag>
</div>
</template>
</el-table-column>
<el-table-column label="高风险因素" show-overflow-tooltip>
<template #default="{ row }">
<div class="flex gap-4 wrap" v-if="row.smallTags">
<el-tag
type="danger"
v-for="item in row.smallTags"
:key="item"
>{{ item }}
</el-tag>
</div>
</template>
</el-table-column>
<el-table-column
label="高风险指数"
prop="riskScore"
width="120"
align="center"
/>
<el-table-column label="操作" width="160">
<template #default="{ row }">
<el-button
type="primary"
link
@click="handleShowDesc(row)"
>查看详情
</el-button>
<el-button
type="primary"
link
@click="handleShowNotification"
>预警提醒
</el-button>
</template>
</el-table-column>
</el-table>
</div>
<div class="flex end mt-8">
<el-pagination
@size-change="getList"
@current-change="getList"
:current-page="query.current"
:page-sizes="[10, 20, 50]"
:page-size="query.size"
v-model:current-page="query.current"
layout="total, sizes, prev, pager, next"
:total="total"
>
</el-pagination>
</div>
</div>
<el-dialog title="风险人员详情" v-model="show" width="80vw" top="2vh">
<h5>风险人员基本情况</h5>
<el-row>
<el-col :span="6">
<el-form-item label="姓名">
<el-input
placeholder="请输入"
v-model="query.name"
clearable
/>
<el-col :span="1"></el-col>
<el-col :span="18">
<el-col :span="18">
<div class="col col-20">
<div class="person-photo">
<img src="@/assets/images/defaultPhoto.png" />
</div>
<div class="row" style="height: 100%">
<div class="col col-6">
<label>姓名</label>
<span>{{ activeRow.name }}</span>
</div>
<div class="col col-8">
<label>性别</label>
<span>{{ getGender(activeRow.gender) }}</span>
</div>
<div class="col col-10">
<label>证件号码</label>
<span>{{ activeRow.idCode }}</span>
</div>
<div class="row" style="width: 100%">
<div class="col col-6">
<label>年龄</label>
<span>{{ activeRow.age }}</span>
</div>
<div class="col col-8">
<label>管控单位</label>
<span>{{
activeRow.controlDepartName
}}</span>
</div>
<div class="col col-10">
<label>电话</label>
<span>{{ activeRow.mobileNumber }}</span>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col :span="5">
<div class="flex center column text-center">
<div class="socre-box">
{{ personal.riskPersonal.riskScore.toFixed(1) }}
</div>
<span style="font-size: 24px" class="mt-10">风险指数</span>
</div>
</el-col>
</el-row>
<div style="min-height: 50vh">
<div v-for="(item, index) in personal.riskClueList" :key="index">
<h5>{{ item.riskName }}</h5>
<el-table :data="item.clues" max-height="300">
<el-table-column
label="发生时间"
prop="eventTime"
width="160"
/>
<el-table-column
label="风险因素"
prop="riskReason"
width="160"
show-overflow-tooltip
/>
<el-table-column label="风险内容" show-overflow-tooltip>
<template #default="{ row }">
<span style="white-space: pre-wrap">{{
row.data
}}</span>
</template>
</el-table-column>
<el-table-column width="80" label="分值" prop="score" />
</el-table>
</div>
</div>
</el-dialog>
<el-dialog v-model="showNotification" title="创建提醒" width="600px">
<el-form label-width="148" :model="formData2" ref="formRef">
<el-form-item label="提醒类型">
<div class="flex gap">
<el-select
v-model="formData2.alarmTypeId"
style="min-width: 185px"
>
<el-option :value="1" label="预警问题" />
<el-option :value="2" label="风险问题" />
<el-option :value="3" label="提醒通知" />
</el-select>
</div>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="身份证号">
<el-input
placeholder="请输入"
v-model="query.idCode"
clearable
/>
<el-form-item
style="width: 333px"
label="被通知单位"
prop="involveDepartId"
:rules="{
message: '请选择问题涉及单位',
trigger: ['blur'],
}"
>
<depart-tree-select
v-model="formData2.involveDepartId"
:check-strictly="true"
@node-click="(row) => changeDepart(row)"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="手机号">
<el-input
placeholder="请输入"
v-model="query.mobileNumber"
clearable
/>
<el-form-item
label="被提醒民警"
prop="blameEmpNo"
:rules="{
required: true,
message: '请选择提醒民警',
trigger: ['blur'],
}"
>
<el-select
v-model="police"
value-key="idCode"
placeholder="请选择提醒民警"
@change="changePolice"
style="width: 240px"
>
<el-option
v-for="item in polices"
:key="item.idCode"
:label="item.name"
:value="item"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="年龄">
<el-input
placeholder="请输入"
v-model="query.age"
type="number"
clearable
/>
<el-form-item label="提醒内容">
<el-input
type="textarea"
v-model="formData2.alarmContent"
:autosize="{ minRows: 12 }"
:rules="{
message: '请填写提醒内容',
trigger: ['blur'],
}"
style="width: 280px"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="mb-25 flex end">
<div>
<el-button type="primary" @click="getList">
<template #icon>
<icon name="el-icon-Search"/>
</template>
查询
</el-button
>
<el-button @click="reset">重置</el-button>
</div>
</div>
</header>
<div class="table-container">
<el-table :data="list">
<el-table-column label="姓名" prop="name" width="100"/>
<el-table-column
label="性别"
prop="gender"
width="60"
align="center"
>
<template #default="{ row }">
<span>{{ getGender(row.gender) }}</span>
</template>
</el-table-column>
<el-table-column label="年龄" prop="age" width="60"/>
<el-table-column label="身份证号" prop="idCode" width="180"/>
<el-table-column
label="手机号"
prop="mobileNumber"
width="120"
/>
<el-table-column
label="管控单位"
prop="controlDepartName"
width="120"
/>
<el-table-column label="人员标签" show-overflow-tooltip>
<template #default="{ row }">
<div class="flex gap" v-if="row.tags">
<el-tag
v-for="item in row.tags.split(',')"
:key="item"
>{{ item }}
</el-tag
>
</div>
</template>
</el-table-column>
<el-table-column label="高风险因素" show-overflow-tooltip>
<template #default="{ row }">
<div class="flex gap" v-if="row.smallTags">
<el-tag
type="danger"
v-for="item in row.smallTags"
:key="item"
>{{ item }}
</el-tag
>
</div>
</template>
</el-table-column>
<el-table-column
label="高风险指数"
prop="riskScore"
width="120"
align="center"
/>
<el-table-column label="操作" width="160">
<template #default="{ row }">
<el-button
type="primary"
link
@click="handleShowDesc(row)"
>查看详情
</el-button
</el-form>
<footer class="flex end">
<el-button @click="showNotification = false" size="large"
>取消</el-button
>
<el-button
type="primary"
link
@click="handleShowNotification"
>预警提醒
<el-button type="primary" @click="handleNotification" size="large"
>提交
</el-button>
</template>
</el-table-column>
</el-table>
</div>
<div class="flex end mt-8">
<el-pagination
@size-change="getList"
@current-change="getList"
:current-page="query.current"
:page-sizes="[10, 20, 50]"
:page-size="query.size"
v-model:current-page="query.current"
layout="total, sizes, prev, pager, next"
:total="total"
>
</el-pagination>
</div>
</div>
<el-dialog title="风险人员详情" v-model="show" width="80vw" top="2vh">
<h5>风险人员基本情况</h5>
<el-row>
<el-col :span="1"></el-col>
<el-col :span="18">
<el-col :span="18">
<div class="col col-20">
<div class="person-photo">
<img src="@/assets/images/defaultPhoto.png" />
</div>
<div class="row" style="height: 100%">
<div class="col col-6">
<label>姓名</label>
<span>{{ activeRow.name }}</span>
</div>
<div class="col col-8">
<label>性别</label>
<span>{{ getGender(activeRow.gender) }}</span>
</div>
<div class="col col-10">
<label>证件号码</label>
<span>{{ activeRow.idCode }}</span>
</div>
<div class="row" style="width: 100%">
<div class="col col-6">
<label>年龄</label>
<span>{{ activeRow.age }}</span>
</div>
<div class="col col-8">
<label>管控单位</label>
<span>{{ activeRow.controlDepartName }}</span>
</div>
<div class="col col-10">
<label>电话</label>
<span>{{ activeRow.mobileNumber }}</span>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col :span="5">
<div class="flex center column text-center">
<div class="socre-box">
{{ personal.riskPersonal.riskScore.toFixed(1) }}
</div>
<span style="font-size: 24px" class="mt-10">风险指数</span>
</div>
</el-col>
</el-row>
<div style="min-height: 50vh">
<div v-for="(item, index) in personal.riskClueList" :key="index">
<h5>{{ item.riskName }}</h5>
<el-table :data="item.clues" max-height="300">
<el-table-column
label="发生时间"
prop="eventTime"
width="160"
/>
<el-table-column
label="风险因素"
prop="riskReason"
width="160"
show-overflow-tooltip
/>
<el-table-column
label="风险内容"
show-overflow-tooltip
>
<template #default="{ row }">
<span style="white-space: pre-wrap;">{{ row.data }}</span>
</template>
</el-table-column>
<el-table-column width="80" label="分值" prop="score"/>
</el-table>
</div>
</div>
</el-dialog>
<el-dialog v-model="showNotification" title="创建提醒" width="600px">
<el-form label-width="148" :model="formData2" ref="formRef">
<el-form-item label="提醒类型">
<div class="flex gap">
<el-select
v-model="formData2.alarmTypeId"
style="min-width: 185px"
>
<el-option :value="1" label="预警问题"/>
<el-option :value="2" label="风险问题"/>
<el-option :value="3" label="提醒通知"/>
</el-select>
</div>
</el-form-item>
<el-form-item
style="width: 333px"
label="被通知单位"
prop="involveDepartId"
:rules="{
message: '请选择问题涉及单位',
trigger: ['blur'],
}"
>
<depart-tree-select
v-model="formData2.involveDepartId"
:check-strictly="true"
@node-click=" (row) => changeDepart(row)"
/>
</el-form-item>
<el-form-item
label="被提醒民警"
prop="blameEmpNo"
:rules="{
required: true,
message: '请选择提醒民警',
trigger: ['blur'],
}"
>
<el-select
v-model="police"
value-key="idCode"
placeholder="请选择提醒民警"
@change="changePolice"
style="width: 240px"
>
<el-option
v-for="item in polices"
:key="item.idCode"
:label="item.name"
:value="item"
/>
</el-select>
</el-form-item>
<el-form-item
label="提醒内容"
>
<el-input
type="textarea"
v-model="formData2.alarmContent"
:autosize="{ minRows: 12 }"
:rules="{
message: '请填写提醒内容',
trigger: ['blur'],
}"
style="width: 280px"
/>
</el-form-item>
</el-form>
<footer class="flex end">
<el-button @click="showNotification = false" size="large">取消</el-button>
<el-button type="primary" @click="handleNotification" size="large"
>提交
</el-button
>
</footer>
</el-dialog>
</footer>
</el-dialog>
</template>
<script lang="ts" setup>
import {
listRiskPersonnel,
getRiskPersonnel,
listRiskPersonnel,
getRiskPersonnel,
} from "@/api/sensitivePerception/riskPersonnel";
import {ref} from "vue";
import {alarmNotificationCommit} from "~/api/work/alarm";
import { ref } from "vue";
import { alarmNotificationCommit } from "~/api/work/alarm";
import feedback from "~/utils/feedback";
import {listPoliceAll} from "~/api/system/police";
import { listPoliceAll } from "~/api/system/police";
const query = ref({});
const list = ref<any[]>([]);
const total = ref(0);
const show = ref(false);
let showNotification = ref(false)
let showNotification = ref(false);
let formData2 = ref({
alarmTypeId: 1,
involveDepartId: '',
involveDepartName: '',
alarmContent: '',
blameName: '',
blameIdCode: '',
blameEmpNo: '',
blames: {},
level: -1
})
let police = ref({})
let polices = ref([])
alarmTypeId: 1,
involveDepartId: "",
involveDepartName: "",
alarmContent: "",
blameName: "",
blameIdCode: "",
blameEmpNo: "",
blames: {},
level: -1,
});
let police = ref({});
let polices = ref([]);
const handleShowNotification = () => {
showNotification.value = true
}
showNotification.value = true;
};
const handleNotification = async () => {
if(formData2.value.involveDepartId == '') {
feedback.msgWarning("请选择被提醒单位");
return;
}
if(formData2.value.alarmContent == '') {
feedback.msgWarning("请填写提醒内容");
return;
}
if(formData2.value.policeIdCode == '') {
feedback.msgWarning("请选择被提醒民警");
return;
}
let data = {
alarmTypeId: formData2.value.alarmTypeId,
notificationDepartCode: formData2.value.involveDepartId,
notificationDepartName: formData2.value.involveDepartName,
alarmContent: formData2.value.alarmContent,
policeName: police.value.name,
policeIdCode: police.value.idCode,
policeNo: police.value.empNo
}
await alarmNotificationCommit(data);
showNotification.value = false;
feedback.msgSuccess("操作成功");
initFormData2();
}
if (formData2.value.involveDepartId == "") {
feedback.msgWarning("请选择被提醒单位");
return;
}
if (formData2.value.alarmContent == "") {
feedback.msgWarning("请填写提醒内容");
return;
}
if (formData2.value.policeIdCode == "") {
feedback.msgWarning("请选择被提醒民警");
return;
}
let data = {
alarmTypeId: formData2.value.alarmTypeId,
notificationDepartCode: formData2.value.involveDepartId,
notificationDepartName: formData2.value.involveDepartName,
alarmContent: formData2.value.alarmContent,
policeName: police.value.name,
policeIdCode: police.value.idCode,
policeNo: police.value.empNo,
};
await alarmNotificationCommit(data);
showNotification.value = false;
feedback.msgSuccess("操作成功");
initFormData2();
};
const initFormData2 = () => {
formData2.value = {
alarmTypeId: 1,
involveDepartId: '',
involveDepartName: '',
alarmContent: '',
blameName: '',
blameIdCode: '',
blameEmpNo: '',
blames: {},
level: -1
}
}
formData2.value = {
alarmTypeId: 1,
involveDepartId: "",
involveDepartName: "",
alarmContent: "",
blameName: "",
blameIdCode: "",
blameEmpNo: "",
blames: {},
level: -1,
};
};
const changeDepart = (row) => {
formData2.value.involveDepartName = row.shortName;
formData2.value.level = row.level
police.value = {}
getPolices(row.id);
}
formData2.value.involveDepartName = row.shortName;
formData2.value.level = row.level;
police.value = {};
getPolices(row.id);
};
const changePolice = (data) => {
police.value = {
idCode: data.idCode,
empNo: data.empNo,
name: data.name
}
}
const changePolice = (data) => {
police.value = {
idCode: data.idCode,
empNo: data.empNo,
name: data.name,
};
};
function getPolices(departId) {
if(departId=='') {
return;
}
listPoliceAll(departId).then(res => {
polices.value = res
})
if (departId == "") {
return;
}
listPoliceAll(departId).then((res) => {
polices.value = res;
});
}
function getList() {
listRiskPersonnel(query.value).then((data) => {
list.value = data.records;
total.value = data.total;
});
listRiskPersonnel(query.value).then((data) => {
list.value = data.records;
total.value = data.total;
});
}
function reset() {
query.value = {};
getList();
query.value = {};
getList();
}
onMounted(() => {
getList();
getList();
});
const activeRow = ref({});
const personal = ref({
riskClueList: [],
riskClueList: [],
});
async function handleShowDesc(row) {
activeRow.value = row;
const data = await getRiskPersonnel(row.id);
show.value = true;
personal.value = data;
activeRow.value = row;
const data = await getRiskPersonnel(row.id);
show.value = true;
personal.value = data;
}
const filterJsonData = (row) => {
if (row.data == undefined) {
return ''
}
try {
let j = JSON.parse(row.data)
if (j.sourceData != undefined) {
j = JSON.parse(row.sourceData)
if (row.data == undefined) {
return "";
}
let str = ''
for (let key in j) {
if (key == 'eventTime') {
continue
}
if (key == 'idCode') {
continue
}
if (key == 'departId') {
continue
}
if (key == 'personId') {
continue
}
if (key == 'name') {
continue
}
str += j[key] + '\n'
try {
let j = JSON.parse(row.data);
if (j.sourceData != undefined) {
j = JSON.parse(row.sourceData);
}
let str = "";
for (let key in j) {
if (key == "eventTime") {
continue;
}
if (key == "idCode") {
continue;
}
if (key == "departId") {
continue;
}
if (key == "personId") {
continue;
}
if (key == "name") {
continue;
}
str += j[key] + "\n";
}
return str;
} catch (e) {
return row.data;
}
return str
} catch (e) {
return row.data
}
}
};
function getGender(val) {
if (val == 1) {
return "男";
}
if (val == 2) {
return "女";
}
return "";
if (val == 1) {
return "男";
}
if (val == 2) {
return "女";
}
return "";
}
</script>
<style lang="scss" scoped>
.socre-box {
background: linear-gradient(180deg, #ffa36a 0%, #ff0000 100%);
border-radius: 9px;
border: 2px solid #f11d16;
height: 153px;
line-height: 153px;
text-align: center;
font-size: 124px;
color: #fff;
background: linear-gradient(180deg, #ffa36a 0%, #ff0000 100%);
border-radius: 9px;
border: 2px solid #f11d16;
height: 153px;
line-height: 153px;
text-align: center;
font-size: 124px;
color: #fff;
}
.person-photo {
text-align: center;
margin-bottom: 10px;
text-align: center;
margin-bottom: 10px;
}
.person-photo img {
max-height: 100%;
width: 200px;
max-height: 100%;
width: 200px;
}
</style>

26
src/views/work/Query.vue

@ -91,14 +91,7 @@
</el-form-item>
</el-col>
</el-row>
<query-select-row
v-for="(item, index) in queryItems"
:key="index"
:label="item.label"
:data="item.data"
v-model="query[item.key]"
@update="getList"
/>
<div class="form-row flex">
<label class="text-center">其他选项</label>
<div class="flex wrap query-box">
@ -222,6 +215,22 @@
</el-select>
<el-input placeholder="通报期数" size="small" style="width: 146px" v-model="query.reportNumber" clearable />
<!-- <el-input placeholder="任务ID" size="small" style="width: 146px" clearable /> -->
<el-select
size="small"
style="width: 146px"
placeholder="下发单位的层级"
clearable
v-model="query.crtDepartLevel"
>
<el-option
label="市局下发"
:value="0"
/>
<el-option
label="二级机构下发"
:value="2"
/>
</el-select>
</div>
</div>
</el-form>
@ -753,7 +762,6 @@ const flowNodes = catchStore.getFlowNodes();
const dictProblemSources = catchStore.getDictProblemSources();
const queryCrumbs = ref([]);
const queryItems = ref([]);
const query = ref({
current: 1,
size: 10,

Loading…
Cancel
Save