From 07925905f1a596e20e980de6d42db217abb753b0 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 12 十二月 2025 18:06:11 +0800
Subject: [PATCH] plugin

---
 pages/modal/3037.vue |   41 +++++++++++++++++++++++++++--------------
 1 files changed, 27 insertions(+), 14 deletions(-)

diff --git a/pages/modal/3037.vue b/pages/modal/3037.vue
index a1e17b8..1a69e07 100644
--- a/pages/modal/3037.vue
+++ b/pages/modal/3037.vue
@@ -672,7 +672,9 @@
 	import buttonClickMixin from '@/mixins/button-click.js';
 	import {
 		showInfo,
-		showError
+		showError,
+		showLoading,
+		hideLoading
 	} from "@/js/Page.js"
 
 	export default {
@@ -701,13 +703,16 @@
 				check_list: {},
 			}
 		},
+		onReady() {
+			uni.setNavigationBarTitle({
+				title: this.title 
+			}); //璁剧疆椤堕儴鏍囬 
+		},
 		onLoad(options) {
 			// console.log(options);
-			uni.setNavigationBarTitle({
-				title: options.titlename
-			}); //璁剧疆椤堕儴鏍囬 
+		
 			var param = JSON.parse(options.param);
-			this.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //璁剧疆鎸夐挳鏂囧瓧
+			this.title =  options.titlename; //璁剧疆鎸夐挳鏂囧瓧param.Add_BtnName ? param.Add_BtnName :
 			console.log(param);
 			if (!param.Master_Cls.View_Style) {
 				showInfo("璇ュ姛鑳界偣鏈厤缃晫闈㈢獥鍙o紝璇烽噸鏂伴厤缃紒")
@@ -752,15 +757,23 @@
 
 			async loadData() {
 				//涓绘暟鎹被鑾峰彇
-				const param = this.param
-				this.classAttrList = await this.classAttrGetList(param.Master_Cls?.ID)
-				this.classGridStyle = await this.classGridStyleInfo(param.Master_Cls.ID, param.Master_Cls
-					?.View_Style?.Name)
-				this.viewParam('Mast');
-				this.classAttrList = await this.classAttrGetList(param.Sub_Cls?.ID)
-				this.classGridStyle = await this.classGridStyleInfo(param.Sub_Cls?.ID, param.Sub_Cls?.View_Style
-					?.Name)
-				this.viewParam('Sub');
+				try {
+					showLoading("loading...")
+					const param = this.param
+					this.classAttrList = await this.classAttrGetList(param.Master_Cls?.ID)
+					this.classGridStyle = await this.classGridStyleInfo(param.Master_Cls.ID, param.Master_Cls
+						?.View_Style?.Name)
+					this.viewParam('Mast');
+					this.classAttrList = await this.classAttrGetList(param.Sub_Cls?.ID)
+					this.classGridStyle = await this.classGridStyleInfo(param.Sub_Cls?.ID, param.Sub_Cls?.View_Style
+						?.Name)
+					this.viewParam('Sub');
+				} catch (ex) {
+					// console.log(ex);
+					hideLoading()
+					showError(ex, this.translateSys('error') + " 1")
+
+				}
 			},
 			async DictItemGetList(attr) { //Mobox3寰楀埌瀛楀吀椤瑰垪琛� 				try {

--
Gitblit v1.9.1