|
@@ -55,7 +55,9 @@
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="国际命名:" label-align="right"
|
|
|
- label-class-name="my-label" v-if="specimenData.specimenType !== 2 && specimenData.specimenType !== 0 && specimenData.specimenType !== 1 "> {{
|
|
|
+ label-class-name="my-label"
|
|
|
+ v-if="specimenData.specimenType !== 2 && specimenData.specimenType !== 0 && specimenData.specimenType !== 1 ">
|
|
|
+ {{
|
|
|
specimenData.internationalName
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
@@ -88,7 +90,8 @@
|
|
|
>
|
|
|
|
|
|
<el-descriptions-item label="成分/化学式:" label-align="right"
|
|
|
- label-class-name="my-label" v-if="specimenData.specimenType !== 2"> {{
|
|
|
+ label-class-name="my-label"
|
|
|
+ v-if="specimenData.specimenType !== 2"> {{
|
|
|
specimenData.composition
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
@@ -107,7 +110,9 @@
|
|
|
label-class-name="my-label">{{ specimenData.meteoriteType }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="形成时代:" label-width="100px" label-align="right"
|
|
|
- label-class-name="my-label" v-if="specimenData.specimenType !== 1 && specimenData.specimenType !== 3 ">{{
|
|
|
+ label-class-name="my-label"
|
|
|
+ v-if="specimenData.specimenType !== 1 && specimenData.specimenType !== 3 ">
|
|
|
+ {{
|
|
|
specimenData.era
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
@@ -122,7 +127,8 @@
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="重量(g):" label-width="100px" label-align="right"
|
|
|
- label-class-name="my-label" v-if="specimenData.specimenType !== 2">{{
|
|
|
+ label-class-name="my-label"
|
|
|
+ v-if="specimenData.specimenType !== 2">{{
|
|
|
specimenData.weight
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
@@ -157,6 +163,11 @@
|
|
|
specimenData.specimenPrice
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="入馆时间:" label-class-name="my-label"
|
|
|
+ label-align="right">{{
|
|
|
+ specimenData.acquisitionTime
|
|
|
+ }}
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="数量(件/套):" label-align="right"
|
|
|
label-class-name="my-label">{{
|
|
|
specimenData.specimenAmount
|
|
@@ -168,12 +179,16 @@
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="发现时间:" label-class-name="my-label"
|
|
|
- label-align="right" v-if="specimenData.specimenType !== 2 && specimenData.specimenType !== 0 && specimenData.specimenType !== 1 "> {{
|
|
|
+ label-align="right"
|
|
|
+ v-if="specimenData.specimenType !== 2 && specimenData.specimenType !== 0 && specimenData.specimenType !== 1 ">
|
|
|
+ {{
|
|
|
specimenData.discoveryTime
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="降落时间:" label-class-name="my-label"
|
|
|
- label-align="right" v-if="specimenData.specimenType !== 2 && specimenData.specimenType !== 0 && specimenData.specimenType !== 1 ">{{
|
|
|
+ label-align="right"
|
|
|
+ v-if="specimenData.specimenType !== 2 && specimenData.specimenType !== 0 && specimenData.specimenType !== 1 ">
|
|
|
+ {{
|
|
|
specimenData.fallTime
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
@@ -182,7 +197,7 @@
|
|
|
<el-card style="margin-bottom: 5px">
|
|
|
<template #header>
|
|
|
<div class="card-header" style="text-align: center">
|
|
|
- <h1 class="text1" style="">标本用途与状态</h1>
|
|
|
+ <h1 class="text1" style="">标本用途与资料</h1>
|
|
|
</div>
|
|
|
</template>
|
|
|
<el-descriptions
|
|
@@ -192,18 +207,10 @@
|
|
|
:size="size"
|
|
|
border
|
|
|
>
|
|
|
- <el-descriptions-item label="入馆时间:" label-class-name="my-label"
|
|
|
- label-align="right">{{
|
|
|
- specimenData.acquisitionTime
|
|
|
- }}
|
|
|
- </el-descriptions-item>
|
|
|
- <!-- <el-descriptions-item label="文献资料:" label-class-name="my-label" label-align="right">{{-->
|
|
|
- <!-- specimenData.description-->
|
|
|
- <!-- }}-->
|
|
|
- <!-- </el-descriptions-item>-->
|
|
|
+
|
|
|
<el-descriptions-item label="主要用途:" label-class-name="my-label"
|
|
|
label-align="right">{{
|
|
|
- specimenData.mainPurpose
|
|
|
+ mainPurposeText
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="具体用途:" label-class-name="my-label"
|
|
@@ -216,6 +223,11 @@
|
|
|
specimenData.notes
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="文献资料:" label-class-name="my-label"
|
|
|
+ label-align="right">
|
|
|
+ <div v-html="specimenData.description">
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
@@ -397,7 +409,7 @@ const preservationTypeText = computed(() => {
|
|
|
return '';
|
|
|
}
|
|
|
});
|
|
|
-/**馆藏状态(在馆、借出)**/
|
|
|
+/**来源**/
|
|
|
const sourceText = computed(() => {
|
|
|
if (specimenData.value === null) {
|
|
|
return '';
|
|
@@ -413,7 +425,28 @@ const sourceText = computed(() => {
|
|
|
return '';
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+/**主要用途**/
|
|
|
+const mainPurposeText = computed(() => {
|
|
|
+ if (specimenData.value === null) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ switch (specimenData.value.mainPurpose) {
|
|
|
+ case 0:
|
|
|
+ return '工业原料';
|
|
|
+ case 1:
|
|
|
+ return '药用';
|
|
|
+ case 2:
|
|
|
+ return '建材';
|
|
|
+ case 3:
|
|
|
+ return '科学研究';
|
|
|
+ case 4:
|
|
|
+ return '观赏';
|
|
|
+ case 5:
|
|
|
+ return '其他';
|
|
|
+ default:
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+});
|
|
|
// // 在组件加载时获取数据
|
|
|
onMounted(async () => {
|
|
|
await fetchData()
|