优化代码
This commit is contained in:
		
							parent
							
								
									de4a2d76a6
								
							
						
					
					
						commit
						7eb7bc216b
					
				| 
						 | 
					@ -18,6 +18,9 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
 | 
				
			||||||
        FormShowParameter formShowParameter = this.getView().getFormShowParameter();
 | 
					        FormShowParameter formShowParameter = this.getView().getFormShowParameter();
 | 
				
			||||||
        Map<String, Object> customParams = formShowParameter.getCustomParams();
 | 
					        Map<String, Object> customParams = formShowParameter.getCustomParams();
 | 
				
			||||||
        Object contractType = customParams.get("contractType");
 | 
					        Object contractType = customParams.get("contractType");
 | 
				
			||||||
 | 
					        String firstOpen = this.getPageCache().get("firstOpen");
 | 
				
			||||||
 | 
					        if (firstOpen != null) {
 | 
				
			||||||
 | 
					            this.getPageCache().put("firstOpen", "false");
 | 
				
			||||||
            if (contractType != null) {
 | 
					            if (contractType != null) {
 | 
				
			||||||
                if (contractType.toString().equals("wzcg")) {//物资采购
 | 
					                if (contractType.toString().equals("wzcg")) {//物资采购
 | 
				
			||||||
                    this.getView().setVisible(true, new String[]{"flexpanelmaterial"});
 | 
					                    this.getView().setVisible(true, new String[]{"flexpanelmaterial"});
 | 
				
			||||||
| 
						 | 
					@ -36,6 +39,8 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
 | 
				
			||||||
                    this.afterSelectedTag("turnover");
 | 
					                    this.afterSelectedTag("turnover");
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        System.out.println();
 | 
					        System.out.println();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue