From c9ecd7684e6ada47de4669885e66dc564128e89b Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 15 八月 2025 18:45:05 +0800
Subject: [PATCH] test
---
pages/modal/3018.vue | 4 ++--
pages/modal/5602.vue | 4 ++--
pages/modal/5600.vue | 14 +++++++-------
pages/modal/form/index.vue | 4 ++--
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/pages/modal/3018.vue b/pages/modal/3018.vue
index 4857e76..020e93f 100644
--- a/pages/modal/3018.vue
+++ b/pages/modal/3018.vue
@@ -888,8 +888,8 @@
iindex);
},
setFormValues(data) {
- if (JSON.stringify(data) == '{}') {
- return;
+ if (!Array.isArray(data)) {
+ return
}
for (var a = 0; a < this.classAttrList.length; a++) {
for (var l = 0; l < this.classAttrList[a].Attr.length; l++) {
diff --git a/pages/modal/5600.vue b/pages/modal/5600.vue
index e25414e..b67894c 100644
--- a/pages/modal/5600.vue
+++ b/pages/modal/5600.vue
@@ -255,7 +255,7 @@
this.title = options.titlename;
this.param = JSON.parse(options.param);
// console.log(this.param);
- const paramValue = options.paramValue ?JSON.parse(options.paramValue) :undefined
+ const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined
this.loadData(paramValue)
},
//椤甸潰鍒濆鍖栬幏鍙栫劍鐐�@@ -302,7 +302,7 @@
//浼犲叆鍙傛暟鍊� if (paramValue) {
this.setFormValues(paramValue)
- }
+ }
//鍔犺浇鍒濆鐣岄潰
if (this.param.Show_Welcom_Page) {
@@ -1094,10 +1094,10 @@
return 0;
}
},
-setFormValues(attrs) {
+ setFormValues(attrs) {
const head_styledef = this.head_styledef
- if (JSON.stringify(attrs) == '{}') {
- return;
+ if (!Array.isArray(attrs)) {
+ return
}
console.log(attrs)
attrs.forEach(async (attr, key) => {
@@ -1162,7 +1162,7 @@
head_styledef: head_styledef
})
}, //鏇存柊鍒嗛〉绛句腑鐨勫垪琛ㄩ」鍐呭
-
+
//鏇存柊鍒嗛〉绛句腑鐨勫垪琛ㄩ」鍐呭
viewActionSetRow(value) {
const $this = this
@@ -2255,7 +2255,7 @@
});
});
},
-
+
//纭畾
ok() {
this.Before_OK_Event = this.param.Sub_Page[0].Before_ok;
diff --git a/pages/modal/5602.vue b/pages/modal/5602.vue
index bd0ddce..355414b 100644
--- a/pages/modal/5602.vue
+++ b/pages/modal/5602.vue
@@ -1056,8 +1056,8 @@
},
setFormValues(attrs) {
const head_styledef = this.head_styledef
- if (JSON.stringify(attrs) == '{}') {
- return;
+ if (!Array.isArray(attrs)) {
+ return
}
console.log(attrs)
attrs.forEach(async (attr, key) => {
diff --git a/pages/modal/form/index.vue b/pages/modal/form/index.vue
index 258f5f0..6b26cdf 100644
--- a/pages/modal/form/index.vue
+++ b/pages/modal/form/index.vue
@@ -904,8 +904,8 @@
setFormValues(attrs) {
console.log(attrs)
const head_styledef = this.head_styledef
- if (JSON.stringify(attrs) == '{}') {
- return;
+ if (!Array.isArray(attrs)) {
+ return
}
attrs.forEach(async (attr, key) => {
if (attr.choice_list) {
--
Gitblit v1.9.1