detail.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
  5. <cHead :is_menu="false" :is_head="false">
  6. <template v-slot:info>
  7. <div class="w_1200">
  8. <el-col :span="24" class="one">
  9. <el-row :span="24" class="one_1">
  10. <el-col :span="20" class="title">{{ info.title || '暂无标题' }}</el-col>
  11. <el-col :span="4" class="file">
  12. <el-icon>
  13. <Download />
  14. </el-icon>
  15. 附件下载
  16. </el-col>
  17. </el-row>
  18. <el-row :span="24" class="one_2"> 普通许可 </el-row>
  19. </el-col>
  20. <el-col :span="24" class="two">
  21. <a-descriptions bordered>
  22. <a-descriptions-item label="行业分类">行业分类</a-descriptions-item>
  23. <a-descriptions-item label="成果属性">成果属性</a-descriptions-item>
  24. <a-descriptions-item label="出让方式">出让方式</a-descriptions-item>
  25. <a-descriptions-item label="成熟度">成熟度</a-descriptions-item>
  26. <a-descriptions-item label="技术分类">技术分类</a-descriptions-item>
  27. <a-descriptions-item label="成果地区">成果地区</a-descriptions-item>
  28. <a-descriptions-item label="发布时间">发布时间</a-descriptions-item>
  29. </a-descriptions>
  30. </el-col>
  31. <el-col :span="24" class="thr">
  32. <el-col :span="24" class="thr_1">
  33. <p>单位信息</p>
  34. </el-col>
  35. <el-row :span="24" class="thr_2">
  36. <el-col :span="17" class="left">
  37. <el-col :span="24" class="name">
  38. {{ info.unit || '暂无' }}
  39. </el-col>
  40. <el-col :span="24" class="other"> <span>联系人</span>{{ info.unit || '暂无' }} </el-col>
  41. </el-col>
  42. <el-col :span="4" class="right">
  43. <a-button type="primary">
  44. <template #icon>
  45. <MessageOutlined />
  46. </template>
  47. 点击在线洽谈
  48. </a-button>
  49. </el-col>
  50. </el-row>
  51. </el-col>
  52. <a-divider />
  53. <el-col :span="24" class="four">
  54. <el-col :span="24" class="four_1">
  55. <p>成果描述</p>
  56. </el-col>
  57. <el-col :span="24" class="four_2">{{ info.brief || '暂无' }}</el-col>
  58. </el-col>
  59. </div>
  60. </template>
  61. </cHead>
  62. </el-col>
  63. </el-row>
  64. </div>
  65. </template>
  66. <script setup lang="ts">
  67. // 基础
  68. import type { Ref } from 'vue';
  69. import { onMounted, ref } from 'vue';
  70. import { useRoute } from 'vue-router';
  71. import { MessageOutlined } from '@ant-design/icons-vue';
  72. // 接口
  73. // import { ToolsStore } from '@/stores/tool';
  74. // import type { IQueryResult } from '@/util/types.util';
  75. // const toolsAxios = ToolsStore();
  76. // 路由
  77. const route = useRoute();
  78. // 加载中
  79. const loading: Ref<any> = ref(false);
  80. const info: Ref<any> = ref({
  81. unit: '舟山海韵机械制造有限公司',
  82. title: '双头颗粒灌装机',
  83. time: '2024-01-05 09:12:23',
  84. end_time: '2024-01-05 09:12:23',
  85. money: '3',
  86. brief: '一种双头颗粒的灌装机'
  87. });
  88. // 请求
  89. onMounted(async () => {
  90. loading.value = true;
  91. await searchOther();
  92. await search();
  93. loading.value = false;
  94. });
  95. const search = async () => {
  96. // let id = route.query.id;
  97. // if (id) {
  98. // let res: IQueryResult = await userCheckAxios.fetch(id);
  99. // if (res.errcode == '0') {
  100. // let info: any = res.data as {};
  101. // form.value = info;
  102. // dataChange({ value: info.work_status, model: 'work_status' });
  103. // }
  104. // }
  105. };
  106. // 查询其他信息
  107. const searchOther = async () => {
  108. // let res: IQueryResult;
  109. // // 性别
  110. // res = await dictAxios.query({ type: 'common_gender' });
  111. // if (res.errcode == '0') genderList.value = res.data;
  112. };
  113. </script>
  114. <style scoped lang="scss">
  115. .main {
  116. .one {
  117. margin: 10px 0 0 0;
  118. background: #f7f7f7;
  119. padding: 24px;
  120. border-top: 6px solid #2374ff;
  121. overflow: hidden;
  122. border-radius: 0 0 5px 5px;
  123. .one_1 {
  124. margin: 0 0 10px 0;
  125. .title {
  126. font-size: 18px;
  127. font-weight: 700;
  128. color: #383b40;
  129. }
  130. .file {
  131. display: flex;
  132. align-items: center;
  133. justify-content: end;
  134. font-family: PingFangSC-Regular;
  135. font-size: 14px;
  136. color: #2374ff;
  137. text-align: right;
  138. }
  139. }
  140. .one_2 {
  141. display: inline-block;
  142. font-size: 12px;
  143. background: rgba(18, 172, 117, .05);
  144. color: #12ac75;
  145. padding: 0 15px;
  146. height: 20px;
  147. line-height: 20px;
  148. border-radius: 10px;
  149. margin-bottom: 2px;
  150. }
  151. }
  152. .two {
  153. background: #f9fafb;
  154. border-radius: 2px;
  155. padding: 30px;
  156. margin: 34px 0 20px;
  157. font-family: PingFangSC-Medium;
  158. font-size: 14px;
  159. color: #383b40;
  160. line-height: 14px;
  161. }
  162. .thr {
  163. margin: 0 0 10px 0;
  164. .thr_1 {
  165. width: 100%;
  166. height: 40px;
  167. line-height: 40px;
  168. border-bottom: 2px solid #2374ff;
  169. margin: 20px 0;
  170. background: #f7f7f7;
  171. p {
  172. float: left;
  173. padding: 0 20px;
  174. height: 40px;
  175. border-bottom: 2px solid #2374ff;
  176. color: #fff;
  177. font-size: 18px;
  178. background: #2374ff;
  179. }
  180. }
  181. .thr_2 {
  182. display: flex;
  183. justify-content: space-between;
  184. align-items: center;
  185. background: #fff;
  186. border: 1px solid #edeff2;
  187. box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .03);
  188. border-radius: 2px;
  189. padding: 30px 20px;
  190. .left {
  191. .name {
  192. height: 20px;
  193. font-family: PingFangSC-Semibold;
  194. font-size: 18px;
  195. color: #383b40;
  196. line-height: 20px;
  197. font-weight: 700;
  198. margin-bottom: 8px;
  199. }
  200. .other {
  201. height: 14px;
  202. font-family: PingFangSC-Medium;
  203. font-size: 14px;
  204. color: #383b40;
  205. line-height: 14px;
  206. font-weight: 700;
  207. span {
  208. height: 14px;
  209. font-family: PingFangSC-Regular;
  210. font-size: 14px;
  211. color: #7e8288;
  212. line-height: 14px;
  213. font-weight: 400;
  214. margin-right: 16px;
  215. }
  216. }
  217. }
  218. .right {
  219. display: flex;
  220. justify-content: space-between;
  221. }
  222. }
  223. }
  224. .four {
  225. margin: 0 0 10px 0;
  226. .four_1 {
  227. width: 100%;
  228. height: 40px;
  229. line-height: 40px;
  230. border-bottom: 2px solid #2374ff;
  231. margin: 20px 0;
  232. background: #f7f7f7;
  233. p {
  234. float: left;
  235. padding: 0 20px;
  236. height: 40px;
  237. border-bottom: 2px solid #2374ff;
  238. color: #fff;
  239. font-size: 18px;
  240. background: #2374ff;
  241. }
  242. }
  243. }
  244. }
  245. </style>