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/YieldProcess.vue | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/YieldProcess.vue b/north-glass-erp/northglass-erp/src/views/pp/report/YieldProcess.vue
index 16ae2e7..06e211a 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/report/YieldProcess.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/YieldProcess.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";
@@ -9,6 +9,8 @@
import {changeFilterEvent, filterChanged} from "@/hook"
import footSum from "@/hook/footSum"
import dayjs from 'dayjs'
+import {VxeUI} from "vxe-pc-ui";
+import {addListener} from "@/hook/mouseMove";
//璇█鑾峰彇
const {t} = useI18n()
let router = useRouter()
@@ -43,6 +45,10 @@
clientHeight.value = row.$event.target.clientHeight
}
+onMounted(()=>{
+ //鍚敤琛ㄦ牸鎷栧姩閫変腑
+ addListener(xGrid.value, gridOptions)
+})
//瀹氫箟椤甸潰鎬婚〉鏁�
let pageTotal = ref('')
@@ -327,6 +333,10 @@
})
}
+
+const handleCellDblClick = ({ row, column, cell, $event }) => {
+ VxeUI.clipboard.copy(row[column.property])
+}
</script>
<template>
@@ -352,7 +362,7 @@
class="mytable-scrollbar"
height="100%"
v-bind="gridOptions"
-
+ @cell-dblclick="handleCellDblClick"
>
<!-- @toolbar-button-click="toolbarButtonClickEvent"-->
<!-- 涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
@@ -399,4 +409,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