提交 ccadc4b8 authored 作者: jinrongbin's avatar jinrongbin

系统管理--行政编码管理增加滚动功能

上级 6dae2147
<template> <template>
<a-card :bordered="false" style="height: 100%"> <a-card :bordered="false" style="height: 100%" class="depart-left-tree">
<template #extra> <template #extra>
<!-- <a-space style="margin-bottom: 10px;" size="Small"> --> <!-- <a-space style="margin-bottom: 10px;" size="Small"> -->
<a-button v-auth="'system:xzCode:add'" type="primary" preIcon="ant-design:plus-outlined" style="margin-right: 10px;" <a-button v-auth="'system:xzCode:add'" type="primary" preIcon="ant-design:plus-outlined" style="margin-right: 10px;"
...@@ -25,7 +25,15 @@ ...@@ -25,7 +25,15 @@
<!-- 新增表单 --> <!-- 新增表单 -->
<Modal @register="register" @success="handleSuccess" /> <Modal @register="register" @success="handleSuccess" />
</template> </template>
<style lang="less">
.depart-left-tree {
height: 100%;
.ant-card-body {
max-height: 740px;
overflow-y: scroll;
}
}
</style>
<script lang="ts" setup> <script lang="ts" setup>
import { inject, nextTick, ref, unref, defineExpose } from 'vue'; import { inject, nextTick, ref, unref, defineExpose } from 'vue';
import { treeXzbm, treePidXzbm, addXzbm, editXzbm, delXzbm } from '../address.api'; import { treeXzbm, treePidXzbm, addXzbm, editXzbm, delXzbm } from '../address.api';
......
<template> <template>
<a-row :class="['p-4', `${prefixCls}--box`]" type="flex" :gutter="10" style="max-height: 800px;overflow-y: hidden;"> <a-row :class="['p-4', `${prefixCls}--box`]" type="flex" :gutter="10" style="max-height: 800px;overflow-y: hidden;">
<a-col :xl="8" :lg="24" :md="24" style="margin-bottom: 10px"> <a-col :xl="8" :lg="24" :md="24" style="margin-bottom: 10px;max-height: 800px;overflow-y: hidden;">
<DepartLeftTree ref="leftTree" @select="onTreeSelect" @successTree="handleSuccessTre" /> <DepartLeftTree ref="leftTree" @select="onTreeSelect" @successTree="handleSuccessTre" />
</a-col> </a-col>
<a-col :xl="16" :lg="24" :md="24" style="margin-bottom: 10px"> <a-col :xl="16" :lg="24" :md="24" style="margin-bottom: 10px;max-height: 800px;overflow-y: hidden;">
<div style="height: 100%;" class="address-book"> <div style="height: 100%;" class="address-book">
<!--引用表格--> <!--引用表格-->
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论