mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-31 09:12:10 +08:00
'admin-21.02.28:删除多余变量、添加关系图空白界面等'
This commit is contained in:
parent
d0e170d46e
commit
5fdd637b62
@ -3,8 +3,7 @@ import dotenv from 'dotenv'
|
||||
export interface ViteEnv {
|
||||
VITE_PORT: number,
|
||||
VITE_OPEN: boolean,
|
||||
VITE_PUBLIC_PATH: string,
|
||||
VITE_LOCAL_PATH: string
|
||||
VITE_PUBLIC_PATH: string
|
||||
}
|
||||
|
||||
export function loadEnv(): ViteEnv {
|
||||
|
@ -41,6 +41,7 @@ export default {
|
||||
// 设置批量第三方 js
|
||||
setIntroduction.jsCdn();
|
||||
});
|
||||
// 页面加载时
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
// 监听布局配置弹窗点击打开
|
||||
|
@ -346,6 +346,21 @@ export const dynamicRoutes = [
|
||||
auth: ['admin', 'test'],
|
||||
icon: 'el-icon-odometer'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/fun/relationGraph',
|
||||
name: 'relationGraph',
|
||||
component: () => import('/@/views/fun/relationGraph/index.vue'),
|
||||
meta: {
|
||||
title: 'graph 关系图谱',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: false,
|
||||
isIframe: false,
|
||||
auth: ['admin', 'test'],
|
||||
icon: 'el-icon-connection'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
36
src/views/fun/graph/index.vue
Normal file
36
src/views/fun/graph/index.vue
Normal file
@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<div :style="{height: `calc(100vh - ${initTagViewHeight}`}">
|
||||
<div class="layout-view-bg-white">
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { toRefs, reactive, computed, onMounted } from "vue";
|
||||
import { useStore } from "/@/store/index.ts";
|
||||
export default {
|
||||
name: "Graph",
|
||||
setup() {
|
||||
const store = useStore();
|
||||
const state = reactive({
|
||||
tagViewHeight: "",
|
||||
});
|
||||
// 设置主内容的高度
|
||||
const initTagViewHeight = computed(() => {
|
||||
let { isTagsview } = store.state.themeConfig;
|
||||
if (isTagsview) return `114px`;
|
||||
else return `80px`;
|
||||
});
|
||||
// 初始化数据
|
||||
const initGraph = () => {};
|
||||
// 页面加载时
|
||||
onMounted(() => {
|
||||
initGraph();
|
||||
});
|
||||
return {
|
||||
initTagViewHeight,
|
||||
...toRefs(state),
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user