<!--信息查询-->
<template>
  <div class="content-div">
    <a-card class="info-submit" :bordered="false">
        <a-radio-group v-model="defaultValue" button-style="solid" @change="changeContent">
          <a-radio-button v-for="(item, index) in menus" :key="item.id" :value="item.meta.url" :name="item.name">
            {{ item.meta.title }}
          </a-radio-button>
        </a-radio-group>
    </a-card>
    <a-card :bordered="false">
      <iframe :src="defaultValue" width="100%" height="600" frameborder="0" allowfullscreen ></iframe>

    </a-card>
  </div>
</template>


<script>

export default {
  name: 'landInfo',
  components: {


  },
  data() {
    return {
      defaultValue: '',
      menus: [],
    }
  },
  created() {
    debugger
    this.menus = this.$store.state.menu.menuList['statistics'];
    this.defaultValue = this.menus.length > 0 ? this.menus[0].value : '';
  },
  methods: {
    changeContent(key) {
      console.table(key);
    },

  }

}
</script>

<style scoped>
.content-div {
  height: 100%;
}
.ant-card:not(:last-child) {
  margin-bottom: 10px;
}
.ant-card:last-child {
  height: calc(100% - 70px);
  overflow-y: auto;
}
</style>
<style lang="less" scoped>
.info-submit {
  & ::v-deep > .ant-card-body {
    padding: 14px 24px;
  }
  &::v-deep .ant-radio-button-wrapper {
    //border: 1px solid ;
    border-radius: 4px;
    padding-left: 25px;
    padding-right: 25px;
    //border-left: 1px;
    border: 1px solid @primary-color;
    margin-left: 15px;
    color: @primary-color;
  }
  & /deep/ .ant-radio-button-wrapper:not(:first-child)::before {
    width: 0px;
  }
  & .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    color: #fff;
  }
}
.content-div {
  &::v-deep .ant-card:last-child .ant-card-body {
    padding: 10px 24px 0;
  }

}

</style>