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 | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js b/north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js
index 78529c4..c1427cb 100644
--- a/north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js
+++ b/north-glass-erp/northglass-erp/src/hook/copyTableCellValue.js
@@ -1,5 +1,18 @@
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('.')
@@ -15,18 +28,5 @@
}
}
-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])
- }
-
- }
-}
export {copyTableCellValue,copyTableCellValueShow}
\ No newline at end of file
--
Gitblit v1.8.0