---初始化后台管理web页面项目

This commit is contained in:
2025-08-20 14:39:30 +08:00
parent ad49711a7e
commit 87545a8baf
2057 changed files with 282864 additions and 213 deletions

View File

@ -0,0 +1,34 @@
<template>
<div id="viewer-host">
<ReportViewer ref="viewRef" language="zh" />
</div>
</template>
<script lang="ts" setup>
import { Viewer as ReportViewer } from '@grapecity/activereports-vue';
import '@grapecity/activereports/styles/ar-js-ui.css';
import '@grapecity/activereports/styles/ar-js-viewer.css';
import '@grapecity/activereports/pdfexport';
import '@grapecity/activereports/htmlexport';
import '@grapecity/activereports/xlsxexport';
import '@grapecity/activereports-localization/dist/designer/zh-locale';
import { onMounted, ref } from 'vue';
const viewRef = ref();
let props = defineProps({
content: String,
});
onMounted(() => {
if (props.content) {
let reportObj = JSON.parse(props.content);
viewRef.value.Viewer().open(reportObj.definition);
}
});
</script>
<style>
#viewer-host {
position: fixed;
inset: 0;
}
</style>

View File

@ -0,0 +1,8 @@
<template>
<div>
<Viewer />
</div>
</template>
<script lang="ts" setup>
import Viewer from './components/Viewer.vue';
</script>