From a660db06773007b1be690e0674829c00a57aeb7b Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 24 十二月 2025 16:21:23 +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