31106
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
:selectList="dictList"
|
||||
@change="search.current = 1, getList()">
|
||||
</ai-select>
|
||||
<ai-download :instance="instance" url="/app/appepidemicpreventionregisterinfo/export" :params="search" fileName="健康上报" :disabled="tableData.length == 0">
|
||||
<ai-download :instance="instance" url="/app/appepidemicpreventionhealthreportinfo/export" :params="search" fileName="健康上报" :disabled="tableData.length == 0">
|
||||
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
|
||||
</ai-download>
|
||||
</template>
|
||||
@@ -58,11 +58,10 @@
|
||||
: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>
|
||||
</el-table-column>
|
||||
@@ -152,7 +151,7 @@
|
||||
{
|
||||
prop: 'status',
|
||||
align: 'center',
|
||||
label: '检测结果',
|
||||
label: '健康状态',
|
||||
render: (h, params) => {
|
||||
return h(
|
||||
'span', {
|
||||
@@ -236,18 +235,6 @@
|
||||
})
|
||||
},
|
||||
|
||||
remove(id) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
this.instance.post(`/app/appepidemicpreventionhealthreportinfo/delete?id=${id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('删除成功!')
|
||||
this.getTotalInfo()
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
getTotalInfo () {
|
||||
this.instance.post(`/app/appepidemicpreventionhealthreportinfo/listStatistics`, null, {
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user