From 00c011fc0571caad2bec578fe4ce2f101ab0500e Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 01 八月 2025 18:04:08 +0800
Subject: [PATCH] test

---
 pages/modal/5601.vue |   48 +++++++++++++++++++++++++++++++++++-------------
 1 files changed, 35 insertions(+), 13 deletions(-)

diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index 8442e27..7e61e90 100644
--- a/pages/modal/5601.vue
+++ b/pages/modal/5601.vue
@@ -522,9 +522,13 @@
 
 				} catch (ex) {
 					// console.log(ex);
+					let exStr = JSON.stringify(ex)
+					if (exStr == "{}")
+						exStr = ex
+					let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
 					uni.showModal({
 						title: this.translateSys("error") + "1",
-						content: ex.errMsg,
+						content: tip,
 						showCancel: false,
 						confirmText: this.translateSys('close')
 					});
@@ -590,10 +594,14 @@
 					console.log("Detail_UIstyleGetInfo", detailstyledef);
 					return detailstyledef
 				} catch (ex) {
-					// console.log(ex);
+					console.log(ex);
+					let exStr = JSON.stringify(ex)
+					if (exStr == "{}")
+						exStr = ex
+					let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
 					uni.showModal({
 						title: this.translateSys("error") + "2",
-						content: ex.errMsg,
+						content: tip,
 						showCancel: false,
 						confirmText: this.translateSys('close')
 					});
@@ -629,10 +637,14 @@
 					}
 					formItem.dict = list;
 				} catch (ex) {
-					// console.log(ex);
+					console.log(ex);
+					let exStr = JSON.stringify(ex)
+					if (exStr == "{}")
+						exStr = ex
+					let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
 					uni.showModal({
 						title: this.translateSys("error") + "3",
-						content: ex.errMsg,
+						content: tip,
 						showCancel: false,
 						confirmText: this.translateSys('close')
 					});
@@ -853,7 +865,7 @@
 					};
 					const result = await runCustomEvent(dataInfo)
 					console.log(result)
-					if (result.ret != 0) {
+					if (result.ret != 0&& result.ret != 1) {
 						var tip = result.err_info ? typeof result
 							.err_info == 'string' ? result
 							.err_info : result.err_info.join('<br/>') :
@@ -938,7 +950,10 @@
 
 				} catch (ex) {
 					console.log(ex)
-					var tip = typeof ex == "string" ? ex : ex.message;
+					let exStr = JSON.stringify(ex)
+					if (exStr == "{}")
+						exStr = ex
+					let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
 					uni.showModal({
 						title: this.translateSys("error") + "6.1",
 						content: this.translate(
@@ -1075,7 +1090,7 @@
 						};
 						const result = await runCustomEvent(dataInfo)
 						console.log(result);
-						if (result.ret != 0) {
+						if (result.ret != 0&& result.ret != 1) {
 							var tip = result.err_info ? typeof result
 								.err_info == 'string' ? result
 								.err_info : result.err_info.join('<br/>') :
@@ -1264,7 +1279,11 @@
 
 					}
 				} catch (ex) {
-					var tip = typeof ex == "string" ? ex : ex.message;
+					console.log(ex);
+					let exStr = JSON.stringify(ex)
+					if (exStr == "{}")
+						exStr = ex
+					let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
 					uni.showModal({
 						title: this.translateSys("error") + "4.2",
 						content: this.translate(
@@ -2132,7 +2151,7 @@
 				console.log(dataInfo);
 				// return;
 				runCustomEvent(dataInfo).then(data => {
-					if (data.ret != 0) {
+					if (data.ret != 0&& data.ret != 1) {
 						var tip = data.err_info ? typeof data.err_info == 'string' ? data
 							.err_info :
 							data
@@ -2305,7 +2324,7 @@
 				console.log(dataInfo);
 				// return;
 				runCustomEvent(dataInfo).then(data => {
-					if (data.ret != 0) {
+					if (data.ret != 0&& data.ret != 1) {
 						var tip = data.err_info ? typeof data.err_info == 'string' ? data
 							.err_info :
 							data
@@ -2963,7 +2982,7 @@
 				console.log(dataInfo);
 				runCustomEvent(dataInfo).then(result => {
 					console.log(result);
-					if (result.ret != 0) {
+					if (result.ret != 0&& result.ret != 1) {
 						var tip = result.err_info ? typeof result
 							.err_info == 'string' ? result.err_info :
 							result.err_info.join('<br/>') : '';
@@ -3205,7 +3224,10 @@
 
 				}).catch(ex => {
 					console.log(ex);
-					let tip = typeof ex.errMsg == "string" ? ex.errMsg : ex
+				let exStr = JSON.stringify(ex)
+				if (exStr == "{}")
+					exStr = ex
+				let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
 					uni.showModal({
 						title: this.translateSys("error") + "8.1",
 						content: this.translate("execute_after_ok_event_failed") +

--
Gitblit v1.9.1