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