<template>
  <div class="dataAccessPage">
    <PublicPageHeader class="dataAccessPage_header" page-title="服务管理" />
    <div class="dataAccessPage_content flex-wrap">
      <div class="dataAccessPage_content_left">
        <AccessPageTree @treeNodeClick="treeNodeClick" />
      </div>
      <div class="dataAccessPage_content_right">
        <AccessPageTable :msg-content="msgContent" />
      </div>
    </div>
  </div>
</template>

<script>
import PublicPageHeader from '@/components/PublicPageHeader'
import AccessPageTree from './components/accessPageTree.vue'
import AccessPageTable from './components/accessPageTable.vue'
export default {
  name: 'DataAccessPage',
  components: { PublicPageHeader, AccessPageTree, AccessPageTable },
  data () {
    return {
      msgContent: {}
    }
  },
  methods: {
    treeNodeClick (row) {
      this.msgContent = row
    }
  }
}
</script>

<style lang="scss" scoped>
.dataAccessPage {
  height: calc(100vh - 90px);
  padding: 20px;
  &_content {
    margin-top: 20px;
    height: calc(100vh - 190px);
    &_left {
      width: 360px;
      margin-right: 20px;
      height: 100%;
    }
    &_right {
      width: calc(100% - 380px);
      height: 100%;
      background-color: #fff;
      padding: 20px;
    }
  }
}
</style>
