Przeglądaj źródła

[Style 0000] 修复了菜单栏、部门管理页面部分区域无法滚动的问题

houzekong 3 miesięcy temu
rodzic
commit
c1f655e703

+ 1 - 0
src/layouts/default/sider/LayoutSider.vue

@@ -124,6 +124,7 @@
     border-bottom-left-radius: 10px;
     z-index: @layout-sider-fixed-z-index;
     flex: 1 !important;
+    height: calc(100% - @header-height);
 
     &.ant-layout-sider-dark {
       background-color: @sider-dark-bg-color;

+ 3 - 3
src/views/dashboard/basicInfo/dataQuality/dataQuality.data.ts

@@ -1,7 +1,7 @@
 import { BasicColumn, FormSchema } from '/@/components/Table';
 import { h } from 'vue';
 import { Ref } from 'vue';
-import dayjs from 'dayjs';
+// import dayjs from 'dayjs';
 
 // 1. 颜色映射(固定规则,可根据业务调整)
 export const colorHexMap: Record<string, string> = {
@@ -102,7 +102,7 @@ export function getColumns(dynamicStatusMap: Ref<ProductionStatusMap>) {
 export function getSearchFormSchema(dynamicStatusOptions: Ref<{ label: string; value: string | number }[]>) {
   const searchFormSchema: FormSchema[] = [
     {
-      field: 'mineCode',
+      field: 'mineCodeList',
       label: '煤矿名称',
       component: 'MineCascader',
       colProps: { span: 6 },
@@ -237,4 +237,4 @@ export const exportFormSchema: FormSchema[] = [
     required: true,
     rules: [{ required: true, message: '请选择结束时间', trigger: 'blur' }],
   },
-];
+];

+ 4 - 3
src/views/system/depart/components/DepartLeftTree.vue

@@ -52,6 +52,7 @@
           :load-data="loadChildrenTreeData"
           :checkedKeys="checkedKeys"
           v-model:expandedKeys="expandedKeys"
+          class="h-600px overflow-auto"
           @check="onCheck"
           @select="onSelect"
         >
@@ -70,7 +71,7 @@
               </Popconfirm>
 
               <template #overlay>
-                <a-menu @click="">
+                <a-menu>
                   <a-menu-item key="1" @click="onAddChildDepart(dataRef)">添加子级</a-menu-item>
                   <a-menu-item key="2" @click="visibleTreeKey = treeKey">
                     <span style="color: red">删除</span>
@@ -88,7 +89,7 @@
 </template>
 
 <script lang="ts" setup>
-  import { inject, nextTick, ref, unref } from 'vue';
+  import { nextTick, ref, unref } from 'vue';
   import { useModal } from '/@/components/Modal';
   import { useMessage } from '/@/hooks/web/useMessage';
   import { useMethods } from '/@/hooks/system/useMethods';
@@ -97,7 +98,7 @@
   import DepartFormModal from '/@/views/system/depart/components/DepartFormModal.vue';
   import { Popconfirm } from 'ant-design-vue';
 
-  const prefixCls = inject('prefixCls');
+  // const prefixCls = inject('prefixCls');
   const emit = defineEmits(['select', 'rootTreeData']);
   const { createMessage } = useMessage();
   const { handleImportXls, handleExportXls } = useMethods();