<template>
  <w-dialog
    ref="dialogRef"
    :title="$t('re.resources.designer.processor.dialog.decisionTree.title')"
    :can-maximize="false"
    :maximized="true"
    body-padding="2px 2px 2px 2px"
  >
    <iframe
      :src="Environment.getWebContextPath() + 'api/re/model/parameter/processor/editDecisionTreeById/' + processorIdRef"
      style="width: 100%; height: 100%"
    ></iframe>
  </w-dialog>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { Environment } from 'platform-core';

const dialogRef = ref();
const processorIdRef = ref();

const open = (processorId) => {
  processorIdRef.value = processorId;
  dialogRef.value.show();
};

const close = () => {
  dialogRef.value.hide();
};

defineExpose({
  open,
  close,
});
</script>
