完善页面横向互动功能
This commit is contained in:
		
							parent
							
								
									4d126b18ad
								
							
						
					
					
						commit
						775f0109e4
					
				
							
								
								
									
										10
									
								
								页面横向滑动.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								页面横向滑动.js
									
									
									
									
									
								
							| @ -24,6 +24,7 @@ | ||||
|         ], | ||||
|     }], | ||||
|     els: ["title"], | ||||
|     archiveNodeId: 172868,// 归档节点ID
 | ||||
| } | ||||
| curStepFieldId为当前步骤字段id | ||||
| cols为表格有效范围内的列数 | ||||
| @ -54,7 +55,7 @@ function pageLateralSlider(sld_obj) { | ||||
|     Object.assign(sld_obj, { | ||||
|         currentnode: true, | ||||
|     }); | ||||
|     if (WfForm.getGlobalStore().commonParam.currentnodeid != WfForm.getGlobalStore().commonParam.nodeid && WfForm.getGlobalStore().commonParam.currentnodeid != undefined) { | ||||
|     if (WfForm.getGlobalStore().commonParam.currentnodeid != undefined && (WfForm.getGlobalStore().commonParam.currentnodeid == sld_obj.archiveNodeId || WfForm.getGlobalStore().commonParam.currentnodeid != WfForm.getGlobalStore().commonParam.nodeid)) { | ||||
|         sld_obj.currentnode = false; | ||||
|     } | ||||
|     var steps = sld_obj.vars.length; | ||||
| @ -90,6 +91,9 @@ function pageLateralSlider(sld_obj) { | ||||
|             document.getElementsByClassName("wf-req-top-button")[0].parentNode.parentNode.id = "submitBtn"; | ||||
|             $(".ant-menu-vertical>.ant-menu-item:nth-of-type(1)").css("cssText", "display:none !important;"); | ||||
|             $("#submitBtn").css("cssText", "display:none !important;"); | ||||
|         } else { | ||||
|             $(".ant-menu-vertical>.ant-menu-item:nth-of-type(1)").css("cssText", "display:list-item !important;"); | ||||
|             $(".ant-col-xs-18>div>span:nth-of-type(1)").css("cssText", "display:inline-block !important;"); | ||||
|         } | ||||
|         //自适应列宽            
 | ||||
|         const screen_width = $(".wf-req-form")[0].offsetWidth; | ||||
| @ -298,7 +302,7 @@ function showEmptyRequiredField(serf_obj) { | ||||
|     let serf_arr = serf_obj.vars[serf_obj.curStep].tab_required_info; | ||||
|     for (let e of serf_arr) { | ||||
|         for (let me of e.main_feild) { | ||||
|             if (WfForm.getFieldValue(me) == "") { | ||||
|             if (WfForm.getFieldValue(me) == "" && WfForm.getFieldCurViewAttr(me) == 3) { | ||||
|                 $(`.myprom`).remove(); | ||||
|                 showPrompt(me, "必填字段不能空!", e.tabid); | ||||
|                 checkPrompt(); | ||||
| @ -319,7 +323,7 @@ function showEmptyRequiredField(serf_obj) { | ||||
|                 let detRows_arr = detRows_str.split(","); | ||||
|                 for (let rowI of detRows_arr) { | ||||
|                     for (let de_f of de.field_id) { | ||||
|                         if (WfForm.getFieldValue(de_f + "_" + rowI) == "") { | ||||
|                         if (WfForm.getFieldValue(de_f + "_" + rowI) == "" && WfForm.getFieldCurViewAttr(de_f + "_" + rowI) == 3) { | ||||
|                             $(`.myprom`).remove(); | ||||
|                             showPrompt(de_f, "必填字段不能空!", e.tabid, rowI); | ||||
|                             checkPrompt(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user