讨论贴添加对应题目的链接
This commit is contained in:
parent
594147ab2a
commit
a7b29940ee
|
@ -245,6 +245,7 @@ export const m = {
|
||||||
OI_Ranklist: 'OI Ranklist',
|
OI_Ranklist: 'OI Ranklist',
|
||||||
|
|
||||||
// /views/oj/discussion/discussionList.vue
|
// /views/oj/discussion/discussionList.vue
|
||||||
|
Go_to_problem:"Go to Problem",
|
||||||
Release_Time:'Release Time',
|
Release_Time:'Release Time',
|
||||||
Likes:'Likes',
|
Likes:'Likes',
|
||||||
Views:'Views',
|
Views:'Views',
|
||||||
|
|
|
@ -247,6 +247,7 @@ export const m = {
|
||||||
OI_Ranklist: 'OI 排行榜',
|
OI_Ranklist: 'OI 排行榜',
|
||||||
|
|
||||||
// /views/oj/discussion/discussionList.vue
|
// /views/oj/discussion/discussionList.vue
|
||||||
|
Go_to_problem:'前往原题',
|
||||||
Release_Time:'发布时间',
|
Release_Time:'发布时间',
|
||||||
Likes:'点赞',
|
Likes:'点赞',
|
||||||
Views:'浏览',
|
Views:'浏览',
|
||||||
|
|
|
@ -4,6 +4,14 @@
|
||||||
<div class="title-article" style="text-align: left">
|
<div class="title-article" style="text-align: left">
|
||||||
<h1 class="title" id="sharetitle">
|
<h1 class="title" id="sharetitle">
|
||||||
<span>{{ discussion.title }}</span>
|
<span>{{ discussion.title }}</span>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
style="margin-left:5px;vertical-align:middle;"
|
||||||
|
v-if="discussion.pid"
|
||||||
|
@click="toProblem(discussion.pid)"
|
||||||
|
>{{ $t('m.Go_to_problem') }}</el-button
|
||||||
|
>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="title-msg">
|
<div class="title-msg">
|
||||||
<span>
|
<span>
|
||||||
|
@ -262,6 +270,13 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
toProblem(pid) {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'ProblemDetails',
|
||||||
|
params: { problemID: pid },
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
toLikeDiscussion(did, toLike) {
|
toLikeDiscussion(did, toLike) {
|
||||||
if (!this.isAuthenticated) {
|
if (!this.isAuthenticated) {
|
||||||
myMessage.warning(this.$i18n.t('m.Please_login_first'));
|
myMessage.warning(this.$i18n.t('m.Please_login_first'));
|
||||||
|
|
|
@ -61,12 +61,25 @@
|
||||||
></path>
|
></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<a @click="toDiscussionDetail(discussion.id)" class="article-hlink">
|
<h1 class="article-hlink">
|
||||||
<h1>
|
<a @click="toDiscussionDetail(discussion.id)">{{
|
||||||
{{ discussion.title }}
|
discussion.title
|
||||||
|
}}</a>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
style="margin-left:5px;"
|
||||||
|
v-if="discussion.pid"
|
||||||
|
@click="
|
||||||
|
pushRouter(
|
||||||
|
null,
|
||||||
|
{ problemID: discussion.pid },
|
||||||
|
'ProblemDetails'
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>{{ $t('m.Go_to_problem') }}</el-button
|
||||||
|
>
|
||||||
</h1>
|
</h1>
|
||||||
</a>
|
|
||||||
|
|
||||||
<a
|
<a
|
||||||
@click="toDiscussionDetail(discussion.id)"
|
@click="toDiscussionDetail(discussion.id)"
|
||||||
class="article-hlink2"
|
class="article-hlink2"
|
||||||
|
@ -688,7 +701,11 @@ export default {
|
||||||
top: 0px;
|
top: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
}
|
}
|
||||||
.article-hlink h1 {
|
.article-hlink {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.article-hlink a {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #34495e;
|
color: #34495e;
|
||||||
|
|
Loading…
Reference in New Issue