From d0e9bb6edfee85a777ddfb7810fc0c1a6a442a76 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 01 十二月 2025 11:41:29 +0800
Subject: [PATCH] 报表补充筛选和框选功能
---
north-glass-erp/northglass-erp/src/views/pp/report/SplittingDetailsOutside.vue | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/SplittingDetailsOutside.vue b/north-glass-erp/northglass-erp/src/views/pp/report/SplittingDetailsOutside.vue
index 56f5e05..0906baf 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/report/SplittingDetailsOutside.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/SplittingDetailsOutside.vue
@@ -1,6 +1,6 @@
<script setup>
-import {reactive, ref} from "vue";
+import {onMounted, reactive, ref} from "vue";
import {useRouter} from 'vue-router'
import request from "@/utils/request";
import deepClone from "@/utils/deepClone";
@@ -8,7 +8,8 @@
import {useI18n} from 'vue-i18n'
import {changeFilterEvent, filterChanged} from "@/hook"
import footSum from "@/hook/footSum"
-
+import {addListener} from "@/hook/mouseMove";
+import {VxeUI} from "vxe-pc-ui";
//璇█鑾峰彇
const {t} = useI18n()
let router = useRouter()
@@ -139,7 +140,10 @@
selectPageList()
}
-
+onMounted(()=>{
+ //鍚敤琛ㄦ牸鎷栧姩閫変腑
+ addListener(xGrid.value, gridOptions)
+})
/*浣跨敤绛涢�夛紝鍚庣鑾峰彇鏁版嵁*/
// const changeFilterEvent = (event, option, $panel,) => {
// // 鎵嬪姩瑙﹀彂绛涢��
@@ -273,6 +277,9 @@
})
+const handleCellDblClick = ({ row, column, cell, $event }) => {
+ VxeUI.clipboard.copy(row[column.property])
+}
</script>
<template>
@@ -291,7 +298,7 @@
class="mytable-scrollbar"
height="100%"
v-bind="gridOptions"
-
+ @cell-dblclick="handleCellDblClick"
>
<!-- @toolbar-button-click="toolbarButtonClickEvent"-->
<!-- 涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
@@ -332,4 +339,11 @@
width: 100%;
height: calc(100% - 35px);
}
+.vxe-grid {
+ /* 绂佺敤娴忚鍣ㄩ粯璁ら�変腑 */
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
</style>
\ No newline at end of file
--
Gitblit v1.8.0