<script lang="ts" setup>
const emit = defineEmits<Emits>()

defineProps({
  isShowAnalysisDialog: {
    type: Boolean,
    required: true
  }
})
interface Emits {
  (e: 'update:isShowAnalysisDialog', isShowAnalysisDialog: boolean): void
}
const handleCancel = () => {
  emit('update:isShowAnalysisDialog', false)
}
const biURL = import.meta.env.VITE_BI_URL
</script>
<template>
  <el-dialog :model-value="isShowAnalysisDialog" draggable :before-close="handleCancel" width="30%">
    <div class="main_content">
      <iframe
        :src="`${biURL}/bi/?proc=1&action=viewer&hback=true&isInPreview=true&db=!7d2b!!8346!!6559!!80b2!e-SaaS!2f!!751f!!6e90!!5730!!5206!!5e03!.db&platform=PC&browserType=chrome`"
        frameborder="0"></iframe>
    </div>
  </el-dialog>
</template>
