From 375f337b2a91e59beb0b41dc89353de1e92aa6a1 Mon Sep 17 00:00:00 2001
From: chen.llin <1442464845@qq.comm>
Date: 星期四, 22 一月 2026 18:54:50 +0800
Subject: [PATCH] agv工作档增加 is_deleted

---
 src/main/webapp/static/js/taskLog/taskLog.js |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/taskLog/taskLog.js b/src/main/webapp/static/js/taskLog/taskLog.js
index 231f2bb..680728e 100644
--- a/src/main/webapp/static/js/taskLog/taskLog.js
+++ b/src/main/webapp/static/js/taskLog/taskLog.js
@@ -44,11 +44,20 @@
             pageSize: 'limit'
         },
         parseData: function (res) {
+            // 瀹夊叏妫�鏌ワ紝闃叉res.data涓簎ndefined
+            if (!res || !res.data) {
+                return {
+                    'code': res ? res.code : 500,
+                    'msg': res ? res.msg : '鏁版嵁鏍煎紡閿欒',
+                    'count': 0,
+                    'data': []
+                };
+            }
             return {
                 'code': res.code,
                 'msg': res.msg,
-                'count': res.data.total,
-                'data': res.data.records
+                'count': res.data.total || 0,
+                'data': res.data.records || []
             }
         },
         response: {

--
Gitblit v1.9.1