<template>
  <a-modal
    :destroy-on-close="true"
    title="主流程信息"
    width="65%"
    :visible="showParentFlowInfo"
    :footer="null"
    @ok="() => (showParentFlowInfo = false)"
    @cancel="() => (showParentFlowInfo = false)"
  >
    <sd-parent-flow-log
      :inst-id="webflow.FlowData.attrs.parentFlowInstanceId"
      :sub-inst-id="webflow.FlowData.instId"
    />
  </a-modal>
</template>

<script>
import components from './_import-components/sd-js-open-parent-flow-log-import'
export default {
  name: 'SdJsOpenParentFlowLog',
  components,
  metaInfo: {
    title: 'SdJsOpenParentFlowLog',
  },
  data() {
    return {
      showParentFlowInfo: false,
    }
  },
  computed: {},
  methods: {
    run({ button }) {
      this.showParentFlowInfo = true
    },
  },
}
</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
