seatonwan9
2025-08-19 95cb69b9f79893d7cd1319d754064c93e3fa4e2f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<template>
    <div>
        <h2>知识详情</h2>
        <el-descriptions direction="horizontal" :column="2" border size="default"
        label-width="120px"  >
        <el-descriptions-item
          label="知识名称"
          label-align="right"
          align="left"
          width="35vw"
        >
          {{ state.basicInfo.name }}
        </el-descriptions-item>
        <el-descriptions-item label="提供者"
         label-align="right" align="left"    >
          {{ state.basicInfo?.submissionUnit }}
        </el-descriptions-item>
        <el-descriptions-item label="行业领域" label-align="right" align="left"    >
          {{ state.basicInfo?.industrialChainNameList?.join() }}
        </el-descriptions-item>
        <el-descriptions-item label="单位工程" label-align="right" align="left"  >
          {{ state.basicInfo?.importantAreaNameList?.join()}}
        </el-descriptions-item>
        <el-descriptions-item label="知识类型" label-align="right" align="left"   >
          {{ state.basicInfo.typeName}} - {{ state.basicInfo.typeChildName}}
        </el-descriptions-item>
        <el-descriptions-item label="生产阶段" label-align="right" align="left"  >
          {{ state.basicInfo.businessProcessNameList?.join()}}
        </el-descriptions-item>
      </el-descriptions>
    </div>
  </template>
  
  <script setup lang="ts">
import achievementService from '@/api/zhongjian/achievementApi' // 接口文件
 
  const state = reactive<any>({
    basicInfo: {
      name: '', // 方案名称
      describe: '', // 方案描述
      scopeId: '', //
      industrialChainId: '', // 行业领域id
      industrialChainName: '', // 行业领域
      industrialChainIdList: [], // 行业领域idList
      industrialChainNameList: [], // 行业领域nameList
      importantAreaId: '', // 单位工程id
      importantAreaName: '', // 单位工程
      importantAreaIdList: [], // 单位工程idList
      importantAreaNameList: [], // 单位工程nameList
      businessProcessId: '', // 产业阶段id
      businessProcessName: '', // 产业阶段name
      sceneId: '', // 场景方向Id
      probationType: '', // 软件类型
      probationMedia: '', // 文件ID或试用地址URL
      probationTypeId: '', // 软件类型id
      typeName: '', // 知识父类类型name
      typeId: '', // 知识父类类型id
      typeChildName: '', // 知识类型子类name
      typeChildId: '', // 知识类型子类id
      lookName: '', // 查看方式name
      lookId: '', // 查看方式id
      homeImage: '', // 宣传图id
      quotationSystemId: '', //上传文件
    },
  })
 
  const getDetailInfo = (id:string) => {
    achievementService
    .getIdListUrl({
      id:id,
    })
    .then((res: any) => {
      if (res.code == 200) {
        state.basicInfo = res.data
      }
    })
  }
  defineExpose({
    getDetailInfo
  });
  </script>
  <style scoped lang="scss">
  .viewbox-cont {
    margin-bottom: 10px;
    margin-top: 10px;
    h2 {
      padding: 5px 15px;
      background-color: #dce6f4;
      color: #656d9a;
      font-size: 14px;
    }
  }
  </style>