integrated_traffic_vue/src/views/enterprise_management/industry_qualifications/view.vue

49 lines
1.4 KiB
Vue
Raw Normal View History

2024-01-04 09:02:38 +08:00
<template>
<layout-card>
<el-descriptions :column="2" border>
<el-descriptions-item label="证书名称">
2024-01-05 14:32:49 +08:00
{{ info.NAME }}
2024-01-04 09:02:38 +08:00
</el-descriptions-item>
<el-descriptions-item label="证书有效期">
2024-01-05 14:32:49 +08:00
{{ info.VALIDITYTIME }}
2024-01-04 09:02:38 +08:00
</el-descriptions-item>
<el-descriptions-item label="证书编号">
2024-01-05 14:32:49 +08:00
{{ info.NUMBER }}
2024-01-04 09:02:38 +08:00
</el-descriptions-item>
<el-descriptions-item label="备注">
2024-01-05 14:32:49 +08:00
{{ info.DESCR }}
2024-01-04 09:02:38 +08:00
</el-descriptions-item>
<el-descriptions-item label="证书图片">
<img
2024-01-05 14:32:49 +08:00
v-for="item in info.file"
2024-01-04 09:02:38 +08:00
:key="item.FILEPATH"
2024-02-21 09:42:49 +08:00
v-viewer
2024-01-04 09:02:38 +08:00
:src="item.url"
width="100"
height="100"
class="ml"
/>
</el-descriptions-item>
</el-descriptions>
</layout-card>
</template>
<script setup>
2024-01-04 09:26:49 +08:00
import { getIndustryQualificationsView } from "@/request/enterprise_management.js";
2024-01-05 14:32:49 +08:00
import { ref } from "vue";
2024-01-04 09:02:38 +08:00
import { useRoute } from "vue-router";
import { addingPrefixToFile } from "@/assets/js/utils.js";
const route = useRoute();
const { QUALIFICATIONS_ID } = route.query;
2024-01-05 14:32:49 +08:00
const info = ref({});
2024-01-04 09:02:38 +08:00
const fnGetData = async () => {
const resData = await getIndustryQualificationsView({ QUALIFICATIONS_ID });
2024-01-05 14:32:49 +08:00
info.value = resData.pd;
info.value.file = addingPrefixToFile(resData.hImgs);
2024-01-04 09:02:38 +08:00
};
fnGetData();
</script>
<style lang="scss" scoped></style>