From 7662665a4f88da0f8afa804bd4a34dfbefc1fb56 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 29 八月 2025 15:17:59 +0800
Subject: [PATCH] get_pre_page_subtable_next_row

---
 pages/modal/ms_classAttr.vue |  293 ++++++++++++----------------------------------------------
 1 files changed, 61 insertions(+), 232 deletions(-)

diff --git a/pages/modal/ms_classAttr.vue b/pages/modal/ms_classAttr.vue
index 838f9c0..dafdc53 100644
--- a/pages/modal/ms_classAttr.vue
+++ b/pages/modal/ms_classAttr.vue
@@ -662,7 +662,9 @@
 		dataObjDelele,
 		dataObjRunCustomEvent
 	} from "@/api/index.js"
-
+	import {showInfo,
+		showError,
+		showLoading} from "@/js/Page.js"
 	export default {
 		components: {
 			pickerAddress
@@ -708,21 +710,13 @@
 			this.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //璁剧疆鎸夐挳鏂囧瓧
 			console.log(param);
 			if (!param.Master_Cls.View_Style) {
-				uni.showModal({
-					title: "鎻愮ず",
-					content: "璇ュ姛鑳界偣鏈厤缃晫闈㈢獥鍙o紝璇烽噸鏂伴厤缃紒",
-					showCancel: false,
-					confirmText: "鍙栨秷"
-				});
+				showInfo( "璇ュ姛鑳界偣鏈厤缃晫闈㈢獥鍙o紝璇烽噸鏂伴厤缃紒")
+				
 				return;
 			}
 			if (!param.Master_Cls.View_Style.Name) {
-				uni.showModal({
-					title: "鎻愮ず",
-					content: "璇ュ姛鑳界偣鏈厤缃獥鍙f牱寮忥紝璇烽噸鏂伴厤缃紒",
-					showCancel: false,
-					confirmText: "鍙栨秷"
-				});
+				showInfo( "璇ュ姛鑳界偣鏈厤缃獥鍙f牱寮忥紝璇烽噸鏂伴厤缃紒")
+				
 				return;
 			}
 			this.param = param;
@@ -772,25 +766,16 @@
 					this.subClass_attr_init();
 
 				} catch (ex) {
-					console.log(ex)
-					uni.showModal({
-						title: "閿欒1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒1")
+				
 				}
 			},
 			scan_classAttr_extButton(e) { //閫夋嫨鎸夐挳鍓� 				var $this = this;
 				var Before_Select_Event = $this.param.Scan_Code.Before_Select_Event;
 				if (!Before_Select_Event) {
-					uni.showModal({
-						title: "鎻愮ず",
-						content: "閫夋嫨鍓嶄簨浠朵负绌猴紒",
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showInfo("閫夋嫨鍓嶄簨浠朵负绌猴紒")
+					
 					return;
 				}
 				var mast_attr = [];
@@ -800,12 +785,8 @@
 					for (var j = 0; j < attr.length; j++) {
 						var ar = attr[j];
 						if (ar.Value == '璇烽�鎷�) {
-							uni.showModal({
-								title: "鎻愮ず",
-								content: ar.DispName + "鏈�鎷╂暟鎹紒",
-								showCancel: false,
-								confirmText: "鍙栨秷"
-							});
+							showInfo(ar.DispName + "鏈�鎷╂暟鎹紒")
+							
 							return;
 						}
 						if (ar.Type == '寮曠敤瀵硅薄(澶氫釜)')
@@ -860,13 +841,7 @@
 							if (ar.notempty == true && !ar.Value) {
 								// if(ar.NotEmpty=='1'){
 								uni.hideLoading();
-								// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
-								uni.showModal({
-									title: "鎻愮ず",
-									content: ar.DispName + '涓嶈兘涓虹┖锛�,
-									showCancel: false,
-									confirmText: "鍙栨秷"
-								});
+								showInfo( ar.DispName + '涓嶈兘涓虹┖锛�);
 								return;
 							}
 						}
@@ -952,12 +927,8 @@
 				var $this = this;
 				var After_Select_Event = $this.param.Scan_Code.After_Select_Event;
 				if (!After_Select_Event) {
-					uni.showModal({
-						title: "鎻愮ず",
-						content: "閫夋嫨鍚庝簨浠朵负绌猴紒",
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showInfo("閫夋嫨鍚庝簨浠朵负绌猴紒")
+				
 					return;
 				}
 				var items = $this.check_list.items;
@@ -975,12 +946,8 @@
 					}
 				}
 				if (data.length == 0) {
-					uni.showModal({
-						title: "鎻愮ず",
-						content: "鏈�鎷╂暟鎹紒",
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showInfo("鏈�鎷╂暟鎹紒")
+					
 					return;
 				}
 				var mast_attr = [];
@@ -990,12 +957,8 @@
 					for (var j = 0; j < attr.length; j++) {
 						var ar = attr[j];
 						if (ar.Value == '璇烽�鎷�) {
-							uni.showModal({
-								title: "鎻愮ず",
-								content: ar.DispName + "鏈�鎷╂暟鎹紒",
-								showCancel: false,
-								confirmText: "鍙栨秷"
-							});
+							showInfo( ar.DispName + "鏈�鎷╂暟鎹紒")
+						
 							return;
 						}
 						mast_attr.push(this.formatAttr(ar))
@@ -1049,22 +1012,13 @@
 					dataObjDelele(dataInfo).then(success => {
 						uni.hideLoading();
 						$this.subPanelList.splice(index, 1);
-						uni.showModal({
-							title: "鎻愮ず",
-							content: "鍒犻櫎鎴愬姛锛�,
-							showCancel: false,
-							confirmText: "鍙栨秷"
-						});
+						showInfo("鍒犻櫎鎴愬姛锛�)
+						
 
 					}).catch(ex => {
 						console.log(ex);
 						uni.hideLoading();
-						uni.showModal({
-							title: "鎻愮ず9.1",
-							content: ex.errMsg,
-							showCancel: false,
-							confirmText: "鍙栨秷"
-						});
+						showError(ex,   "閿欒9.1")
 					});
 				}
 			},
@@ -1080,16 +1034,7 @@
 					return result
 				} 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: "閿欒1.1",
-						content: tip,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒1.1")
 					return []
 				};
 			},
@@ -1109,16 +1054,7 @@
 
 				} 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: "閿欒1.2",
-						content: tip,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒1.2")
 					return {}
 				};
 			},
@@ -1788,21 +1724,13 @@
 				var before_click_button = $this.classAttrList[index].Attr[iindex].before_click_button;
 				var button_callback = $this.classAttrList[index].Attr[iindex].button_callback;
 				if (!before_click_button) {
-					uni.showModal({
-						title: "鎻愮ず",
-						content: "before_click_button-event_id涓虹┖锛�,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showInfo( "before_click_button-event_id涓虹┖锛�)
+					
 					return;
 				}
 				if (!button_callback) {
-					uni.showModal({
-						title: "鎻愮ず",
-						content: "button_callback-event_id涓虹┖锛�,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showInfo("button_callback-event_id涓虹┖锛�)
+					
 					return;
 				}
 				var data_attr = this.classAttrList[index].Attr[iindex];
@@ -1851,12 +1779,8 @@
 			},
 			classAttr_AddRef(e) {
 				console.log(e.target);
-				uni.showModal({
-					title: "鎻愮ず",
-					content: "姝ゅ姛鑳借繕鏈疄鐜帮紒",
-					showCancel: false,
-					confirmText: "鍙栨秷"
-				});
+				showInfo("姝ゅ姛鑳借繕鏈疄鐜帮紒")
+				
 				// var value=this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].RelCls[e.detail.value];
 				// this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=value;
 			},
@@ -1961,13 +1885,7 @@
 						if (ar.notempty == true && !ar.Value) {
 							// if(ar.NotEmpty=='1'){
 							uni.hideLoading();
-							// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
-							uni.showModal({
-								title: "鎻愮ず",
-								content: ar.DispName + '涓嶈兘涓虹┖锛�,
-								showCancel: false,
-								confirmText: "鍙栨秷"
-							});
+							showInfo( ar.DispName + '涓嶈兘涓虹┖锛�);
 							return;
 						}
 					}
@@ -2003,11 +1921,8 @@
 					var action = JSON.parse(data.Action);
 					if (action.ret == '0') {
 						if (action.result_type == '0') {
-							uni.showToast({
-								title: action.result,
-								icon: "success",
-								duration: 3000
-							});
+							showInfo( action.result)
+						
 						}
 						// "{"ret":0, "result_type":0, "result":"鍒涘缓鎴愬姛123123123","info":""}"
 					}
@@ -2021,12 +1936,7 @@
 				}).catch(ex => {
 					console.log(ex);
 					uni.hideLoading();
-					uni.showModal({
-						title: "鎻愮ず",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+				showError(ex,   )
 				});
 			},
 			class_attr_init() {
@@ -2195,12 +2105,8 @@
 					// console.log(this.classAttrList);
 
 				} else {
-					uni.showModal({
-						title: "鎻愮ず",
-						content: "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�",
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showInfo( "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�")
+					
 				}
 			},
 			subClass_attr_init() {
@@ -2354,12 +2260,8 @@
 					console.log(this.subClassAttrList);
 
 				} else {
-					uni.showModal({
-						title: "鎻愮ず",
-						content: "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�",
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showInfo( "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�")
+				
 				}
 			},
 			ini_DataObjRunCustomEvent(info) {
@@ -2455,12 +2357,8 @@
 									}
 								}
 							} else if (action_type == 'open_select_userdlg') {
-								uni.showModal({
-									title: "閿欒2.2",
-									content: "open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�,
-									showCancel: false,
-									confirmText: "鍙栨秷"
-								});
+								showInfo("open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�)
+								
 							}
 						}
 					}
