From c24509087b1193c18ee4c87487b0fc4bf8ee0918 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期一, 22 七月 2024 18:40:26 +0800
Subject: [PATCH] 工单更新

---
 src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_TEMP.ts |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_TEMP.ts b/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_TEMP.ts
index cca2279..3eb8691 100644
--- a/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_TEMP.ts
+++ b/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_TEMP.ts
@@ -4,7 +4,7 @@
  * @version:
  * @Date: 2024-06-19 20:34:27
  * @LastEditors: Ben Lin
- * @LastEditTime: 2024-07-03 08:52:24
+ * @LastEditTime: 2024-07-20 22:14:50
  */
 
 import { ActionItem, BasicColumn } from '/@/components/Table';
@@ -37,16 +37,16 @@
      * @return {*}
      */
     ActionItem: (params: Recordable<any>, data, ...args): ActionItem[] => {
-      return [
-        ...data,
-        ...[
-          {
-            icon: 'clarity:info-standard-line',
-            tooltip: '妯℃澘鍙橀噺',
-            onClick: goDetail.bind(null, args[5], params),
-          },
-        ],
-      ];
+      data.map((x) => {
+        if (x.name == 'goDetail') {
+          x.onClick = goDetail.bind(null, args[5], params);
+          x.tooltip = '妯℃澘鍙橀噺';
+        }
+      });
+      return data;
+    },
+    GetUseForm: () => {
+      return {};
     },
   };
 
@@ -71,8 +71,12 @@
       detailName: `妯℃澘[${params['record'].LABEL_NAME}]`,
       keyFieldValues: { LABEL_ID: params['record'].ID },
       colSlots: ['BAS_LABEL_PV1add'],
+      SessionName: 'BAS_LABEL_VAR_update',
     };
-    go(`/BAS_LABEL_VAR/${encodeURI(JSON.stringify(id))}`);
+    // 灏嗗璞¤浆鎹负JSON瀛楃涓插苟淇濆瓨鍒皊essionStorage
+    sessionStorage.removeItem(`${id.SessionName}_params`);
+    sessionStorage.setItem(`${id.SessionName}_params`, encodeURI(JSON.stringify(id)));
+    go(`/BAS_LABEL_VAR/${encodeURI(JSON.stringify({ sName: id.SessionName, Name: id.Name }))}`);
   }
 
   return [methods, ActionColumn];

--
Gitblit v1.9.3