导出
This commit is contained in:
@@ -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("同步完毕!")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user