Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporateCulture-qd
Commits
7ba4f1e9
Commit
7ba4f1e9
authored
Dec 05, 2025
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 17679】 feat: 调整跳转方式等
parent
daeb355b
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
165 additions
and
98 deletions
+165
-98
index.vue
src/components/common/ArticleContent/index.vue
+1
-1
recommendList.vue
src/views/homePage/homeTab/components/recommendList.vue
+2
-4
columnList.vue
src/views/homePage/yaTab/components/columnList.vue
+54
-22
interviewList.vue
src/views/homePage/yaTab/components/interviewList.vue
+58
-24
practiceList.vue
src/views/homePage/yaTab/components/practiceList.vue
+5
-1
index.vue
src/views/searchPage/index.vue
+21
-12
SelfComplaint.vue
src/views/userPage/components/SelfComplaint.vue
+2
-4
selfAnswer.vue
src/views/userPage/components/selfAnswer.vue
+5
-5
selfAudit.vue
src/views/userPage/components/selfAudit.vue
+9
-10
selfCollect.vue
src/views/userPage/components/selfCollect.vue
+2
-5
selfComment.vue
src/views/userPage/components/selfComment.vue
+2
-3
selfPraise.vue
src/views/userPage/components/selfPraise.vue
+2
-4
selfPublish.vue
src/views/userPage/components/selfPublish.vue
+2
-3
No files found.
src/components/common/ArticleContent/index.vue
View file @
7ba4f1e9
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<!-- 优化后的右侧内容 -->
<!-- 优化后的右侧内容 -->
<div
class=
"flex items-center gap-3"
>
<div
class=
"flex items-center gap-3"
>
<span
<span
class=
"px-3 py-1.5 text-sm font-medium bg-
gray-100 text-gray-700 rounded-md
"
class=
"px-3 py-1.5 text-sm font-medium bg-
blue-50 text-blue-600 rounded-md hover:bg-blue-100 transition-colors"
"
v-if=
"articleDetail.relateColumn"
v-if=
"articleDetail.relateColumn"
>
>
{{
articleDetail
.
relateColumn
}}
{{
articleDetail
.
relateColumn
}}
...
...
src/views/homePage/homeTab/components/recommendList.vue
View file @
7ba4f1e9
...
@@ -127,8 +127,6 @@ import { TABS_REF_KEY, ArticleTypeEnum } from '@/constants'
...
@@ -127,8 +127,6 @@ import { TABS_REF_KEY, ArticleTypeEnum } from '@/constants'
import
{
useScrollTop
}
from
'@/hooks'
import
{
useScrollTop
}
from
'@/hooks'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
const
router
=
useRouter
()
const
{
list
,
total
,
searchParams
,
loading
,
goToPage
,
changePageSize
,
refresh
}
=
usePageSearch
(
const
{
list
,
total
,
searchParams
,
loading
,
goToPage
,
changePageSize
,
refresh
}
=
usePageSearch
(
getArticleList
,
getArticleList
,
{
{
...
@@ -144,9 +142,9 @@ const { ScrollTopComp, handleBackTop } = useScrollTop(tabsRef!)
...
@@ -144,9 +142,9 @@ const { ScrollTopComp, handleBackTop } = useScrollTop(tabsRef!)
const
handleClickItem
=
(
item
:
ArticleItemDto
)
=>
{
const
handleClickItem
=
(
item
:
ArticleItemDto
)
=>
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
id
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
id
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
id
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
id
}
`
)
}
}
}
}
...
...
src/views/homePage/yaTab/components/columnList.vue
View file @
7ba4f1e9
...
@@ -2,33 +2,52 @@
...
@@ -2,33 +2,52 @@
<div>
<div>
<div
v-loading=
"loading"
v-if=
"list.length"
>
<div
v-loading=
"loading"
v-if=
"list.length"
>
<div
class=
"w-full max-w-6xl mx-auto"
>
<div
class=
"w-full max-w-6xl mx-auto"
>
<div
v-for=
"(item, index) in list"
:key=
"index"
class=
"bg-white rounded-lg shadow-sm mb-6 overflow-hidden"
<div
:style=
"
{ '--dynamic-color': item.color }">
v-for=
"(item, index) in list"
<div
class=
"flex items-center justify-between pr-4 pl-4 pt-2 pb-2 bg-green-50 border-b border-green-100"
:key=
"index"
:style=
"
{ backgroundColor: item.color, '--dynamic-color': item.color }">
class=
"bg-white rounded-lg shadow-sm mb-6 overflow-hidden"
:style=
"
{ '--dynamic-color': item.color }"
>
<div
class=
"flex items-center justify-between pr-4 pl-4 pt-2 pb-2 bg-green-50 border-b border-green-100"
:style=
"
{ backgroundColor: item.color, '--dynamic-color': item.color }"
>
<h3
class=
"text-lg font-medium text-gray-800 flex items-center"
>
<h3
class=
"text-lg font-medium text-gray-800 flex items-center"
>
<span
class=
"w-1 h-5 mr-2 bg-#444"
></span>
<span
class=
"w-1 h-5 mr-2 bg-#444"
></span>
{{
item
.
title
}}
{{
item
.
title
}}
</h3>
</h3>
<div
class=
"flex items-center cursor-pointer"
@
click=
"router.push(
{
<div
path: '/searchPage',
class=
"flex items-center cursor-pointer"
query: {
@
click=
"
type: ArticleTypeEnum.COLUMN
router.push(
{
}
path: '/searchPage',
})">
query: {
type: ArticleTypeEnum.COLUMN,
},
})
"
>
<span
class=
"mr-1 text-14px color-#606266"
>
查看更多 >>
</span>
<span
class=
"mr-1 text-14px color-#606266"
>
查看更多 >>
</span>
</div>
</div>
</div>
</div>
<div
class=
"p-4"
>
<div
class=
"p-4"
>
<div
v-if=
"item.yaColumnVoList.length"
class=
"grid grid-cols-1 md:grid-cols-3 gap-4"
>
<div
v-if=
"item.yaColumnVoList.length"
class=
"grid grid-cols-1 md:grid-cols-3 gap-4"
>
<div
v-for=
"i in item.yaColumnVoList"
:key=
"i.articleId"
class=
"group cursor-pointer"
<div
@
click=
"router.push(`/articleDetail/$
{i.articleId}`)">
v-for=
"i in item.yaColumnVoList"
:key=
"i.articleId"
class=
"group cursor-pointer"
@
click=
"openArticleDetail(i.articleId)"
>
<div
class=
"relative mb-3 overflow-hidden rounded-lg"
>
<div
class=
"relative mb-3 overflow-hidden rounded-lg"
>
<img
:src=
"i.faceUrl"
<img
class=
"w-full aspect-[5/3] object-cover group-hover:scale-105 transition-transform duration-300"
/>
:src=
"i.faceUrl"
<div
v-if=
"i.isRecommend"
class=
"w-full aspect-[5/3] object-cover group-hover:scale-105 transition-transform duration-300"
class=
"absolute top--1 left--1 w-15 h-7 z-1000 bg-#FFF9B9 flex items-center justify-center border-2px border-solid border-#f4f0eb rounded-tl-lg rounded-br-lg"
>
/>
<div
v-if=
"i.isRecommend"
class=
"absolute top--1 left--1 w-15 h-7 z-1000 bg-#FFF9B9 flex items-center justify-center border-2px border-solid border-#f4f0eb rounded-tl-lg rounded-br-lg"
>
<img
class=
"w-6"
src=
"@/assets/img/culture/recommend.png"
alt=
""
/>
<img
class=
"w-6"
src=
"@/assets/img/culture/recommend.png"
alt=
""
/>
<div
class=
"text-12px text-#000 line-height-12px"
>
推荐
</div>
<div
class=
"text-12px text-#000 line-height-12px"
>
推荐
</div>
</div>
</div>
...
@@ -79,14 +98,23 @@
...
@@ -79,14 +98,23 @@
</div>
</div>
<!-- 右侧:分页器 -->
<!-- 右侧:分页器 -->
<div
class=
"right"
>
<div
class=
"right"
>
<div
class=
"pagination-wrapper bg-white rounded-lg shadow-sm border border-gray-100 p-3"
>
<div
<el-pagination
v-model:current-page=
"searchParams.current"
v-model:page-size=
"searchParams.size"
class=
"pagination-wrapper bg-white rounded-lg shadow-sm border border-gray-100 p-3"
:page-sizes=
"[15, 30, 45, 60]"
layout=
"prev, pager, next, jumper, total"
:total=
"total"
>
class=
"custom-pagination"
@
current-change=
"
<el-pagination
v-model:current-page=
"searchParams.current"
v-model:page-size=
"searchParams.size"
:page-sizes=
"[15, 30, 45, 60]"
layout=
"prev, pager, next, jumper, total"
:total=
"total"
class=
"custom-pagination"
@
current-change=
"
(e) =>
{
(e) =>
{
;
(handleBackTop(), goToPage(e))
;(handleBackTop(), goToPage(e))
}
}
" @size-change="changePageSize" />
"
@size-change="changePageSize"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -125,6 +153,10 @@ defineExpose({
...
@@ -125,6 +153,10 @@ defineExpose({
refresh
()
refresh
()
},
},
})
})
const
openArticleDetail
=
(
id
:
number
)
=>
{
window
.
open
(
`/articleDetail/
${
id
}
`
)
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
scoped
></
style
>
src/views/homePage/yaTab/components/interviewList.vue
View file @
7ba4f1e9
...
@@ -2,33 +2,54 @@
...
@@ -2,33 +2,54 @@
<div>
<div>
<div
v-loading=
"loading"
v-if=
"list.length"
>
<div
v-loading=
"loading"
v-if=
"list.length"
>
<div
class=
"w-full max-w-6xl mx-auto"
>
<div
class=
"w-full max-w-6xl mx-auto"
>
<div
v-for=
"(item, index) in list"
:key=
"index"
class=
"bg-white rounded-lg shadow-sm mb-6 overflow-hidden"
<div
:style=
"
{ '--dynamic-color': item.color }">
v-for=
"(item, index) in list"
<div
class=
"flex items-center justify-between pr-4 pl-4 pt-2 pb-2 bg-green-50 border-b border-green-100"
:key=
"index"
:style=
"
{ backgroundColor: item.color, '--dynamic-color': item.color }">
class=
"bg-white rounded-lg shadow-sm mb-6 overflow-hidden"
:style=
"
{ '--dynamic-color': item.color }"
>
<div
class=
"flex items-center justify-between pr-4 pl-4 pt-2 pb-2 bg-green-50 border-b border-green-100"
:style=
"
{ backgroundColor: item.color, '--dynamic-color': item.color }"
>
<h3
class=
"text-lg font-medium text-gray-800 flex items-center"
>
<h3
class=
"text-lg font-medium text-gray-800 flex items-center"
>
<span
class=
"w-1 h-5 mr-2 bg-#444"
></span>
<span
class=
"w-1 h-5 mr-2 bg-#444"
></span>
{{
item
.
title
}}
{{
item
.
title
}}
</h3>
</h3>
<div
class=
"flex items-center cursor-pointer hover:text-[var(--dynamic-color)]"
@
click=
"router.push(
{
<div
path: '/searchPage',
class=
"flex items-center cursor-pointer hover:text-[var(--dynamic-color)]"
query: {
@
click=
"
type: ArticleTypeEnum.INTERVIEW
router.push(
{
}
path: '/searchPage',
})">
query: {
<span
class=
"mr-1 text-14px color-#606266 hover:text-[var(--dynamic-color)]"
>
查看更多 >>
</span>
type: ArticleTypeEnum.INTERVIEW,
},
})
"
>
<span
class=
"mr-1 text-14px color-#606266 hover:text-[var(--dynamic-color)]"
>
查看更多 >>
</span
>
</div>
</div>
</div>
</div>
<div
class=
"p-4"
>
<div
class=
"p-4"
>
<div
v-if=
"item.yaColumnVoList.length"
class=
"grid grid-cols-1 md:grid-cols-3 gap-4"
>
<div
v-if=
"item.yaColumnVoList.length"
class=
"grid grid-cols-1 md:grid-cols-3 gap-4"
>
<div
v-for=
"i in item.yaColumnVoList"
:key=
"i.articleId"
class=
"group cursor-pointer"
<div
@
click=
"router.push(`/articleDetail/$
{i.articleId}`)">
v-for=
"i in item.yaColumnVoList"
:key=
"i.articleId"
class=
"group cursor-pointer"
@
click=
"openArticleDetail(i.articleId)"
>
<div
class=
"relative mb-3 overflow-hidden rounded-lg"
>
<div
class=
"relative mb-3 overflow-hidden rounded-lg"
>
<img
:src=
"i.faceUrl"
<img
class=
"w-full aspect-[5/3] object-cover group-hover:scale-105 transition-transform duration-300"
/>
:src=
"i.faceUrl"
<div
v-if=
"i.isRecommend"
class=
"w-full aspect-[5/3] object-cover group-hover:scale-105 transition-transform duration-300"
class=
"absolute top-0 left-0 w-15 h-7 z-1000 bg-#FFF9B9 flex items-center justify-center border-2px border-solid border-#f4f0eb rounded-tl-lg rounded-br-lg"
>
/>
<div
v-if=
"i.isRecommend"
class=
"absolute top-0 left-0 w-15 h-7 z-1000 bg-#FFF9B9 flex items-center justify-center border-2px border-solid border-#f4f0eb rounded-tl-lg rounded-br-lg"
>
<img
class=
"w-6"
src=
"@/assets/img/culture/recommend.png"
alt=
""
/>
<img
class=
"w-6"
src=
"@/assets/img/culture/recommend.png"
alt=
""
/>
<div
class=
"text-12px text-#000 line-height-12px"
>
推荐
</div>
<div
class=
"text-12px text-#000 line-height-12px"
>
推荐
</div>
</div>
</div>
...
@@ -79,14 +100,23 @@
...
@@ -79,14 +100,23 @@
</div>
</div>
<!-- 右侧:分页器 -->
<!-- 右侧:分页器 -->
<div
class=
"right"
>
<div
class=
"right"
>
<div
class=
"pagination-wrapper bg-white rounded-lg shadow-sm border border-gray-100 p-3"
>
<div
<el-pagination
v-model:current-page=
"searchParams.current"
v-model:page-size=
"searchParams.size"
class=
"pagination-wrapper bg-white rounded-lg shadow-sm border border-gray-100 p-3"
:page-sizes=
"[15, 30, 45, 60]"
layout=
"prev, pager, next, jumper, total"
:total=
"total"
>
class=
"custom-pagination"
@
current-change=
"
<el-pagination
v-model:current-page=
"searchParams.current"
v-model:page-size=
"searchParams.size"
:page-sizes=
"[15, 30, 45, 60]"
layout=
"prev, pager, next, jumper, total"
:total=
"total"
class=
"custom-pagination"
@
current-change=
"
(e) =>
{
(e) =>
{
;
(handleBackTop(), goToPage(e))
;(handleBackTop(), goToPage(e))
}
}
" @size-change="changePageSize" />
"
@size-change="changePageSize"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -102,7 +132,7 @@
...
@@ -102,7 +132,7 @@
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ArrowRight
,
View
,
ChatDotRound
,
Star
}
from
'@element-plus/icons-vue'
import
{
View
,
ChatDotRound
,
Star
}
from
'@element-plus/icons-vue'
import
{
getInterviewList
}
from
'@/api'
import
{
getInterviewList
}
from
'@/api'
import
{
usePageSearch
,
useScrollTop
}
from
'@/hooks'
import
{
usePageSearch
,
useScrollTop
}
from
'@/hooks'
import
{
TABS_REF_KEY
,
ArticleTypeEnum
}
from
'@/constants'
import
{
TABS_REF_KEY
,
ArticleTypeEnum
}
from
'@/constants'
...
@@ -125,6 +155,10 @@ defineExpose({
...
@@ -125,6 +155,10 @@ defineExpose({
refresh
()
refresh
()
},
},
})
})
const
openArticleDetail
=
(
id
:
number
)
=>
{
window
.
open
(
`/articleDetail/
${
id
}
`
)
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
scoped
></
style
>
src/views/homePage/yaTab/components/practiceList.vue
View file @
7ba4f1e9
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<div
class=
"divide-y bg-#fff"
>
<div
class=
"divide-y bg-#fff"
>
<div
<div
@
click=
"
router.push(`/articleDetail/$
{item.id}`
)"
@
click=
"
openArticleDetail(item.id
)"
v-for=
"item in list"
v-for=
"item in list"
:key=
"item.id"
:key=
"item.id"
class=
"p-4 hover:bg-gray-50 transition-colors cursor-pointer"
class=
"p-4 hover:bg-gray-50 transition-colors cursor-pointer"
...
@@ -215,6 +215,10 @@ defineExpose({
...
@@ -215,6 +215,10 @@ defineExpose({
refresh
()
refresh
()
},
},
})
})
const
openArticleDetail
=
(
id
:
number
)
=>
{
window
.
open
(
`/articleDetail/
${
id
}
`
)
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
scoped
></
style
>
src/views/searchPage/index.vue
View file @
7ba4f1e9
...
@@ -2,16 +2,25 @@
...
@@ -2,16 +2,25 @@
<div
ref=
"searchPageRef"
class=
"bg-white/90"
>
<div
ref=
"searchPageRef"
class=
"bg-white/90"
>
<div>
<div>
<!-- 搜索栏 -->
<!-- 搜索栏 -->
<div
class=
"mb-1 p-4"
>
<div
class=
"p-4"
>
<div
class=
"relative flex items-center gap-3"
>
<div
class=
"flex items-center gap-2 justify-between"
>
<el-input
<el-button
link
@
click=
"router.back()"
class=
"text-gray-600 hover:text-primary"
>
v-model=
"searchParams.title"
<el-icon
class=
"mr-1"
><ArrowLeft
/></el-icon>
placeholder=
"输入关键词搜索"
返回
class=
"w-300px! flex-1"
</el-button>
@
keyup
.
enter=
"handleSearch"
clearable
<div
class=
"w-auto flex items-center gap-2"
>
/>
<el-input
<el-button
type=
"primary"
@
click=
"handleSearch"
>
搜索
</el-button>
v-model=
"searchParams.title"
placeholder=
"输入关键词搜索"
class=
"w-400px"
size=
"default"
@
keyup
.
enter=
"handleSearch"
clearable
/>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
搜索
</el-button>
</div>
</div>
</div>
</div>
</div>
...
@@ -234,9 +243,9 @@ const handleSearch = () => {
...
@@ -234,9 +243,9 @@ const handleSearch = () => {
const
handleClick
=
(
item
:
ArticleListItemDto
)
=>
{
const
handleClick
=
(
item
:
ArticleListItemDto
)
=>
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
id
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
id
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
id
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
id
}
`
)
}
}
}
}
...
...
src/views/userPage/components/SelfComplaint.vue
View file @
7ba4f1e9
...
@@ -122,8 +122,6 @@ import { AuditStatusEnum, ArticleTypeEnum } from '@/constants'
...
@@ -122,8 +122,6 @@ import { AuditStatusEnum, ArticleTypeEnum } from '@/constants'
import
type
{
AuditComplaintDto
,
ComplaintListItemDto
}
from
'@/api'
import
type
{
AuditComplaintDto
,
ComplaintListItemDto
}
from
'@/api'
import
type
{
TabPaneName
}
from
'element-plus'
import
type
{
TabPaneName
}
from
'element-plus'
const
router
=
useRouter
()
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
searchParams
.
value
.
status
=
key
as
AuditStatusEnum
searchParams
.
value
.
status
=
key
as
AuditStatusEnum
refresh
()
refresh
()
...
@@ -159,9 +157,9 @@ const handleAudit = async (data: AuditComplaintDto) => {
...
@@ -159,9 +157,9 @@ const handleAudit = async (data: AuditComplaintDto) => {
const
handleToDetail
=
(
item
:
ComplaintListItemDto
)
=>
{
const
handleToDetail
=
(
item
:
ComplaintListItemDto
)
=>
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
articleId
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
articleId
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
articleId
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
articleId
}
`
)
}
}
}
}
</
script
>
</
script
>
src/views/userPage/components/selfAnswer.vue
View file @
7ba4f1e9
...
@@ -36,9 +36,7 @@
...
@@ -36,9 +36,7 @@
</div>
</div>
<div
class=
"flex items-center text-gray-400 text-sm ml-4"
>
<div
class=
"flex items-center text-gray-400 text-sm ml-4"
>
<el-button
type=
"primary"
link
@
click=
"router.push(`/articleDetail/$
{item.id}`)">
<el-button
type=
"primary"
link
@
click=
"openArticleDetail(item.id)"
>
去回复
</el-button>
去回复
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -70,8 +68,6 @@ import { answerQuestionPage } from '@/api'
...
@@ -70,8 +68,6 @@ import { answerQuestionPage } from '@/api'
import
{
usePageSearch
}
from
'@/hooks'
import
{
usePageSearch
}
from
'@/hooks'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
const
router
=
useRouter
()
const
{
list
,
loading
,
searchParams
,
total
,
refresh
,
goToPage
,
changePageSize
}
=
usePageSearch
(
const
{
list
,
loading
,
searchParams
,
total
,
refresh
,
goToPage
,
changePageSize
}
=
usePageSearch
(
answerQuestionPage
,
answerQuestionPage
,
{
{
...
@@ -81,4 +77,8 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
...
@@ -81,4 +77,8 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
onActivated
(()
=>
{
onActivated
(()
=>
{
refresh
()
refresh
()
})
})
const
openArticleDetail
=
(
id
:
number
)
=>
{
window
.
open
(
`/articleDetail/
${
id
}
`
)
}
</
script
>
</
script
>
src/views/userPage/components/selfAudit.vue
View file @
7ba4f1e9
...
@@ -65,9 +65,7 @@
...
@@ -65,9 +65,7 @@
v-if=
"searchParams.isAudit === AuditStatusEnum.UNAUDITED"
v-if=
"searchParams.isAudit === AuditStatusEnum.UNAUDITED"
class=
"flex items-center text-gray-400 text-sm ml-4"
class=
"flex items-center text-gray-400 text-sm ml-4"
>
>
<el-button
type=
"info"
link
@
click=
"router.push(`/auditArticle/$
{item.id}`)"
<el-button
type=
"info"
link
@
click=
"openArticleDetail(item.id)"
>
去详情页审核
</el-button>
>去详情页审核
</el-button
>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -126,12 +124,9 @@ import { usePageSearch } from '@/hooks'
...
@@ -126,12 +124,9 @@ import { usePageSearch } from '@/hooks'
import
{
auditTypeListOptions
,
articleTypeListOptions
}
from
'@/constants/options'
import
{
auditTypeListOptions
,
articleTypeListOptions
}
from
'@/constants/options'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
AuditStatusEnum
}
from
'@/constants'
import
{
AuditStatusEnum
}
from
'@/constants'
import
type
{
AuditArticleDto
}
from
'@/api'
import
type
{
AuditArticleDto
,
AuditListItemDto
}
from
'@/api'
import
type
{
TabPaneName
}
from
'element-plus'
import
type
{
TabPaneName
}
from
'element-plus'
import
{
ArticleTypeEnum
}
from
'@/constants'
import
{
ArticleTypeEnum
}
from
'@/constants'
import
type
{
ArticleItemDto
}
from
'@/api'
const
router
=
useRouter
()
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
searchParams
.
value
.
isAudit
=
key
as
AuditStatusEnum
searchParams
.
value
.
isAudit
=
key
as
AuditStatusEnum
...
@@ -166,11 +161,15 @@ const handleAudit = async (data: AuditArticleDto) => {
...
@@ -166,11 +161,15 @@ const handleAudit = async (data: AuditArticleDto) => {
refresh
()
refresh
()
}
}
const
handleView
=
(
item
:
A
rticle
ItemDto
)
=>
{
const
handleView
=
(
item
:
A
uditList
ItemDto
)
=>
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
id
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
id
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
id
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
id
}
`
)
}
}
}
}
const
openArticleDetail
=
(
id
:
number
)
=>
{
window
.
open
(
`/articleDetail/
${
id
}
`
)
}
</
script
>
</
script
>
src/views/userPage/components/selfCollect.vue
View file @
7ba4f1e9
...
@@ -84,8 +84,6 @@ import { ArticleTypeEnum } from '@/constants/enums'
...
@@ -84,8 +84,6 @@ import { ArticleTypeEnum } from '@/constants/enums'
import
type
{
TabPaneName
}
from
'element-plus'
import
type
{
TabPaneName
}
from
'element-plus'
import
type
{
SelfCollectDetailDto
}
from
'@/api'
import
type
{
SelfCollectDetailDto
}
from
'@/api'
const
router
=
useRouter
()
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
refresh
()
refresh
()
...
@@ -101,11 +99,10 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
...
@@ -101,11 +99,10 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
)
)
const
handleView
=
(
item
:
SelfCollectDetailDto
)
=>
{
const
handleView
=
(
item
:
SelfCollectDetailDto
)
=>
{
console
.
log
(
item
)
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
id
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
id
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
id
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
id
}
`
)
}
}
}
}
</
script
>
</
script
>
src/views/userPage/components/selfComment.vue
View file @
7ba4f1e9
...
@@ -99,7 +99,6 @@ import type { TabPaneName } from 'element-plus'
...
@@ -99,7 +99,6 @@ import type { TabPaneName } from 'element-plus'
import
type
{
SelfCommentItemDto
}
from
'@/api/user/types'
import
type
{
SelfCommentItemDto
}
from
'@/api/user/types'
const
route
=
useRoute
()
const
route
=
useRoute
()
const
router
=
useRouter
()
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
...
@@ -130,9 +129,9 @@ const handleDelete = async (id: number) => {
...
@@ -130,9 +129,9 @@ const handleDelete = async (id: number) => {
const
handleView
=
(
item
:
SelfCommentItemDto
)
=>
{
const
handleView
=
(
item
:
SelfCommentItemDto
)
=>
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
articleId
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
articleId
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
articleId
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
articleId
}
`
)
}
}
}
}
...
...
src/views/userPage/components/selfPraise.vue
View file @
7ba4f1e9
...
@@ -82,8 +82,6 @@ import dayjs from 'dayjs'
...
@@ -82,8 +82,6 @@ import dayjs from 'dayjs'
import
{
ArticleTypeEnum
}
from
'@/constants/enums'
import
{
ArticleTypeEnum
}
from
'@/constants/enums'
import
type
{
SelfPraiseDetailDto
}
from
'@/api/user/types'
import
type
{
SelfPraiseDetailDto
}
from
'@/api/user/types'
const
router
=
useRouter
()
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
refresh
()
refresh
()
...
@@ -100,9 +98,9 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
...
@@ -100,9 +98,9 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
const
handleView
=
(
item
:
SelfPraiseDetailDto
)
=>
{
const
handleView
=
(
item
:
SelfPraiseDetailDto
)
=>
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
id
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
id
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
id
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
id
}
`
)
}
}
}
}
</
script
>
</
script
>
src/views/userPage/components/selfPublish.vue
View file @
7ba4f1e9
...
@@ -83,7 +83,6 @@ import dayjs from 'dayjs'
...
@@ -83,7 +83,6 @@ import dayjs from 'dayjs'
import
{
ArticleTypeEnum
}
from
'@/constants/enums'
import
{
ArticleTypeEnum
}
from
'@/constants/enums'
import
type
{
SelfPublishDetailDto
}
from
'@/api'
import
type
{
SelfPublishDetailDto
}
from
'@/api'
import
type
{
TabPaneName
}
from
'element-plus'
import
type
{
TabPaneName
}
from
'element-plus'
const
router
=
useRouter
()
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
const
toggleTab
=
(
key
:
TabPaneName
)
=>
{
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
searchParams
.
value
.
type
=
key
as
ArticleTypeEnum
...
@@ -101,9 +100,9 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
...
@@ -101,9 +100,9 @@ const { list, loading, searchParams, total, refresh, goToPage, changePageSize }
const
handleView
=
(
item
:
SelfPublishDetailDto
)
=>
{
const
handleView
=
(
item
:
SelfPublishDetailDto
)
=>
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
if
(
item
.
type
===
ArticleTypeEnum
.
VIDEO
)
{
router
.
push
(
`/videoDetail/
${
item
.
id
}
`
)
window
.
open
(
`/videoDetail/
${
item
.
id
}
`
)
}
else
{
}
else
{
router
.
push
(
`/articleDetail/
${
item
.
id
}
`
)
window
.
open
(
`/articleDetail/
${
item
.
id
}
`
)
}
}
}
}
const
handleDelete
=
async
(
articleId
:
number
)
=>
{
const
handleDelete
=
async
(
articleId
:
number
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment