From 7ff67bff3b4ac5e503ca4291f03eee1ac213fd33 Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期四, 26 三月 2026 16:33:36 +0800
Subject: [PATCH] refactor(financial): 简化收支借款管理页面并移除编辑功能
---
src/pages_qiun/static/table/objEqual.js | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/src/pages_qiun/static/table/objEqual.js b/src/pages_qiun/static/table/objEqual.js
new file mode 100644
index 0000000..222188e
--- /dev/null
+++ b/src/pages_qiun/static/table/objEqual.js
@@ -0,0 +1,36 @@
+export default function isEqual(x, y) {
+ if (x === y) {
+ return true
+ }
+ if (!(x instanceof Object) || !(y instanceof Object)) {
+ return false
+ }
+ if (x.constructor !== y.constructor) {
+ return false
+ }
+ for (var p in x) {
+ if (x.hasOwnProperty(p)) {
+ if (!y.hasOwnProperty(p)) {
+ return false
+ }
+
+ if (x[p] === y[p]) {
+ continue
+ }
+
+ if (typeof (x[p]) !== "object") {
+ return false
+ }
+
+ if (!Object.equals(x[p], y[p])) {
+ return false
+ }
+ }
+ }
+ for (p in y) {
+ if (y.hasOwnProperty(p) && !x.hasOwnProperty(p)) {
+ return false
+ }
+ }
+ return true
+}
--
Gitblit v1.9.3