<template>
    <el-dialog v-model="visible" title="历史版本" width="80%" :close-on-click-modal="false" @closed="$emit('closed')">
        <data-table hidePageHeader hideHandler :paramsColums="paramsColums" :options="tableOptions"></data-table>
    </el-dialog>
</template>

<script setup>
import dataTable from "@/views/process/line/index";

const $emit = defineEmits(["closed"]);
const paramsColums = reactive([]);
const tableOptions = reactive({
    maxHeight: 1048,
    toolbarConfig: { export: false, zoom: false, custom: false }
});

const visible = ref(false);
const setData = data => {
    visible.value = true;
    paramsColums.push({ column: "parentId", defaultValue: data.id });
    paramsColums.push({ column: "tenantId", defaultValue: data.tenantId });
}

defineExpose({
    setData
});
</script>