|
@@ -33,43 +33,50 @@ function onUpper(id: number) {
|
|
|
<template>
|
|
|
<a-card hoverable size="small">
|
|
|
<template #title>
|
|
|
- <div class="title-link">
|
|
|
- <span class="text-black"> {{ serialNumber }}. </span>
|
|
|
- <span v-if="data.companyName" class="text-black"> {{ data.companyName }}</span>
|
|
|
- <span v-else class="text-red">无关联企业</span>
|
|
|
- <span class="text-black"> - </span>
|
|
|
- <span v-if="data.name" class="text-black">{{ data.name }}</span>
|
|
|
- <span v-else class="text-red">无报告类型</span>
|
|
|
- <span v-if="data.status == 1" class="text-black"> 已完成</span>
|
|
|
- <span v-else class="text-black"> 编写中</span>
|
|
|
- </div>
|
|
|
+ <a :href="data.tianheCloudUrl">
|
|
|
+ <div class="title-link">
|
|
|
+ <span class="text-black"> {{ serialNumber }}. </span>
|
|
|
+ <span v-if="data.companyName" class="text-black"> {{ data.companyName }}</span>
|
|
|
+ <span v-else class="text-red">无关联企业</span>
|
|
|
+ <span class="text-black"> - </span>
|
|
|
+ <span v-if="data.name" class="text-black">{{ data.name }}</span>
|
|
|
+ <span v-else class="text-red">无报告类型</span>
|
|
|
+ <span v-if="data.status == 1" class="text-black"> 已完成</span>
|
|
|
+ <span v-else class="text-black"> 编写中</span>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
</template>
|
|
|
|
|
|
<template #extra>
|
|
|
- <a-button
|
|
|
- v-if="!data.tianheCloudId"
|
|
|
- type="link"
|
|
|
- target="_blank"
|
|
|
- @click="onUpper(data.id)"
|
|
|
- >上链</a-button
|
|
|
+ <a :href="data.tianheCloudUrl">
|
|
|
+ <a-button
|
|
|
+ v-if="!data.tianheCloudId"
|
|
|
+ type="primary"
|
|
|
+ target="_blank"
|
|
|
+ @click="onUpper(data.id)"
|
|
|
+ >上链</a-button
|
|
|
+ >
|
|
|
+ <span v-else>已上链</span></a
|
|
|
>
|
|
|
</template>
|
|
|
|
|
|
- <div class="report-metadata-wrap">
|
|
|
- <p>
|
|
|
- <span>企业名称:</span><span>{{ data.companyName }}</span>
|
|
|
- </p>
|
|
|
- <p>
|
|
|
- <span>项目名称:</span><span>{{ data.reportName }}</span>
|
|
|
- </p>
|
|
|
- <p>
|
|
|
- <span>项目负责人:</span><span>{{ data.supervisor }}</span>
|
|
|
- </p>
|
|
|
- <p v-for="(item, index) in data.metadata" :key="index">
|
|
|
- <span>{{ item.name }}:</span>
|
|
|
- <span>{{ item.value }}</span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
+ <a :href="data.tianheCloudUrl">
|
|
|
+ <div class="report-metadata-wrap">
|
|
|
+ <p>
|
|
|
+ <span>企业名称:</span><span>{{ data.companyName }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>项目名称:</span><span>{{ data.reportName }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>项目负责人:</span><span>{{ data.supervisor }}</span>
|
|
|
+ </p>
|
|
|
+ <p v-for="(item, index) in data.metadata" :key="index">
|
|
|
+ <span>{{ item.name }}:</span>
|
|
|
+ <span>{{ item.value }}</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -85,4 +92,7 @@ function onUpper(id: number) {
|
|
|
margin-bottom: 0.3em;
|
|
|
}
|
|
|
}
|
|
|
+a {
|
|
|
+ color: #000;
|
|
|
+}
|
|
|
</style>
|