Skip to content
On this page

查看流程

flow-view-modal 查看流程组件

vue
<template>
  <!-- 查看流程 -->
  <flow-view-modal
    v-model:visible="flowVisible"
    :currentRow="currentRow"
    :flowId="flowId"
    :isDesign="false"
    :token="token"
  ></flow-view-modal>
</template>

<script lang="ts" setup>
// 全局数据缓存
import { useGlobalStoreWithDefaultValue } from '@/use/useGlobalStore'
const { getCurrentRow token } = useGlobalStoreWithDefaultValue()
const currentRow = getCurrentRow()

const flowVisible = ref<boolean>(false)
const flowId = ref<string>('')
// 查看流程
const handleFlowView = () => {
  flowId.value = currentRow.value.resultFlowId as string || ''
  flowVisible.value = true
}
</script>