Newer
Older
carbon-metering-front / src / views / count / index.vue
liyaguang on 10 Mar 2023 806 bytes fix(*): 调整页面及配置
<!-- 碳足迹计算 -->
<script lang="ts" setup name="count">
import page from './page.vue'
import tab from '@/views/data/collect/tab.vue'
const tablistData = ref([
  {
    id: '1',
    title: '电力碳核算',
  },
  {
    id: '2',
    title: '热力碳核算',
  },
  {
    id: '3',
    title: '燃气碳核算',
  },
])
const select = ref('')
const confirm = (selectp: string) => {
  select.value = selectp
}
</script>

<template>
  <div>
    <!-- tab切换 -->
    <tab :tablist-data="tablistData" @confirm="confirm" />
    <page :type="select" />
  </div>
</template>

<style lang="scss" scoped>
.normal-input {
  width: 130px !important;
}

.normal-date {
  width: 130px !important;
}

.normal-select {
  width: 130px !important;
}

:deep(.el-table__header) {
  background-color: #bbb;
}
</style>