This commit is contained in:
yanran200730
2022-10-14 16:13:43 +08:00
parent 54f1356756
commit a9e63cca54
2 changed files with 7 additions and 1 deletions

View File

@@ -27,6 +27,9 @@
</ai-user-selecter> </ai-user-selecter>
</template> </template>
<template #right> <template #right>
<ai-download :instance="instance" url="/app/appepidemicpreventioncommunitymanagement/export" :params="search" fileName="社区管理" :disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download>
<el-input <el-input
v-model="search.name" v-model="search.name"
class="search-input" class="search-input"

View File

@@ -3,7 +3,7 @@
<template slot="title"> <template slot="title">
<ai-title title="风险区域配置" isShowBottomBorder> <ai-title title="风险区域配置" isShowBottomBorder>
<template #rightBtn> <template #rightBtn>
<el-button type="primary" @click="handleSyncData">同步卫健委数据</el-button> <el-button type="primary" @click="handleSyncData" :loading="isLoading">同步卫健委数据</el-button>
</template> </template>
</ai-title> </ai-title>
</template> </template>
@@ -74,6 +74,7 @@
level: '', level: '',
province: '' province: ''
}, },
isLoading: false,
currIndex: -1, currIndex: -1,
areaList: [], areaList: [],
total: 10, total: 10,
@@ -140,9 +141,11 @@
}, },
handleSyncData() { handleSyncData() {
this.isLoading = true
getRiskArea(this.instance).then(res => { getRiskArea(this.instance).then(res => {
if (res?.code == 0) { if (res?.code == 0) {
this.getList() this.getList()
this.isLoading = false
this.$message.success("同步完毕!") this.$message.success("同步完毕!")
} }
}) })