|
|
|
|
@ -197,6 +197,7 @@ const getConfinementFilesFun = async (id) => {
|
|
|
|
|
* */ |
|
|
|
|
const handleDetail = (row) => { |
|
|
|
|
formData.value = row; |
|
|
|
|
formData.value.files=[]; |
|
|
|
|
getConfinementFilesFun(row.id) |
|
|
|
|
let {birthTime, gender, age} = extractInfoFromID(row.idCode) |
|
|
|
|
formData.value.gender = gender |
|
|
|
|
@ -218,6 +219,7 @@ const handleDel = async (row) => {
|
|
|
|
|
* */ |
|
|
|
|
const handleUpDate = (row) => { |
|
|
|
|
formData.value = row; |
|
|
|
|
formData.value.files=[]; |
|
|
|
|
getConfinementFilesFun(row.id) |
|
|
|
|
let {birthTime, gender, age} = extractInfoFromID(row.idCode) |
|
|
|
|
formData.value.gender = gender |
|
|
|
|
@ -316,6 +318,7 @@ onMounted(() => {
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<div class="container"> |
|
|
|
|
|
|
|
|
|
<!--查询条件--> |
|
|
|
|
<header> |
|
|
|
|
<el-form> |
|
|
|
|
@ -464,21 +467,21 @@ onMounted(() => {
|
|
|
|
|
<div class="flex v-center"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
text |
|
|
|
|
link |
|
|
|
|
@click="handleDetail(row)" |
|
|
|
|
>详情 |
|
|
|
|
</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
text |
|
|
|
|
link |
|
|
|
|
@click="handleUpDate(row)" |
|
|
|
|
> |
|
|
|
|
编辑 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
text |
|
|
|
|
link |
|
|
|
|
@click="handleDel(row)" |
|
|
|
|
> |
|
|
|
|
删除 |
|
|
|
|
@ -487,6 +490,19 @@ onMounted(() => {
|
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div class="flex end mt-8"> |
|
|
|
|
<el-pagination |
|
|
|
|
@size-change="getList" |
|
|
|
|
@current-change="getList" |
|
|
|
|
:page-sizes="[10, 20, 50]" |
|
|
|
|
v-model:page-size="query.size" |
|
|
|
|
v-model:current-page="query.current" |
|
|
|
|
layout="total, sizes, prev, pager, next" |
|
|
|
|
:total="total" |
|
|
|
|
> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</main> |
|
|
|
|
<!-- 编辑表单--> |
|
|
|
|
@ -510,6 +526,7 @@ onMounted(() => {
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="6">姓名</el-col> |
|
|
|
|
<el-col :span="6">警号</el-col> |
|
|
|
|
<el-col :span="6">单位</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</template> |
|
|
|
|
<el-option v-for="(item,key) in users" :key="key" :label="item.name" |
|
|
|
|
@ -517,6 +534,7 @@ onMounted(() => {
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="6">{{item.name}}</el-col> |
|
|
|
|
<el-col :span="6">{{item.empNo}}</el-col> |
|
|
|
|
<el-col :span="6">{{item.departShortName}}</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
@ -677,7 +695,7 @@ onMounted(() => {
|
|
|
|
|
<el-form-item label="开始日期" prop="startTime"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="formData.startTime" |
|
|
|
|
type="datetime" |
|
|
|
|
type="date" |
|
|
|
|
placeholder="请选择" |
|
|
|
|
value-format="YYYY-MM-DD HH:mm" |
|
|
|
|
time-format="HH:mm" |
|
|
|
|
@ -690,7 +708,7 @@ onMounted(() => {
|
|
|
|
|
<el-form-item label="结束日期" prop="endTime"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="formData.endTime" |
|
|
|
|
type="datetime" |
|
|
|
|
type="date" |
|
|
|
|
placeholder="请选择" |
|
|
|
|
value-format="YYYY-MM-DD HH:mm" |
|
|
|
|
time-format="HH:mm" |
|
|
|
|
@ -764,28 +782,28 @@ onMounted(() => {
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="出生日期" prop="birthTime"> |
|
|
|
|
|
|
|
|
|
{{ timeFormat(formData.birthTime) || '/' }} |
|
|
|
|
{{formData.birthTime ? timeFormat(formData.birthTime) : '/' }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="入党(团)时间" prop="joinPartyTime"> |
|
|
|
|
{{formData.joinPartyTime ? timeFormat(formData.joinPartyTime) : '/' }} |
|
|
|
|
|
|
|
|
|
{{ timeFormat(formData.joinPartyTime) || '/' }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="参加工作时间" prop="joinWorkTime"> |
|
|
|
|
{{formData.joinWorkTime ? timeFormat(formData.joinWorkTime) : '/' }} |
|
|
|
|
|
|
|
|
|
{{ timeFormat(formData.joinWorkTime) || '/' }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12" label="参加公安工作时间" prop="joinPoliceTime"> |
|
|
|
|
|
|
|
|
|
<el-form-item label="参加公安工作时间" prop="joinPoliceTime"> |
|
|
|
|
{{formData.joinPoliceTime ? timeFormat(formData.joinPoliceTime) : '/' }} |
|
|
|
|
|
|
|
|
|
{{ timeFormat(formData.joinPoliceTime) || '/' }} |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
@ -852,13 +870,14 @@ onMounted(() => {
|
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="开始日期" prop="startTime"> |
|
|
|
|
{{ timeFormat(formData.startTime) || '/' }} |
|
|
|
|
{{formData.startTime ? timeFormat(formData.startTime) : '/' }} |
|
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="结束日期" prop="endTime"> |
|
|
|
|
{{formData.endTime ? timeFormat(formData.endTime) : '/' }} |
|
|
|
|
|
|
|
|
|
{{ timeFormat(formData.endTime) || '/' }} |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
|