From effc285be3229af6b77edafcb5ec71b96a35f53a Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 12 七月 2024 17:41:57 +0800
Subject: [PATCH] test

---
 pages/modal/3018.vue |  564 +++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 373 insertions(+), 191 deletions(-)

diff --git a/pages/modal/3018.vue b/pages/modal/3018.vue
index f2eae75..ef69bae 100644
--- a/pages/modal/3018.vue
+++ b/pages/modal/3018.vue
@@ -275,7 +275,8 @@
 					</view>
 					<view class="popup-footer">
 						<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>
+						<button type="default" @tap="popup_cancel"
+							class="btn_popup_cancel">{{translateSys('cancel')}}</button>
 					</view>
 				</view>
 			</uni-popup>
@@ -350,74 +351,110 @@
 			console.log(param);
 			if (!param.EditDlgMode) {
 				uni.showModal({
-					title: this.translateSys('tip') + "",
-					content: "璇ュ姛鑳界偣鏈厤缃紪杈戠獥鍙o紝璇烽噸鏂伴厤缃紒",
+					title: this.translateSys('tip'),
+					content: this.translate('function_not_edit_dlg'),
 					showCancel: false,
 					confirmText: this.translateSys('cancel')
+				});
+				uni.navigateBack({
+					delta: 1, //杩斿洖灞傛暟锛�鍒欎笂涓婇〉
 				});
 				return;
 			}
 			if (!param.Edit_dlg.Name) {
 				uni.showModal({
-					title: this.translateSys('tip') + "",
-					content: "璇ュ姛鑳界偣鏈厤缃獥鍙f牱寮忥紝璇烽噸鏂伴厤缃紒",
+					title: this.translateSys('tip')
+					",
+					content: this.translate('function_not_edit_dlg'),
 					showCancel: false,
 					confirmText: this.translateSys('cancel')
+				});
+				uni.navigateBack({
+					delta: 1, //杩斿洖灞傛暟锛�鍒欎笂涓婇〉
 				});
 				return;
 			}
 			this.$data.param = param;
-			var edit_dlg = {
-				Model: param.EditDlgMode,
-				Name: param.Edit_dlg.Name
-			}
-			var dataInfo = {
-				class_id: param.clsid,
-				class_name: '',
-				group_name: ''
-			};
-			var $this = this;
-			$this.$store.state.thisareaFuncID = param.clsid;
-			// console.log($this.$store.getters.getclassAttrList);
-			//鑾峰彇
-			if ($this.$store.getters.getclassAttrList) {
-				$this.$data.classAttrList = $this.$store.getters.getclassAttrList;
-				$this.classGridStyleInfo();
-			} else
-				$this.$store.dispatch('classAttrGetList', dataInfo).then(success => {
-					// console.log(success);
-					if (success.err_code == 0) {
-						$this.$data.classAttrList = success.result;
-						success.result.forEach(async (group, index) => {
-							group.attr_list.forEach(async (attr, key) => {
-								if (utils.classUtils.attrTypeIsDict((attr.type)) {
-									await $this.DictItemGetList(attr, key, index);
-								}
-							});
-						});
-						setTimeout(function() {
-							$this.classGridStyleInfo();
-						}, 500);
-					} else {
-						uni.showModal({
-							title: this.translateSys('error') + " 1",
-							content: success.err_msg,
-							showCancel: false,
-							confirmText: this.translateSys('cancel')
-						});
-					}
-				}).catch(ex => {
-					// console.log(ex);
-					uni.showModal({
-						title: this.translateSys('error') + " 1.1",
-						content: ex.errMsg,
-						showCancel: false,
-						confirmText: this.translateSys('cancel')
-					});
-				});
+			this.loadData()
 
 		},
