From e92aeae89a7430b326ab2157ed5004cc5c87d659 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 28 十一月 2025 18:21:56 +0800
Subject: [PATCH] 75

---
 pages/modal/5600.vue |   36 ++++++++++++------------------------
 1 files changed, 12 insertions(+), 24 deletions(-)

diff --git a/pages/modal/5600.vue b/pages/modal/5600.vue
index e25414e..7002a5c 100644
--- a/pages/modal/5600.vue
+++ b/pages/modal/5600.vue
@@ -33,7 +33,7 @@
 				<!-- 椤电 -->
 				<view class="dv-tab">
 					<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem"
-						styleType="button">
+						styleType="text">
 					</uni-segmented-control>
 				</view>
 				<swiper class="view-tabpage" :current="current" @change="changeSwiper">
@@ -206,7 +206,8 @@
 		dataObjCreate,
 		dataObjDel
 	} from "@/api/data.js"
-
+import {showInfo,
+		showError} from "@/js/Page.js"
 	export default {
 		data() {
 			return {
@@ -255,7 +256,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 +303,7 @@
 				//浼犲叆鍙傛暟鍊� 				if (paramValue) {
 					this.setFormValues(paramValue)
-					}
+				}
 
 				//鍔犺浇鍒濆鐣岄潰
 				if (this.param.Show_Welcom_Page) {
@@ -1094,10 +1095,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 +1163,7 @@
 					head_styledef: head_styledef
 				})
 			}, //鏇存柊鍒嗛〉绛句腑鐨勫垪琛ㄩ」鍐呭
-			
+
 			//鏇存柊鍒嗛〉绛句腑鐨勫垪琛ㄩ」鍐呭
 			viewActionSetRow(value) {
 				const $this = this
@@ -2255,7 +2256,7 @@
 					});
 				});
 			},
-			
+
 			//纭畾
 			ok() {
 				this.Before_OK_Event = this.param.Sub_Page[0].Before_ok;
@@ -2767,21 +2768,8 @@
 					else if (type == "2")
 						this.ok2Loading = false
 				}).catch(ex => {
-					let tip = typeof ex.errMsg == "string" ? ex.errMsg : ex
-
-					// var tip = typeof ex == "string" ? ex : ex.errMsg;
-					if (type == "1")
-						this.okLoading = false
-					else if (type == "2")
-						this.ok2Loading = false
-					uni.showModal({
-						title: this.translateSys("error") + "8.1",
-						content: this.translate("execute_after_ok_event_failed") + this.translateSys(
-								"comma") +
-							tip,
-						showCancel: false,
-						confirmText: this.translateSys("cancel")
-					});
+					showError(ex, this.translateSys("error") + "8.1")
+				
 				});
 			},
 

--
Gitblit v1.9.1