<template>
  <div>
    <el-card shadow="always" :body-style="{ padding: '20px' }">
      <el-tabs v-model="activeName" class="demo-tabs" @tab-change="handChange">
        <el-tab-pane label="微信提审" name="wechatAudit">
          <wechatAuditList v-if="activeName == 'wechatAudit'"></wechatAuditList>
        </el-tab-pane>
        <el-tab-pane label="审核状态" name="wechatAuditStatus">
          <wechatAuditStatus v-if="activeName == 'wechatAuditStatus'"></wechatAuditStatus>
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script lang="ts" setup>
import { useRouter, useRoute } from 'vue-router'
import type { TabsPaneContext } from 'element-plus'
import wechatAuditList from "./tabs/wechatAuditList/index.vue"
import wechatAuditStatus from "./tabs/wechatAuditStatus/index.vue"
const router = useRouter()
const route = useRoute()
const handChange = (tab: TabsPaneContext, event: Event) => {
  activeName.value = tab
}
const activeName = ref('wechatAudit')
onMounted(() => {
  activeName.value = route.query.tab || 'wechatAudit'
});
</script>

<style scoped lang="scss"></style>
