fix : 修复首页刷新功能
This commit is contained in:
@@ -20,8 +20,10 @@
|
||||
<el-card shadow="never" class="todo-bg" @tab-add="refreshTodoOrDoneList(activeName)">
|
||||
<el-tabs v-model="activeName" editable>
|
||||
<template #add-icon>
|
||||
刷新一下
|
||||
<div style="width: 31px"></div>
|
||||
<div @click="refreshTodoOrDoneList">
|
||||
刷新一下
|
||||
<div style="width: 31px"></div>
|
||||
</div>
|
||||
</template>
|
||||
<el-tab-pane :label="'待办('+(todoList?.length||0) +')'" name="first">
|
||||
<div class="todo-top">
|
||||
@@ -542,9 +544,8 @@ const goToSpecialFund = () => {
|
||||
})
|
||||
}
|
||||
const refreshTodoOrDoneList = (name) => {
|
||||
console.info("🚀 ~method:refreshTodoOrDoneList -----", name)
|
||||
// getTodoList()
|
||||
// getDoneList()
|
||||
getTodoList()
|
||||
getDoneList()
|
||||
}
|
||||
const initFundCharts = () => {
|
||||
data.fundPieCharts = echarts.init(document.getElementById('fundPie')).setOption(fundPieOption.value)
|
||||
@@ -598,9 +599,7 @@ const getDoneList = () => {
|
||||
})
|
||||
}
|
||||
const changeResearchFundDataByYear = (year) => {
|
||||
console.info("🚀 ~method:changeResearchFundDataByYear -----")
|
||||
if (year) {
|
||||
console.info("🚀 243442-----")
|
||||
getResearchChart(year)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user