|
@@ -24,7 +24,8 @@
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label-class-name="my-label" label="标本类型:"
|
|
|
- label-align="right">{{ specimenTypeText }}
|
|
|
+ label-align="right">
|
|
|
+ <dict-tag :type="DICT_TYPE.MUSEUMS_SPECIMEN_TYPE" :value="specimenData.specimenType" />
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="资产号:" label-align="right"
|
|
|
label-class-name="my-label">{{
|
|
@@ -33,7 +34,8 @@
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
<el-descriptions-item label="保存类型:" label-class-name="my-label"
|
|
|
- label-align="right">{{ preservationTypeText }}
|
|
|
+ label-align="right">
|
|
|
+ <dict-tag :type="DICT_TYPE.MUSEUMS_SPECIMEN_INFO" :value="specimenData.preservationType" />
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="中文名称:" label-align="right"
|
|
|
label-class-name="my-label">{{
|
|
@@ -41,9 +43,8 @@
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label-class-name="my-label" label="保存状态:"
|
|
|
- label-align="right">{{
|
|
|
- saveStatusText
|
|
|
- }}
|
|
|
+ label-align="right">
|
|
|
+ <dict-tag :type="DICT_TYPE.MUSEUMS_SPECIMEN_PRESERVATION_STATUS" :value="specimenData.saveStatus" />
|
|
|
</el-descriptions-item>
|
|
|
<!-- <el-descriptions-item label="存放位置:" label-align="right"-->
|
|
|
<!-- label-class-name="my-label">{{-->
|
|
@@ -167,14 +168,15 @@
|
|
|
}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="主要用途:" label-class-name="my-label"
|
|
|
- label-align="right">{{
|
|
|
- mainPurposeText
|
|
|
- }}
|
|
|
+ label-align="right">
|
|
|
+ <dict-tag :type="DICT_TYPE.MUSEUMS_SPECIMEN_MAIN_USES" :value="specimenData.mainPurpose" />
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="具体用途:" label-class-name="my-label"
|
|
|
- label-align="right">{{
|
|
|
+ label-align="right">
|
|
|
+ {{
|
|
|
specimenData.purpose
|
|
|
}}
|
|
|
+
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-card>
|
|
@@ -304,7 +306,9 @@
|
|
|
<el-card style="margin-top: 10px">
|
|
|
<template #header>
|
|
|
<div class="card-header">
|
|
|
- <h1 class="text1" style="margin-bottom: 10px">馆藏状态:{{ collectionStatusText }}</h1>
|
|
|
+ <h1 class="text1" style="margin-bottom: 10px">馆藏状态:
|
|
|
+ <dict-tag :type="DICT_TYPE.MUSEUMS_COLLECTION_STATUS" :value="specimenData.collectionStatus" />
|
|
|
+ </h1>
|
|
|
</div>
|
|
|
</template>
|
|
|
<el-scrollbar height="650px">
|
|
@@ -345,6 +349,7 @@ const router = useRouter() // 路由
|
|
|
const {query} = useRoute() // 查询参数
|
|
|
import type {ComponentSize} from 'element-plus'
|
|
|
import {formatDate} from "@/utils/formatTime";
|
|
|
+import {DICT_TYPE} from "@/utils/dict";
|
|
|
|
|
|
const stustuss = ref()
|
|
|
const specimenData = ref({
|
|
@@ -377,24 +382,7 @@ const fetchData = async () => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-/**标本类型**/
|
|
|
-const specimenTypeText = computed(() => {
|
|
|
- if (specimenData.value === null) {
|
|
|
- return '';
|
|
|
- }
|
|
|
- switch (specimenData.value.specimenType) {
|
|
|
- case 0:
|
|
|
- return '矿物';
|
|
|
- case 1:
|
|
|
- return '岩石矿石';
|
|
|
- case 2:
|
|
|
- return '化石';
|
|
|
- case 3:
|
|
|
- return '陨石';
|
|
|
- default:
|
|
|
- return '';
|
|
|
- }
|
|
|
-});
|
|
|
+
|
|
|
/**保存状态**/
|
|
|
const saveStatusText = computed(() => {
|
|
|
if (specimenData.value === null) {
|
|
@@ -413,22 +401,7 @@ const saveStatusText = computed(() => {
|
|
|
return '';
|
|
|
}
|
|
|
});
|
|
|
-/**保存类型**/
|
|
|
-const preservationTypeText = computed(() => {
|
|
|
- if (specimenData.value === null) {
|
|
|
- return '';
|
|
|
- }
|
|
|
- switch (specimenData.value.preservationType) {
|
|
|
- case 0:
|
|
|
- return '标本';
|
|
|
- case 1:
|
|
|
- return '光片';
|
|
|
- case 2:
|
|
|
- return '薄片模型';
|
|
|
- default:
|
|
|
- return '';
|
|
|
- }
|
|
|
-});
|
|
|
+
|
|
|
/**来源**/
|
|
|
const sourceText = computed(() => {
|
|
|
if (specimenData.value === null) {
|
|
@@ -467,22 +440,7 @@ const mainPurposeText = computed(() => {
|
|
|
return '';
|
|
|
}
|
|
|
});
|
|
|
-/**馆藏状态**/
|
|
|
-const collectionStatusText = computed(() => {
|
|
|
- if (specimenData.value === null) {
|
|
|
- return '';
|
|
|
- }
|
|
|
- switch (specimenData.value.collectionStatus) {
|
|
|
- case 0:
|
|
|
- return '在馆';
|
|
|
- case 1:
|
|
|
- return '借出';
|
|
|
- case 2:
|
|
|
- return '展陈';
|
|
|
- default:
|
|
|
- return '';
|
|
|
- }
|
|
|
-});
|
|
|
+
|
|
|
// // 在组件加载时获取数据
|
|
|
onMounted(async () => {
|
|
|
await fetchData()
|