+
 		methods: {
+			setData: function(obj) {
+				let that = this;
+				let keys = [];
+				let val, data;
+
+				Object.keys(obj).forEach(function(key) {
+					keys = key.split(".");
+					val = obj[key];
+					data = that.$data;
+					keys.forEach(function(key2, index) {
+						if (index + 1 == keys.length) {
+							that.$set(data, key2, val);
+						} else {
+							if (!data[key2]) {
+								that.$set(data, key2, {});
+							}
+						}
+						data = data[key2];
+					});
+				});
+			},
+			async loadData() {
+				const param = this.param
+				var edit_dlg = {
+					Model: param.EditDlgMode,
+					Name: param.Edit_dlg.Name
+				}
+				var dataInfo = {
+					class_id: this.param.clsid,
+					class_name: '',
+					group_name: ''
+				};
+				var $this = this;
+				$this.$store.state.thisareaFuncID = param.clsid;
+				// console.log($this.$store.getters.getclassAttrList);
+				//鑾峰彇
+				if ($this.$store.getters.getclassAttrList) {
+					$this.$data.classAttrList = $this.$store.getters.getclassAttrList;
+					$this.classGridStyleInfo();
+				} else {
+					$this.$store.dispatch('classAttrGetList', dataInfo)
+						.then((success) => {
+							if (success.err_code == 0) {
+								$this.$data.classAttrList = success.result;
+								success.result.forEach(async (group, index) => {
+									group.attr_list.forEach(async (attr, key) => {
+										if (utils.classUtils.attrTypeIsDict(attr.type)) {
+											await $this.DictItemGetList(attr, key,
+												index);
+										}
+									});
+								});
+								setTimeout(function() {
+									$this.classGridStyleInfo();
+								}, 500);
+							} else {
+								uni.showModal({
+									title: this.translateSys('error') + " 1",
+									content: success.err_msg,
+									showCancel: false,
+									confirmText: this.translateSys('cancel')
+								});
+							}
+						}).catch(ex => {
+							// console.log(ex);
+							uni.showModal({
+								title: this.translateSys('error') + " 1.1",
+								content: ex.errMsg,
+								showCancel: false,
+								confirmText: this.translateSys('cancel')
+							});
+						});
+				}
+				console.log(this.$data.param);
+			},
 			async DictItemGetList(attr, key, index) { //Mobox3寰楀埌瀛楀吀椤瑰垪琛� 				this.data = [];
 				var $this = this;
@@ -565,7 +602,8 @@
 								DispName: attr.disp_name,
 								LuaAttr: attr.lua_attr,
 								Desc: attr.desc,
-								ActionDef: attr.action_def ? Base64.decode(attr.action_def) : '',
+								ActionDef: attr.action_def ? Base64.decode(attr
+									.action_def) : '',
 								Multilingual: attr.multilingual,
 								RefCondition: attr.ref_condition,
 								GroupName: data.group,
@@ -619,7 +657,8 @@
 											if (ca.select == true)
 												ca.Value = []; //ca.dictitem[0].CN_S_NAME;
 											else
-												ca.Value = '璇烽�鎷�; //ca.dictitem[0].CN_S_NAME;
+												ca.Value = this.translateSys(
+													"select"); //ca.dictitem[0].CN_S_NAME;
 											var dictitemlist = [];
 											for (var d = 0; d < ca.dictitem.length; d++) {
 												ca.dictitem[d].label = ca.dictitem[d].CN_S_NAME;
@@ -629,22 +668,25 @@
 													ca.Value = ca.dictitem[d].CN_S_NAME;
 											}
 										}
-										if(utils.classUtils.attrTypeIsDateTime(ca.Type)){
+										if (utils.classUtils.attrTypeIsDateTime(ca.Type)) {
 											var nowDate = new Date();
 											var date = {
 												year: nowDate.getFullYear(),
 												month: nowDate.getMonth() + 1,
 												day: nowDate.getDate()
 											}
-											ca.Value = date.year + '-' + (date.month >= 10 ? date.month : '0' + date
-												.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day);
+											ca.Value = date.year + '-' + (date.month >= 10 ? date.month :
+												'0' +
+												date
+												.month) + '-' + (date.day >= 10 ? date.day : '0' + date
+												.day);
 										}
 										if (utils.classUtils.attrTypeIsObjRefMulti(ca.Type)) {
 											ca.RelClsList = ca.RelCls;
-											ca.Value = '璇�;
+											ca.Value = this.translateSys('please');
 										}
-										if(utils.classUtils.attrTypeIsRegion(ca.Type))
-											ca.Value = '璇烽�鎷�;
+										if (utils.classUtils.attrTypeIsRegion(ca.Type))
+											ca.Value = this.translateSys("select");
 										if (utils.classUtils.attrTypeIsBool(ca.Type))
 											ca.Value = false;
 
@@ -725,8 +767,8 @@
 
 				} else {
 					uni.showModal({
-						title: this.translateSys('tip') + "",
-						content: "鏈壘鍒板彲鏄剧ず鐨勭殑灞炴�",
+						title: this.translateSys('tip'),
+						content: this.translate('no_find_attr_diaplay'),
 						showCancel: false,
 						confirmText: this.translateSys('cancel')
 					});
@@ -756,12 +798,13 @@
 				// }
 				// $this.$data.popupParam= popupParam;
 				// return;
-				var before_click_button = $this.$data.classAttrList[index].Attr[iindex].before_click_button;
+				var before_click_button = $this.$data.classAttrList[index].Attr[iindex]
+					.before_click_button;
 				var button_callback = $this.$data.classAttrList[index].Attr[iindex].button_callback;
 				if (!before_click_button) {
 					uni.showModal({
-						title: this.translateSys('tip') + "",
-						content: "before_click_button-event_id涓虹┖锛�,
+						title: this.translateSys('tip'),
+						content: this.translate("icon_click_event_empty"),
 						showCancel: false,
 						confirmText: this.translateSys('cancel')
 					});
@@ -769,14 +812,15 @@
 				}
 				if (!button_callback) {
 					uni.showModal({
-						title: this.translateSys('tip') + "",
-						content: "button_callback-event_id涓虹┖锛�,
+						title: this.translateSys('tip'),
+						content: this.translate("icon_click_event_empty"),
 						showCancel: false,
 						confirmText: this.translateSys('cancel')
 					});
 					return;
 				}
-				this.DataObjRunCustomEvent_Return(before_click_button, data_attr, button_callback, index, iindex);
+				this.DataObjRunCustomEvent_Return(before_click_button, data_attr, button_callback, index,
+					iindex);
 			},
 			popupChange(e) {
 				console.log('褰撳墠妯″紡锛� + e.type + ',鐘舵�锛� + e.show);
@@ -817,14 +861,16 @@
 				}
 				if (!$this.$data.popupParam) {
 					uni.showModal({
-						title: this.translateSys('tip') + "",
+						title: this.translateSys('tip'),
 						content: "popupParam涓虹┖锛�,
 						showCancel: false,
 						confirmText: this.translateSys('cancel')
 					});
 					return;
 				}
-				$this.$data.classAttrList[$this.$data.popupParam.index].Attr[$this.$data.popupParam.iindex].Value = name;
+				$this.$data.classAttrList[$this.$data.popupParam.index].Attr[$this.$data.popupParam.iindex]
+					.Value =
+					name;
 				console.log(data);
 				var callback_eventid = $this.$data.popupParam.button_callback.trim();
 				var info = {
@@ -857,7 +903,9 @@
 				//console.log(e.target)
 				getApp().onScan((result) => {
 					console.log(result);
-					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value =
+					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[
+							'iindex']]
+						.Value =
 						result.decodedata;
 					uni.hideKeyboard();
 					this.onevent($ele, result.decodedata);
@@ -869,20 +917,29 @@
 			},
 			ondateTime(e) {
 				//console.log(e.target)
-				this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = e.target
+				this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+					.Value = e
+					.target
 					.value;
 			},
 			onchange(e) {
 				// console.log(e.target);
-				var value = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].dictitem[e
-					.target.value];
-				var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']];
+				var value = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[
+						'iindex']]
+					.dictitem[e
+						.target.value];
+				var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[
+					'iindex']];
 				// console.log(data_attr);
 				if (value.Name != data_attr.Value) {
-					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = value
+					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+						.Value =
+						value
 						.Name;
 					// console.log(this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value);
-					var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+					var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target
+							.dataset[
+								'iindex']]
 						.action;
 					if (eventid) {
 						// self.event_no_sub = 1;
@@ -893,7 +950,7 @@
 							for (var j = 0; j < attr.length; j++) {
 								var ar = attr[j];
 								req.push(this.formatAttr(ar))
-								
+
 							}
 						}
 						var info = {
@@ -955,7 +1012,7 @@
 								var attr = attrlist[i].Attr;
 								for (var j = 0; j < attr.length; j++) {
 									var ar = attr[j];
-									 if (utils.classUtils.attrTypeIsDict(ar.Type)) 
+									if (utils.classUtils.attrTypeIsDict(ar.Type))
 										req.push({
 											attr: ar.Name,
 											value: itemvalue.Name
@@ -985,12 +1042,16 @@
 			},
 			onevent(e, decodedata) {
 				// console.log(e.target);
-				var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']];
+				var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[
+					'iindex']];
 				// console.log(decodedata);
 				if (e.target.value != data_attr.Value) {
-					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value =
+					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+						.Value =
 						decodedata ? decodedata : e.target.value;
-					var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+					var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target
+							.dataset[
+								'iindex']]
 						.action;
 					if (eventid) {
 						// self.event_no_sub = 1;
@@ -1023,11 +1084,16 @@
 			oncheck(e) {
 				// console.log(e.target);
 				var ischecked = e.target.dataset.ischeck ? false : true;
-				var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']];
+				var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[
+					'iindex']];
 				// console.log(data_attr);
 				if (ischecked != data_attr.Value) {
-					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = ischecked;
-					var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+					this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+						.Value =
+						ischecked;
+					var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target
+							.dataset[
+								'iindex']]
 						.action;
 					if (eventid) {
 						// self.event_no_sub = 1;
@@ -1065,8 +1131,10 @@
 			addresschange(e) {
 				// console.log(e.target);
 				console.log(e.data.join(';'))
-				this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = e.data.join(
-					';');
+				this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]
+					.Value = e.data
+					.join(
+						';');
 			},
 			classAttr_AddPer(index, iindex) {
 				var param = {
@@ -1080,11 +1148,15 @@
 						AddPer(data, param) {
 							// console.log(param);
 							console.log(data);
-							$this.$data.classAttrList[param.index].Attr[param.iindex].Value = data[0].Name;
-							$this.$data.classAttrList[param.index].Attr[param.iindex].ValID = data[0].Login + ';' +
+							$this.$data.classAttrList[param.index].Attr[param.iindex].Value = data[
+								0].Name;
+							$this.$data.classAttrList[param.index].Attr[param.iindex].ValID = data[
+									0]
+								.Login + ';' +
 								data[0].Name;
 
-							var eventid = $this.$data.classAttrList[param.index].Attr[param.iindex].action;
+							var eventid = $this.$data.classAttrList[param.index].Attr[param.iindex]
+								.action;
 							if (eventid) {
 								eventid = eventid.trim();
 								if (eventid) {
@@ -1112,8 +1184,8 @@
 			classAttr_AddRef(e) {
 				console.log(e.target);
 				uni.showModal({
-					title: this.translateSys('tip') + "",
-					content: "姝ゅ姛鑳借繕鏈疄鐜帮紒",
+					title: this.translateSys('tip'),
+					content: this.translateSys('unrealized'),
 					showCancel: false,
 					confirmText: this.translateSys('cancel')
 				});
@@ -1132,11 +1204,15 @@
 						AddPer(data, param) {
 							// console.log(param);
 							// console.log(data);
-							$this.$data.classAttrList[param.index].Attr[param.iindex].Value = data[0].Name;
-							$this.$data.classAttrList[param.index].Attr[param.iindex].ValID = data[0].ID + ';' +
+							$this.$data.classAttrList[param.index].Attr[param.iindex].Value = data[
+								0].Name;
+							$this.$data.classAttrList[param.index].Attr[param.iindex].ValID = data[
+									0].ID +
+								';' +
 								data[0].Name;
 
-							var eventid = $this.$data.classAttrList[param.index].Attr[param.iindex].action;
+							var eventid = $this.$data.classAttrList[param.index].Attr[param.iindex]
+								.action;
 							if (eventid) {
 								eventid = eventid.trim();
 								if (eventid) {
@@ -1170,7 +1246,7 @@
 			},
 			add() {
 				uni.showLoading({
-					title: "鍔犺浇涓�..",
+					title: this.translateSys("loading")
 					mask: true
 				});
 				var req = [];
@@ -1179,8 +1255,10 @@
 					var attr = attrlist[i].Attr;
 					for (var j = 0; j < attr.length; j++) {
 						var ar = attr[j];
-						if (ar.Value == '璇烽�鎷� || ar.Value == '鈥斺�璇烽�鎷┾�鈥�) ar.Value = '';
-						if  (utils.classUtils.attrTypeIsDict(ar.Type))  {
+						if (ar.Value == this.translateSys("select") || ar.Value == '鈥斺�' + this
+							.translateSys(
+								"select") + '鈥斺�') ar.Value = '';
+						if (utils.classUtils.attrTypeIsDict(ar.Type)) {
 							if (ar.select == true) { //鍒ゆ柇涓嬫媺鏄惁澶氶�
 								var valStr = "";
 								for (var v in ar.Value) {
@@ -1197,23 +1275,25 @@
 									name: ar.Name,
 									value: ar.Value
 								});
-						} else
-						{
+						} else {
 							const node = this.formatAttr(ar)
 							req.push({
 								name: node.attr,
 								value: node.value
 							});
 						}
-						
+
 
 						if (ar.notempty == true && !ar.Value) {
 							// if(ar.NotEmpty=='1'){
 							uni.hideLoading();
 							// uni.showToast({title:ar.DispName+'涓嶈兘涓虹┖锛�,icon:"success",duration:3000});
 							uni.showModal({
-								title: this.translateSys('tip') + "",
-								content: ar.DispName + '涓嶈兘涓虹┖锛�,
+								title: this.translateSys('tip'),
+								content: this.translateSys('quotation_mark_left') + ar.DispName +
+									this
+									.translateSys('quotation_mark_right') + this.translate(
+										"cannot_empty"),
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
@@ -1225,7 +1305,7 @@
 					'function': '3000', // 鍔熻兘鐐圭紪鍙� 					cls_id: this.$data.param.clsid, // 鍔熻兘鐐逛富鏁版嵁绫绘爣璇� 					'button': 'top', // top/bottom
-					button_name: '鏂板',
+					button_name: this.translateSys('add2'),
 					master: {
 						cls_id: this.$data.param.clsid,
 					}
@@ -1270,8 +1350,13 @@
 							if (action.ret == '0') {
 								if (action.ret != 0) {
 									uni.showModal({
-										title: this.translateSys('tip') + "",
-										content: '鎵ц鑴氭湰澶辫触锛� + action.result,
+										title: this.translateSys('tip'),
+										content: this.translate('execute_script_failed') +
+											this
+											.translateSys('comma') + this.translate(
+												'result') +
+											this
+											.translateSys('colon') + action.result,
 										showCancel: false,
 										confirmText: this.translateSys('cancel')
 									});
@@ -1279,8 +1364,11 @@
 								}
 								if (action.info) {
 									uni.showModal({
-										title: this.translateSys('tip') + "",
-										content: '鎵ц鑴氭湰澶辫触锛� + action.info,
+										title: this.translateSys('tip'),
+										content: this.translate('execute_script_failed') +
+											this
+											.translateSys('comma') +
+											this.translateSys('colon') + action.info,
 										showCancel: false,
 										confirmText: this.translateSys('cancel')
 									});
@@ -1298,13 +1386,14 @@
 							}
 						} else
 							uni.showToast({
-								title: "鍒涘缓鎴愬姛锛�,
+								title: this.translate('create_success'),
 								icon: "success",
 								duration: 3000
 							});
 						//鍒锋柊
 						uni.redirectTo({
-							url: '../modal/3018?param=' + JSON.stringify(this.$data.param) +
+							url: '../modal/3018?param=' + JSON.stringify(this.$data
+									.param) +
 								"&titlename=" + this.$data.title
 						});
 						// this.cancel();
@@ -1320,7 +1409,7 @@
 					console.log(ex);
 					uni.hideLoading();
 					uni.showModal({
-						title: this.translateSys('tip') + "",
+						title: this.translateSys('tip'),
 						content: ex.errMsg,
 						showCancel: false,
 						confirmText: this.translateSys('cancel')
@@ -1336,7 +1425,7 @@
 						'function': '3000', // 鍔熻兘鐐圭紪鍙� 						cls_id: this.$data.param.clsid, // 鍔熻兘鐐逛富鏁版嵁绫绘爣璇� 						'button': 'top', // top/bottom
-						button_name: '鏂板',
+						button_name: this.translateSys('add2'),
 						master: {
 							cls_id: this.$data.param.clsid, // button=bottom鏃�master鐨刢ls_id
 							//obj_id: ''  // button=bottom鏃�master鐨刼bj_id
@@ -1384,26 +1473,31 @@
 					if (success.err_code == 0) {
 						var data = success.result;
 						if (data.ret != 0) {
-							var tip = data.err_info ? typeof data.err_info == 'string' ? data.err_info : data
+							var tip = data.err_info ? typeof data.err_info == 'string' ? data
+								.err_info :
+								data
 								.err_info.join('<br/>') : '';
 							if (data.ret == 801) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							else uni.showModal({
-								title: this.translateSys('tip') ,
-								content: tip + ',鎻愮ず:' + data.ret,
+								title: this.translateSys('tip'),
+								content: tip + ',' + this.translateSys('tip') + ':' + data
+									.ret,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
-							var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join(
-								'<br/>') : '';
+							var tip = data.info ? typeof data.info == 'string' ? data.info : data
+								.info
+								.join(
+									'<br/>') : '';
 							if (tip) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
@@ -1420,15 +1514,23 @@
 											if (value) {
 												console.log(value);
 												for (var i = 0; i < value.length; i++) {
-													for (var a = 0; a < this.$data.classAttrList.length; a++) {
-														for (var l = 0; l < this.$data.classAttrList[a].Attr
+													for (var a = 0; a < this.$data.classAttrList
+														.length; a++) {
+														for (var l = 0; l < this.$data
+															.classAttrList[a]
+															.Attr
 															.length; l++) {
-															var ca = this.$data.classAttrList[a].Attr[l];
+															var ca = this.$data.classAttrList[a]
+																.Attr[l];
 															if (value[i].attr == ca.Name) {
-																if  (utils.classUtils.attrTypeIsDict(ca.Type))  {
+																if (utils.classUtils
+																	.attrTypeIsDict(ca
+																		.Type)) {
 																	var dictItemList = [];
-																	for (var d in value[i].choice_list) {
-																		var list_val = value[i].choice_list[d];
+																	for (var d in value[i]
+																			.choice_list) {
+																		var list_val = value[i]
+																			.choice_list[d];
 																		dictItemList.push({
 																			"CN_S_NAME": list_val,
 																			"Name": list_val,
@@ -1447,16 +1549,22 @@
 													}
 
 													var length = 0;
-													if (!this.$data.refdatastore.filter(function(s) {
+													if (!this.$data.refdatastore.filter(function(
+															s) {
 															return value[i].attr == s.attr
 														}).length) {
 														length = 1;
 														this.$data.refdatastore.push(value[i]);
 													}
 													if (length == 0) {
-														for (var j = 0; j < this.$data.refdatastore.length; j++) {
-															if (this.$data.refdatastore[j].attr == value[i].attr) {
-																this.$data.refdatastore[j].value = value[i].value;
+														for (var j = 0; j < this.$data.refdatastore
+															.length; j++) {
+															if (this.$data.refdatastore[j].attr ==
+																value[i]
+																.attr) {
+																this.$data.refdatastore[j].value =
+																	value[i]
+																	.value;
 															}
 														}
 													}
@@ -1466,7 +1574,12 @@
 										if (action_type == 'open_select_userdlg') {
 											uni.showModal({
 												title: this.translateSys('error') + " 2.2",
-												content: "open_select_userdlg杩欎釜action_type杩樻湭澶勭悊锛�,
+												content: this.translateSys(
+														"quotation_mark_left") +
+													action_type + this.translateSys(
+														"quotation_mark_right") + this
+													.translate(
+														"tip_action_unprocessed"),
 												showCancel: false,
 												confirmText: this.translateSys('cancel')
 											});
@@ -1502,7 +1615,7 @@
 					'function': '3000', // 鍔熻兘鐐圭紪鍙� 					cls_id: this.$data.param.clsid, // 鍔熻兘鐐逛富鏁版嵁绫绘爣璇� 					'button': 'top', // top/bottom
-					button_name: '鏂板',
+					button_name: this.translateSys('add2'),
 					master: {
 						cls_id: this.$data.param.clsid, // button=bottom鏃�master鐨刢ls_id
 						//obj_id: ''  // button=bottom鏃�master鐨刼bj_id
@@ -1567,26 +1680,31 @@
 					if (success.err_code == 0) {
 						var data = success.result;
 						if (data.ret != 0) {
-							var tip = data.err_info ? typeof data.err_info == 'string' ? data.err_info : data
+							var tip = data.err_info ? typeof data.err_info == 'string' ? data
+								.err_info :
+								data
 								.err_info.join('<br/>') : '';
 							if (data.ret == 801) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							else uni.showModal({
-								title: this.translateSys('tip') ,
-								content: tip + ',鎻愮ず:' + data.ret,
+								title: this.translateSys('tip'),
+								content: tip + ',' + this.translateSys('tip') + ':' + data
+									.ret,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
-							var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join(
-								'<br/>') : '';
+							var tip = data.info ? typeof data.info == 'string' ? data.info : data
+								.info
+								.join(
+									'<br/>') : '';
 							if (tip) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
@@ -1601,14 +1719,19 @@
 										var result = action.value;
 										for (var i = 0; i < result.length; i++) {
 											if (result[i].choice_list) {
-												for (var c = 0; c < $this.$data.classAttrList.length; c++) {
+												for (var c = 0; c < $this.$data.classAttrList
+													.length; c++) {
 													var attr = $this.$data.classAttrList[c].Attr;
 													for (var j = 0; j < attr.length; j++) {
 														if (attr[j].Name == result[i].attr) {
-															if  (utils.classUtils.attrTypeIsDict(attr[j].Type))  {
+															if (utils.classUtils.attrTypeIsDict(
+																	attr[j]
+																	.Type)) {
 																var dictItemList = [];
-																for (var d in result[i].choice_list) {
-																	var val = result[i].choice_list[d];
+																for (var d in result[i]
+																		.choice_list) {
+																	var val = result[i]
+																		.choice_list[d];
 																	dictItemList.push({
 																		"CN_S_NAME": val,
 																		"Name": val,
@@ -1623,10 +1746,12 @@
 													}
 												}
 											}
-											for (var c = 0; c < $this.$data.classAttrList.length; c++) {
+											for (var c = 0; c < $this.$data.classAttrList
+												.length; c++) {
 												var attr = $this.$data.classAttrList[c].Attr;
 												for (var j = 0; j < attr.length; j++) {
-													console.log(attr[j].Name + '==' + result[i].attr);
+													console.log(attr[j].Name + '==' + result[i]
+														.attr);
 													if (attr[j].Name == result[i].attr) {
 														attr[j].Value = result[i].value;
 													}
@@ -1640,9 +1765,14 @@
 												$this.$data.refdatastore.push(result[i]);
 											}
 											if (length == 0) {
-												for (var j = 0; j < $this.$data.refdatastore.length; j++) {
-													if ($this.$data.refdatastore[j].attr == result[i].attr) {
-														$this.$data.refdatastore[j].value = result[i].value;
+												for (var j = 0; j < $this.$data.refdatastore
+													.length; j++) {
+													if ($this.$data.refdatastore[j].attr == result[
+															i]
+														.attr) {
+														$this.$data.refdatastore[j].value = result[
+																i]
+															.value;
 													}
 												}
 											}
@@ -1674,8 +1804,10 @@
 									}
 									if (length == 0) {
 										for (var j = 0; j < $this.$data.refdatastore.length; j++) {
-											if ($this.$data.refdatastore[j].attr == result[i].attr) {
-												$this.$data.refdatastore[j].value = result[i].value;
+											if ($this.$data.refdatastore[j].attr == result[i]
+												.attr) {
+												$this.$data.refdatastore[j].value = result[i]
+													.value;
 											}
 										}
 									}
@@ -1705,7 +1837,7 @@
 					'function': '3000', // 鍔熻兘鐐圭紪鍙� 					cls_id: this.$data.param.clsid, // 鍔熻兘鐐逛富鏁版嵁绫绘爣璇� 					'button': 'top', // top/bottom
-					button_name: '鏂板',
+					button_name: this.translateSys('add2'),
 					master: {
 						cls_id: this.$data.param.clsid, // button=bottom鏃�master鐨刢ls_id
 
@@ -1718,7 +1850,9 @@
 					var attr = attrlist[i].Attr;
 					for (var j = 0; j < attr.length; j++) {
 						var ar = attr[j];
-						if (ar.Value == '璇烽�鎷� || ar.Value == '鈥斺�璇烽�鎷┾�鈥�) ar.Value = '';
+						if (ar.Value == this.translateSys("select") || ar.Value == '鈥斺�' + this
+							.translateSys(
+								"select") + '鈥斺�') ar.Value = '';
 						req.push(this.formatAttr(ar));
 					}
 				}
@@ -1785,26 +1919,31 @@
 					if (success.err_code == 0) {
 						var data = success.result;
 						if (data.ret != 0) {
-							var tip = data.err_info ? typeof data.err_info == 'string' ? data.err_info : data
+							var tip = data.err_info ? typeof data.err_info == 'string' ? data
+								.err_info :
+								data
 								.err_info.join('<br/>') : '';
 							if (data.ret == 801) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							else uni.showModal({
-								title: this.translateSys('tip') ,
-								content: tip + ',鎻愮ず:' + data.ret,
+								title: this.translateSys('tip'),
+								content: tip + ',' + this.translateSys('tip') + ':' + data
+									.ret,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
-							var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join(
-								'<br/>') : '';
+							var tip = data.info ? typeof data.info == 'string' ? data.info : data
+								.info
+								.join(
+									'<br/>') : '';
 							if (tip) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
@@ -1854,7 +1993,7 @@
 					'function': '3000', // 鍔熻兘鐐圭紪鍙� 					cls_id: this.$data.param.clsid, // 鍔熻兘鐐逛富鏁版嵁绫绘爣璇� 					'button': 'top', // top/bottom
-					button_name: '鏂板',
+					button_name: this.translateSys('add2'),
 					master: {
 						cls_id: this.$data.param.clsid, // button=bottom鏃�master鐨刢ls_id
 						//obj_id: ''  // button=bottom鏃�master鐨刼bj_id
@@ -1936,26 +2075,31 @@
 					if (success.err_code == 0) {
 						var data = success.result;
 						if (data.ret != 0) {
-							var tip = data.err_info ? typeof data.err_info == 'string' ? data.err_info : data
+							var tip = data.err_info ? typeof data.err_info == 'string' ? data
+								.err_info :
+								data
 								.err_info.join('<br/>') : '';
 							if (data.ret == 801) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							else uni.showModal({
-								title: this.translateSys('tip') ,
-								content: tip + ',鎻愮ず:' + data.ret,
+								title: this.translateSys('tip'),
+								content: tip + ',' + this.translateSys('tip') + ':' + data
+									.ret,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
 							});
 							return false
 						} else {
-							var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join(
-								'<br/>') : '';
+							var tip = data.info ? typeof data.info == 'string' ? data.info : data
+								.info
+								.join(
+									'<br/>') : '';
 							if (tip) uni.showModal({
-								title: this.translateSys('tip') ,
+								title: this.translateSys('tip'),
 								content: tip,
 								showCancel: false,
 								confirmText: this.translateSys('cancel')
@@ -1973,8 +2117,14 @@
 										if (action.action_type == 'open_panel') {
 											var d = dialog({
 												title: '<i class="ace-icon fa fa-info-circle"></i> ' +
-													this.translateSys('tip') ,
-												content: action.action_type + '姝ction灏氭湭澶勭悊锛�
+													this.translateSys('tip'),
+												content: this.translateSys(
+														"quotation_mark_left") +
+													action
+													.action_type + this.translateSys(
+														"quotation_mark_right") + this
+													.translate(
+														"tip_action_unprocessed")
 											});
 											d.show();
 										} else if (action.action_type == 'open_select_userdlg') {
@@ -1989,13 +2139,16 @@
 												data_attr: data_attr
 											}
 											uni.navigateTo({
-												url: '../selpsn/index?mulit=false&param=' + JSON.stringify(
-													param),
+												url: '../selpsn/index?mulit=false&param=' +
+													JSON
+													.stringify(
+														param),
 												events: {
 													AddPer(data, param) {
 														// console.log(param);
 														console.log(data);
-														var callback_eventid = param.button_callback
+														var callback_eventid = param
+															.button_callback
 															.trim();
 														var info = {
 															eventid: callback_eventid,
@@ -2004,28 +2157,38 @@
 															rclsid: '',
 															robjid: '',
 															userlogin: '',
-															clsid: $this.$data.param.clsid,
+															clsid: $this.$data.param
+																.clsid,
 															objid: "",
 															attr: param.req,
 															inputparameter: data,
 															dataJson: [],
 														}
-														$this.DataObjRunCustomEvent(info, param.data_attr);
+														$this.DataObjRunCustomEvent(info,
+															param
+															.data_attr);
 													}
 												}
 											});
 										} else if (action.action_type == 'open_data_query_dlg') {
 											var d = dialog({
 												title: '<i class="ace-icon fa fa-info-circle"></i> ' +
-													this.translateSys('tip') ,
-												content: action.action_type + '姝ction灏氭湭澶勭悊锛�
+													this.translateSys('tip'),
+												content: this.translateSys(
+														"quotation_mark_left") +
+													action
+													.action_type + this.translateSys(
+														"quotation_mark_right") + this
+													.translate(
+														"tip_action_unprocessed")
 											});
 											d.show();
 										} else if (action.action_type == 'open_common_dlg') {
 											var $this = this;
 											if (val.common_dlg_id == 'check_list') {
 												$this.$data.check_list = val.config;
-												if (val.config.appear_style == 'sideslip') //鍒ゆ柇鏄惁鏄晶婊�+												if (val.config.appear_style ==
+													'sideslip') //鍒ゆ柇鏄惁鏄晶婊� 													$this.$data.popupType = 'right';
 												else
 													$this.$data.popupType = 'center'
@@ -2040,7 +2203,8 @@
 												}
 												$this.$data.popupParam = popupParam;
 											}
-										} else if (action.action_type == 'open_project_query_dlg') {
+										} else if (action.action_type ==
+											'open_project_query_dlg') {
 											//console.log(action.value.select_range);
 											//console.log(action.value.mulit_select);
 											var priRel = '-1';
@@ -2050,7 +2214,8 @@
 												priRel = '1';
 											else if (action.value.select_range == '鎴戝垱寤虹殑')
 												priRel = '2';
-											else if (action.value.select_range == '鎴戝弬涓庣殑' || action.value
+											else if (action.value.select_range == '鎴戝弬涓庣殑' || action
+												.value
 												.select_range == '鎴戝弬鍔犵殑')
 												priRel = '3';
 											else if (action.value.select_range == '鎴戝叧娉ㄧ殑')
@@ -2066,16 +2231,25 @@
 												req: req
 											}
 											uni.navigateTo({
-												url: '../selPrj/index?relation=' + priRel + '&param=' +
+												url: '../selPrj/index?relation=' + priRel +
+													'&param=' +
 													JSON.stringify(param_),
 												events: {
 													AddPer(data, param) {
-														$this.$data.classAttrList[param.index].Attr[param
-															.iindex].Value = data[0].Name;
-														$this.$data.classAttrList[param.index].Attr[param
-																.iindex].ValID = data[0].ID + ';' + data[0]
+														$this.$data.classAttrList[param
+																.index]
+															.Attr[param
+																.iindex].Value = data[0]
 															.Name;
-														var callback_eventid = param.button_callback
+														$this.$data.classAttrList[param
+																.index]
+															.Attr[param
+																.iindex].ValID = data[0]
+															.ID + ';' +
+															data[0]
+															.Name;
+														var callback_eventid = param
+															.button_callback
 															.trim();
 														if (callback_eventid) {
 															var info = {
@@ -2085,13 +2259,15 @@
 																rclsid: "",
 																robjid: "",
 																userlogin: "",
-																clsid: $this.$data.param.clsid,
+																clsid: $this.$data
+																	.param.clsid,
 																objid: "",
 																attr: param.req,
 																dataJson: [],
 															}
 
-															$this.DataObjRunCustomEvent(info);
+															$this.DataObjRunCustomEvent(
+																info);
 														}
 													}
 												}
@@ -2099,8 +2275,14 @@
 										} else {
 											var d = dialog({
 												title: '<i class="ace-icon fa fa-info-circle"></i> ' +
-													this.translateSys('tip') ,
-												content: action.action_type + '姝ction灏氭湭澶勭悊锛�
+													this.translateSys('tip'),
+												content: this.translateSys(
+														"quotation_mark_left") +
+													action
+													.action_type + this.translateSys(
+														"quotation_mark_right") + this
+													.translate(
+														"tip_action_unprocessed")
 											});
 											d.show();
 										}
@@ -2109,7 +2291,7 @@
 							} else {
 								uni.showModal({
 									title: this.translateSys('tip') + "5.2",
-									content: '璋冪敤 before_click_button 鑴氭湰杩斿洖绌猴紝event_id' + eventid,
+									content: this.translate("execute_script_return_empty"),
 									showCancel: false,
 									confirmText: this.translateSys('cancel')
 								});
@@ -2136,7 +2318,7 @@
 
 			formatAttr(attr) {
 				if (utils.classUtils.attrTypeIsObjRefMulti(attr.Type)) //if(ar.Type=='寮曠敤瀵硅薄(澶氫釜)')
-					if (attr.Value == '璇�) ar.Value = '';
+					if (attr.Value == this.translateSys('please')) ar.Value = '';
 				if (utils.classUtils.attrTypeIsUser(attr.Type) || utils.classUtils.attrTypeIsProject(attr
 						.Type)) //if(ar.Type=='寮曠敤浜哄憳' || ar.Type=='寮曠敤椤圭洰')
 					return {

--
Gitblit v1.9.1