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>
</template>
<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
v-model="search.name"
class="search-input"

View File

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