feat: add report
This commit is contained in:
27
apps/web-naive/src/views/report/goview/index.vue
Normal file
27
apps/web-naive/src/views/report/goview/index.vue
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
import { DocAlert, IFrame, Page } from '@vben/common-ui';
|
||||||
|
import { useAccessStore } from '@vben/stores';
|
||||||
|
|
||||||
|
defineOptions({ name: 'GoView' });
|
||||||
|
|
||||||
|
const accessStore = useAccessStore();
|
||||||
|
|
||||||
|
const src = ref(
|
||||||
|
`${import.meta.env.VITE_GOVIEW_URL}?accessToken=${accessStore.accessToken}&refreshToken=${accessStore.refreshToken}`,
|
||||||
|
);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Page auto-content-height>
|
||||||
|
<template #doc>
|
||||||
|
<DocAlert
|
||||||
|
title="大屏设计器"
|
||||||
|
url="https://doc.iocoder.cn/report/screen/"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<IFrame :src="src" />
|
||||||
|
</Page>
|
||||||
|
</template>
|
||||||
25
apps/web-naive/src/views/report/jmreport/bi.vue
Normal file
25
apps/web-naive/src/views/report/jmreport/bi.vue
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
import { DocAlert, IFrame, Page } from '@vben/common-ui';
|
||||||
|
import { useAccessStore } from '@vben/stores';
|
||||||
|
|
||||||
|
defineOptions({ name: 'JimuBI' });
|
||||||
|
const accessStore = useAccessStore();
|
||||||
|
|
||||||
|
const src = ref(
|
||||||
|
`${import.meta.env.VITE_BASE_URL}/drag/list?token=${
|
||||||
|
accessStore.refreshToken
|
||||||
|
}`,
|
||||||
|
);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Page auto-content-height>
|
||||||
|
<template #doc>
|
||||||
|
<DocAlert title="大屏设计器" url="https://doc.iocoder.cn/screen/" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<IFrame :src="src" />
|
||||||
|
</Page>
|
||||||
|
</template>
|
||||||
25
apps/web-naive/src/views/report/jmreport/index.vue
Normal file
25
apps/web-naive/src/views/report/jmreport/index.vue
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
import { DocAlert, IFrame, Page } from '@vben/common-ui';
|
||||||
|
import { useAccessStore } from '@vben/stores';
|
||||||
|
|
||||||
|
defineOptions({ name: 'JimuReport' });
|
||||||
|
const accessStore = useAccessStore();
|
||||||
|
|
||||||
|
const src = ref(
|
||||||
|
`${import.meta.env.VITE_BASE_URL}/jmreport/list?token=${
|
||||||
|
accessStore.refreshToken
|
||||||
|
}`,
|
||||||
|
);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Page auto-content-height>
|
||||||
|
<template #doc>
|
||||||
|
<DocAlert title="报表设计器" url="https://doc.iocoder.cn/report/" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<IFrame :src="src" />
|
||||||
|
</Page>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user