From dcfa09f5bac5a96f342429fec26d84132d556b54 Mon Sep 17 00:00:00 2001
From: jt <jt@activesoft.com.cn>
Date: 星期四, 07 三月 2024 13:58:33 +0800
Subject: [PATCH] 5602/5600功能点action处理改进

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

diff --git a/pages/modal/5600.vue b/pages/modal/5600.vue
index f210b9a..640eeda 100644
--- a/pages/modal/5600.vue
+++ b/pages/modal/5600.vue
@@ -1,4 +1,7 @@
 <style>
+.v-headStyle:first-child{
+	margin-top: 15rpx;
+}
 .v-headStyle .txt_title{
   font-size: 34rpx;
   text-align: right;
@@ -62,7 +65,7 @@
     background-color:#EAFED9;
     padding: 20rpx 20rpx 4rpx 0px;
     border-radius: 12rpx;
-    margin-bottom: 20rpx;
+    margin: 10rpx 0 20rpx 0;
 	text-align: right;
 	/* border: 1px solid red; */
 }
@@ -451,6 +454,7 @@
   onLoad(options) {
 	// console.log(options);
 	uni.setNavigationBarTitle({ title: options.titlename}); //璁剧疆椤堕儴鏍囬 
+	this.$data.title = options.titlename;
 	this.$data.param = JSON.parse(options.param);
 	// console.log(this.$data.param);
 	 //鑾峰彇鏁版嵁绫荤殑鑷畾涔夎〃鍗曞弬鏁�@@ -661,7 +665,7 @@
 			  var $this = this;
 			  var dataInfo={
 	            ed_type: 0,
-				start_transaction: '',
+				start_transaction: true,
 	            class_id: this.$data.head_styledef.form.clsId,
 				class_name: '',
 	            event_id: event.id,
@@ -686,7 +690,7 @@
 					    var tip = result.err_info ? typeof result.err_info == 'string' ? result.err_info : result.err_info.join('<br/>') : '';
 					    if (result.ret == 801) uni.showModal({title:'鎻愮ず',content:tip,showCancel:false,confirmText:"鍙栨秷"});
 					    else uni.showModal({title:'鎻愮ず',content:tip+',鎻愮ず:'+result.ret,showCancel:false,confirmText:"鍙栨秷"});
-						return false
+						return false;
 					}else{
 						var tip = result.info ? typeof result.info == 'string' ? result.info : result.info.join('<br/>') : '';
 						if (tip) uni.showModal({title:'鎻愮ず',content:tip,showCancel:false,confirmText:"鍙栨秷"});
@@ -701,21 +705,16 @@
 								else if(item.action_type == "set_subtable_page_content"){  //宸茬爜鐩� 									$this.$data.param.Show_Welcom_Page=false;
 									var value = item.value;
-									if(value.clear == true && $this.$data.detail1StyleDefList.length>0){ //鍒ゆ柇鏄惁娓呯┖椤电鍐呭,姝e湪鐮佺洏鏄惁鏈夋暟鎹�+									if(value.clear == true && $this.$data.detail1StyleDefList.length>0 && value.page_name == $this.$data.param.Sub_Page[0].Name){ //鍒ゆ柇鏄惁娓呯┖椤电鍐呭,姝e湪鐮佺洏鏄惁鏈夋暟鎹� 										uni.showModal({
 											title: '鎻愮ず',
 											content: '绯荤粺妫�祴鍒版湁姝e湪鐮佺洏涓殑璐у搧锛岀户缁搷浣滀細娓呯┖锛屾槸鍚︾户缁紵',
 											success: function (res) {
 												if (res.confirm) {
 												  $this.$data.detail1StyleDefList=[];
-												  $this.$data.detail2StyleDefList=[];
 												  $this.viewAceionContent(value);
 												} else if (res.cancel) {
-												  if(value.page_name == $this.$data.param.Sub_Page[0].Name){ //鍒ゆ柇杩斿洖鐨刟ction鐨刾age_name鏄惁鏄緟鍒嗘嫞
-													$this.$data.detail1StyleDefList=[];
-												  }else{
-													$this.$data.detail2StyleDefList=[];
-												  }
+												  $this.$data.detail1StyleDefList=[];
 												  $this.viewAceionContent(value);
 												}
 											}
@@ -1129,7 +1128,7 @@
 				    var tip = result.err_info ? typeof result.err_info == 'string' ? result.err_info : result.err_info.join('<br/>') : '';
 				    if (result.ret == 801) uni.showModal({title:'鎻愮ず',content:tip,showCancel:false,confirmText:"鍙栨秷"});
 				    else uni.showModal({title:'鎻愮ず',content:tip+',鎻愮ず:'+result.ret,showCancel:false,confirmText:"鍙栨秷"});
-					return false
+					return false;
 				}else{
 					var tip = result.info ? typeof result.info == 'string' ? result.info : result.info.join('<br/>') : '';
 					if (tip) uni.showModal({title:'鎻愮ず',content:tip,showCancel:false,confirmText:"鍙栨秷"});
@@ -1158,6 +1157,20 @@
 							});
 							// this.detail2StyleDefList=[];
 							uni.showModal({title:"鎻愮ず",content:"鐮佺洏鎴愬姛",showCancel:false,confirmText:"鍙栨秷"});
+						 //  } else if(item.action_type == "refresh"){  //鍒锋柊
+						 //    var value = item.value;
+							// //鍒锋柊褰撳墠椤甸潰
+							// // location.reload();
+							// uni.redirectTo({
+							// 	url:'../modal/5600?param='+JSON.stringify(this.$data.param)+"&titlename="+this.$data.title
+							// });
+						 //  } else if(item.action_type == "prompt"){  //鎵撳紑绯荤粺鎻愮ず寮规
+						 //    var value = '';
+							// item.value.forEach(ele=>{
+							// 	if(value) value+='\n';
+							// 	value+=ele;
+							// });
+							// uni.showModal({title:"绯荤粺鎻愮ず",content:value,showCancel:false,confirmText:"鍏抽棴"});
 						  }
 						});
 					  }else{

--
Gitblit v1.9.1