auditEdit.vue 2.19 KB
<template>
  <div>
    <el-dialog
      v-model="show" title="审核详情" :close-on-click-modal="true" draggable
      width="70%"
    >
      <el-table :data="list" border>
        <el-table-column type="index" width="55" align="center" label="序号" />
        <el-table-column label="审核协会" align="center" prop="auditDeptName" :show-overflow-tooltip="true" min-width="160px" />
        <!-- <el-table-column label="审核人" align="center" prop="auditBy" min-width="90" /> -->
        <el-table-column label="审核日期" align="center" prop="auditTime" min-width="100">
          <template #default="scope">
            <span>{{ parseTime(scope.row.auditTime, '{y}-{m}-{d}') }}</span>
          </template>
        </el-table-column>
        <el-table-column label="审核状态" align="center" min-width="110">
          <template #default="props">
            <div v-if="props.row.auditResult==0"> 审核中</div>
            <div v-if="props.row.auditResult==1" class="text-success">审核通过</div>
            <div v-if="props.row.auditResult==2" class="text-danger"> 审核拒绝</div>
            <div v-if="props.row.auditResult==3" class="text-warning"> 已撤回</div>
          </template>
        </el-table-column>
        <el-table-column label="理由" align="center" prop="auditMsg" min-width="100">
          <template #default="scope">
            <div>{{ scope.row.auditMsg?scope.row.auditMsg:'/' }}</div>
          </template>
        </el-table-column>
      </el-table>
      <br>
      <stepFirstFalg ref="stepFirstFalgRef" />
    </el-dialog>
  </div>
</template>

<script setup >
import { ref } from 'vue'
import { getMyCertStage } from '@/api/system/userInfo.js'
import stepFirstFalg from '@/views/member/components/stepFirstFalg.vue'
import { getCurrentInstance } from '@vue/runtime-core'
const { proxy } = getCurrentInstance()

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

function open(row) {
  show.value = true
  getMyCertStageFN()
  setTimeout(() => {
    proxy.$refs['stepFirstFalgRef'].open(row)
  }, 500)
}

async function getMyCertStageFN(params) {
  const res = await getMyCertStage()
  list.value = res.data
  console.log(res)
}
defineExpose({ open })
</script>

<style scope>

</style>