update:弹框高度bug

This commit is contained in:
2025-11-14 12:45:31 +08:00
parent 73476639eb
commit 6eb7ec8c3a
9 changed files with 41 additions and 8 deletions

View File

@@ -12,3 +12,8 @@ export const systemApproveQueryApproveFlowTempalteApi = (params: any) => {
export const systemQueryApproveFlowStatusApi = (params: any) => {
return get(`${PREFIX}systemApprove/queryApproveFlowStatus`, params);
};
// 流程详情
export const systemQueryApproveInstanceApi = (params: any) => {
return get(`${PREFIX}systemApprove/queryApproveInstance`, params);
};

View File

@@ -4,7 +4,6 @@
:title="diaTitle"
@open="openFun"
v-bind="$attrs"
body-class="table-form-dia"
>
<template v-for="(name) in Object.keys($slots)" :key="name" #[name]="scope">
<slot :name="name" v-bind="scope" />
@@ -37,9 +36,3 @@ const openFun = () => { // 兼容vxe-modal
emit('show');
};
</script>
<style lang="scss">
.table-form-dia {
height: calc(100vh - 150px);
}
</style>

View File

@@ -6,6 +6,7 @@
top="2vh"
width="80%"
height="80%"
body-class="table-form-dia"
show-footer
@close="closeFun"
>
@@ -238,6 +239,12 @@ const closeFun = () => {
};
</script>
<style lang="scss">
.table-form-dia {
height: calc(100vh - 150px);
}
</style>
<style lang="scss" scoped>
.comp-content {
.content {

View File

@@ -24,7 +24,7 @@
{{ $t(`菜单.${subMenu.title}`) }}
</el-menu-item>
</el-sub-menu>
<el-menu-item v-else :index="menu.path" @click="goPageFun(menu)">
<el-menu-item v-else-if="!menu.hideInMenu" :index="menu.path" @click="goPageFun(menu)">
<el-icon><component :is="menu.icon" /></el-icon>
<span>{{ $t(`菜单.${menu.title}`) }}</span>
</el-menu-item>

View File

@@ -32,6 +32,11 @@ onMounted(async() => {
display: flex;
&.preview {
height: 100%;
.layout-body {
.layout-page {
padding: 0;
}
}
}
.layout-body {
flex: 1;

View File

@@ -9,6 +9,14 @@ export default [
// component: () => import('@/views/index/index.vue'),
component: () => import('@/views/error/developing.vue'),
},
{
title: '审核预览',
path: '/approvalPreview',
name: 'IndexApprovalPreview',
icon: Icons['DataBoard'],
hideInMenu: true,
component: () => import('@/views/index/approvalPreview/index.vue'),
},
{
title: '项目管理',
path: '/project',

View File

@@ -1,6 +1,7 @@
const lang = {
'菜单': {
'首页': 'Home',
'审核预览': 'Approval Preview',
'能力中心': 'Simulation Management',
'仿真工况库': 'Working Condition Library',
'仿真指标库': 'Indicator Library',

View File

@@ -1,6 +1,7 @@
const lang = {
'菜单': {
'首页': '首页',
'审核预览': '审核预览',
'能力中心': '能力中心',
'仿真工况库': '仿真工况库',
'仿真指标库': '仿真指标库',

View File

@@ -0,0 +1,13 @@
<template>
<div>知识库审核预览{{ data }}</div>
</template>
<script setup lang="ts">
interface Props {
data: any;
}
withDefaults(defineProps<Props>(), {
data: {},
});
</script>