@@ -2468,12 +2366,7 @@
 
 				}).catch(ex => {
 					// console.log(ex);
-					uni.showModal({
-						title: "閿欒2.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒2.1")
 				});
 			},
 			DataObjRunCustomEvent(info, data_attr) {
@@ -2614,12 +2507,7 @@
 
 				}).catch(ex => {
 					// console.log(ex);
-					uni.showModal({
-						title: "閿欒3.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒3.1")
 				});
 			},
 			OKDataObjRunCustomEvent() {
@@ -2711,12 +2599,7 @@
 
 				}).catch(ex => {
 					// console.log(ex);
-					uni.showModal({
-						title: "閿欒4.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒4.1")
 				});
 			},
 			DataObjRunCustomEvent_Return(eventid, data_attr, button_callback, index, iindex) {
@@ -2915,22 +2798,13 @@
 							}
 						}
 					} else {
-						uni.showModal({
-							title: "鎻愮ず5.2",
-							content: '璋冪敤 before_click_button 鑴氭湰杩斿洖绌猴紝event_id' + eventid,
-							showCancel: false,
-							confirmText: "鍙栨秷"
-						});
+						showError('璋冪敤 before_click_button 鑴氭湰杩斿洖绌猴紝event_id' + eventid,   "閿欒5.2")
+						
 					}
 
 				}).catch(ex => {
 					// console.log(ex);
-					uni.showModal({
-						title: "鎻愮ず5.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒5.1")
 				});
 			},
 			scan_ini_DataObjRunCustomEvent(info) {
@@ -3026,13 +2900,10 @@
 										}
 									}
 								}
