数据比对

This commit is contained in:
yanran200730
2022-10-13 08:35:24 +08:00
parent 464a12ad1e
commit 6c1167a98a

View File

@@ -5,17 +5,10 @@
<ai-search-bar bottomBorder>
<template #left>
<ai-select
v-model="search.riskStatus"
clearable
placeholder="请选择风险状态"
:selectList="dict.getDict('EP_riskStatus')"
@change="search.current = 1, getList()">
</ai-select>
<ai-select
v-model="search.source"
v-model="search.status"
clearable
placeholder="请选择数据来源"
:selectList="dict.getDict('EP_source')"
:selectList="dict.getDict('EP_datacContrastStatis')"
@change="search.current = 1, getList()">
</ai-select>
<el-date-picker
@@ -34,7 +27,7 @@
placeholder="选择结束日期"
@change="search.current = 1, getList()">
</el-date-picker>
<ai-download :instance="instance" url="/app/appepidemicpreventionregisterinfo/export" :params="search" fileName="返乡报备" :disabled="tableData.length == 0">
<ai-download :instance="instance" url="/app/appepidemicpreventiondatamatch/export" :params="search" fileName="数据比对" :disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download>
</template>
@@ -59,10 +52,9 @@
:current.sync="search.current"
:size.sync="search.size"
@getList="getList">
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
<el-table-column slot="options" width="100px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
</div>
</template>
@@ -87,43 +79,45 @@
current: 1,
size: 10,
name: '',
gatewayId: '',
status: '',
riskStatus: '',
arriveAreaId: '',
queryBeginTime: '',
queryEndTime: '',
infoType: 1,
source: ''
status: ''
},
info: {},
colConfigs: [
{ prop: 'name', label: '姓名' },
{ prop: 'phone', align: 'center', label: '手机号码' },
{ prop: 'startTime', align: 'center', label: '出发时间' },
{ prop: 'startAreaName', align: 'center', label: '出发地区' },
{ prop: 'startTime', align: 'center', label: '所属地区' },
{ prop: 'arriveTime', align: 'center', label: '抵平时间' },
{ prop: 'startAreaName', align: 'center', label: '途径卡口' },
{
prop: 'arriveTime',
align: 'center',
label: '抵平时间'
label: '出发地址'
},
{
prop: 'arriveAreaName',
align: 'center',
label: '到达地区'
label: '核酸日期'
},
{ prop: 'source',
align: 'center',
label: '数据来源',
label: '检测结果',
formart: v => this.dict.getLabel('EP_source', v) },
{
prop: 'riskStatus',
align: 'center',
label: '风险状态',
label: '导入时间',
formart: v => this.dict.getLabel('EP_riskStatus', v)
},
{
prop: 'status',
align: 'center',
label: '数据状态',
formart: v => this.dict.getLabel('EP_datacContrastStatis', v)
}
],
ids: [],
tableData: [],
total: 0,
loading: false,
@@ -137,7 +131,7 @@
this.instance.post(`/app/appdvcpconfig/getCorpArea`).then(res => {
if (res.code == 0) {
this.search.arriveAreaId = res.data
this.dict.load(['EP_riskLevel', 'EP_handleType', 'modeType', 'EP_riskStatus', 'EP_source']).then(() => {
this.dict.load(['EP_datacContrastStatis', 'EP_handleType', 'modeType', 'EP_riskStatus', 'EP_source']).then(() => {
this.getList()
})
}
@@ -146,7 +140,7 @@
methods: {
getList () {
this.instance.post(`/app/appepidemicpreventionregisterinfo/list`, null, {
this.instance.post(`/app/appepidemicpreventiondatamatch/list`, null, {
params: {
...this.search,
arriveAreaId: this.search.arriveAreaId,
@@ -166,15 +160,6 @@
})
},
toDetail (id) {
this.$emit('change', {
type: 'Detail',
params: {
id: id || ''
}
})
},
changeArea () {
this.search.current = 1
@@ -185,10 +170,9 @@
remove(id) {
this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appepidemicpreventionregisterinfo/delete?id=${id}`).then(res => {
this.instance.post(`/app/appepidemicpreventiondatamatch/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success('删除成功!')
this.getTotalInfo()
this.getList()
}
})