feat : 首页待办/已办查看更多列表
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
</el-icon>
|
||||
<span>您有{{ todoList?.length || 0 }}条待办需要处理</span>
|
||||
</div>
|
||||
<div class="todo-more">
|
||||
<div class="todo-more" @click="handleTodoList(1)">
|
||||
<span>查看更多</span>
|
||||
<el-icon color="#1F63E6" size="18">
|
||||
<ArrowRight/>
|
||||
@@ -77,7 +77,7 @@
|
||||
</el-icon>
|
||||
<span>您有{{ todoList.length }}条待办需要处理</span>
|
||||
</div>
|
||||
<div class="todo-more">
|
||||
<div class="todo-more" @click="handleTodoList(2)">
|
||||
<span>查看更多</span>
|
||||
<el-icon color="#1F63E6" size="18">
|
||||
<ArrowRight/>
|
||||
@@ -295,7 +295,7 @@ import {useAuthStore} from '@/stores/userstore.js'
|
||||
import * as echarts from 'echarts'
|
||||
import {toThousands} from "@/utils/changePrice.js";
|
||||
import {ElNotification} from "element-plus";
|
||||
import {getHomeTaskInfo, getDoneTaskInfo,getHomeStatistics, getSpecialFundChart} from "@/api/home";
|
||||
import {getHomeTaskInfo, getDoneTaskInfo, getHomeStatistics, getSpecialFundChart} from "@/api/home";
|
||||
import {getResearchFundChart} from "@/api/research-fund";
|
||||
import {getArticle} from "@/api/article";
|
||||
|
||||
@@ -333,7 +333,7 @@ const taskTabList = ref([
|
||||
color: '#DCCEFA',
|
||||
textColor: '#8600C5',
|
||||
icon: 'home2.png',
|
||||
num:0,
|
||||
num: 0,
|
||||
type: 'approved'
|
||||
},
|
||||
{
|
||||
@@ -520,6 +520,17 @@ onMounted(async () => {
|
||||
helpDocList.value = await getArticleList(2)
|
||||
problemList.value = await getArticleList(3)
|
||||
})
|
||||
const handleTodoList = (type) => {
|
||||
if (type == 1) {
|
||||
router.push({
|
||||
path: '/todolist',
|
||||
})
|
||||
} else if (type == 2){
|
||||
router.push({
|
||||
path: '/donelist',
|
||||
})
|
||||
}
|
||||
}
|
||||
const handleGoToArticleDetail = (row) => {
|
||||
router.push({
|
||||
name: 'Article/detail',
|
||||
@@ -557,10 +568,10 @@ const initMoneyCharts = () => {
|
||||
const getTaskStatistics = () => {
|
||||
getHomeStatistics().then(res => {
|
||||
if (res.code === 1000) {
|
||||
taskTabList.value[0].num = res.data.stayInitiation||0
|
||||
taskTabList.value[1].num = res.data.approvedProject||0
|
||||
taskTabList.value[2].num = res.data.implementation||0
|
||||
taskTabList.value[3].num = res.data.acceptanceCheck||0
|
||||
taskTabList.value[0].num = res.data.stayInitiation || 0
|
||||
taskTabList.value[1].num = res.data.approvedProject || 0
|
||||
taskTabList.value[2].num = res.data.implementation || 0
|
||||
taskTabList.value[3].num = res.data.acceptanceCheck || 0
|
||||
} else {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
|
||||
Reference in New Issue
Block a user