fix : 修复首页待立项等任务跳转及各种类型文章跳转显示对应数据

This commit is contained in:
2024-10-25 23:11:01 +08:00
parent 5c2ec69fd6
commit fb0a0cd719
5 changed files with 58 additions and 12 deletions

View File

@@ -125,7 +125,7 @@
<div class="tag"></div>
<span>通知公告</span>
</div>
<div class="more" @click="goToArticleList">
<div class="more" @click="goToArticleList('0')">
<span>更多</span>
<el-icon color="#1F63E6" size="18">
<ArrowRight/>
@@ -221,7 +221,7 @@
</el-col>
<el-col :xs="24" :sm="24" :md="24" :lg="10" :xl="10">
<el-card shadow="never" class="todo-bg">
<el-tabs v-model="docActiveTab" editable @tab-add="goToArticleList">
<el-tabs v-model="docActiveTab" editable @tab-add="goToArticleList('',docActiveTab)">
<template #add-icon>
<div style="white-space: nowrap;display: flex;align-items: center">
更多
@@ -562,9 +562,25 @@ const handleGoToArticleDetail = (row) => {
}
})
}
const goToArticleList = () => {
const goToArticleList = (type,otherHelpType) => {
let queryType=''
if(type){
queryType=type
}else{
console.info("🚀 ~method:'otherHelpType' -----", otherHelpType)
if(otherHelpType=='first'){
queryType= '1'
}else if(otherHelpType=='second'){
queryType= '2'
}else if(otherHelpType=='third'){
queryType= '3'
}
}
router.push({
name: 'Manage',
query:{
type: queryType
}
})
}
const goToResearchFund = () => {