|
|
|
|
@ -108,23 +108,22 @@ onMounted(() => { |
|
|
|
|
<div class="achievement-list"> |
|
|
|
|
<!-- 搜索框 --> |
|
|
|
|
<div class="search-container"> |
|
|
|
|
<van-search v-model="searchKey" placeholder="请输入关键词搜索" show-action action-text="清除" :show-filter="true" :clearable="false" |
|
|
|
|
wrap-with-form @search="handleSearch" @cancel="handleCancel" shape="round" @click-right-icon="handleSearch"> |
|
|
|
|
<van-search v-model="searchKey" placeholder="请输入关键词搜索" show-action action-text="清除" :show-filter="true" |
|
|
|
|
:clearable="false" wrap-with-form @search="handleSearch" @cancel="handleCancel" shape="round" |
|
|
|
|
@click-right-icon="handleSearch"> |
|
|
|
|
<template #right-icon> |
|
|
|
|
<a style="text-decoration:none">搜索</a> |
|
|
|
|
</template> |
|
|
|
|
<template #action> |
|
|
|
|
<van-button type="danger" plain size="small" @click="handleCancel" round>清除</van-button> |
|
|
|
|
</template> |
|
|
|
|
</van-search> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 下载按钮 --> |
|
|
|
|
<div class="download-container"> |
|
|
|
|
<van-button |
|
|
|
|
v-for="item in props.config?.achievementDownList || []" |
|
|
|
|
:key="item.name" |
|
|
|
|
type="default" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleDownload(item.url)" |
|
|
|
|
> |
|
|
|
|
<van-button v-for="item in props.config?.achievementDownList || []" :key="item.name" color="#2196f3" size="small" |
|
|
|
|
@click="handleDownload(item.url)"> |
|
|
|
|
{{ item.name }} |
|
|
|
|
</van-button> |
|
|
|
|
</div> |
|
|
|
|
@ -228,17 +227,17 @@ onMounted(() => { |
|
|
|
|
<div class="detail-section"> |
|
|
|
|
<h4 class="section-title"> |
|
|
|
|
<van-icon name="comment-o" color="#ff9800" size="18" /> |
|
|
|
|
备注 |
|
|
|
|
成果简介 |
|
|
|
|
</h4> |
|
|
|
|
<div class="detail-content-text">{{ currentAchievement?.remarks || '无备注信息' }}</div> |
|
|
|
|
<div class="detail-content-text">{{ currentAchievement?.achievement_intro }}</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="detail-section"> |
|
|
|
|
<h4 class="section-title"> |
|
|
|
|
<van-icon name="comment-o" color="#ff9800" size="18" /> |
|
|
|
|
成果简介 |
|
|
|
|
备注 |
|
|
|
|
</h4> |
|
|
|
|
<div class="detail-content-text">{{ currentAchievement?.achievement_intro }}</div> |
|
|
|
|
<div class="detail-content-text">{{ currentAchievement?.remarks || '无备注信息' }}</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 发布时间 --> |
|
|
|
|
@ -263,6 +262,11 @@ onMounted(() => { |
|
|
|
|
padding-left: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.search-container :deep(.van-search__action) { |
|
|
|
|
line-height: 25px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 下载按钮容器 */ |
|
|
|
|
.download-container { |
|
|
|
|
display: flex; |
|
|
|
|
@ -413,8 +417,9 @@ onMounted(() => { |
|
|
|
|
.detail-content { |
|
|
|
|
height: 100%; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
padding: 15px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* 详情头部 */ |
|
|
|
|
@ -422,9 +427,8 @@ onMounted(() => { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
padding-bottom: 10px; |
|
|
|
|
border-bottom: 1px solid #f0f0f0; |
|
|
|
|
padding: 15px 15px 10px 15px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.detail-header h3 { |
|
|
|
|
@ -440,6 +444,9 @@ onMounted(() => { |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
gap: 15px; |
|
|
|
|
padding: 15px; |
|
|
|
|
flex: 1; |
|
|
|
|
overflow: auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* 详情区块 */ |
|
|
|
|
|