监测对象字段对完了

This commit is contained in:
aixianling
2022-03-25 17:43:22 +08:00
parent e6cb2bf706
commit 9e8e1788fb
4 changed files with 108 additions and 115 deletions

View File

@@ -11,16 +11,16 @@
<ai-search-bar>
<template #left>
<ai-select placeholder="档案状态" v-model="search.fileStatus"
:selectList="dict.getDict('fileStatus')"
:selectList="dict.getDict('fpPrtpStatus')"
@change="page.current=1,getTableData()"/>
<ai-select placeholder="性别" v-model="search.sex"
:selectList="dict.getDict('sex')"
@change="page.current=1,getTableData()"/>
<ai-select placeholder="文化程度" v-model="search.education"
:selectList="dict.getDict('education')"
:selectList="dict.getDict('fpEducation')"
@change="page.current=1,getTableData()"/>
<ai-select placeholder="民族" v-model="search.nation"
:selectList="dict.getDict('nation')"
:selectList="dict.getDict('fpNation')"
@change="page.current=1,getTableData()"/>
<el-date-picker
value-format="yyyy-MM-dd HH:mm:ss"
@@ -40,10 +40,10 @@
unlink-panels
@change="page.current=1,getTableData()"
/>
<ai-select placeholder="政治面貌" v-model="search.politicsStatus" :selectList="dict.getDict('politicsStatus')"
<ai-select placeholder="政治面貌" v-model="search.politicsStatus" :selectList="dict.getDict('fpPoliticalOutlook')"
@change="page.current=1,getTableData()"/>
<ai-select placeholder="是否户主" v-model="search.householdName"
:selectList="dict.getDict('householdName')"
<ai-select placeholder="是否户主" v-model="search.isHousehold"
:selectList="dict.getDict('yesOrNo')"
@change="page.current=1,getTableData()"/>
</template>
<template #right>
@@ -57,13 +57,13 @@
<el-button icon="iconfont iconDelete" :disabled="!ids.length" @click="handleDelete(ids)">删除</el-button>
</template>
<template #right>
<ai-import :instance="instance" name="核酸检测信息" title="导入核酸检测信息"
<ai-import :instance="instance" name="监测对象" title="导入监测对象"
suffixName="xlsx"
url="/app/appnucleicacidperson/downloadTemplate"
importUrl="/app/appnucleicacidperson/import"
url="/app/apppreventionreturntopoverty/downloadTemplate"
importUrl="/app/apppreventionreturntopoverty/import"
@onSuccess="page.current=1,search={},getTableData()"/>
<ai-download url="/app/appnucleicacidperson/export" :params="{...search,ids:ids.toString()}"
:instance="instance" fileName="核酸检测信息导出文件"/>
<ai-download url="/app/apppreventionreturntopoverty/export" :params="{...search,ids:ids.toString()}"
:instance="instance" fileName="监测对象导出文件"/>
</template>
</ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@@ -74,12 +74,6 @@
<ai-id mode="show" v-model="row.idNumber" :showEyes="false"/>
</template>
</el-table-column>
<el-table-column slot="fileStatus" label="档案状态" show-overflow-tooltip align="center">
<template slot-scope="scope">
<span v-if="scope.row.fileStatus==0" style="color:rgba(46,162,34,1);">正常</span>
<span v-if="scope.row.fileStatus==1" style="color:rgba(153,153,153,1);">已注销</span>
</template>
</el-table-column>
<el-table-column slot="options" label="操作" fixed="right" align="center">
<template slot-scope="{row}">
<el-button type="text" @click="showDetail(row.id)">详情</el-button>
@@ -126,10 +120,10 @@ export default {
{label: "性别", prop: "sex", dict: 'sex', align: "center"},
{slot: "idNumber"},
{label: "年龄", prop: "age", align: "center"},
{label: "民族", prop: "nation", align: "center", dict: "nation"},
{label: "文化程度", prop: "education", align: "center", dict: "education"},
{label: "政治面貌", prop: "politicsStatus", align: "center", dict: "politicsStatus"},
{slot: "fileStatus"},
{label: "民族", prop: "nation", align: "center", dict: "fpNation"},
{label: "文化程度", prop: "education", align: "center", dict: "fpEducation"},
{label: "政治面貌", prop: "politicsStatus", align: "center", dict: "fpPoliticalOutlook"},
{label: "档案状态", prop: "status", dict: "fpPrtpStatus"},
{slot: "options"}
],
ids: [],
@@ -143,8 +137,8 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appportaluserenterprise/list", null, {
params: {...this.page, ...this.search, status: 1}
this.instance.post("/app/apppreventionreturntopoverty/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
this.tableData = res.data?.records
@@ -160,7 +154,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除监测对象").then(() => {
this.instance.post("/app/appnucleicacidperson/delete", null, {
this.instance.post("/app/apppreventionreturntopoverty/delete", null, {
params: {ids: ids?.toString()}
}).then(res => {
if (res?.code == 0) {