<template>
  <tab-button v-ref:list :active="-1">
<!--    <tabs header="居民用户台账">-->
<!--      <check-book v-if="show.includes('居民用户台账')" @deal-msg="dealMsg" v-ref:papermain :showtype="'民用'"></check-book>-->
<!--    </tabs>-->
<!--    <tabs header="非居民用户台账">-->
<!--      <check-book v-if="show.includes('非居民用户台账')" @deal-msg="dealMsg" v-ref:paperfeimain :showtype="'非民用'"></check-book>-->
<!--    </tabs>-->
    <tabs header="安检册">
      <check-book v-if="show.includes('安检册')" @deal-msg="dealMsg" v-ref:paperfeimain :showtype="'用户'"></check-book>
    </tabs>
  </tab-button>
</template>

<script>
import TabButton from '../../../components/safecheck/common/TabButton'
import Tabs from '../../../components/safecheck/common/Tabs'
// import { HttpResetClass } from 'vue-client'

export default {
  name: 'checkBookAll',
  title: '安检册管理',
  data() {
    return {// 页面开关
      residentialArea: [],
      f_start_date: '',
      f_end_date: '',
      listpage: true,
      width: {
        left: '100%',
        right: '0%'
      },
      rowData: {},
      show: []
    }
  },
  components: {Tabs, TabButton},
  ready() {
    //tag
    //tag
    //tag
    this.$refs.list.handleTabListClick(0,this.$refs.list.renderData[0])
  },
  methods: {
    // permission(name) {
    //     if (!this.$login.r.find(value => value == name)) {
    //       return true
    //   }
    //   return true
    // },
    cancel(obj) {
      this.listpage = true
    },
    dealMsg(obj) {
      this.rowData = obj
      this.listpage = false
      this.f_start_date = obj.model.startDate
      this.f_end_date = obj.model.endDate
    }
  }
}
</script>

<style scoped>

</style>
