Appearance
单据联查
q-relation-graph 单据联查组件
vue
<template>
<q-relation-graph
v-model:visible="graphVisible"
v-bind="rgData"
></q-relation-graph>
</template>
<script lang="ts" setup>
// 全局数据缓存
import { useGlobalStoreWithDefaultValue } from '@/use/useGlobalStore'
const { getCurrentRow token } = useGlobalStoreWithDefaultValue()
const currentRow = getCurrentRow()
const graphVisible = ref(false);
const rgData = {
documentId: currentRow.documentId,
id: currentRow.id,
};
const handleCustomModal = () => {
graphVisible.value = true;
};
</script>