-							} else if (action_type == 'open_select_userdlg') {
-								uni.showModal({
-									title: "閿欒6.2",
-									content: "open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�,
-									showCancel: false,
-									confirmText: "鍙栨秷"
-								});
+							} 
+							else if (action_type == 'open_select_userdlg') {
+								showInfo("open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�)
+								
 							}
 						}
 					}
@@ -3040,12 +2911,7 @@
 
 				}).catch(ex => {
 					// console.log(ex);
-					uni.showModal({
-						title: "閿欒6.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒6.1")
 				});
 			},
 			scan_DataObjRunCustomEvent(info, data_attr) {
@@ -3279,12 +3145,7 @@
 
 				}).catch(ex => {
 					// console.log(ex);
-					uni.showModal({
-						title: "閿欒7.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒7.1")
 				});
 			},
 			scan_OKDataObjRunCustomEvent(eventID) {
@@ -3324,13 +3185,7 @@
 						if (ar.notempty == true && !ar.Value) {
 							// if(ar.NotEmpty=='1'){
 							uni.hideLoading();
-							// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
-							uni.showModal({
-								title: "鎻愮ず",
-								content: ar.DispName + '涓嶈兘涓虹┖锛�,
-								showCancel: false,
-								confirmText: "鍙栨秷"
-							});
+							showInfo(ar.DispName + '涓嶈兘涓虹┖锛�)
 							return;
 						}
 					}
@@ -3367,13 +3222,7 @@
 							if (ar.notempty == true && !ar.Value) {
 								// if(ar.NotEmpty=='1'){
 								uni.hideLoading();
-								// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
-								uni.showModal({
-									title: "鎻愮ず",
-									content: ar.DispName + '涓嶈兘涓虹┖锛�,
-									showCancel: false,
-									confirmText: "鍙栨秷"
-								});
+								showInfo(ar.DispName + '涓嶈兘涓虹┖锛�)
 								return;
 							}
 						}
@@ -3430,12 +3279,8 @@
 				}).catch(ex => {
 					// console.log(ex);
 					uni.hideLoading();
-					uni.showModal({
-						title: "閿欒8.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒8.1")
+					
 				});
 			},
 			scan_TriggerDataObjRunCustomEvent(eventID) {
@@ -3474,13 +3319,7 @@
 						if (ar.notempty == true && !ar.Value) {
 							// if(ar.NotEmpty=='1'){
 							uni.hideLoading();
-							// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
-							uni.showModal({
-								title: "鎻愮ず",
-								content: ar.DispName + '涓嶈兘涓虹┖锛�,
-								showCancel: false,
-								confirmText: "鍙栨秷"
-							});
+							showInfo(ar.DispName + '涓嶈兘涓虹┖锛�)
 							return;
 						}
 					}
@@ -3517,13 +3356,8 @@
 							if (ar.notempty == true && !ar.Value) {
 								// if(ar.NotEmpty=='1'){
 								uni.hideLoading();
-								// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
-								uni.showModal({
-									title: "鎻愮ず",
-									content: ar.DispName + '涓嶈兘涓虹┖锛�,
-									showCancel: false,
-									confirmText: "鍙栨秷"
-								});
+								showInfo(ar.DispName + '涓嶈兘涓虹┖锛�)
+								
 								return;
 							}
 						}
@@ -3580,12 +3414,7 @@
 				}).catch(ex => {
 					// console.log(ex);
 					uni.hideLoading();
-					uni.showModal({
-						title: "閿欒8.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: "鍙栨秷"
-					});
+					showError(ex,   "閿欒8.1")
 				});
 			},
 			formatAttr(attr) {

--
Gitblit v1.9.1