|
|
|
|
@ -4,20 +4,39 @@
|
|
|
|
|
<el-form :label-width="114"> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="所在单位"> |
|
|
|
|
<depart-tree-select |
|
|
|
|
v-model="query.departId" |
|
|
|
|
:check-strictly="false" |
|
|
|
|
<el-form-item label="统计时间"> |
|
|
|
|
<date-time-range-picker-ext |
|
|
|
|
v-model="query.crtTime" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="统计时间"> |
|
|
|
|
<date-time-range-picker-ext |
|
|
|
|
v-model="query.crtTime" |
|
|
|
|
<el-form-item label="姓名"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="query.name" |
|
|
|
|
placeholder="请输入" |
|
|
|
|
clearable |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="警号"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="query.empNo" |
|
|
|
|
placeholder="请输入" |
|
|
|
|
clearable |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="所在单位"> |
|
|
|
|
<depart-tree-select |
|
|
|
|
v-model="query.departId" |
|
|
|
|
:check-strictly="false" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
</el-form> |
|
|
|
|
<div class="mb-25 flex end"> |
|
|
|
|
@ -35,19 +54,37 @@
|
|
|
|
|
<div class="table-container"> |
|
|
|
|
<el-table :data="list"> |
|
|
|
|
<el-table-column label="姓名" prop="name" /> |
|
|
|
|
<el-table-column label="性别" /> |
|
|
|
|
<el-table-column label="职务" prop="" /> |
|
|
|
|
<el-table-column label="性别"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<span>{{ getGenderFromIdCode(row.idCode) }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="职务" prop="position" /> |
|
|
|
|
<el-table-column label="警号" prop="empNo" /> |
|
|
|
|
<el-table-column label="任职年限" prop="" /> |
|
|
|
|
<el-table-column label="单位名称" prop="policeSize" /> |
|
|
|
|
<el-table-column label="任职年限" prop="employmentDate" /> |
|
|
|
|
<el-table-column label="所属单位" prop="departName"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<span |
|
|
|
|
>{{ |
|
|
|
|
row.parentDepartName |
|
|
|
|
? row.parentDepartName + "/" |
|
|
|
|
: row.parentDepartName |
|
|
|
|
}}{{ row.departName }}</span |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
label="查实问题数" |
|
|
|
|
prop="verifySize" |
|
|
|
|
width="120" |
|
|
|
|
align="center" |
|
|
|
|
/> |
|
|
|
|
<el-table-column label="操作" width="160"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button type="primary" link @click="show = true" |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
@click="handleShowProfile(row)" |
|
|
|
|
>问题画像</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
@ -70,59 +107,74 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-dialog title="单位问题画像" v-model="show" width="85vw" top="2vh"> |
|
|
|
|
<el-dialog title="个人问题画像" v-model="show" width="85vw" top="2vh"> |
|
|
|
|
<header class="flex center v-center gap"> |
|
|
|
|
<label>统计范围</label> |
|
|
|
|
<div style="width: 320px"> |
|
|
|
|
<date-time-range-picker-ext v-model="query.crtTime" style="width: 300px" /> |
|
|
|
|
<date-time-range-picker-ext |
|
|
|
|
v-model="time" |
|
|
|
|
style="width: 300px" |
|
|
|
|
@change="getProfileData" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<el-button type="primary">查询</el-button> |
|
|
|
|
<el-button type="primary" @click="getProfileData">查询</el-button> |
|
|
|
|
</header> |
|
|
|
|
<main> |
|
|
|
|
<el-row> |
|
|
|
|
<main v-loading="loading"> |
|
|
|
|
<el-row class="mb-20"> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<h5>单位情况</h5> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col col-24"> |
|
|
|
|
<label>单位名称</label> |
|
|
|
|
<span>{{}}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="col col-24"> |
|
|
|
|
<label>所长</label> |
|
|
|
|
<span>{{}}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="col col-24"> |
|
|
|
|
<label>副所长</label> |
|
|
|
|
<span>{{}}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<h5>民警基本情况</h5> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<description-pair |
|
|
|
|
label1="民警总人数" |
|
|
|
|
label2="问题涉及民警数" |
|
|
|
|
value1="132" |
|
|
|
|
value2="21" |
|
|
|
|
size="large" |
|
|
|
|
/> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<description-pair |
|
|
|
|
label1="协辅警人数" |
|
|
|
|
label2="问题涉及协辅警数" |
|
|
|
|
value1="132" |
|
|
|
|
value2="21" |
|
|
|
|
size="large" |
|
|
|
|
/> |
|
|
|
|
<el-col :span="6"> </el-col> |
|
|
|
|
<el-col :span="18"> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col col-12"> |
|
|
|
|
<label>姓名</label> |
|
|
|
|
<span>{{ policeInfo.name }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="col col-12"> |
|
|
|
|
<label>性别</label> |
|
|
|
|
<span>{{ |
|
|
|
|
getGenderFromIdCode(policeInfo.idCode) |
|
|
|
|
}}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="col col-24"> |
|
|
|
|
<label>所属单位</label> |
|
|
|
|
<span> |
|
|
|
|
<span |
|
|
|
|
>{{ |
|
|
|
|
activeRow.parentDepartName |
|
|
|
|
? activeRow.parentDepartName + |
|
|
|
|
"/" |
|
|
|
|
: activeRow.parentDepartName |
|
|
|
|
}}{{ activeRow.departName }}</span |
|
|
|
|
> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="col col-12"> |
|
|
|
|
<label>警号</label> |
|
|
|
|
<span>{{ policeInfo.empNo }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="col col-12"> |
|
|
|
|
<label>任职年份</label> |
|
|
|
|
<span>{{ policeInfo.employmentDate }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="col col-12"> |
|
|
|
|
<label>手机号</label> |
|
|
|
|
<span>{{ policeInfo.mobile }}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<h5>问题情况</h5> |
|
|
|
|
<el-row> |
|
|
|
|
<el-row |
|
|
|
|
class="flex v-center" |
|
|
|
|
style="height: calc(100% - 76px)" |
|
|
|
|
> |
|
|
|
|
<el-col :span="6" class="text-center"> |
|
|
|
|
<div class="text-primary" style="font-size: 34px"> |
|
|
|
|
51 |
|
|
|
|
{{ activeRow.verifySize }} |
|
|
|
|
</div> |
|
|
|
|
<div>问题总数</div> |
|
|
|
|
</el-col> |
|
|
|
|
@ -132,16 +184,16 @@
|
|
|
|
|
<description-pair |
|
|
|
|
label1="110接处警量" |
|
|
|
|
label2="问题数" |
|
|
|
|
value1="132" |
|
|
|
|
value2="21" |
|
|
|
|
:value1="negativeInfo.jcjBusinessSize" |
|
|
|
|
:value2="negativeInfo.jcjSize" |
|
|
|
|
/> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<description-pair |
|
|
|
|
label1="执法办案" |
|
|
|
|
label2="问题数" |
|
|
|
|
value1="132" |
|
|
|
|
value2="21" |
|
|
|
|
:value1="negativeInfo.zfbaBusinessSize" |
|
|
|
|
:value2="negativeInfo.zfbaSize" |
|
|
|
|
/> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
@ -158,21 +210,35 @@
|
|
|
|
|
:width="250" |
|
|
|
|
color="#DC6231" |
|
|
|
|
> |
|
|
|
|
<div> |
|
|
|
|
<span style="">78</span> |
|
|
|
|
<div style="line-height: 64px" class="mt-40"> |
|
|
|
|
<span |
|
|
|
|
style=" |
|
|
|
|
font-weight: 600; |
|
|
|
|
font-size: 60px; |
|
|
|
|
color: #e87749; |
|
|
|
|
" |
|
|
|
|
>78</span |
|
|
|
|
> |
|
|
|
|
<span style="font-size: 18px; color: #999" |
|
|
|
|
>分</span |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div style="font-size: 14px" class="mb-10"> |
|
|
|
|
分险指标值 |
|
|
|
|
</div> |
|
|
|
|
<div style="color: #e87749; font-size: 28px"> |
|
|
|
|
中风险 |
|
|
|
|
</div> |
|
|
|
|
<div>分险指标值</div> |
|
|
|
|
<div>中风险</div> |
|
|
|
|
</el-progress> |
|
|
|
|
</div> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-row class="mb-20"> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<h5>问题来源占比</h5> |
|
|
|
|
<v-charts |
|
|
|
|
style="height: 320px" |
|
|
|
|
:option="pieOptions" |
|
|
|
|
:option="problemSourcesPieOptions" |
|
|
|
|
autoresize |
|
|
|
|
/> |
|
|
|
|
</el-col> |
|
|
|
|
@ -180,62 +246,67 @@
|
|
|
|
|
<h5>业务类型占比</h5> |
|
|
|
|
<v-charts |
|
|
|
|
style="height: 320px" |
|
|
|
|
:option="pieOptions" |
|
|
|
|
:option="businessTypePieOptions" |
|
|
|
|
autoresize |
|
|
|
|
/> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<h5>风险问题构成</h5> |
|
|
|
|
<v-charts |
|
|
|
|
style="height: 320px" |
|
|
|
|
:option="radarOption" |
|
|
|
|
autoresize |
|
|
|
|
/> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<h5>个人问题排名</h5> |
|
|
|
|
<datav-chart-bar :data="barList" /> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<h5>突出问题排名</h5> |
|
|
|
|
<datav-chart-bar :data="barList" /> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8"> |
|
|
|
|
<h5>单位问题标签</h5> |
|
|
|
|
<datav-chart-bar :data="barList" /> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<h5>问题变化趋势</h5> |
|
|
|
|
<v-charts style="height: 320px" :option="barOption" autoresize /> |
|
|
|
|
<div></div> |
|
|
|
|
<h5>问题清单</h5> |
|
|
|
|
<el-table> |
|
|
|
|
<el-table-column label="发现时间" prop="" /> |
|
|
|
|
<el-table-column label="问题来源" prop="" /> |
|
|
|
|
<el-table-column label="业务类别" prop="" /> |
|
|
|
|
<el-table-column label="涉及单位" prop="" /> |
|
|
|
|
<el-table-column label="是否属实" prop="" width="180" /> |
|
|
|
|
<el-table-column |
|
|
|
|
label="完善情况" |
|
|
|
|
prop="departName" |
|
|
|
|
width="120" |
|
|
|
|
/> |
|
|
|
|
<el-table :data="negativeList"> |
|
|
|
|
<el-table-column label="发现时间" prop="discoveryTime" /> |
|
|
|
|
<el-table-column label="问题来源" prop="problemSources" /> |
|
|
|
|
<el-table-column label="业务类别" prop="businessTypeName" /> |
|
|
|
|
<el-table-column label="涉及单位" prop="involveDepartName" /> |
|
|
|
|
<el-table-column |
|
|
|
|
label="最后编辑人" |
|
|
|
|
prop="fxzs" |
|
|
|
|
width="120" |
|
|
|
|
label="核查情况" |
|
|
|
|
prop="checkStatusName" |
|
|
|
|
width="140" |
|
|
|
|
align="center" |
|
|
|
|
/> |
|
|
|
|
<el-table-column label="操作" width="160"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button type="primary" link @click="handleAction(row)">查看详情</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="flex end mt-8"> |
|
|
|
|
<el-pagination |
|
|
|
|
@size-change="getNegativeList" |
|
|
|
|
@current-change="getNegativeList" |
|
|
|
|
:current-page="negativeQuery.current" |
|
|
|
|
:page-sizes="[10, 20, 50]" |
|
|
|
|
:page-size="negativeQuery.size" |
|
|
|
|
v-model:current-page="negativeQuery.current" |
|
|
|
|
layout="total, sizes, prev, pager, next" |
|
|
|
|
:total="negativeTotal" |
|
|
|
|
> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</main> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<negative-dialog |
|
|
|
|
v-model="negativeShow" |
|
|
|
|
:id="activeNegativeId" |
|
|
|
|
@close="negativeShow = false" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import vCharts from "vue-echarts"; |
|
|
|
|
import { listDepartNegative } from "@/api/sensitivePerception/profileDepart"; |
|
|
|
|
import { onMounted } from "vue"; |
|
|
|
|
import { |
|
|
|
|
listPoliceNegative, |
|
|
|
|
getPoliceProfile, |
|
|
|
|
listNegativeByPoliceIdCode, |
|
|
|
|
listNegativeMonthly |
|
|
|
|
} from "@/api/sensitivePerception/profilePolice"; |
|
|
|
|
import { InspectCase } from "@/enums/dictEnums"; |
|
|
|
|
|
|
|
|
|
const query = ref({ |
|
|
|
|
current: 1, |
|
|
|
|
@ -245,57 +316,119 @@ const list = ref<any[]>([]);
|
|
|
|
|
const total = ref(0); |
|
|
|
|
|
|
|
|
|
function getList() { |
|
|
|
|
listPoliceNegative(query.value).then((data) => { |
|
|
|
|
list.value = data.records; |
|
|
|
|
total.value = data.total; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function reset() { |
|
|
|
|
query.value = { |
|
|
|
|
current: 1, |
|
|
|
|
size: 10, |
|
|
|
|
}; |
|
|
|
|
getList(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
getList(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const activeRow = ref({}); |
|
|
|
|
const show = ref(false); |
|
|
|
|
const policeInfo = ref({}); |
|
|
|
|
const negativeInfo = ref({}); |
|
|
|
|
const loading = ref(false); |
|
|
|
|
|
|
|
|
|
const barList = [ |
|
|
|
|
{ |
|
|
|
|
label: "张三", |
|
|
|
|
value: 67, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "李四", |
|
|
|
|
value: 80, |
|
|
|
|
const negativeQuery = ref({ |
|
|
|
|
checkStatusList: [InspectCase.TRUE, InspectCase.TRUE], |
|
|
|
|
}); |
|
|
|
|
const negativeList = ref([]); |
|
|
|
|
const negativeTotal = ref(0); |
|
|
|
|
|
|
|
|
|
const problemSourcesPieOptions = ref({ |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: "item", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "王五", |
|
|
|
|
value: 40, |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
type: "pie", |
|
|
|
|
radius: ["40%", "70%"], |
|
|
|
|
data: [], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}); |
|
|
|
|
const businessTypePieOptions = ref({ |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: "item", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "王五", |
|
|
|
|
value: 40, |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
type: "pie", |
|
|
|
|
radius: ["40%", "70%"], |
|
|
|
|
data: [], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const barOption = ref({ |
|
|
|
|
xAxis: { |
|
|
|
|
type: "category", |
|
|
|
|
data: [], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "王五", |
|
|
|
|
value: 10, |
|
|
|
|
yAxis: { |
|
|
|
|
type: "value", |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
data: [], |
|
|
|
|
type: "bar", |
|
|
|
|
color: "#5B8FF9 ", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const pieOptions = computed(() => { |
|
|
|
|
return { |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
type: "pie", |
|
|
|
|
radius: ["40%", "70%"], |
|
|
|
|
async function handleShowProfile(row) { |
|
|
|
|
activeRow.value = row; |
|
|
|
|
show.value = true; |
|
|
|
|
time.value = [] |
|
|
|
|
await getProfileData(); |
|
|
|
|
listNegativeMonthly(row.idCode).then(data => { |
|
|
|
|
barOption.value.xAxis.data = data.months |
|
|
|
|
barOption.value.series[0].data = data.values |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
data: [ |
|
|
|
|
{ value: 311, name: "慢作为" }, |
|
|
|
|
{ value: 735, name: "意见建议" }, |
|
|
|
|
{ value: 580, name: "违法违纪违规" }, |
|
|
|
|
{ value: 484, name: "乱作为" }, |
|
|
|
|
{ value: 300, name: "其他" }, |
|
|
|
|
{ value: 300, name: "不作为" }, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
const time = ref([]); |
|
|
|
|
async function getProfileData() { |
|
|
|
|
loading.value = true; |
|
|
|
|
negativeQuery.value.idCode = activeRow.value.idCode; |
|
|
|
|
getNegativeList(); |
|
|
|
|
const data = await getPoliceProfile(activeRow.value.idCode, { |
|
|
|
|
beginTime: time.value.length ? time.value[0] : "", |
|
|
|
|
endTime: time.value.length ? time.value[1] : "", |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
policeInfo.value = data.policeInfo; |
|
|
|
|
negativeInfo.value = data.negativeInfo; |
|
|
|
|
problemSourcesPieOptions.value.series[0].data = data.problemSourcesList; |
|
|
|
|
businessTypePieOptions.value.series[0].data = data.businessTypeList; |
|
|
|
|
|
|
|
|
|
loading.value = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function getNegativeList() { |
|
|
|
|
if (time.value.length === 2) { |
|
|
|
|
negativeQuery.value.beginTime = time.value[0]; |
|
|
|
|
negativeQuery.value.endTime = time.value[1]; |
|
|
|
|
} |
|
|
|
|
listNegativeByPoliceIdCode(activeRow.value.idCode, negativeQuery.value).then( |
|
|
|
|
(data) => { |
|
|
|
|
negativeList.value = data.records; |
|
|
|
|
negativeTotal.value = data.total; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const radarOption = { |
|
|
|
|
radar: { |
|
|
|
|
@ -322,21 +455,34 @@ const radarOption = {
|
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const barOption = { |
|
|
|
|
xAxis: { |
|
|
|
|
type: "category", |
|
|
|
|
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], |
|
|
|
|
}, |
|
|
|
|
yAxis: { |
|
|
|
|
type: "value", |
|
|
|
|
}, |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
data: [120, 200, 150, 80, 70, 110, 130], |
|
|
|
|
type: "bar", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getGenderFromIdCode(idCode) { |
|
|
|
|
// 检查身份证号码是否有效(长度为18位) |
|
|
|
|
if (!idCode || idCode.length !== 18) { |
|
|
|
|
return ''; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 获取第17位数字 |
|
|
|
|
const genderCode = parseInt(idCode.charAt(16), 10); |
|
|
|
|
|
|
|
|
|
// 检查是否为数字 |
|
|
|
|
if (isNaN(genderCode)) { |
|
|
|
|
return ''; |
|
|
|
|
} |
|
|
|
|
// 根据第17位数字判断性别 |
|
|
|
|
return genderCode % 2 === 0 ? "女" : "男"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const negativeShow = ref(false) |
|
|
|
|
const activeNegativeId = ref('') |
|
|
|
|
function handleAction(row) { |
|
|
|
|
negativeShow.value = true; |
|
|
|
|
activeNegativeId.value = row.id; |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.col { |
|
|
|
|
--label-width: 60px; |
|
|
|
|
} |
|
|
|
|
</style> |