@@ -190,6 +203,10 @@ onMounted(() => {
基本信息
+
+ 项目名称:
+ {{ currentAchievement?.project_name }}
+
所属领域:
{{ currentAchievement?.field }}
@@ -198,10 +215,10 @@ onMounted(() => {
技术成熟度:
{{ currentAchievement?.tech_maturity }}
-
+
合作方式:
{{ currentAchievement?.cooperation_mode }}
@@ -225,9 +242,9 @@ onMounted(() => {
-
+
diff --git a/src/components/DemandList.vue b/src/components/DemandList.vue
index 3f620ef..d05a412 100644
--- a/src/components/DemandList.vue
+++ b/src/components/DemandList.vue
@@ -3,6 +3,11 @@ import { ref, reactive, onMounted } from 'vue'
import { showToast } from 'vant'
import { getDemandList } from '../services/api'
+// 接受父组件传递的配置
+const props = defineProps({
+ config: Object
+})
+
// 搜索关键词
const searchKey = ref('')
@@ -84,8 +89,13 @@ const handleDetail = (item) => {
}
// 下载清单
-const handleDownload = (year) => {
- showToast(`${year}清单下载功能开发中`)
+const handleDownload = (url) => {
+ if (url) {
+ // 直接打开下载链接
+ window.open(url, '_blank')
+ } else {
+ showToast('下载链接无效')
+ }
}
// 页面挂载时获取数据
@@ -98,8 +108,9 @@ onMounted(() => {
-
+
搜索
@@ -108,11 +119,9 @@ onMounted(() => {
-
- 2025年清单下载
-
-
- 2024年清单下载
+
+ {{ item.name }}
@@ -135,19 +144,18 @@ onMounted(() => {
-
+
{{ item?.project_name || '' }}
-
+
{{ item?.demand_overview || '' }}