diff --git a/package.json b/package.json index b30813c..96538f3 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "ant-design-vue": "^4.0.0", "china-area-data": "^5.0.1", "dayjs": "^1.11.21", + "echarts": "^5.6.0", "express": "^5.2.1", "html2canvas": "^1.4.1", "qs": "^6.15.0", diff --git a/src/assets/styles/index.less b/src/assets/styles/index.less index af15fdb..2f0d68e 100644 --- a/src/assets/styles/index.less +++ b/src/assets/styles/index.less @@ -107,6 +107,7 @@ a { justify-content: flex-end; padding: 14px; } + // ===== antd 组件覆盖 ===== // Tag 默认 margin-right: 8px,会挤开表格列或卡片内间距,统一去掉 diff --git a/src/assets/styles/pageLayout.module.less b/src/assets/styles/pageLayout.module.less new file mode 100644 index 0000000..b5e2aa5 --- /dev/null +++ b/src/assets/styles/pageLayout.module.less @@ -0,0 +1,47 @@ +// 页面布局根容器:筛选区 + 表格区作为直接子元素 +.containerMain { + display: flex; + flex-direction: column; + height: 100%; + + // 页面筛选区域:横向 flex,可换行 + .filter { + display: flex; + flex-wrap: wrap; + align-items: center; + column-gap: 16px; + row-gap: 12px; + flex-shrink: 0; + padding: 16px; + background-color: #fff; + border-radius: 10px; + } + + // 筛选区域操作按钮组 + .filterActions { + display: flex; + align-items: center; + gap: 10px; + margin-left: 0; + } + + // 表格显示区域:纵向 flex,占据剩余高度 + .table { + display: flex; + flex-direction: column; + flex: 1; + background-color: #fff; + min-height: 0; + min-width: 0; + margin-top: 16px; + overflow: hidden; + border-radius: 10px; + + .pagination { + flex-shrink: 0; + display: flex; + justify-content: flex-end; + padding: 14px; + } + } +} diff --git a/src/components/ChangePasswordModal/index.tsx b/src/components/ChangePasswordModal/index.tsx index 4c61711..115a973 100644 --- a/src/components/ChangePasswordModal/index.tsx +++ b/src/components/ChangePasswordModal/index.tsx @@ -61,6 +61,7 @@ export default defineComponent({ destroyOnClose footer={null} centered + wrapClassName={styles.changePasswordModalMain} class={styles.modal} >