From ab9d6c46fe78f005ff1efb5cbef1be763a69e4a2 Mon Sep 17 00:00:00 2001
From: jt <jt@activesoft.com.cn>
Date: 星期六, 20 七月 2024 16:36:57 +0800
Subject: [PATCH] test

---
 pages/modal/3037.vue |  335 +++++++++++++++++++++++++++++--------------------------
 1 files changed, 174 insertions(+), 161 deletions(-)

diff --git a/pages/modal/3037.vue b/pages/modal/3037.vue
index 89d712d..c4fdf87 100644
--- a/pages/modal/3037.vue
+++ b/pages/modal/3037.vue
@@ -288,7 +288,7 @@
 			<div class="panel_title">{{param.Sub_Cls.Title}}</div>
 			<!-- 浠庢暟鎹壂鐮佸尯 -->
 			<view class="v-area class_attr_body" v-if="param.Sub_Cls.Can_Add_Delete == true">
-				<h4 style="margin: 15rpx 0 0 30rpx;font-weight: bold;">鏂板{{param.Sub_Cls.Name }}</h4>
+				<h4 style="margin: 15rpx 0 0 30rpx;font-weight: bold;">{{`${translateSys('add2')}'${param.Sub_Cls.Name}'` }}</h4>
 				<view class="form-group">
 					<!-- 宸﹀彸甯冨眬 -->
 					<p class="tx_title2">{{param.Scan_Code.Name}}:</p>
@@ -608,7 +608,8 @@
 			</view>
 		</view>
 
-		<button type="default" @tap="cancel" class="btn_cancel" v-if="param.Sub_Cls.Can_Add_Delete == true">鍙栨秷</button>
+		<button type="default" @tap="cancel" class="btn_cancel"
+			v-if="param.Sub_Cls.Can_Add_Delete == true">{{translateSys('cancel')}}</button>
 		<button type="default" @tap="sava" class="btn_add"
 			v-if="param.Sub_Cls.Can_Add_Delete == true">{{title}}</button>
 		<button type="default" @tap="sava" class="btn_sava"
@@ -632,8 +633,9 @@
 						</view>
 					</view>
 					<view class="popup-footer">
-						<button type="default" @tap="popup_sava" class="btn_popup_add">纭畾</button>
-						<button type="default" @tap="popup_cancel" class="btn_popup_cancel">鍙栨秷</button>
+						<button type="default" @tap="popup_sava" class="btn_popup_add">{{translateSys('ok')}}</button>
+						<button type="default" @tap="popup_cancel"
+							class="btn_popup_cancel">{{translateSys('cancel')}}</button>
 					</view>
 				</view>
 			</uni-popup>
@@ -682,19 +684,19 @@
 			console.log(param);
 			if (!param.Master_Cls.View_Style) {
 				uni.showModal({
-					title: "鎻愮ず",
+					title: this.translateSys('tip') + "",
 					content: "璇ュ姛鑳界偣鏈厤缃晫闈㈢獥鍙o紝璇烽噸鏂伴厤缃紒",
 					showCancel: false,
-					confirmText: "鍙栨秷"
+					confirmText: this.translateSys('cancel')
 				});
 				return;
 			}
 			if (!param.Master_Cls.View_Style.Name) {
 				uni.showModal({
-					title: "鎻愮ず",
+					title: this.translateSys('tip') + "",
 					content: "璇ュ姛鑳界偣鏈厤缃獥鍙f牱寮忥紝璇烽噸鏂伴厤缃紒",
 					showCancel: false,
-					confirmText: "鍙栨秷"
+					confirmText: this.translateSys('cancel')
 				});
 				return;
 			}
