From 6584848d00acd83de64f813fb5b03e8fb4b42773 Mon Sep 17 00:00:00 2001
From: jt <jt@activesoft.com.cn>
Date: 星期四, 21 三月 2024 16:12:46 +0800
Subject: [PATCH] 1.Mobox2的3018新增元数据方法迁移到PDAController里,并支持登录sessionid时间过期后自动登录 2.3200功能点增加set_panel_html action处理 3.调整3018功能点Set_dlg_attr action处理

---
 pages/modal/3037_2.vue |   79 +++++++++++++++++++++++++++++++++------
 1 files changed, 66 insertions(+), 13 deletions(-)

diff --git a/pages/modal/3037_2.vue b/pages/modal/3037_2.vue
index fefa09e..020247b 100644
--- a/pages/modal/3037_2.vue
+++ b/pages/modal/3037_2.vue
@@ -1381,22 +1381,54 @@
 										if (result[i].choice_list) {
 										for (var c = 0; c < $this.head_styledef.form.items.length; c++) {
 											var attr = $this.head_styledef.form.items[c];
-											if(attr.fieldId==result[i].attr){
-												var dictItemList=[];
-												for(var d in result[i].choice_list){
-													var val =result[i].choice_list[d];
-													dictItemList.push({"CN_S_NAME":val,"CN_S_VALUE":val,"text":val,"value":val});
-												}
-												attr.dict = dictItemList;
+											if(attr.name!='Layout'){
+											  if(attr.fieldId==result[i].attr){
+											  	var dictItemList=[];
+											  	for(var d in result[i].choice_list){
+											  		var val =result[i].choice_list[d];
+											  		dictItemList.push({"CN_S_NAME":val,"CN_S_VALUE":val,"text":val,"value":val});
+											  	}
+											  	attr.dict = dictItemList;
+											  }
+											} else if(attr.name=='Layout'){
+											  attr.setting.colList.forEach(col=>{
+											    if(col){
+											      if(col.fieldId==result[i].attr){
+											      	var dictItemList=[];
+											      	for(var d in result[i].choice_list){
+											      		var val =result[i].choice_list[d];
+											      		dictItemList.push({"CN_S_NAME":val,"CN_S_VALUE":val,"text":val,"value":val});
+											      	}
+											      	col.dict = dictItemList;
+											      }
+											    }
+											  });
 											}
 										}
 									}
 									for (var c = 0; c < $this.$data.head_styledef.form.items.length; c++) {
 										var attr = $this.$data.head_styledef.form.items[c];
 										// console.log(attr[j].Name+'=='+result[i].attr);
-										if(attr.fieldId==result[i].attr){
-											attr.value = result[i].value;
-											$this.head_styledef.form.model[attr.fieldId] =result[i].value;
+										if(attr.name!='Layout'){
+										  if(attr.fieldId==result[i].attr){
+										  	attr.value = '';
+										  	attr.oldvalue = '';
+										  	attr.value = result[i].value;
+										  	attr.oldvalue = result[i].value;
+										  	$this.head_styledef.form.model[attr.fieldId] =result[i].value;
+										  }
+										} else if(attr.name=='Layout'){
+										  attr.setting.colList.forEach(col=>{
+										    if(col){
+										      if(col.fieldId==result[i].attr){
+										      	col.value = '';
+										      	col.oldvalue = '';
+										      	col.value = result[i].value;
+										      	col.oldvalue = result[i].value;
+										      	$this.head_styledef.form.model[col.fieldId] =result[i].value;
+										      }
+										    }
+										  });
 										}
 										
 									}
@@ -1426,9 +1458,26 @@
 						for (var i = 0; i < result.length; i++) {
 							for (var c = 0; c < $this.$data.head_styledef.form.items.length; c++) {
 								var attr = $this.$data.head_styledef.form.items[c];
-								if(attr.fieldId==result[i].attr){
-									attr.value = result[i].value;
-									$this.head_styledef.form.model[attr.fieldId] =result[i].value;
+								if(attr.name!='Layout'){
+								  if(attr.fieldId==result[i].attr){
+								  	attr.value = '';
+								  	attr.oldvalue = '';
+								  	attr.value = result[i].value;
+								  	attr.oldvalue = result[i].value;
+								  	$this.head_styledef.form.model[attr.fieldId] =result[i].value;
+								  }
+								} else if(attr.name=='Layout'){
+								  attr.setting.colList.forEach(col=>{
+								    if(col){
+								      if(col.fieldId==result[i].attr){
+								      	col.value = '';
+								      	col.oldvalue = '';
+								      	col.value = result[i].value;
+								      	col.oldvalue = result[i].value;
+								      	$this.head_styledef.form.model[col.fieldId] =result[i].value;
+								      }
+								    }
+								  });
 								}
 								
 							}
@@ -1567,6 +1616,10 @@
 												console.log(attr[j].Name+'=='+result[i].attr);
 												if(attr[j].Name==result[i].attr){
 													attr[j].Value = result[i].value;
+													// attr.value = '';
+													// attr.oldvalue = '';
+													// attr.value = result[i].value;
+													// attr.oldvalue = result[i].value;
 												}
 											}
 										}

--
Gitblit v1.9.1