From 25cc86fd8a2fb3b2bb6b385cba0adaf89ff3dcdc Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 18 十二月 2025 16:39:32 +0800
Subject: [PATCH] 流程卡进度打印部分代码
---
north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js b/north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js
new file mode 100644
index 0000000..c1427cb
--- /dev/null
+++ b/north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js
@@ -0,0 +1,32 @@
+import VxeUI from "vxe-pc-ui";
+function copyTableCellValue(row, column) {
+ if(column.field.indexOf('.')>-1){
+ let array = column.field.split('.')
+ if (row[array[0]][array[1]]!==null){
+ VxeUI.clipboard.copy(row[array[0]][array[1]])
+ }
+
+ }else {
+ if (row[column.field]!==null){
+ VxeUI.clipboard.copy(row[column.field])
+ }
+
+ }
+}
+function copyTableCellValueShow(row, column) {
+ if(column.field.indexOf('.')>-1){
+ let array = column.field.split('.')
+ if (row[array[0]][array[1]+'Show']!==null){
+ VxeUI.clipboard.copy(row[array[0]+'Show'][array[1]])
+ }
+
+ }else {
+ if (row[column.field+'Show']!==null){
+ VxeUI.clipboard.copy(row[column.field+'Show'])
+ }
+
+ }
+}
+
+
+export {copyTableCellValue,copyTableCellValueShow}
\ No newline at end of file
--
Gitblit v1.8.0