@@ -733,19 +735,19 @@
 						}, 500);
 					} else {
 						uni.showModal({
-							title: "閿欒1",
+							title: this.translateSys('error') + " 1",
 							content: success.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒1.1",
+						title: this.translateSys('error') + " 1.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			}
@@ -777,19 +779,19 @@
 						}, 500);
 					} else {
 						uni.showModal({
-							title: "閿欒1_1",
+							title: this.translateSys('error') + " 1_1",
 							content: success.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒1_1.1",
+						title: this.translateSys('error') + " 1_1.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			}
@@ -816,19 +818,19 @@
 
 					} else {
 						uni.showModal({
-							title: "閿欒1.2",
+							title: this.translateSys('error') + " 1.2",
 							content: success.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒1.3",
+						title: this.translateSys('error') + " 1.3",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -859,19 +861,19 @@
 								$this.viewParam('Mast');
 							} else {
 								uni.showModal({
-									title: "閿欒1.2",
+									title: this.translateSys('error') + " 1.2",
 									content: success.err_msg,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							}
 						}).catch(ex => {
 							console.log(ex);
 							uni.showModal({
-								title: "閿欒1.3",
+								title: this.translateSys('error') + " 1.3",
 								content: ex.errMsg,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 						});
 					}
@@ -895,19 +897,19 @@
 								// $this.subClass_attr_init();
 							} else {
 								uni.showModal({
-									title: "閿欒1.2",
+									title: this.translateSys('error') + " 1.2",
 									content: success.err_msg,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							}
 						}).catch(ex => {
 							console.log(ex);
 							uni.showModal({
-								title: "閿欒1.3",
+								title: this.translateSys('error') + " 1.3",
 								content: ex.errMsg,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 						});
 					}
@@ -1072,7 +1074,7 @@
 											}
 											//	console.log(ca.dictitem);
 										}
-										if (utils.classUtils.attrTypeIsDate(ca
+										if (utils.classUtils.attrTypeIsDateTime(ca
 												.Type
 											)) // if(ca.Type=='鏃ユ湡' || ca.Type=='鏃堕棿' ||ca.Type=='date' || ca.Type=='datetime')
 										{
@@ -1091,9 +1093,11 @@
 											ca.RelClsList = ca.RelCls;
 											ca.Value = '璇烽�鎷�;
 										}
-										if (utils.classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='鐪佸競鍖�|| ca.Type=='region')
+										if (utils.classUtils.attrTypeIsRegion(ca
+												.Type)) //if(ca.Type=='鐪佸競鍖�|| ca.Type=='region')
 											ca.Value = '璇烽�鎷�;
-										if (utils.classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='甯冨皵鍊�|| ca.Type=='bool')
+										if (utils.classUtils.attrTypeIsBool(ca
+												.Type)) //if(ca.Type=='甯冨皵鍊�|| ca.Type=='bool')
 											ca.Value = false;
 
 										attr.push(ca);
@@ -1178,10 +1182,10 @@
 
 				} else {
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�",
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				}
 			},
@@ -1228,7 +1232,7 @@
 												}
 											}
 										}
-										if (utils.classUtils.attrTypeIsDate(ca.Type)) //if(ca.Type=='鏃ユ湡' || ca.Type=='鏃堕棿')
+										if (utils.classUtils.attrTypeIsDateTime(ca.Type)) //if(ca.Type=='鏃ユ湡' || ca.Type=='鏃堕棿')
 										{
 											var nowDate = new Date();
 											var date = {
@@ -1244,7 +1248,8 @@
 											ca.RelClsList = ca.RelCls;
 											ca.Value = '璇�;
 										}
-										if (utils.classUtils.attrTypeIsRegion(ca.Type)) //if(ca.Type=='鐪佸競鍖�||ca.Type=='region')
+										if (utils.classUtils.attrTypeIsRegion(ca
+												.Type)) //if(ca.Type=='鐪佸競鍖�||ca.Type=='region')
 											ca.Value = '璇烽�鎷�;
 										if (utils.classUtils.attrTypeIsBool(ca.Type)) //if(ca.Type=='甯冨皵鍊�||ca.Type=='bool')
 											ca.Value = false;
@@ -1331,10 +1336,10 @@
 
 				} else {
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�",
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				}
 			},
@@ -1343,10 +1348,10 @@
 				var Before_Select_Event = $this.$data.param.Scan_Code.Before_Select_Event;
 				if (!Before_Select_Event) {
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: "閫夋嫨鍓嶄簨浠朵负绌猴紒",
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 					return;
 				}
@@ -1358,10 +1363,10 @@
 						var ar = attr[j];
 						if (ar.Value == '璇烽�鎷�) {
 							uni.showModal({
-								title: "鎻愮ず",
+								title: this.translateSys('tip') + "",
 								content: ar.DispName + "鏈�鎷╂暟鎹紒",
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return;
 						}
@@ -1410,10 +1415,10 @@
 							uni.hideLoading();
 							// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
 							uni.showModal({
-								title: "鎻愮ず",
+								title: this.translateSys('tip') + "",
 								content: ar.DispName + '涓嶈兘涓虹┖锛�,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return;
 						}
@@ -1488,10 +1493,10 @@
 				var After_Select_Event = $this.$data.param.Scan_Code.After_Select_Event;
 				if (!After_Select_Event) {
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: "閫夋嫨鍚庝簨浠朵负绌猴紒",
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 					return;
 				}
@@ -1511,10 +1516,10 @@
 				}
 				if (data.length == 0) {
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: "鏈�鎷╂暟鎹紒",
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 					return;
 				}
@@ -1526,10 +1531,10 @@
 						var ar = attr[j];
 						if (ar.Value == '璇烽�鎷�) {
 							uni.showModal({
-								title: "鎻愮ず",
+								title: this.translateSys('tip') + "",
 								content: ar.DispName + "鏈�鎷╂暟鎹紒",
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return;
 						}
@@ -1589,27 +1594,27 @@
 						if (ret.err_code == 0) {
 							$this.$data.subPanelList.splice(index, 1);
 							uni.showModal({
-								title: "鎻愮ず",
+								title: this.translateSys('tip') + "",
 								content: "鍒犻櫎鎴愬姛锛�,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 						} else {
 							uni.showModal({
-								title: "閿欒9",
+								title: this.translateSys('error') + " 9",
 								content: success.msg,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 						}
 					}).catch(ex => {
 						console.log(ex);
 						uni.hideLoading();
 						uni.showModal({
-							title: "鎻愮ず9.1",
+							title: this.translateSys('tip') + "9.1",
 							content: ex.errMsg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					});
 				}
@@ -2277,19 +2282,19 @@
 					.button_callback;
 				if (!before_click_button) {
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: "before_click_button-event_id涓虹┖锛�,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 					return;
 				}
 				if (!button_callback) {
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: "button_callback-event_id涓虹┖锛�,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 					return;
 				}
@@ -2368,10 +2373,10 @@
 			classAttr_AddRef(e) {
 				console.log(e.target);
 				uni.showModal({
-					title: "鎻愮ず",
+					title: this.translateSys('tip') + "",
 					content: "姝ゅ姛鑳借繕鏈疄鐜帮紒",
 					showCancel: false,
-					confirmText: "鍙栨秷"
+					confirmText: this.translateSys('cancel')
 				});
 				// var value=this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].RelCls[e.target.value];
 				// this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=value;
@@ -2488,15 +2493,14 @@
 									name: ar.Name,
 									value: ar.Value
 								});
-						} else
-							{
-								const node = this.formatAttr(ar)
-								req.push({
-									name: node.attr,
-									value: node.value
-								});
-							}
-							
+						} else {
+							const node = this.formatAttr(ar)
+							req.push({
+								name: node.attr,
+								value: node.value
+							});
+						}
+
 
 						if (ar.notempty == true && !ar
 							.Value) {
@@ -2504,12 +2508,12 @@
 							uni.hideLoading();
 							// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
 							uni.showModal({
-								title: "鎻愮ず",
+								title: this.translateSys('tip') + "",
 								content: ar
 									.DispName +
 									'涓嶈兘涓虹┖锛�,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return;
 						}
@@ -2605,21 +2609,21 @@
 						// this.class_attr_init();
 					} else {
 						uni.showModal({
-							title: "閿欒",
+							title: this.translateSys('error') + " ",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					console.log(ex);
 					uni.hideLoading();
 					uni.showModal({
-						title: "鎻愮ず",
+						title: this.translateSys('tip') + "",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -2699,19 +2703,19 @@
 									'<br/>') : '';
 							if (data.ret == 801)
 								uni.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							else uni.showModal({
-								title: '鎻愮ず',
+								title: this.translateSys('tip'),
 								content: tip +
 									',鎻愮ず:' +
 									data
 									.ret,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
@@ -2723,10 +2727,10 @@
 								'';
 							if (tip) uni
 								.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 
 							if (data.action) {
@@ -2911,10 +2915,10 @@
 											'open_select_userdlg'
 										) {
 											uni.showModal({
-												title: "閿欒2.2",
+												title: this.translateSys('error') + " 2.2",
 												content: "open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�,
 												showCancel: false,
-												confirmText: "鍙栨秷"
+												confirmText: this.translateSys('cancel')
 											});
 										}
 									}
@@ -2923,20 +2927,20 @@
 						}
 					} else {
 						uni.showModal({
-							title: "閿欒2",
+							title: this.translateSys('error') + " 2",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒2.1",
+						title: this.translateSys('error') + " 2.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -3034,19 +3038,19 @@
 									'<br/>') : '';
 							if (data.ret == 801)
 								uni.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							else uni.showModal({
-								title: '鎻愮ず',
+								title: this.translateSys('tip'),
 								content: tip +
 									',鎻愮ず:' +
 									data
 									.ret,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
@@ -3058,10 +3062,10 @@
 								'';
 							if (tip) uni
 								.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 
 							var actionlist = data
@@ -3399,20 +3403,20 @@
 						}
 					} else {
 						uni.showModal({
-							title: "閿欒3",
+							title: this.translateSys('error') + " 3",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒3.1",
+						title: this.translateSys('error') + " 3.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -3531,19 +3535,19 @@
 									'<br/>') : '';
 							if (data.ret == 801)
 								uni.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							else uni.showModal({
-								title: '鎻愮ず',
+								title: this.translateSys('tip'),
 								content: tip +
 									',鎻愮ず:' +
 									data
 									.ret,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
@@ -3555,10 +3559,10 @@
 								'';
 							if (tip) uni
 								.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 
 							var result = data
@@ -3623,20 +3627,20 @@
 						}
 					} else {
 						uni.showModal({
-							title: "閿欒4",
+							title: this.translateSys('error') + " 4",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒4.1",
+						title: this.translateSys('error') + " 4.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -3761,19 +3765,19 @@
 									'<br/>') : '';
 							if (data.ret == 801)
 								uni.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							else uni.showModal({
-								title: '鎻愮ず',
+								title: this.translateSys('tip'),
 								content: tip +
 									',鎻愮ず:' +
 									data
 									.ret,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
@@ -3785,10 +3789,10 @@
 								'';
 							if (tip) uni
 								.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 
 							if (data != "") {
@@ -3821,7 +3825,7 @@
 											var d =
 												dialog({
 													title: '<i class="ace-icon fa fa-info-circle"></i> ' +
-														'鎻愮ず',
+														this.translateSys('tip'),
 													content: action
 														.action_type +
 														'姝ction灏氭湭澶勭悊锛�
@@ -3909,7 +3913,7 @@
 											var d =
 												dialog({
 													title: '<i class="ace-icon fa fa-info-circle"></i> ' +
-														'鎻愮ず',
+														this.translateSys('tip'),
 													content: action
 														.action_type +
 														'姝ction灏氭湭澶勭悊锛�
@@ -4071,7 +4075,7 @@
 											var d =
 												dialog({
 													title: '<i class="ace-icon fa fa-info-circle"></i> ' +
-														'鎻愮ず',
+														this.translateSys('tip'),
 													content: action
 														.action_type +
 														'姝ction灏氭湭澶勭悊锛�
@@ -4083,30 +4087,30 @@
 								}
 							} else {
 								uni.showModal({
-									title: "鎻愮ず5.2",
+									title: this.translateSys('tip') + "5.2",
 									content: '璋冪敤 before_click_button 鑴氭湰杩斿洖绌猴紝event_id' +
 										eventid,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							}
 						}
 					} else {
 						uni.showModal({
-							title: "閿欒5",
+							title: this.translateSys('error') + " 5",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "鎻愮ず5.1",
+						title: this.translateSys('tip') + "5.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -4186,19 +4190,19 @@
 									'<br/>') : '';
 							if (data.ret == 801)
 								uni.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							else uni.showModal({
-								title: '鎻愮ず',
+								title: this.translateSys('tip'),
 								content: tip +
 									',鎻愮ず:' +
 									data
 									.ret,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
@@ -4210,10 +4214,10 @@
 								'';
 							if (tip) uni
 								.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 
 							var actionlist = data
@@ -4395,10 +4399,10 @@
 										'open_select_userdlg'
 									) {
 										uni.showModal({
-											title: "閿欒6.2",
+											title: this.translateSys('error') + " 6.2",
 											content: "open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�,
 											showCancel: false,
-											confirmText: "鍙栨秷"
+											confirmText: this.translateSys('cancel')
 										});
 									}
 								}
@@ -4406,20 +4410,20 @@
 						}
 					} else {
 						uni.showModal({
-							title: "閿欒6",
+							title: this.translateSys('error') + " 6",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒6.1",
+						title: this.translateSys('error') + " 6.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -4509,19 +4513,19 @@
 									'<br/>') : '';
 							if (data.ret == 801)
 								uni.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							else uni.showModal({
-								title: '鎻愮ず',
+								title: this.translateSys('tip'),
 								content: tip +
 									',鎻愮ず:' +
 									data
 									.ret,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
@@ -4533,10 +4537,10 @@
 								'';
 							if (tip) uni
 								.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 
 							var actionlist = data
@@ -4613,7 +4617,8 @@
 																]
 																.attr
 															) {
-																if (utils.classUtils.attrTypeIsDict(attr[j].Type)) {
+																if (utils.classUtils.attrTypeIsDict(attr[j]
+																		.Type)) {
 																	var
 																		dictItemList = [];
 																	for (
@@ -5261,20 +5266,20 @@
 						}
 					} else {
 						uni.showModal({
-							title: "閿欒7",
+							title: this.translateSys('error') + " 7",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.showModal({
-						title: "閿欒7.1",
+						title: this.translateSys('error') + " 7.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -5320,12 +5325,12 @@
 							uni.hideLoading();
 							// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
 							uni.showModal({
-								title: "鎻愮ず",
+								title: this.translateSys('tip') + "",
 								content: ar
 									.DispName +
 									'涓嶈兘涓虹┖锛�,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return;
 						}
@@ -5347,7 +5352,7 @@
 							if (ar.Value == '璇烽�鎷� || ar
 								.Value == '鈥斺�璇烽�鎷┾�鈥�) ar
 								.Value = '';
-							if (utils.classUtils.attrTypeIsDict(ar.Type))  {
+							if (utils.classUtils.attrTypeIsDict(ar.Type)) {
 								if (ar.select ==
 									true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
 									var valStr = "";
@@ -5377,12 +5382,12 @@
 								uni.hideLoading();
 								// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
 								uni.showModal({
-									title: "鎻愮ず",
+									title: this.translateSys('tip') + "",
 									content: ar
 										.DispName +
 										'涓嶈兘涓虹┖锛�,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 								return;
 							}
@@ -5461,19 +5466,19 @@
 									'<br/>') : '';
 							if (data.ret == 801)
 								uni.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 							else uni.showModal({
-								title: '鎻愮ず',
+								title: this.translateSys('tip'),
 								content: tip +
 									',鎻愮ず:' +
 									data
 									.ret,
 								showCancel: false,
-								confirmText: "鍙栨秷"
+								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
@@ -5485,10 +5490,10 @@
 								'';
 							if (tip) uni
 								.showModal({
-									title: '鎻愮ず',
+									title: this.translateSys('tip'),
 									content: tip,
 									showCancel: false,
-									confirmText: "鍙栨秷"
+									confirmText: this.translateSys('cancel')
 								});
 
 							var result = data
@@ -5521,21 +5526,21 @@
 						}
 					} else {
 						uni.showModal({
-							title: "閿欒8",
+							title: this.translateSys('error') + " 8",
 							content: success
 								.err_msg,
 							showCancel: false,
-							confirmText: "鍙栨秷"
+							confirmText: this.translateSys('cancel')
 						});
 					}
 				}).catch(ex => {
 					// console.log(ex);
 					uni.hideLoading();
 					uni.showModal({
-						title: "閿欒8.1",
+						title: this.translateSys('error') + " 8.1",
 						content: ex.errMsg,
 						showCancel: false,
-						confirmText: "鍙栨秷"
+						confirmText: this.translateSys('cancel')
 					});
 				});
 			},
@@ -5560,6 +5565,14 @@
 						value: attr.Value ? attr.Value : ''
 					};
 			},
+			translate(t) {
+				if (typeof this.$t == "function") return this.$t(`page.${t}`)
+				else return t;
+			},
+			translateSys(t) {
+				if (typeof this.$t == "function") return this.$t(`sys.${t}`)
+				else return t;
+			},
 		}
 	}
 </script>

--
Gitblit v1.9.1