From d84283821bb08d81d887f20a7118caf25b8b2714 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期二, 27 八月 2024 18:29:10 +0800
Subject: [PATCH] 判断接口返回值是否是字符串,然后解析

---
 pages/modal/classAttr.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/pages/modal/classAttr.vue b/pages/modal/classAttr.vue
index 20f42dc..5cf1d89 100644
--- a/pages/modal/classAttr.vue
+++ b/pages/modal/classAttr.vue
@@ -332,7 +332,7 @@
 				url: '../modal/classAttr?param=' + JSON.stringify(this.param) +
 					"&titlename=" + this.title
 			});
-		
+
 		},
 		onLoad(options) {
 			// console.log(options);
@@ -590,7 +590,6 @@
 				var value = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].dictitem[e
 					.target.value];
 				var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']];
-				console.log(data_attr);
 				if (value.Name != data_attr.Value) {
 					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = value
 						.Name;
@@ -715,6 +714,7 @@
 								req.push(this.formatAttr(ar))
 							}
 						}
+
 						var info = {
 							eventid: eventid,
 							edtype: "0",
@@ -1118,7 +1118,7 @@
 							var ar = attr[j];
 							req.push({
 								attr: ar.attr,
-								val: ar.value ? ar.value : ''
+								value: ar.value ? ar.value : ''
 							});
 						}
 					}
@@ -1334,6 +1334,7 @@
 					dataJson: JSON.stringify(info.dataJson)
 				}
 				console.log(dataInfo);
+			
 				this.$store.dispatch('DataObjRunCustomEventInfo', dataInfo).then(success => {
 					console.log(success);
 					if (success.code == '00000') {
@@ -1478,7 +1479,7 @@
 							length = 1;
 							req.push({
 								'attr': this.$data.refdatastore[i].attr,
-								'val': this.$data.refdatastore[i].value
+								'value': this.$data.refdatastore[i].value
 							});
 						}
 					}

--
Gitblit v1.9.1