examView.vue 1.79 KB
<template>
  <el-dialog
    v-model="show" title="考点审核详情" :close-on-click-modal="true" draggable
    width="1000"
  >
    <el-table v-loading="loading" :data="list" border>
      <el-table-column type="index" width="55" align="center" label="序号" />
      <el-table-column
        label="审核协会" align="center" prop="auditDeptName" show-overflow-tooltip min-width="160px"
      />
      <el-table-column label="审核日期" align="center" prop="auditTime" min-width="100">
        <template #default="{row}">
          <span>{{ parseTime(row.auditTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="审核状态" align="center" min-width="110">
        <template #default="{row}">
          <div v-if="row.auditResult==1" class="text-success">审核通过</div>
          <div v-else-if="row.auditResult==0" class="text-danger"> 审核拒绝</div>
          <div v-else>待审核</div>
        </template>
      </el-table-column>
      <el-table-column label="理由" align="center" prop="auditMsg" min-width="100">
        <template #default="{row}">
          <div>{{ row.auditMsg ? row.auditMsg : '/' }}</div>
        </template>
      </el-table-column>
    </el-table>
    <br>
  </el-dialog>
</template>

<script setup>
import { ref, getCurrentInstance } from 'vue'
import { getMyRecent } from '@/api/system/userInfo.js'

const { proxy } = getCurrentInstance()

const show = ref(false)
const list = ref([])
const loading = ref(false)

function open(row) {
  show.value = true
  getMyCertStageFN()
}

async function getMyCertStageFN() {
  loading.value = true
  const res = await getMyRecent()
  loading.value = false
  if (res.data.auditLogs) list.value = JSON.parse(res.data.auditLogs)
}

defineExpose({ open })
</script>

<style scoped>

</style>