<script lang="ts" setup>
import { ref } from 'vue';

import { Page } from '@vben/common-ui';

import Awards from './components/awards/index.vue';
import BaseInfo from './components/base-info/index.vue';
import FilesComp from './components/files/index.vue';
import ImagesComp from './components/images/index.vue';
import Principal from './components/principal/index.vue';
import RoadCondition from './components/road-condition/index.vue';
import Scheduling from './components/scheduling/index.vue';
import Structure from './components/structure/index.vue';

const tabsValue = ref('base');
</script>

<template>
  <Page title="油站信息维护">
    <template #description>
      <!-- <div class="text-muted-foreground">
        <p>维护油站基础信息</p>
      </div> -->
      <ElTabs v-model="tabsValue">
        <ElTabPane label="基础信息" name="base" />
        <ElTabPane label="基本配置" name="config" />
        <ElTabPane label="辅助功能区" name="auxiliary" />
        <ElTabPane label="辅助生活区" name="auxiliaryLiving" />
        <ElTabPane label="其他信息" name="other" />
      </ElTabs>
    </template>
    <div class="flex flex-wrap gap-5">
      <BaseInfo v-if="tabsValue === 'base'" />
      <Principal v-if="tabsValue === 'base'" />
      <Awards v-if="tabsValue === 'base'" />
      <RoadCondition v-if="tabsValue === 'base'" />
      <Structure v-if="tabsValue === 'base'" />
      <Scheduling v-if="tabsValue === 'base'" />
      <ImagesComp v-if="tabsValue === 'base'" />
      <FilesComp v-if="tabsValue === 'base'" />
    </div>
  </Page>
</template>
