Newer
Older
xc-business-system / src / views / business / certManage / cert / components / basic.vue
<!-- 证书管理  基本信息 -->
<script name="CertificateBasic" lang="ts" setup>
import type { Ref } from 'vue'
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import * as pdfjsLib from 'pdfjs-dist'
import { onMounted, ref } from 'vue'
import filePreviewUrl from '@/components/filePreview/filePreviewUrl.vue'
import { getStream } from '@/api/business/subpackage/agreement'
import { getBase64, getObjectURL } from '@/utils/download'
import { getDictByCode } from '@/api/system/dict'
import { getUserList } from '@/api/system/user'
import { getInfo } from '@/api/business/taskMeasure/certificate'
import type { dictType } from '@/global'
const props = defineProps({
  infoId: { // id
    type: String,
    default: '',
  },
  printFileName: {
    type: String,
    default: '',
  },
})
const emits = defineEmits(['reportData'])
const infoId = ref('') // id

// -----------------------------------------路由参数----------------------------------------
// 从路由中获取页面类型参数
const $route = useRoute()
if ($route.params) {
  if ($route.params.id) {
    infoId.value = $route.params.id as string
  }
}

// --------------------------------------------------------------------------------------

onMounted(async () => {
})
</script>

<template>
  <div style="display: flex;justify-content: center; padding: 10px 10px 20px 0;box-sizing: border-box;">
    <file-preview-url style="width: 70%;margin-right: 10px;" :print-file-name="props.printFileName" />
  </div>
</template>