Explorar el Código

修复env/objList.jsp列表没tag选项就报错

Ben hace 1 día
padre
commit
8a12993620
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      page/env/objList.jsp

+ 8 - 2
page/env/objList.jsp

@@ -305,6 +305,7 @@
 										showTitle:"${button.showTitle}"
 									});
 								}
+								<%-- 实际没用上,注释掉 Ben(20251225)
 								window.ss.dom.btnElemConfig.${button.id}={
 									desc:"${button.buttonName}",
 									id:"${button.id}",
@@ -313,6 +314,7 @@
 										wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${button.service}' dest='${button.dest}' parm='${button.param}'/>",title:"${button.title}",width:"${button.width}",height:"${button.height}",minHeight:"${button.minHeight}",maxHeight:"${button.maxHeight+100}",showTitle:"${button.showTitle}"});
 									}
 								};
+								--%>
 							</script>
 							<ss-search-button
 								text="${button.buttonName}"
@@ -356,11 +358,14 @@
 								function ${button.id}handleClick() {
 									wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${plugin.service}' dest='${plugin.dest}' parm='${plugin.param}'/>",title:"${plugin.title}",width:"${plugin.width}",height:"${plugin.height}",minHeight:"${plugin.minHeight}",maxHeight:"${plugin.maxHeight}",showTitle:"${plugin.showTitle}"});
 								}
+
+								<%-- 实际没用上,注释掉 Ben(20251225)
 								window.ss.dom.btnElemConfig.${button.id}={id:"${button.id}",dropOptions:[],
 									onclick: () => {
 										wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${plugin.service}' dest='${plugin.dest}' parm='${plugin.param}'/>",title:"${plugin.title}",width:"${plugin.width}",height:"${plugin.height}",minHeight:"${plugin.minHeight}",maxHeight:"${plugin.maxHeight}",showTitle:"${plugin.showTitle}"});
 									}
 								};
+							--%>
 
 								<%-- 循环生成按钮数组 --%>
 								<ss:rpt name='${button.pluginList}' id='plugin'>
@@ -836,8 +841,9 @@ wd.display.initGrowHigh('lmms${item2.bgmbid}','80px',{},null,false);
 				</ss:equal>
 
 				<%-- 列表底部的对象标签组 --%>
+					item.tags=[];<%-- 提到条件外面 Ben(20251230) --%>
 				<ss:equal val='${empty item.first || empty item.third}' val2='false'>
-					item.tags=[];
+					<%--item.tags=[]; 提到条件外面,不然列表报 Mount failed:TypeError: Cannot read properties of undefined (reading 'map') Ben(20251230) --%>
 					<ss:rpt name='${item.third}' id='itemList'>
 							<ss:rpt name='${itemList}' id='item2'>
 					{
@@ -959,7 +965,7 @@ wd.display.initGrowHigh('lmms${item2.bgmbid}','80px',{},null,false);
 		systemType: window.ss.dom.TYPE,
 	    listConfig:window.ss.dom.listConfig,
 		formElemConfig:window.ss.dom.formElemConfig,
-		btnElemConfig:window.ss.dom.btnElemConfig,
+		<%-- 实际没用上,注释掉 Ben(20251225) btnElemConfig:window.ss.dom.btnElemConfig, --%>
 		
 		searchButtonConfigCheckId:'${management}',
 		searchButtonConfig:[