<template>
  <custom-modal v-model="visible" :width="1000" :title="type == 1 ? 'ARR' : 'RRR'">
    <pre>
        {{ content }}
      </pre
    >
    <div slot="custom-footer" style="text-align: center;">
      <a-space :size="20">
        <a-button type="primary">Export</a-button>
        <a-button @click="visible = false">Cancel</a-button>
      </a-space>
    </div>
  </custom-modal>
</template>

<script>
import ModalMixin from '@/mixins/ModalMixin'
import { getAction } from '../../../../api/manage'
export default {
  mixins: [ModalMixin],
  props: {
    type: {
      type: Number,
      default: 1
    }
  },
  data() {
    return {
      content: `--------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
      --------------------------    SampleAnalyse Beginning at 2023-07-10 11:44:56    --------------------------
       `,
      isLoading: true
    }
  },
  methods: {
    async getContent() {
      try {
        const res = getAction('/')
      } catch (error) {
        console.error(error)
      }
    }
  }
}
</script>

<style lang="less" scoped>
pre {
  max-height: 450px;
  padding: 5px;
  overflow: auto;
  background-color: #285367;
}
</style>
