Эх сурвалжийг харах

重构: 追平页面编译器与通用表单运行时

1. 同步 CompPage、PageCompU/PageCompC 及 ButtonTagComper 等发布链路,补齐 ssInp、宽度继承、按钮标签、编辑器属性兼容和日期/图片类型常量映射。

2. 合并 objList/objInp/cobjList 及前端运行时改造,补上细分页下拉切换、objectPicker/objp 兼容、Vue 表单初始化、CMS 编辑页与通用样式脚本支持。

3. 验证:已完成暂存差异复核;未执行完整编译与自动化测试,本次作为当前底层迁移状态基线提交。
“gaohp” 4 сар өмнө
parent
commit
e4d4806600
47 өөрчлөгдсөн 14318 нэмэгдсэн , 11780 устгасан
  1. 15 2
      src/core/cfg/CfgLoader.java
  2. 9 0
      src/core/cfg/impl/CbLoader.java
  3. 19 15
      src/core/cfg/impl/CcpLoader.java
  4. 6 2
      src/core/cfg/impl/ExtBizLoader.java
  5. 30 6
      src/core/page/PageCompC.java
  6. 304 93
      src/core/page/PageCompU.java
  7. 120 34
      src/core/page/PageComper.java
  8. 162 0
      src/core/page/impl/ButtonTagComper.java
  9. 7 3
      src/core/page/impl/CmsTagComper.java
  10. 4 2
      src/core/page/impl/DatepTagComper.java
  11. 60 10
      src/core/page/impl/EditorTagComper.java
  12. 29 0
      src/core/page/impl/GrowhTagComper.java
  13. 32 8
      src/core/page/impl/InperTagComper.java
  14. 6 1
      src/core/page/impl/ObjpTagComper.java
  15. 23 0
      src/core/page/impl/OnoffInputComper.java
  16. 1 0
      src/ss/cb/CbB.java
  17. 26 0
      src/ss/cb/CbU.java
  18. 7 3
      src/ss/ccp/CcpFieldB.java
  19. 1 0
      src/ss/cms/CmsC.java
  20. 9 5
      src/ss/obj/ObjU.java
  21. 68 1
      src/ss/objp/ObjpResultB.java
  22. 1 1
      src/ss/objp/ObjpServ.java
  23. 1 0
      src/ss/search/SearchServ.java
  24. 5 0
      src/ss/skin/SkinC.java
  25. 0 0
      web/CompPage.jsp
  26. 33 0
      web/js/load.js
  27. 117 4
      web/js/mp_utils/navigation.js
  28. 11 3
      web/js/validate/validation-manager.js
  29. 40 9
      web/js/vue/initVue.js
  30. 12624 11320
      web/js/vue/ss-components.js
  31. 4 4
      web/page/env/addChk.jsp
  32. 6 6
      web/page/env/addSure.jsp
  33. 4 4
      web/page/env/chgChkTab.jsp
  34. 89 0
      web/page/env/cmsAdd.jsp
  35. 182 0
      web/page/env/cmsEdit.jsp
  36. 9 5
      web/page/env/cmsHome.ss.jsp
  37. 2 2
      web/page/env/cobjChg.ss.jsp
  38. 18 185
      web/page/env/cobjList.jsp
  39. 51 26
      web/page/env/objInp.jsp
  40. 43 6
      web/page/env/objList.jsp
  41. 0 0
      web/page/env/pwdEdit.ss.jsp
  42. 31 0
      web/page/mp/mp_cobjList.html
  43. 31 3
      web/page/mp/mp_objList.html
  44. 28 5
      web/page/objList.jsp
  45. 34 6
      web/skin/easy/css/base.css
  46. 2 2
      web/ss/js/display.js
  47. 14 4
      web/ss/js/objectPicker.js

+ 15 - 2
src/core/cfg/CfgLoader.java

@@ -587,7 +587,7 @@ public class CfgLoader {
 */
 /* 再改用 biz.xml(AppB.bizMap),PMS 自己的业务,不写在 P项目业务 表里 -- 原 P环境业务 表里,P项目ID 字段值 = null 代表 PMS 自己的业务。Lin
 			List<String> bizList = PmsU.selBizList(null, null);
-*/			List<String> bizList = AppB.bizMap.keySet().stream().toList();
+*/			List<String> bizList = rdBizList(xmlFileList);
 ///
 
 /// 增加,加载 xxx.obj.def.xml。Lin
@@ -820,6 +820,19 @@ public class CfgLoader {
 				.map(bean->bean.doc).collect(Collectors.toList());
 	}
 
+	// 先按当前源码重建 biz.xml,避免业务配置仍被旧的 AppB.bizMap 过滤。Lin
+	private List<String> rdBizList(List<CfgFileB> xmlFileList) throws Exception {
+		BizLoader loader = new BizLoader();
+		loader.cfgLoader = this;
+		loader.clear();
+
+		for (Document doc : findDoc(xmlFileList, loader.rdRootName())) {
+			loader.load(doc, List.of());
+		}
+
+		return new ArrayList<>(bizMap.keySet());
+	}
+
 
 /* 去掉 WebApp 入口参数,不支持多个应用。Lin
  * 去掉检查 Root Name,XmlLoader.load() 里已有检查。Lin
@@ -923,4 +936,4 @@ public class CfgLoader {
 		return READER.read(file);
 	}
 
-}
+}

+ 9 - 0
src/core/cfg/impl/CbLoader.java

@@ -289,6 +289,15 @@ public class CbLoader extends XmlLoader {
 				bean.transCfg = valStr.trim() +"Map";	// "bpm" > "bpmMap"。Lin
 ///
 
+/// 再增加,增加 <cb serv="rxnd" transServ="transRxnd"。Lin
+			valStr = cbE.attributeValue("transServ");
+			if (StringUtils.isNotBlank(valStr)) {
+				bean.transServ = ServU.rdServB(valStr, cfgLoader.servMap);
+				if (bean.transServ == null)
+					SsLog.log("XXXXXXXX cb.xml transServ= 没找到: "+ bean.name);
+			}
+///
+
 /// 再增加,增加 <cb sql= transSql="this" -- 支持跨表翻译码本。Lin
  // 只支持 "this"
 			valStr = cbE.attributeValue("transSql");

+ 19 - 15
src/core/cfg/impl/CcpLoader.java

@@ -1,5 +1,6 @@
 package core.cfg.impl;
 
+import java.util.Iterator;
 import java.util.List;
 import org.dom4j.Document;
 import org.dom4j.Element;
@@ -180,9 +181,13 @@ public class CcpLoader extends XmlLoader {
 */
 					CcpFieldB field = new CcpFieldB();
 					field.name = eSelect.attributeValue("name");
+/* 再去掉,共用 ObjFieldB 的。Lin
+					field.desc = eSelect.attributeValue("desc");	// 再增加,用于显示在下拉选择框里 -- 不需要加 playDesc。Lin
+*/
 					field.cbName = eSelect.attributeValue("cb");
-					field.sql = eSelect.attributeValue("sql");
-					field.inpable = rdBoolAtr(eSelect, "inp", false);	// , "input",。Lin
+//					field.sql = eSelect.attributeValue("sql");	// 再去掉,没用到 -- 统一用 cb= 了。Lin
+					field.inpable = super.rdBoolAtr(eSelect, "inp", false);	// , "input",。Lin
+					field.width = super.rdIntAtr(eSelect, "width", 0);	// 再增加,对单个字段的 ccp,需要在这写。Lin
 
 /* 改回 List<>。Lin
 					combField.fieldMap.put(field.name, field);
@@ -210,28 +215,25 @@ public class CcpLoader extends XmlLoader {
 			}
 
 			// 记录节点信息
+/* 再去掉,共用 CcpB.combField.fieldList(List<CcpFieldB>) 里的 CcpFieldB.name。Lin
 //			Map<Integer, String> temMap = new HashMap<>();	// 直接写到 bean.fieldNameMap。Lin
 			List<Node> l = element.selectNodes(".//field");	// ".//input"。Lin
 			Integer iterNum = 0;
-/* 再改,IDEA:'for' loop can be replaced with enhanced 'for'。Lin
-			for (Iterator<Node> ir = l.iterator(); ir.hasNext();) {
-				Element n = (Element) ir.next();
-				// System.out.println("BBBBBBBB:"+n.attributeValue("name"));
+///// * 再改,IDEA:'for' loop can be replaced with enhanced 'for'。Lin
+   //		for (Iterator<Node> ir = l.iterator(); ir.hasNext();) {
+   //			Element n = (Element) ir.next();
+   //			// System.out.println("BBBBBBBB:"+n.attributeValue("name"));
 /// * 直接写到 bean.fieldNameMap。Lin
  //				temMap.put(iterNum, n.attributeValue("name"));
 /// *
-				bean.fieldNameMap.put(iterNum, n.attributeValue("name"));
-				iterNum++;
-			}
-*/
+   //			bean.fieldNameMap.put(iterNum, n.attributeValue("name"));
+   //			iterNum++;
+   //		}
+///// *
             for (Node node : l) {
                 Element n = (Element) node;
-                // System.out.println("BBBBBBBB:"+n.attributeValue("name"));
-/// * 直接写到 bean.fieldNameMap。Lin
-                //				temMap.put(iterNum, n.attributeValue("name"));
-/// *
                 bean.fieldNameMap.put(iterNum, n.attributeValue("name"));
-                iterNum++;
+                iterNum ++;
             }
 
 //			bean.fieldNameMap = temMap;	// 直接写到 bean.fieldNameMap。Lin
@@ -239,6 +241,7 @@ public class CcpLoader extends XmlLoader {
 			// for(Map.Entry<Integer, String> entry:temMap.entrySet()){
 			// System.out.println("!!!!!: "+entry.getKey()+"---"+entry.getValue());
 			// }
+*/
 
 /* 去掉,只是为了显示。Lin
  * 另,(Map.Entry<String, CascadingSelectObject>) i.next() 转换不了,
@@ -264,6 +267,7 @@ public class CcpLoader extends XmlLoader {
 			cfgLoader.ccpMap.put(bean.name, bean);
 /////
 		}
+
 		return true;
 	}
 

+ 6 - 2
src/core/cfg/impl/ExtBizLoader.java

@@ -1,5 +1,8 @@
 package core.cfg.impl;
 
+import java.util.Collections;
+import java.util.Map;
+
 import com.google.gson.JsonArray;
 import com.google.gson.JsonElement;
 import com.google.gson.JsonParser;
@@ -34,6 +37,7 @@ public class ExtBizLoader extends XmlLoader {
 		Element root = doc.getRootElement();
 		if (root == null)
 			return false;
+		Map<String, ObjB> objMap = (AppB.objMap == null) ? Collections.emptyMap() : AppB.objMap;
 
 /// 再增加 <extBizs obj="lf" handler="jfryid" child="lfsxry"。Lin
  //    <extBiz 里的优先于 <extBizs 里的
@@ -41,7 +45,7 @@ public class ExtBizLoader extends XmlLoader {
 		String valStr = root.attributeValue("obj");
 		if (StringUtils.isNotBlank(valStr)) {
 			valStr = valStr.trim();
-			rootObj = AppB.objMap.get(valStr);
+			rootObj = objMap.get(valStr);
 			if (rootObj == null)
 				SsLog.log("XXXXXXXX .biz.ext.xml,<extBizs obj= 对象名不存在:"+ valStr);
 		}
@@ -100,7 +104,7 @@ public class ExtBizLoader extends XmlLoader {
 				}
 			} else {
 				valStr = valStr.trim();
-				obj = AppB.objMap.get(valStr);
+				obj = objMap.get(valStr);
 				if (obj == null)
 					SsLog.log("XXXXXXXX .biz.ext.xml,<extBiz obj= 对象名不存在:"+ valStr);
 				else

+ 30 - 6
src/core/page/PageCompC.java

@@ -32,11 +32,11 @@ public class PageCompC {
 	public static final String FORM_PLUGIN_JS_TYPE_hiden = "window.ss.dom.TYPE.HIDDEN";//隐藏字段 add by Ben(20260413)
 	public static final String FORM_PLUGIN_JS_TYPE_input = "window.ss.dom.TYPE.INPUT";//文本框
 	public static final String FORM_PLUGIN_JS_TYPE_objp = "window.ss.dom.TYPE.OBJP";//下拉菜单
-	public static final String FORM_PLUGIN_JS_TYPE_date = "window.ss.dom.TYPE.INPUT.DATE";//日期录入
-	public static final String FORM_PLUGIN_JS_TYPE_time = "window.ss.dom.TYPE.INPUT.TIME";//时间录入
+	public static final String FORM_PLUGIN_JS_TYPE_date = "window.ss.dom.TYPE.DATE";//日期录入
+	public static final String FORM_PLUGIN_JS_TYPE_time = "window.ss.dom.TYPE.TIME";//时间录入
 	public static final String FORM_PLUGIN_JS_TYPE_datetime= "window.ss.dom.TYPE.DATETIME";//日期时间录入
 	public static final String FORM_PLUGIN_JS_TYPE_onoffbtn = "window.ss.dom.TYPE.ONOFFBTN";//onOffButton
-	public static final String FORM_PLUGIN_JS_TYPE_img = "window.ss.dom.TYPE.INPUT.IMG";//图片上传
+	public static final String FORM_PLUGIN_JS_TYPE_img = "window.ss.dom.TYPE.PIC";//图片上传
 	public static final String FORM_PLUGIN_JS_TYPE_html = "window.ss.dom.TYPE.HTML";//富文本录入
 	public static final String FORM_PLUGIN_JS_TYPE_ccpsingle = "window.ss.dom.TYPE.CCPSINGLE";//一组级联菜单+一个隐藏字段,只对应一个对象属性,带编码规则的。如:省、市、县,对应一个地区码属性
 	public static final String FORM_PLUGIN_JS_TYPE_ccpmutiple = "window.ss.dom.TYPE.CCPMUTIPLE";//由几个对象属性,对应一组级联菜单。如:
@@ -65,7 +65,8 @@ public class PageCompC {
 	public static final String TAG_ATTR_name = "name";
 	public static final String TAG_ATTR_placeholder = "placeholder";
 	public static final String TAG_ATTR_fmt = "fmt";
-	public static final String TAG_ATTR_type = "type";
+	public static final String TAG_ATTR_type = "type";	// 兼容旧的发布器调用。Lin
+	public static final String VUE_ATTR_type = "type";	// TAG_ATTR_type =。改为 VUE_xxx,以免混淆。Lin
 	public static final String TAG_ATTR_downloadUrl = "dl-url";
 	public static final String TAG_ATTR_uploadUrl = "ul-url";
 	public static final String TAG_ATTR_url = "url";
@@ -75,7 +76,14 @@ public class PageCompC {
 	public static final String TAG_ATTR_filter = ":filter";
 	public static final String TAG_ATTR_filterField = "filterField";// add by Ben(20260313)
 	public static final String TAG_ATTR_null = ":null";
+/* 再改,<input inp="true" 改为 ssInp=。Lin
+ *    增加 TAG_ATTR_inp = "ssInp",原 TAG_ATTR_inp = ":inp" 改为 VUE_ATTR_inp =。Lin
+ * 同时,
 	public static final String TAG_ATTR_inp = ":inp";	//从"inp"改为":inp"。Ben(20251202)
+*/
+	public static final String TAG_ATTR_inp = "ssInp";	// <input inp="true" 改为 ssInp=。Lin
+	public static final String VUE_ATTR_inp = ":inp";	//从"inp"改为":inp"。Ben(20251202)
+
 	public static final String TAG_ATTR_cb = "cb";
 	public static final String TAG_ATTR_rule = "rule";
 	public static final String TAG_ATTR_mode = "mode";
@@ -83,23 +91,39 @@ public class PageCompC {
 	public static final String TAG_ATTR_value = "value";
 	public static final String TAG_ATTR_multiple = ":multiple";
 	public static final String TAG_ATTR_width = "width";
+	public static final String VUE_ATTR_width = "width";	// 增加 VUE_ATTR_width = "width",分开 TAG_ATTR_width -- 增加支持 <obj 里的 <field width="200"。Lin。Lin
 	public static final String TAG_ATTR_height = "height";
 	public static final String TAG_ATTR_colonHeight = ":height";
 	public static final String TAG_ATTR_style = "style";
 	public static final String TAG_ATTR_class = "class";
 	public static final String TAG_ATTR_id = "id";
 	public static final String TAG_ATTR_html = ":html";//ss-editor富文本编辑器扩展的正文内容属性 Ben(20260408)
-	public static final String TAG_ATTR_htmlName = "htmlName";
-	public static final String TAG_ATTR_storeName = "storeName";
+	public static final String TAG_ATTR_htmlName = "htmlname";
+	public static final String TAG_ATTR_storeName = "storename";
 
 	/* <input ssChg=‘xxx’/> , <objp.ss onChange='xxx'/>,<ss-objp onChange='xxx'/> Ben(20251218) */
+/* 再改,改为与 <input ssChg= 一致的命名。Lin
+ *    <objp.ss chg=、<onoff.ss chg=
+ * <ss-objp 里的 onChange= 不改 -- 增加 VUE_ATTR_onChange = "onChange"
+ *    在 ObjpTagComper.doCompTag( 里,PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_onChange,onChange) 混用了
 	public static final String TAG_ATTR_onChange = "onChange";//从onchg改为onChange Ben(20251218)
+*/
+	public static final String TAG_ATTR_onChange = "chg";
+	public static final String VUE_ATTR_onChange = "onChange";
+
 	public static final String TAG_ATTR_ssChg = "ssChg";
 
 	public static final String TAG_ATTR_onClass = "onClass";
 	public static final String TAG_ATTR_offClass = "offClass";
 
 
+	//按钮类型
+	public static final String TAG_ATTR_text = "text";
+	public static final String TAG_ATTR_onclick = "onclick";	// 这里为 <ss- 里的属性名 -- <btn.ss click=。Lin
+	public static final String TAG_ATTR_iconClass = "icon-class";	// 这里为 <ss- 里的属性名 -- <btn.ss icon=。Lin
+	public static final String TAG_ATTR_checkId = ":check-id";
+	public static final String TAG_ATTR_key = ":key";
+
 
 	//日期录入的类型值
 	public static final String TAG_ATTR_VALUE_date = "date";

+ 304 - 93
src/core/page/PageCompU.java

@@ -22,11 +22,11 @@ import org.apache.logging.log4j.Logger;
 import core.PrjApp;
 
 import ss.AppC;
-import ss.WebC;
 import ss.ccp.CcpB;
 import ss.ccp.CcpFieldB;
 import ss.cmn.file.FileU;
 import ss.cmn.str.StrU;
+import ss.cms.CmsC;
 import ss.db.Db;
 import ss.db.SqlCmd;
 import ss.obj.ObjB;
@@ -138,6 +138,8 @@ public class PageCompU {
 		String onChange = null;
 		String placeholder = null;
 
+		ObjFieldB objField = vo.fieldMap.get(name);	// 再增加,增加支持 <obj <field 里的属性。Lin
+
 		Map<String, String> cascadingInpNewAttributeMap = null;
 		if(cascadingTagNewAttribute!=null)
 			cascadingInpNewAttributeMap = cascadingTagNewAttribute.get("inpTag");
@@ -158,7 +160,9 @@ public class PageCompU {
 			widthStr = getAttributeStr(inputproperties, "width");
 			maxHeightStr = getAttributeStr(inputproperties, "maxHeight");
 			valueStr = inputproperties.get("value");
+/* 再改,改为取值 "建筑物"。原为 "placeholder="建筑物"",导致输出到 vue 组件的 placeholder= 为 placeholder="placeholder="建筑物""。Lin
 			placeholderStr = getAttributeStr(inputproperties, "placeholder");
+*/			placeholderStr = inputproperties.get("placeholder");
 
 			classStr = getAttributeStr(inputproperties, "class");
 			styleStr = getAttributeStr(inputproperties, "style");
@@ -197,9 +201,15 @@ public class PageCompU {
 			setTagAttr(sb,PageCompC.TAG_ATTR_rule,ccp.combField.rule);
 
 			List<String> fieldList = new ArrayList<>();
+/* 再去掉,共用 CcpB.combField.fieldList(List<CcpFieldB>) 里的 CcpFieldB.name。Lin
 			for (Integer index : ccp.fieldNameMap.keySet()) {
 				fieldList.add(prfx+ccp.fieldNameMap.get(index));
+*/
+			for (CcpFieldB field : ccp.combField.fieldList) {
+				fieldList.add(prfx + field.name);
+
 			}
+
 			Map<String,List<String>> parmMap = new HashMap<>();
 			parmMap.put("fieldOrd",fieldList);
 
@@ -227,11 +237,15 @@ public class PageCompU {
 			sb.append(PageCompC.LINE_BREAK).append("<ss-ccp");
 			setTagAttr(sb,PageCompC.TAG_ATTR_mode,"1");
 			if(StringUtils.isNotBlank(placeholderStr))
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 						PageCompC.TAG_PLACEHOLDER_PREFIX_select + placeholderStr);
+*/				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholderStr);
 			else if(StringUtils.isNotBlank(placeholder))
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 						PageCompC.TAG_PLACEHOLDER_PREFIX_select + placeholder);
+*/				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholder);
 
 			Map<String,Object> parmMap = new HashMap<>();
 			parmMap.put("name",ccp.name);
@@ -303,11 +317,39 @@ public class PageCompU {
 			sb.append(PageCompC.LINE_BREAK).append("<ss-ccp");
 			setTagAttr(sb,PageCompC.TAG_ATTR_mode,"2");
 			if(StringUtils.isNotBlank(placeholderStr))
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 						PageCompC.TAG_PLACEHOLDER_PREFIX_select + placeholderStr);
+*/				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholderStr);
 			else if(StringUtils.isNotBlank(placeholder))
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 						PageCompC.TAG_PLACEHOLDER_PREFIX_select + placeholder);
+*/				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholder);
+
+/// 再增加,输出 :inp=,SsCcp 支持 inp="true" -- <ccp <combField <field inp="true" 和 <obj <field inp="true"。Lin
+			boolean hasInp = false;
+			String inpStr = inputproperties.get(PageCompC.TAG_ATTR_inp);
+			if (StringUtils.isNotBlank(inpStr) && "true".equals(inpStr)) {	// 有 <input ssInp="true"。Lin
+				hasInp = true;
+			} else {
+				for (CcpB c : ccpList) {
+					for (CcpFieldB cField : c.combField.fieldList) {
+						if (cField.name.equals(name)) {	// 找到 <input name= 对应的 <ccp <combField <field name=。Lin
+							if (cField.inpable)	// 有 <ccp <combField <field inp="true"。Lin
+								hasInp = true;
+							break;
+						}
+					}
+				}
+				if (!hasInp) {	// 没有 <ccp <combField <field inp="true"。Lin
+					if (vo.fieldMap.get(name).inpable)	// 有 <obj <field inp="true"。Lin
+						hasInp = true;
+				}
+			}
+			if (hasInp)
+				setTagAttr(sb, PageCompC.VUE_ATTR_inp, "true");
+///
 
 			Object paramValue = null;
 
@@ -385,6 +427,27 @@ public class PageCompU {
 		} else if (StringUtils.isNotBlank(width)) {
 			setTagAttr(sb,PageCompC.TAG_ATTR_width,width);
 		}
+/// 再增加,支持 <ccp <combField <field width= 和 <obj <field width= -- 对单个字段,需要在 ccp 配置文件里写。Lin
+		else {
+			int cfgWidth = 0;
+			for (CcpB c : ccpList) {
+				for (CcpFieldB cField : c.combField.fieldList) {
+					if ((prfx + cField.name).equals(name)) {	// 找到 <input name= 对应的 <ccp <combField <field name=。Lin
+						if (cField.width != null && cField.width > 0)	// 有 <ccp <combField <field width=。Lin
+							cfgWidth = cField.width;
+						break;
+					}
+				}
+			}
+			if (cfgWidth == 0) {	// 没有 <ccp <combField <field width=。Lin
+				if (objField != null &&	// 对单个字段的 ccp,对象配置文件没有字段 -- sheng、shi、xian。Lin
+						objField.width != null && objField.width > 0)	// 有 <obj <field width=。Lin
+					cfgWidth = objField.width;
+			}
+			if (cfgWidth > 0)
+				setTagAttr(sb, PageCompC.VUE_ATTR_width, cfgWidth +"px");
+		}
+///
 
 		if(StringUtils.isNotBlank(heightStr)&&!componentType.equals(PageCompC.FORM_PLUGIN_JS_TYPE_html)){
 			sb.append(PageCompC.LINE_BREAK).append(heightStr);
@@ -407,11 +470,17 @@ public class PageCompU {
 
 		//增加支持onchange事件 <input ssChg=‘xxx’/> Ben(20251218)
 		if(StringUtils.isNotBlank(ssChgStr)){
+/* 再改,改用增加的 VUE_ATTR_onChange = "onChange" -- <ss-objp 里的 onChange= 不改。Lin
+ * 原,混用 PageCompC.TAG_ATTR_onChange,导致 <ss-objp 里的 onChange= 也被改为 chg=
 			sb.append(PageCompC.LINE_BREAK).append(ssChgStr.replace(PageCompC.TAG_ATTR_ssChg,
 					PageCompC.TAG_ATTR_onChange));
+*/			sb.append(PageCompC.LINE_BREAK).append(ssChgStr.replace(PageCompC.TAG_ATTR_ssChg, PageCompC.VUE_ATTR_onChange));
 		}else if(StringUtils.isNotBlank(onChange)){//高级写法 <objp.ss onChange='xxx'/> Ben(20251218)
+/* 再改,改用增加的 VUE_ATTR_onChange = "onChange" -- <ss-objp 里的 onChange= 不改。Lin
+ * 原,混用 PageCompC.TAG_ATTR_onChange,导致 <ss-objp 里的 onChange= 也被改为 chg=
 			setTagAttr(sb, PageCompC.TAG_ATTR_onChange,
 					onChange);
+*/			setTagAttr(sb, PageCompC.VUE_ATTR_onChange, onChange);
 		}
 
 		sb.append(PageCompC.LINE_BREAK).append(">").append(PageCompC.LINE_BREAK).append(closingTag).append(PageCompC.LINE_BREAK);
@@ -483,84 +552,113 @@ public class PageCompU {
 
 	//扩展判断是否 属性名=“{}” 这种json对象格式 end Ben(20260401)
 
-	public static String getEditorStoreNameForInput(Map<String, String> inputproperties, String inputName) {
-		String storeName = inputproperties.get(PageCompC.TAG_ATTR_storeName);
-		return StringUtils.isNotBlank(storeName) ? storeName : inputName;
+	private static String getFirstNonBlank(Map<String, String> attrs, String... keys) {
+		if (attrs == null || keys == null) {
+			return null;
+		}
+		for (String key : keys) {
+			if (StringUtils.isBlank(key)) {
+				continue;
+			}
+			String value = attrs.get(key);
+			if (StringUtils.isNotBlank(value)) {
+				return value;
+			}
+		}
+		return null;
 	}
 
-	public static String getEditorStoreNameForTag(Map<String, String> tagData, String editorName) {
-		String storeName = tagData.get(PageCompC.TAG_ATTR_storeName);
-		if (StringUtils.isNotBlank(storeName))
+	public static String getEditorStoreNameForTag(Map<String, String> tagData, String rawName) {
+		String storeName = getFirstNonBlank(tagData,
+				PageCompC.TAG_ATTR_storeName,
+				"storeName",
+				"storename");
+		if (StringUtils.isNotBlank(storeName)) {
 			return storeName;
-		if (StringUtils.isBlank(editorName))
+		}
+		if (StringUtils.isBlank(rawName)) {
 			return "";
-		return editorName.endsWith("wj") ? editorName : editorName + "wj";
+		}
+		return rawName.endsWith("wj") ? rawName : rawName + "wj";
 	}
 
-	public static String getEditorHtmlInputName(Map<String, String> attrs, String storeName, String fallbackName) {
-		String htmlName = attrs.get(PageCompC.TAG_ATTR_htmlName);
-		if (StringUtils.isNotBlank(htmlName))
+	public static String getEditorHtmlInputName(Map<String, String> attrs, String storeName, String rawName) {
+		String htmlName = getFirstNonBlank(attrs,
+				PageCompC.TAG_ATTR_htmlName,
+				"htmlName",
+				"htmlname");
+		if (StringUtils.isNotBlank(htmlName)) {
 			return htmlName;
+		}
 
 		String baseName = null;
-		if (StringUtils.isNotBlank(storeName) && storeName.endsWith("wj") && storeName.length() > 2) {
-			baseName = storeName.substring(0, storeName.length() - 2);
-		} else if (StringUtils.isNotBlank(fallbackName)) {
-			baseName = fallbackName.endsWith("wj") && fallbackName.length() > 2
-					? fallbackName.substring(0, fallbackName.length() - 2)
-					: fallbackName;
-		}
-		return StringUtils.isNotBlank(baseName) ? baseName + "Edit" : "";
+		if (StringUtils.isNotBlank(storeName)) {
+			baseName = storeName.endsWith("wj") ? storeName.substring(0, storeName.length() - 2) : storeName;
+		} else if (StringUtils.isNotBlank(rawName)) {
+			baseName = rawName.endsWith("wj") ? rawName.substring(0, rawName.length() - 2) : rawName;
+		}
+		if (StringUtils.isBlank(baseName)) {
+			return "";
+		}
+		return baseName + "Edit";
 	}
 
-	public static boolean isAttachmentButtonName(String btnName) {
-		if (StringUtils.isBlank(btnName))
-			return false;
-
-		String normalized = btnName.trim().toLowerCase(Locale.ROOT);
-		return normalized.endsWith("fjid") || "fj".equals(normalized);
+	private static boolean isAttachmentButtonName(String btnName) {
+		return StringUtils.isNotBlank(btnName) && "fjid".equals(btnName.trim());
 	}
 
-	private static void addCmsPlaceholderToButton(Map<String, String> btnMap) {
-		if (btnMap == null || !isAttachmentButtonName(btnMap.get("name")))
+	private static void patchAttachmentButton(Map<String, String> btnMap) {
+		if (btnMap == null) {
 			return;
+		}
+		if (!isAttachmentButtonName(btnMap.get("name"))) {
+			return;
+		}
 		btnMap.put("cmsUpdUrl", "@cmsUpdateUrl@");
 		btnMap.put("cmsAddUrl", "@cmsAddUrl@");
 	}
 
-	public static Object parseButtonConfigWithCms(String buttonJson) {
-		if (StringUtils.isBlank(buttonJson))
+	public static Object parseButtonConfigWithCms(String button) {
+		if (StringUtils.isBlank(button)) {
 			return null;
+		}
 
-		String trimmed = buttonJson.trim();
-		if (trimmed.startsWith("{") && trimmed.endsWith("}")) {
-			Map<String, String> btnMap = new Gson().fromJson(trimmed,
-					new TypeToken<Map<String, String>>(){}.getType());
-			addCmsPlaceholderToButton(btnMap);
-			return btnMap;
-		}
-		if (trimmed.startsWith("[") && trimmed.endsWith("]")) {
-			Type listType = new TypeToken<List<Map<String, String>>>(){}.getType();
-			List<Map<String, String>> btnList = new Gson().fromJson(trimmed, listType);
-			for (Map<String, String> btnMap : btnList) {
-				addCmsPlaceholderToButton(btnMap);
+		String trimmed = button.trim();
+		try {
+			if (trimmed.startsWith("{") && trimmed.endsWith("}")) {
+				Map<String, String> btnMap = new Gson().fromJson(trimmed,
+						new TypeToken<Map<String, String>>() {}.getType());
+				patchAttachmentButton(btnMap);
+				return btnMap;
+			}
+			if (trimmed.startsWith("[") && trimmed.endsWith("]")) {
+				Type listType = new TypeToken<List<Map<String, String>>>() {}.getType();
+				List<Map<String, String>> btnList = new Gson().fromJson(trimmed, listType);
+				if (btnList != null) {
+					for (Map<String, String> btnMap : btnList) {
+						patchAttachmentButton(btnMap);
+					}
+				}
+				return btnList;
 			}
-			return btnList;
+		} catch (Exception e) {
+			log4j.error("PageCompU.parseButtonConfigWithCms( 异常", e);
 		}
 		return null;
 	}
 
 	public static boolean hasAttachmentButton(Object buttonConfig) {
-		if (buttonConfig instanceof Map) {
-			Object btnName = ((Map<?, ?>) buttonConfig).get("name");
-			return isAttachmentButtonName(btnName == null ? null : String.valueOf(btnName));
-		}
-		if (buttonConfig instanceof List) {
-			for (Object item : (List<?>) buttonConfig) {
-				if (item instanceof Map) {
-					Object btnName = ((Map<?, ?>) item).get("name");
-					if (isAttachmentButtonName(btnName == null ? null : String.valueOf(btnName)))
-						return true;
+		if (buttonConfig instanceof Map<?, ?> btnMap) {
+			Object btnName = btnMap.get("name");
+			if (btnName != null && isAttachmentButtonName(String.valueOf(btnName))) {
+				return true;
+			}
+			return btnMap.get("cmsUpdUrl") != null && btnMap.get("cmsAddUrl") != null;
+		}
+		if (buttonConfig instanceof List<?> btnList) {
+			for (Object item : btnList) {
+				if (hasAttachmentButton(item)) {
+					return true;
 				}
 			}
 		}
@@ -601,7 +699,9 @@ public class PageCompU {
 		String widthStr = getAttributeStr(inputproperties, "width");
 		String maxHeightStr = getAttributeStr(inputproperties, "maxHeight");
 		String valueStr = inputproperties.get("value");
+/* 再改,改为取值 "建筑物"。原为 "placeholder="建筑物"",导致输出到 vue 组件的 placeholder= 为 placeholder="placeholder="建筑物""。Lin
 		String placeholder = getAttributeStr(inputproperties, "placeholder");
+*/		String placeholder = inputproperties.get("placeholder");
 
 		String classStr = getAttributeStr(inputproperties, "class");
 		String styleStr = getAttributeStr(inputproperties, "style");
@@ -638,13 +738,12 @@ public class PageCompU {
 
 		}
 
-		String editorStoreName = getEditorStoreNameForInput(inputproperties, name);
-		ObjFieldB objFieldB = vo.fieldMap.get(editorStoreName);
-		if (objFieldB == null)
-			objFieldB = vo.fieldMap.get(name);
+		ObjFieldB objFieldB = vo.fieldMap.get(name);
+/* 再去掉,去掉没有写 placeholder 时的默认值 "文书类别" 等
 		if(StringUtils.isBlank(placeholder)){
 			placeholder = objFieldB.getDesc();
 		}
+*/
 
 		Integer width = objFieldB.getWidth();
 		Integer height = objFieldB.height;
@@ -668,9 +767,8 @@ public class PageCompU {
 		}
 
 		//返回初始化录入组件的JS
-		String componentName = componentType.equals(PageCompC.FORM_PLUGIN_JS_TYPE_html) ? editorStoreName : name;
 		StringBuilder sb = getInitInputComponentJs(componentType, //组件类弄
-				componentName,//表单元素name
+				name,//表单元素name
 				valueStr //表单元素默认值
 		);
 
@@ -701,8 +799,10 @@ public class PageCompU {
 			 */
 			closingTag = "</ss-inp>";
 			sb.append("<ss-inp");
+/* 再去掉,去掉录入页里的默认 placeholder。Lin
 			setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 					PageCompC.TAG_PLACEHOLDER_PREFIX_input + placeholder);
+*/
 
 			//如果有在input上标上附件按钮
 			if(StringUtils.isNotBlank(ssBtnVal)) {
@@ -714,24 +814,42 @@ public class PageCompU {
 				String cmsUpdateUrl = null;
 				String cmsAddUrl = null;
 
-				Object buttonConfig = parseButtonConfigWithCms(ssBtnVal);
-				if (buttonConfig != null) {
-					parmMap.put("button", buttonConfig);
-					if (hasAttachmentButton(buttonConfig)) {
-						cmsUpdateUrl = getServiceTag("regCms", "cmsHome", null);
-						cmsAddUrl = getServiceTag("makeAttCms", null, null);
-					}
-				}
+				// 使用 TypeToken 明确指定 Map 的泛型类型
+				Map<String, String> fjBtn = new Gson().fromJson(ssBtnVal,
+						new TypeToken<Map<String, String>>(){}.getType());
+				parmMap.put("button", fjBtn);
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+				Map<String, String> cmsUpdateMap = new HashMap<>();
+				cmsUpdateMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+				cmsUpdateUrl = getServiceTag("regCms",
+						"cmsHome",
+						cmsUpdateMap);
+*/
+/* 再改,cmsHome.ss.jsp 改为 cmsEdit.jsp,与 cmsPlay 对应。Lin
+				cmsUpdateUrl = getServiceTag("regCms", "cmsHome", null);
+*/				cmsUpdateUrl = getServiceTag("regCms", CmsC.CMS_editPage, null);
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+				Map<String, String> cmsAddMap = new HashMap<>();
+				cmsAddMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+				cmsAddUrl = getServiceTag("makeAttCms",
+						null,
+						cmsAddMap);
+*/				cmsAddUrl = getServiceTag("makeAttCms", null, null);
+
+				fjBtn.put("cmsUpdUrl","@cmsUpdateUrl@");
+				fjBtn.put("cmsAddUrl","@cmsAddUrl@");
+
+				parmMap.put("button", fjBtn);
 
 				Gson gson = new Gson();
 				String parmStr = gson.toJson(parmMap)
 						.replace("@dataType@","${dataType==\"change\"?\"change\":\"edit\"}")
 						.replace("\"", "'");
 
-				if(StringUtils.isNotBlank(cmsUpdateUrl))
-					parmStr = parmStr.replace("@cmsUpdateUrl@",cmsUpdateUrl);
-				if(StringUtils.isNotBlank(cmsAddUrl))
-					parmStr = parmStr.replace("@cmsAddUrl@",cmsAddUrl);
+				parmStr = parmStr.replace("@cmsUpdateUrl@",cmsUpdateUrl);
+				parmStr = parmStr.replace("@cmsAddUrl@",cmsAddUrl);
 
 				setTagAttr(sb,PageCompC.TAG_ATTR_param,parmStr);
 			}
@@ -759,15 +877,17 @@ public class PageCompU {
 			} else if (objFieldB.type == ObjC.FIELD_timeType) {
 				type = PageCompC.TAG_ATTR_VALUE_time;
 			}
-			setTagAttr(sb,PageCompC.TAG_ATTR_type,type);
+			setTagAttr(sb,PageCompC.VUE_ATTR_type,type);
 
 			if(StringUtils.isNotBlank(objFieldB.fmt)){
 				setTagAttr(sb,PageCompC.TAG_ATTR_fmt,objFieldB.fmt);
 			}
 
 			if(StringUtils.isNotBlank(placeholder))
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 						PageCompC.TAG_PLACEHOLDER_PREFIX_select + placeholder);
+*/				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholder);
 
 		}else if(componentType.equals(PageCompC.FORM_PLUGIN_JS_TYPE_img)){
 			/**
@@ -810,14 +930,16 @@ public class PageCompU {
 			setTagAttr(sb,PageCompC.TAG_ATTR_uploadUrl,ulUrl);
 
 			//裁剪图片宽高
+/* 改,默认值是 0.Lin
 			if(width!=null&&height!=null){
-				/**
-				 :cropper-opt="{
-				 width: 300,
-				 height: 420,
-				 aspectRatio: 5/7
-				 }
-				 */
+*/			if (width > 0 && height > 0) {
+				/// **
+				 // :cropper-opt="{
+				 // width: 300,
+				 // height: 420,
+				 // aspectRatio: 5/7
+				 // }
+				/// *
 				setTagAttr(sb,PageCompC.TAG_ATTR_VALUE_cropperOpt,"{width:"+width+",height:"+height+"}");
 			}
 
@@ -883,10 +1005,7 @@ public class PageCompU {
 				sb.append(PageCompC.LINE_BREAK).append(PageCompC.COLON).append(heightStr.replace("px", ""));
 			}
 
-			String editorHtmlInputName = getEditorHtmlInputName(inputproperties, editorStoreName, name);
-			setTagAttr(sb,PageCompC.TAG_ATTR_html,editorStoreName+"Html");//ss-editor富文本编辑器扩展的正文内容属性 Ben(20260408)
-			setTagAttr(sb,PageCompC.TAG_ATTR_htmlName,editorHtmlInputName);
-			setTagAttr(sb,PageCompC.TAG_ATTR_storeName,editorStoreName);
+			setTagAttr(sb,PageCompC.TAG_ATTR_html,name+"Html");//ss-editor富文本编辑器扩展的正文内容属性 Ben(20260408)
 
 			//获取要回显的富文本的url属性
 			String url = getServiceTag("loadEditorBody",
@@ -912,13 +1031,77 @@ public class PageCompU {
 //				Map<String, String> fjBtn = new HashMap<>();
 
 				//以前ssBtnVal只支持附件按钮,现在扩展支持自定义按钮 start Ben(20260401)
-				Object buttonConfig = parseButtonConfigWithCms(ssBtnVal);
-				if (buttonConfig != null) {
-					parmMap.put("button", buttonConfig);//加到发布后的数组
-					if (hasAttachmentButton(buttonConfig)) {
-						cmsUpdateUrl = getServiceTag("regCms", "cmsHome", null);
-						cmsAddUrl = getServiceTag("makeAttCms", null, null);
+				ssBtnVal = ssBtnVal.trim();
+
+				//如果只有一个按钮
+				if (ssBtnVal.startsWith("{") && ssBtnVal.endsWith("}")) {
+
+				// 使用 TypeToken 明确指定 Map 的泛型类型
+				Map<String, String> btnMap = new Gson().fromJson(ssBtnVal,
+						new TypeToken<Map<String, String>>(){}.getType());
+				parmMap.put("button", btnMap);//加到发布后的数组
+
+				// 如果是附件按钮,补属性
+				String btnName = btnMap.get("name");
+				if (StringUtils.isNotBlank(btnName)&&"fjid".equals(btnName)) {
+				//				buttonList.add(fjBtn);
+
+				//				fjBtn.put("desc", "附件");
+				//				fjBtn.put("name", "fjid");
+				//				fjBtn.put("val",getElExp(vo,"fjid"));
+
+				//				fjBtn.put("name", "附件");
+				//				fjBtn.put("key", "fjid");
+				//				fjBtn.put("value",getElExp(vo,"fjid"));
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+				Map<String, String> cmsUpdateMap = new HashMap<>();
+				cmsUpdateMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+				cmsUpdateUrl = getServiceTag("regCms",
+						"cmsHome",
+						cmsUpdateMap);
+*/
+/* 再改,cmsHome.ss.jsp 改为 cmsEdit.jsp,与 cmsPlay 对应。Lin
+				cmsUpdateUrl = getServiceTag("regCms", "cmsHome", null);
+*/				cmsUpdateUrl = getServiceTag("regCms", CmsC.CMS_editPage, null);
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+				Map<String, String> cmsAddMap = new HashMap<>();
+				cmsAddMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+				cmsAddUrl = getServiceTag("makeAttCms",
+						null,
+						cmsAddMap);
+*/				cmsAddUrl = getServiceTag("makeAttCms", null, null);
+
+				btnMap.put("cmsUpdUrl","@cmsUpdateUrl@");
+				btnMap.put("cmsAddUrl","@cmsAddUrl@");
+				}
+
+					//是数组,表示有多个按钮
+				} else if (ssBtnVal.startsWith("[") && ssBtnVal.endsWith("]")) {
+
+					Type listType = new TypeToken<List<Map<String, String>>>(){}.getType();
+					List<Map<String, String>> btnList = new Gson().fromJson(ssBtnVal, listType);
+
+					parmMap.put("button", btnList);//加到发布后的数组
+
+					// 遍历查找并修改
+					for (Map<String, String> btnMap : btnList) {
+						// 如果是附件按钮,补属性
+						String btnName = btnMap.get("name");
+						if (StringUtils.isNotBlank(btnName)&&"fjid".equals(btnName)) {
+
+/* 再改,cmsHome.ss.jsp 改为 cmsEdit.jsp,与 cmsPlay 对应。Lin
+							cmsUpdateUrl = getServiceTag("regCms", "cmsHome", null);
+*/							cmsUpdateUrl = getServiceTag("regCms", CmsC.CMS_editPage, null);
+							cmsAddUrl = PageCompU.getServiceTag("makeAttCms", null, null);
+
+							btnMap.put("cmsUpdUrl", "@cmsUpdateUrl@");
+							btnMap.put("cmsAddUrl", "@cmsAddUrl@");
+							break;
+						}
 					}
+
 				} else {
 					System.out.println("错误:ssBtn内容字符串不是有效的JSON格式!!");
 				}
@@ -962,27 +1145,38 @@ public class PageCompU {
 			setTagAttr(sb,PageCompC.TAG_ATTR_opt,name+"Option");
 
 			if(StringUtils.isNotBlank(placeholder))
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 						PageCompC.TAG_PLACEHOLDER_PREFIX_select + placeholder);
+*/				setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholder);
 
 			if (inputproperties.get("ssFilterField") != null)// add by Ben(20260313)
 				setTagAttr(sb,PageCompC.TAG_ATTR_filterField,inputproperties.get("ssFilterField"));
+/// 再增加,增加支持 <field filter="dwid"。Lin
+			else if (objFieldB.filterFieldStr != null)
+				setTagAttr(sb, PageCompC.TAG_ATTR_filterField, objFieldB.filterFieldStr);
+///
 
 			if (inputproperties.get("ssFilter") != null)
 				setTagAttr(sb,PageCompC.TAG_ATTR_filter,inputproperties.get("ssFilter"));
 			else if (objFieldB.cbParmStr != null)    // <field cbParm=,里层的引号,要用 "。Lin
 				setTagAttr(sb,PageCompC.TAG_ATTR_filter,objFieldB.cbParmStr);
 
-			String inputValue = inputproperties.get("inp") ;
-			//			String inputValue = inputproperties.get("wdInput") == null ?
-			//					inputproperties.get("input") : inputproperties.get("wdInput");
+			String inputValue = inputproperties.get(PageCompC.TAG_ATTR_inp) ;	// ("inp")。Lin
+//			String inputValue = inputproperties.get("wdInput") == null ?
+//					inputproperties.get("input") : inputproperties.get("wdInput");
 			if (StringUtils.isBlank(inputValue))    // 去掉 StrU.isNull(),直接用 StringUtils.isBlank()。Lin
 				inputValue = ((objFieldB.inpable) ? "true" : "false");
-			setTagAttr(sb,PageCompC.TAG_ATTR_inp,inputValue);
+			setTagAttr(sb,PageCompC.VUE_ATTR_inp,inputValue);
 
 			// 使用Map创建JSON对象
 			Map<String, String> parmMap = new HashMap<>();
 			parmMap.put("objectpickerdropdown1", "1");
+/// 再增加,增加支持 <field filter="dwid"。Lin
+ //    url="<ss:serv name='loadObjpOpt' parm='{"objectpickerdropdown1":"1","objectpickerfilterField":"dwid"}' />"
+			if (objFieldB.filterFieldStr != null)
+				parmMap.put("objectpickerfilterField", objFieldB.filterFieldStr);
+///
 
 			// 将Map转换为JSON字符串
 			String url = getServiceTag("loadObjpOpt",
@@ -1039,6 +1233,18 @@ public class PageCompU {
 		if(StringUtils.isNotBlank(widthStr)){
 			sb.append(PageCompC.LINE_BREAK).append(widthStr);
 		}
+/// 再增加,增加支持 <obj <field width="200"。Lin
+ // 把 width:200px 也加到 stype= 里
+		else if (objFieldB.width > 0) {
+			setTagAttr(sb, PageCompC.VUE_ATTR_width, objFieldB.width + "px");
+			// 写到 styleStr 里 -- 下面才用 styleStr 输出到 sb 里。Lin
+			if (StringUtils.isBlank(styleStr))
+				styleStr = "style=\"";
+			else	// "style=\"xxx:yyy;\""。Lin
+				styleStr = styleStr.substring(0, styleStr.length() -1);
+			styleStr += "width:" + objFieldB.width + "px;\"";
+		}
+///
 		if(StringUtils.isNotBlank(heightStr)&&!componentType.equals(PageCompC.FORM_PLUGIN_JS_TYPE_html)){
 			sb.append(PageCompC.LINE_BREAK).append(heightStr);
 		}
@@ -1050,8 +1256,11 @@ public class PageCompU {
 		}
 		//增加支持onchange事件 <input ssChg=‘xxx’/> Ben(20251218)
 		if(StringUtils.isNotBlank(ssChgStr)){
+/* 再改,改用增加的 VUE_ATTR_onChange = "onChange" -- <ss-objp 里的 onChange= 不改。Lin
+ * 原,混用 PageCompC.TAG_ATTR_onChange,导致 <ss-objp 里的 onChange= 也被改为 chg=
 			sb.append(PageCompC.LINE_BREAK).append(ssChgStr.replace(PageCompC.TAG_ATTR_ssChg,
 					PageCompC.TAG_ATTR_onChange));
+*/			sb.append(PageCompC.LINE_BREAK).append(ssChgStr.replace(PageCompC.TAG_ATTR_ssChg, PageCompC.VUE_ATTR_onChange));
 		}
 
 		sb.append(PageCompC.LINE_BREAK).append(">").//"/>"改为">" Ben(20251218)
@@ -1255,7 +1464,9 @@ public class PageCompU {
 			sb.append("ss.dom.formElemConfig.").append(inputName).append("={");
 
 			if(StringUtils.isNotBlank(inputValue))
+/* 下面从"'"改为"`",防止值有特殊字符20260512
 				sb.append("val:'").append(inputValue).append("',type:").append(componentType);
+*/				sb.append("val:`").append(inputValue).append("`,type:").append(componentType);
 			else
 				sb.append("val:null,type:").append(componentType);
 			sb.append("};");

+ 120 - 34
src/core/page/PageComper.java

@@ -50,6 +50,7 @@ import ss.page.PageC;
 import ss.page.PageU;
 import ss.page.TabC;
 import ss.search.SearchC;
+import ss.skin.SkinC;
 
 
 // 来自 pms-core:XmslBjCompiler implements BjCompiler(接口类)。Lin
@@ -672,7 +673,7 @@ public class PageComper {
 /* 去掉 appName,直接用 PrjApp.prjName。Lin
 				str = translateScriptSrc(str, appName);
 */
-//				str = translateScriptSrc(str);	// 再改。去掉,不支持多个应用。Lin
+//				str = translateScriptSrc(str);	// 再去掉,不支持多个应用。Lin
 
 /* 再改,IDEA:String concatenation '+=' in loop。Lin
  * List<String> 改为 List<StringBuilder>
@@ -2000,10 +2001,7 @@ public class PageComper {
 			for (String[] temp : allInputTab) {
 				Map<String, String> inputproperties = inputElementProperties_input(temp[0]);
 				String fieldname = temp[1];
-				String resolvedFieldname = PageCompU.getEditorStoreNameForInput(inputproperties, fieldname);
-				ObjFieldB f = vo.fieldMap.get(resolvedFieldname);
-				if (f == null)
-					f = vo.fieldMap.get(fieldname);
+				ObjFieldB f = vo.fieldMap.get(fieldname);
 
 /* 去掉 Field.defaultValue(含名和参数),改用 dictName + dictParm。Lin
 				if(f!=null && StrUtil.notNull(f.getDefaultValue()) ){
@@ -2133,7 +2131,7 @@ public class PageComper {
 						String richTextInputContent = PageCompU.getInputCode(PageCompC.FORM_PLUGIN_JS_TYPE_html, //组件类弄
 								inputproperties,//组件属性
 								vo,
-								resolvedFieldname
+								fieldname
 						);
 						inputContent = inputContent.replace(temp[0], richTextInputContent);
 						filterNames.add(fieldname);
@@ -2153,7 +2151,6 @@ public class PageComper {
 							+ " mode=\"${dataType=='change'?'change':'edit'}\""
 							+ " value='{\"template\":\"" + vo.getName() + "\"}' />\r\n";
 */					c += "<editor.ss name=\""+ sname + "\" "+
-							" storeName=\""+ fieldname +"\" htmlName=\""+ sname +"Edit\" "+
 							((StringUtils.isBlank(inputproperties.get("ssBtn"))) ?
 									"" : ("btn=\""+ inputproperties.get("ssBtn") +"\"")) +
 							" mode=\"${dataType=='"+ ObjC.CHILD_chgType +"'?'"+ ObjC.CHILD_chgType +"':'edit'}\""+
@@ -2176,7 +2173,6 @@ public class PageComper {
 									"" : ("button=\"" + inputproperties.get("wdButton") + "\""))
 							+ " mode=\"play\" value='{\"template\":\"" + vo.getName() + "\"}' />\r\n";
 */					d += "<editor.ss name=\""+ sname +"\" "+
-							" storeName=\""+ fieldname +"\" htmlName=\""+ sname +"Edit\" "+
 							((StringUtils.isBlank(inputproperties.get("ssBtn")))?
 									"" : ("btn=\""+ inputproperties.get("ssBtn") +"\"")) +
 							" mode=\"play\""+
@@ -3893,7 +3889,22 @@ public class PageComper {
 //						SsLog.print(name +"-"+ field.type);	// 去掉,干扰。Lin
 /* 再改,IDEA:String concatenation '+=' in loop。Lin
 						inputproperties.put("value", tabProgram);
-*/						inputproperties.put("value", tabProgram.toString());
+*/
+/* 再改,没区分查看和录入,现在改为下面:Ben(20260512)
+						inputproperties.put("value", tabProgram.toString());
+ */
+						if(isInfo) {//是查看页才使用<ss:txt val='${zy.mc}'/>这个标签,因为这个标签会特殊字符转义 Ben(20260512)
+							inputproperties.put("value", tabProgram.toString());
+						}else{
+							/// **
+							 // * Ben(20260512)
+							 // * 是录入页直接使用EL表达式如:${zy.mc},不用<ss:txt转义
+							 // * 实际页面是用JS的反引号(模板字符串),如`${zy.ms}`输出,屏蔽笑柄注入,类似下面这样
+							 // *ss.dom.formElemConfig.ms={val:`${zy.ms}`,type:window.ss.dom.TYPE.INPUT};
+							/// *
+							inputproperties.put("value", wdWriteproperties.get("value"));
+						}
+
 						inputproperties.put("name",fieldNamePrefix+name);
 
 /* maxLength 改为 Integer。Lin
@@ -4287,12 +4298,22 @@ public class PageComper {
 					}
 				}
 
+/* 再去掉,共用 CcpB.combField.fieldList(List<CcpFieldB>) 里的 CcpFieldB.name。Lin
 				for (Integer index : ccpB.fieldNameMap.keySet()) {
 					String fieldNameWithoutPrfx = ccpB.fieldNameMap.get(index);
+*/
+				for (CcpFieldB field : ccpB.combField.fieldList) {
+					String fieldNameWithoutPrfx = field.name;
+
 					String fullFieldName = prfx+fieldNameWithoutPrfx;
 					if(fullFieldName.equals(inpName)){
+/* 再去掉,共用 CcpB.combField.fieldList(List<CcpFieldB>) 里的 CcpFieldB.name。Lin
 						for (Integer j : ccpB.fieldNameMap.keySet()) {
 							String fieldNameWithoutPrfx2 = ccpB.fieldNameMap.get(j);
+*/
+						for (CcpFieldB f : ccpB.combField.fieldList) {
+							String fieldNameWithoutPrfx2 = f.name;
+
 							String fullFieldName2 = prfx+fieldNameWithoutPrfx2;
 							List<CcpB> list = inp2CcpMap.get(fullFieldName2);
 							if(list==null||list.size()==0){
@@ -4498,7 +4519,7 @@ public class PageComper {
 
 /// 改为新UI,增加。Lin
 					}
-				}else{
+				} else {
 /* 改为新UI。Lin
  * 去掉,共用上面抽取出来的 doCcpByInfo(。Lin
  *    m(CcpB) 改为 ccp,name(String) 改为 inputName
@@ -4545,7 +4566,7 @@ public class PageComper {
 				ObjFieldB field = vo.fieldMap.get(inputName);
 /// 改为新UI,增加。Lin
  //    m(CcpB) 改为 ccp,name(String) 改为 inputName
-				if(ccpIsNewUI){
+				if (ccpIsNewUI) {
 					if (isInfo || wdReadonly) {//替换baseInfo页的级联菜单代码
 						if (!haveRules) {
 							String v=Optional.ofNullable(inputproperties.get("value")).orElse("${"+ dxm +"."+ inputName +"}");
@@ -4556,10 +4577,11 @@ public class PageComper {
 								writeStr += "<ss:cbTrans cb=\"" +codebook111
 										+ "\" val=\""+ v +"\" "
 										+ " filter=\""+ (inputproperties.get("ssFilter") != null? inputproperties.get("ssFilter") : "") + "\"/>";
-							}else{
+							} else {
 								writeStr="-object未定义codebook-";
 								SsLog.log("XXXXXXXX -object未定义codebook-");
 							}
+
 							writeStr = "<div id=\""+ inputproperties.get("name") + "\" "
 									+" "+ getAttributeStr(inputproperties, "style")
 									+ getAttributeStr(inputproperties, "width")
@@ -4568,18 +4590,18 @@ public class PageComper {
 							writeStr += TagComper.compTag(
 									"<growh.ss name=\""+ inputName
 											+ "\" mode=\"play\" "+" "+ getAttributeStr(inputproperties, "maxHeight") +" />");
-							if(isBaseInfo && (field != null)){
+							if (isBaseInfo && (field != null)) {
 								writeStr="<ss:auth field=\""+ field.name +"\">\r\n"
 										+ writeStr +"\r\n</ss:auth>";
 							}
 							thisContent = new StringBuilder(thisContent.toString().replace(temp[0], writeStr));
 						}
-					} else if(pageobj.isInp){//新UI 替换录入页的级联菜单代码
+					} else if(pageobj.isInp) {//新UI 替换录入页的级联菜单代码
 						List<CcpB> ccpList = inp2CcpMap.get(inputName);
-						if(ccpList!=null){
+						if (ccpList != null) {
 							String html = null;
 							//如果是带编码规则的级联菜单
-							if(haveRules){
+							if (haveRules) {
 								boolean isCombField = (prfx + ccp.combField.name).equals(inputName);
 								//返回初始化录入级联组件的JS
 								html = PageCompU.getCcpInputCode(PageCompC.FORM_PLUGIN_JS_TYPE_ccpsingle, //组件类弄
@@ -4591,7 +4613,7 @@ public class PageComper {
 										prfx, //级联菜单前缀
 										cascadingTagNewAttribute //级联菜单filter放在这
 								);
-							}else {
+							} else {
 								//返回初始化录入级联组件的JS
 								html = PageCompU.getCcpInputCode(PageCompC.FORM_PLUGIN_JS_TYPE_ccpmutiple, //组件类弄
 										inputproperties,//组件属性
@@ -4615,13 +4637,13 @@ public class PageComper {
 						if (isBaseInfo && haveRules) {
 							content = content.replace(temp[0],
 									"<ss:auth field=\""+inputName+"\">\r\n"+ temp[0]);	// 不用编译 <auth@ss -- 直接写编译后的。Lin
-						}else{
+						} else {
 							content = content.replace(temp[0], thisContent.toString());
 						}
 					} else {
 						content = content.replace(temp[0], thisContent.toString());
 					}
-				}else{//老UI
+				} else {//老UI
 ///
 				if (isInfo || wdReadonly) {
 /* 再改,IDEA:'if' statement has empty body。Lin
@@ -4630,7 +4652,7 @@ public class PageComper {
 					}else{
 */					if (!haveRules) {
 						String v=Optional.ofNullable(inputproperties.get("value")).orElse("${"+ dxm +"."+ inputName +"}");
-						String  writeStr="";
+						String writeStr="";
 						String codebook111=Optional.ofNullable(
 								inputproperties.get("wdCodebook")).orElse((field != null)? field.cbName : null);
 						if (StringUtils.isNotBlank(codebook111)) {
@@ -4643,7 +4665,7 @@ public class PageComper {
 */							writeStr += "<ss:cbTrans cb=\"" +codebook111
 									+ "\" val=\""+ v +"\" "
 									+ " filter=\""+ (inputproperties.get("ssFilter") != null? inputproperties.get("ssFilter") : "") + "\"/>";
-						}else{
+						} else {
 							writeStr="-object未定义codebook-";
 							SsLog.log("XXXXXXXX -object未定义codebook-");
 						}
@@ -4660,7 +4682,7 @@ public class PageComper {
 								+ "\" mode=\"play\" "+" "+ getAttributeStr(inputproperties, "maxHeight") +" />");
 */								"<growh.ss name=\""+ inputName
 								+ "\" mode=\"play\" "+" "+ getAttributeStr(inputproperties, "maxHeight") +" />");
-						if(isBaseInfo && (field != null)){
+						if (isBaseInfo && (field != null)) {
 /* 改。Lin
 * 不用编译 <auth@ss -- 直接写编译后的。Lin
 							writeStr="<wd:permission name=\""+ field.name +"\">\r\n"
@@ -4773,7 +4795,7 @@ public class PageComper {
 			if (isInfo) {
 				//combine=true
 //				{	// 再去掉,没意义。Lin
-					Pattern p2 =Pattern.compile(
+					Pattern p2 = Pattern.compile(
 /* 再改为 IDEA 规范。Lin
  *    Redundant character escape '\\<' in RegExp
  *    Empty branch in alternation -- ||
@@ -4781,7 +4803,7 @@ public class PageComper {
  *    Redundant character escape '\\>' in RegExp
  *    Redundant character escape '\\/' in RegExp
 							"\\<(td||TD)[^>]*?(wdCombine|wdcombine)=[\"\']true[\"\'][^>]*?\\>(.*?)\\<\\/(td||TD)>",
-*/							"<(td|TD)[^>]*?(wdComb)=[\"']true[\"'][^>]*?>(.*?)</(td|TD)>",
+*/							"<(td|TD)[^>]*?(ssComb)=[\"']true[\"'][^>]*?>(.*?)</(td|TD)>",
 							Pattern.DOTALL);
 					Matcher m2 = p2.matcher(content);
 
@@ -4791,18 +4813,23 @@ public class PageComper {
 
 					int combineIndex=1;
 					while (m2.find()) {
-						String thismatch=m2.group();//(<td>...</td>)
-						String innerMatch=m2.group(3);//(<td>(...)</td>)
-						String combineId="div"+ combineIndex+"combine";
+						String thismatch = m2.group();//(<td>...</td>)
+						String innerMatch = m2.group(3);//(<td>(...)</td>)
+						String combineId = "div"+ combineIndex+"combine";
 						
-						innerMatch="<div id=\""+combineId+ "\">"
+						innerMatch = "<div id=\""+combineId+ "\">"
 								+ innerMatch
 								+ "</div>";
-						
-						thismatch=thismatch.replaceFirst(Pattern.quote(m2.group(3)), Matcher.quoteReplacement(innerMatch))
+
+/// 再增加,去掉 thismatch > content 里的 ssComb="true",避免被重复匹配到 -- 修正多个字段的 <td ssComb="true"。Lin
+						Pattern ssCombPattern = Pattern.compile("ssComb=[\"']true[\"']");
+						Matcher ssCombMatcher = ssCombPattern.matcher(thismatch);
+						thismatch = ssCombMatcher.replaceAll("");
+///
+						thismatch = thismatch.replaceFirst(Pattern.quote(m2.group(3)), Matcher.quoteReplacement(innerMatch)) +
 								//td之后追加
-								+ "<script>wd.display.combineDiv(\""+ combineId+ "\");</script>\r\n"
-								+ TagComper.compTag(
+								"<script>wd.display.combineDiv(\""+ combineId+ "\");</script>\r\n"+
+								TagComper.compTag(
 										// 用 TagComper.transform(),growHeightTransformer 没盖写过。Lin
 /* 改。Lin
 										"<wd:write type=\"growHeight\" name=\"" +combineId
@@ -4817,6 +4844,66 @@ public class PageComper {
 			}
 			}	// for (String[] temp : allcascadingSelect_input) {。增加,从上面上移到这,把 if (isInfo) { 也包到 for 里 -- 改为新UI时,大叶改为这样。Lin
 
+/// 再增加,查看时,在 <td 里增加样式 padding:0 15px。Lin
+ // 在实现 growh 弹出框的左右边线与 <td 的边线重叠时,去掉 base.css 里的 .form-container td { 里的 padding: 0 15px,导致查看页的 <td 没有缩进 15px
+ // 抄自上面的 处理 <td ssComb="true" 的程序
+			if (isInfo) {
+				Pattern tdPattern = Pattern.compile("<(td|TD)(.*?)>", Pattern.DOTALL);	// <td ...>。Lin
+				Matcher tdMatcher = tdPattern.matcher(content);
+				while (tdMatcher.find()) {
+					String tdMatch = tdMatcher.group();	// <td style="width:400px;">。Lin
+					String tdCont = tdMatcher.group(2);	//  style="width:400px;"。Lin
+
+					Pattern stylePattern = Pattern.compile("(style=[\"'].*?[\"'])", Pattern.DOTALL);	// <td 里 style=。Lin
+					Matcher styleMatcher = stylePattern.matcher(tdCont);
+					if (styleMatcher.find()) {	// 有 style=。Lin
+						String styleMatch = styleMatcher.group();	// style="width:400px;"。Lin
+						String styleStr = styleMatcher.group(1);	// style="width:400px;"。Lin
+						styleStr = styleStr.substring(0, styleStr.length() -1).trim();	// 去掉最后的 "。Lin
+						if (!StringUtils.endsWith(styleStr, ";"))
+							styleStr += ";";
+						styleStr += "padding:0 15px;\"";
+						tdCont = tdMatch.replaceFirst(styleMatch, styleStr);	// 替换 style=。Lin
+					} else {	// 没有 style=。Lin
+						tdCont = tdMatch.substring(0, tdMatch.length() -1).trim() +	// <td > 改为 <td。Lin
+								" style=\"padding:0 15px;\">";	// 增加 style=。Lin
+					}
+
+					// 更新到 content。Lin
+					content = content.replaceFirst(Pattern.quote(tdMatch), Matcher.quoteReplacement(tdCont));
+				}
+			}
+///
+
+/// 再增加,<th 里不需要写 style="width:160px;" -- 没有写 style="width: 时,自动补上。Lin
+ // 抄自上面的 在 <td 里增加样式 padding:0 15px 的程序
+			Pattern tdPattern = Pattern.compile("<(th|TH)(.*?)>", Pattern.DOTALL);	// <th ...>。Lin
+			Matcher tdMatcher = tdPattern.matcher(content);
+			while (tdMatcher.find()) {
+				String thMatch = tdMatcher.group();	// <th style="width:100px;">。Lin
+				String thCont = tdMatcher.group(2);	//  style="width:100px;"。Lin
+
+				Pattern stylePattern = Pattern.compile("(style=[\"'].*?[\"'])", Pattern.DOTALL);	// <th 里 style=。Lin
+				Matcher styleMatcher = stylePattern.matcher(thCont);
+				if (styleMatcher.find()) {	// 有 style=。Lin
+					if (!thCont.contains("width:")) {	// 没有 width:。Lin
+						String styleMatch = styleMatcher.group();	// style="height:120px"。Lin
+						String styleStr = styleMatcher.group(1);	// style="height:120px"。Lin
+						styleStr = styleStr.substring(0, styleStr.length() -1).trim();	// 去掉最后的 "。Lin
+						if (!StringUtils.endsWith(styleStr, ";"))
+							styleStr += ";";
+						styleStr += SkinC.STYLE_thWidthStr +"\"";
+						thCont = thMatch.replaceFirst(styleMatch, styleStr);	// 替换 style=。Lin
+						content = content.replaceFirst(Pattern.quote(thMatch), Matcher.quoteReplacement(thCont));	// 更新到 content。Lin
+					}
+				} else {	// 没有 style=。Lin
+					thCont = thMatch.substring(0, thMatch.length() -1).trim() +	// <th > 改为 <th。Lin
+							" style=\""+ SkinC.STYLE_thWidthStr +"\">";	// 增加 style="width:160px;"。Lin
+					content = content.replaceFirst(Pattern.quote(thMatch), Matcher.quoteReplacement(thCont));	// 更新到 content。Lin
+				}
+			}
+///
+
 			return new StringReader(content);
 		} catch (Exception e) {
 /* 改,去掉 e.printStackTrace(),改用 log4j -- 按 IDEA 规范。Lin
@@ -4974,10 +5061,9 @@ public class PageComper {
 			"wdCheckbox", "wdCallback", "value", "wdFilter", "clear","wdReadonly" ,"wdTabNo","wdCodebook"};
 */	private static final String[] inputElementPropertiess = {
 			"class", "style", "id", "size", "type", "name", "onclick", "onchange",
-			"placeholder", "autocomplete", "width", "height", "button", "inp",
+			"placeholder", "autocomplete", "width", "height", "button", "ssInp",
 			"cascadingSelect", "ssCcp", "ssChg", "ssBtn", "wdInput", "ssRad",
 			"wdCheckbox", "ssRun", "value", "ssFilter","ssFilterField", "clear", "wdReadonly" ,
-			PageCompC.TAG_ATTR_htmlName, PageCompC.TAG_ATTR_storeName,
 			ObjC.FIELD_no,	// "wdTabNo",。Lin
 			"wdCodebook"};
 	/**

+ 162 - 0
src/core/page/impl/ButtonTagComper.java

@@ -0,0 +1,162 @@
+package core.page.impl;
+
+import core.page.PageCompC;
+import core.page.PageCompU;
+import core.page.TagComper;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.Map;
+
+
+// 按钮高级写法 add by Ben(20260522)
+@SuppressWarnings("unused")
+public class ButtonTagComper extends TagComper {
+
+//	public static final String tagType = "op";	// 去掉,没用到了。Lin
+
+
+// 抽象方法。Lin
+	@Override
+	public String rdTypeName() {
+/* 再改,改 <button.ss 为 <btn.ss。Lin
+		return "button";
+*/		return "btn";
+	}
+
+// 抽象方法。Lin
+	@Override
+	public String doCompTag(Map<String, String> data) {
+/* 把 transform(String src) 移到这。Lin
+		return "</>";
+*/
+/* 改为新UI。Lin
+		return TagComper.combTagAtr(data);	// 用到再改好。Lin
+*/
+///// 新UI start。Lin
+		/**
+
+		 发布前:
+		 <button.ss type="bottom" name="mytest" id="test" desc="确认" onclick="handleConfirm();" iconClass="bottom-div-save" />
+		 发布后:
+		 <ss-bottom-button
+		 name="mytest"
+		 id="test"
+		 text="确认"
+		 onclick='handleConfirm();'
+		 icon-class="bottom-div-save"
+		 ></ss-bottom-button>
+
+		 发布前:
+		 <button.ss type="search" name="mytest" id="test" desc="所有" onclick="handleRootFuncClick(func)" iconClass="nav-icon-add" key="'scope-' + String(searchButtonConfigCheckId)" opt="[]" checkId="0"/>
+		 发布后:
+		 <ss-search-button
+		 text="所有"
+		 name="mytest"
+		 id="test"
+		 icon-class="nav-icon-add"
+		 :key="'scope-' + String(searchButtonConfigCheckId)"
+		 :opt="[]"
+		 :check-id="0"
+		 onclick="handleRootFuncClick(func)"
+		 ></ss-search-button>
+
+		 */
+/* 再改,原来的 type= 改为 mode=。增加新的 type=,<button 里的 type="submit"/"button"。Lin
+		String type = data.get("type");//决定是底部按钮还是搜索区按钮
+/// 再增加,增加 type= 默认值 "bot" -- type="bottom" 改为 ="bot"。Lin
+		if (StringUtils.isBlank(type))
+			type = "bot";
+///
+*/
+		String mode = data.get("mode");//决定是底部按钮还是搜索区按钮
+		if (StringUtils.isBlank(mode))
+			mode = "bot";
+		String type = data.get("type");
+
+		String name = data.get("name");
+		String id = data.get("id");
+		String desc = data.get("desc");//对应vue组件的text属性
+/* 再改,规范命名。Lin
+ * iconClass= 改为 icon=
+ * onclick= 改为 click=
+		String onclick = data.get("onclick");
+		String iconClass = data.get("iconClass");//对应vue组件的icon-class属性
+*/
+		String onclick = data.get("click");
+		String iconClass = data.get("icon");//对应vue组件的icon-class属性
+
+		String opt = data.get("opt");//对应vue组件的:opt属性
+		String checkId = data.get("checkId");//对应vue组件的:check-id属性
+		String key = data.get("key");//对应vue组件的:key属性
+
+		StringBuilder sb = new StringBuilder();
+
+		try {
+			String ClosingTag = null;
+/* 再改。Lin
+ * 原来的 type= 改为 mode=。增加新的 type=,<button 里的 type="submit"/"button"
+ * <ss-bottom-button 改为 <ss-btn
+/// * 再改,type="bottom" 改为 ="bot"。Lin
+ //			if(type.equals("bottom")){
+/// *
+			if(type.equals("bot")){
+				ClosingTag = "</ss-bottom-button>";
+				sb.append("<ss-bottom-button");
+			}else if (type.equals("search")){
+*/
+			if (mode.equals("bot")) {
+				ClosingTag = "</ss-btn>";
+				sb.append("<ss-btn");
+			} else if (mode.equals("search")) {
+
+				ClosingTag = "</ss-search-button>";
+				sb.append("<ss-search-button");
+			}
+
+/// 再增加,增加新的 type=,<button 里的 type="submit"/"button"。Lin
+			if (StringUtils.isNotBlank(type))
+				PageCompU.setTagAttr(sb, PageCompC.VUE_ATTR_type, type);
+///
+
+			if(StringUtils.isNotBlank(name))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_name, name);
+			if(StringUtils.isNotBlank(id))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_id, id);
+			if(StringUtils.isNotBlank(desc))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_text, desc);
+			if(StringUtils.isNotBlank(onclick))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_onclick, onclick);
+			if(StringUtils.isNotBlank(iconClass))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_iconClass, iconClass);
+			if(StringUtils.isNotBlank(opt))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_opt, opt);
+			if(StringUtils.isNotBlank(checkId))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_checkId, checkId);
+			if(StringUtils.isNotBlank(key))
+				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_key, key);
+
+
+			sb.append(PageCompC.LINE_BREAK).append(">")//"/>"改为">" Ben(20251218)
+			.append(ClosingTag).append(PageCompC.LINE_BREAK);
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
+
+		return sb.toString();
+///// 新UI end。Lin
+	}
+
+	
+
+/* 去掉,改用 transform(Map<String, String> tagData)。Lin
+	@Override
+	public String transform(String src) {
+//		src = src.replaceAll("<[^:]*:write", "<" + prefix + ":" + tagType)
+//				.replaceAll("type\\s*=\\s*('|\")\\w+\\1", "");
+		src = src.replaceAll("(wd|common)\\:write", PageC.HTML_TAG_PREFIX +":"+ this.tagType)	// tagType 加 this.。Lin
+				.replaceAll("type\\s*=\\s*('|\")\\w+\\1", "");
+		return src;
+	}
+*/
+
+}

+ 7 - 3
src/core/page/impl/CmsTagComper.java

@@ -15,6 +15,7 @@ import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import ss.AppC;
 import ss.WebC;
+import ss.cms.CmsC;
 import ss.obj.ObjC;
 
 
@@ -256,11 +257,14 @@ public class CmsTagComper extends TagComper {
 		return TagComper.compTag(fmt);	// parseAtService()。Lin
 	}
 
-	protected String getURL_nrxtsy(boolean isInner, String title,
-			String nameField, String hide) {
+	protected String getURL_nrxtsy(boolean isInner, String title, String nameField, String hide) {
 /* 再改为 .ss,用 @ 导致 IDEA -- Tag start is not closed。Lin
 		String tmpl = "<serv@ss name='register' dest='nrxtsy' parm='{inner:&quot;%1$s&quot;,cms_title:&quot;%2$s&quot;,nameField:&quot;%3$s&quot;,hide:&quot;%4$s&quot;}'/>";
-*/		String tmpl = "<serv.ss name='regCms' dest='cmsHome' parm='{inner:&quot;%1$s&quot;,cms_title:&quot;%2$s&quot;,nameField:&quot;%3$s&quot;,hide:&quot;%4$s&quot;}'/>";
+*/
+/* 再改,cmsHome.ss.jsp 改为 cmsEdit.jsp,与 cmsPlay 对应。Lin
+		String tmpl = "<serv.ss name='regCms' dest='cmsHome' parm='{inner:&quot;%1$s&quot;,cms_title:&quot;%2$s&quot;,nameField:&quot;%3$s&quot;,hide:&quot;%4$s&quot;}'/>";
+*/		String tmpl = "<serv.ss name='regCms' dest='"+ CmsC.CMS_editPage +
+				"' parm='{inner:&quot;%1$s&quot;,cms_title:&quot;%2$s&quot;,nameField:&quot;%3$s&quot;,hide:&quot;%4$s&quot;}'/>";
 		String fmt = String.format(tmpl, isInner, title, nameField, hide);
 		return TagComper.compTag(fmt);	// parseAtService()。Lin
 	}

+ 4 - 2
src/core/page/impl/DatepTagComper.java

@@ -158,15 +158,17 @@ public class DatepTagComper extends TagComper {
 		sb.append("<ss-date-picker");
 
 		if(StringUtils.isNotBlank(type))
-			PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_type,type);
+			PageCompU.setTagAttr(sb,PageCompC.VUE_ATTR_type,type);
 		else
-			PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_type,"date");
+			PageCompU.setTagAttr(sb,PageCompC.VUE_ATTR_type,"date");
 
 		PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_fmt,format);
 
 		if(StringUtils.isNotBlank(desc)) {
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 			PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 					PageCompC.TAG_PLACEHOLDER_PREFIX_select + desc);
+*/			PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, desc);
 		}
 
 		PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_vmodel,name);

+ 60 - 10
src/core/page/impl/EditorTagComper.java

@@ -18,6 +18,7 @@ import core.page.TagComper;
 import core.PrjApp;
 
 import ss.WebC;
+import ss.cms.CmsC;
 import ss.editor.EditorU;
 import ss.log.SsLog;
 
@@ -173,8 +174,7 @@ public class EditorTagComper extends TagComper {
 ///// 新UI start。Lin
 //		PrjApp prjApp = PrjApp.thdPrjApp.get();	// 再增加,支持多线程。Lin
 		String mode = data.get("mode");
-		String name = PageCompU.getEditorStoreNameForTag(data, data.get("name"));
-		String htmlInputName = PageCompU.getEditorHtmlInputName(data, name, data.get("name"));
+		String name = data.get("name")+"wj";//例:zwwj字段从data.get("name")属性获取,只有“zw”两字,必需加上"wj" Ben(20260408)
 		String button = data.get("btn");	// "button"。Lin
 		String value = data.get("val");	// "value"。Lin
 		String width = data.get("width");
@@ -210,8 +210,6 @@ public class EditorTagComper extends TagComper {
 		sb.append("<ss-editor");
 
 		PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_html,name+"Html");//ss-editor富文本编辑器扩展的正文内容属性 Ben(20260408)
-		PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_htmlName, htmlInputName);
-		PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_storeName, name);
 
 		if(StringUtils.isNotBlank(height)){
 			PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_colonHeight,
@@ -235,13 +233,65 @@ public class EditorTagComper extends TagComper {
 
 			//以前button只支持附件按钮,现在扩展支持自定义按钮 start Ben(20260401)
 			button = button.trim();
-			Object buttonConfig = PageCompU.parseButtonConfigWithCms(button);
-			if (buttonConfig != null) {
-				parmMap.put("button", buttonConfig);
-				if (PageCompU.hasAttachmentButton(buttonConfig)) {
-					cmsUpdateUrl = PageCompU.getServiceTag("regCms", "cmsHome", null);
-					cmsAddUrl = PageCompU.getServiceTag("makeAttCms", null,	null);
+
+			//如果只有一个按钮
+			if (button.startsWith("{") && button.endsWith("}")) {
+			// 使用 TypeToken 明确指定 Map 的泛型类型
+			Map<String, String> btnMap = new Gson().fromJson(button,
+					new TypeToken<Map<String, String>>(){}.getType());
+			parmMap.put("button", btnMap);
+
+			// 如果是附件按钮,补属性
+			String btnName = btnMap.get("name");
+			if (StringUtils.isNotBlank(btnName)&&"fjid".equals(btnName)) {
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+			Map<String, String> cmsUpdateMap = new HashMap<>();
+			cmsUpdateMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+			cmsUpdateUrl = PageCompU.getServiceTag("regCms",
+					"cmsHome",
+					cmsUpdateMap);
+*/
+/* 再改,cmsHome.ss.jsp 改为 cmsEdit.jsp,与 cmsPlay 对应。Lin
+			cmsUpdateUrl = PageCompU.getServiceTag("regCms", "cmsHome", null);
+*/			cmsUpdateUrl = PageCompU.getServiceTag("regCms", CmsC.CMS_editPage, null);
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+			Map<String, String> cmsAddMap = new HashMap<>();
+			cmsAddMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+			cmsAddUrl = PageCompU.getServiceTag("makeAttCms",
+					null,
+					cmsAddMap);
+*/			cmsAddUrl = PageCompU.getServiceTag("makeAttCms", null,	null);
+
+			btnMap.put("cmsUpdUrl","@cmsUpdateUrl@");
+			btnMap.put("cmsAddUrl","@cmsAddUrl@");
+
+			}				//是数组,表示有多个按钮
+			} else if (button.startsWith("[") && button.endsWith("]")) {
+
+				Type listType = new TypeToken<List<Map<String, String>>>(){}.getType();
+				List<Map<String, String>> btnList = new Gson().fromJson(button, listType);
+
+				parmMap.put("button", btnList);//加到发布后的数组
+
+				// 遍历查找并修改
+				for (Map<String, String> btnMap : btnList) {
+					// 如果是附件按钮,补属性
+					String btnName = btnMap.get("name");
+					if (StringUtils.isNotBlank(btnName)&&"fjid".equals(btnName)) {
+
+/* 再改,cmsHome.ss.jsp 改为 cmsEdit.jsp,与 cmsPlay 对应。Lin
+						cmsUpdateUrl = PageCompU.getServiceTag("regCms", "cmsHome", null);
+*/						cmsUpdateUrl = PageCompU.getServiceTag("regCms", CmsC.CMS_editPage, null);
+						cmsAddUrl = PageCompU.getServiceTag("makeAttCms", null, null);
+
+						btnMap.put("cmsUpdUrl", "@cmsUpdateUrl@");
+						btnMap.put("cmsAddUrl", "@cmsAddUrl@");
+						break;
+					}
 				}
+
 			} else {
 				System.out.println("错误:ssBtn内容字符串不是有效的JSON格式!!");
 			}

+ 29 - 0
src/core/page/impl/GrowhTagComper.java

@@ -32,7 +32,13 @@ public class GrowhTagComper extends TagComper {
 //		SsLog.print(attrs.toString());	// 去掉,干扰。Lin
 		
 		String name = attrs.get("name");
+/// maxHeight 为 null 时,下面的 wd.edit.initGrowHigh( 的参数会被格式化为 'null'。Lin
+ // 在 growHeight.js 里的 getGrowHeight(,要加判断条件 && maxHeight !== 'null'
+ //	再改,改为格式化为 null -- 不是 'null,且 growHeight.js 里的 getGrowHeight( 不加判断条件 && maxHeight !== 'null'
+ //    对老的 ccp、objp,会导致不出现下拉列表(只有一个空框)
+ //       objectPicker.js 里的 init(initparam) 里的 GrowHeightInstance=window.growHeightList[thisid] 为空,导致抛出空指针
 		String maxHeight = attrs.get("maxHeight");
+///
 		JsonObject json = new JsonObject();
 /* 再改,IDEA:'StringBuffer result' may be declared as 'StringBuilder'。Lin
 		StringBuffer result = new StringBuffer();
@@ -49,7 +55,19 @@ public class GrowhTagComper extends TagComper {
 		case "play":	// PLAY
 // Lin	case play:
 			result.append(String.format(PageCompC.HTML_srcScript, "/ss/js/display.js"));
+/* 再改,改为格式化为 null -- 不是 'null',且 growHeight.js 里的 getGrowHeight( 不加判断条件 && maxHeight !== 'null'。Lin
+ *    原 maxHeight 为 null 时,wd.edit.initGrowHigh( 的参数会被格式化为 'null',导致 <td ssComb="true" 不能组合成一行
+ *    之前,在 growHeight.js 里的 getGrowHeight(,增加判断条件 && maxHeight !== 'null' 后,就能实现 <td ssComb="true"
+ *    但,对老的 ccp、objp,会导致不出现下拉列表(只有一个空框) -- 系统的流程图功能里的 业务 > 流程 ccp,编辑桌面里的 首页部件类别 > 部件 ccp
+ *    再去掉 growHeight.js 里的 getGrowHeight( 的判断条件 && maxHeight !== 'null',就能解决老的 ccp、objp 不出现下拉列表(只有一个空框)的问题
+ *       objectPicker.js 里的 init(initparam) 里的 GrowHeightInstance=window.growHeightList[thisid] 为空,导致抛出空指针
 			outputJs = "wd.display.initGrowHigh('%1$s','%2$s',%3$s,null,%4$s);\n";
+*/
+			if (maxHeight == null)
+				outputJs = "wd.display.initGrowHigh('%1$s',null,%2$s,null,%3$s);\n";
+			else
+				outputJs = "wd.display.initGrowHigh('%1$s','%2$s',%3$s,null,%4$s);\n";
+
 			break;
 		case "edit":	// EDIT
 // Lin	case edit:
@@ -65,8 +83,19 @@ public class GrowhTagComper extends TagComper {
 			break;
 		}
 		
+/* 再改,改为格式化为 null -- 不是 'null',且 growHeight.js 里的 getGrowHeight( 不加判断条件 && maxHeight !== 'null'。Lin
+ *    原 maxHeight 为 null 时,wd.edit.initGrowHigh( 的参数会被格式化为 'null',导致 <td ssComb="true" 不能组合成一行
+ *    之前,在 growHeight.js 里的 getGrowHeight(,增加判断条件 && maxHeight !== 'null' 后,就能实现 <td ssComb="true"
+ *    但,对老的 ccp、objp,会导致不出现下拉列表(只有一个空框) -- 系统的流程图功能里的 业务 > 流程 ccp,编辑桌面里的 首页部件类别 > 部件 ccp
+ *    再去掉 growHeight.js 里的 getGrowHeight( 的判断条件 && maxHeight !== 'null',就能解决老的 ccp、objp 不出现下拉列表(只有一个空框)的问题
+ *       objectPicker.js 里的 init(initparam) 里的 GrowHeightInstance=window.growHeightList[thisid] 为空,导致抛出空指针
 		result.append(String.format(PageCompC.HTML_script,
 				String.format(outputJs, name, maxHeight, json, multiLine)));
+*/
+		if ("play".equals(mode) && maxHeight == null)
+			result.append(String.format(PageCompC.HTML_script, String.format(outputJs, name, json, multiLine)));
+		else
+			result.append(String.format(PageCompC.HTML_script, String.format(outputJs, name, maxHeight, json, multiLine)));
 
 		return result.toString();
 	}

+ 32 - 8
src/core/page/impl/InperTagComper.java

@@ -12,6 +12,7 @@ import com.google.gson.JsonObject;
 import core.page.PageCompC;
 import core.page.TagComper;
 import ss.WebC;
+import ss.cms.CmsC;
 
 
 // 来自 pms-core:WDInputter。Lin
@@ -67,8 +68,10 @@ public class InperTagComper extends TagComper {
 		sb.append("<ss-inp");
 
 		if (StringUtils.isNotBlank(placeholder))
+/* 再改,对指定的 placeholder,不加 "请输入" 前缀。Lin
 			PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 				PageCompC.TAG_PLACEHOLDER_PREFIX_input + placeholder);
+*/			PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholder);
 
 		if (StringUtils.isNotBlank(height)){
 			PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_colonHeight,
@@ -83,14 +86,35 @@ public class InperTagComper extends TagComper {
 
 		//如果有在input上标上附件按钮
 		if (StringUtils.isNotBlank(button)) {
-			Object buttonConfig = PageCompU.parseButtonConfigWithCms(button);
-			if (buttonConfig != null) {
-				parmMap.put("button", buttonConfig);
-				if (PageCompU.hasAttachmentButton(buttonConfig)) {
-					cmsUpdateUrl = PageCompU.getServiceTag("regCms", "cmsHome", null);
-					cmsAddUrl = PageCompU.getServiceTag("makeAttCms", null, null);
-				}
-			}
+
+			// 使用 TypeToken 明确指定 Map 的泛型类型
+			Map<String, String> fjBtn = new Gson().fromJson(button,
+					new TypeToken<Map<String, String>>(){}.getType());
+			parmMap.put("button", fjBtn);
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+			Map<String, String> cmsUpdateMap = new HashMap<>();
+			cmsUpdateMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+			cmsUpdateUrl = PageCompU.getServiceTag("regCms",
+					"cmsHome",
+					cmsUpdateMap);
+*/
+/* 再改,cmsHome.ss.jsp 改为 cmsEdit.jsp,与 cmsPlay 对应。Lin
+			cmsUpdateUrl = PageCompU.getServiceTag("regCms", "cmsHome", null);
+*/			cmsUpdateUrl = PageCompU.getServiceTag("regCms", CmsC.CMS_editPage, null);
+
+/* 再改,去掉 "wdConfirmationCaptchaService":"0"。Lin
+			Map<String, String> cmsAddMap = new HashMap<>();
+			cmsAddMap.put(WebC.REQ_captchaServ, "0");	// ("wdConfirmationCaptchaService",。Lin
+			cmsAddUrl = PageCompU.getServiceTag("makeAttCms",
+					null,
+					cmsAddMap);
+*/			cmsAddUrl = PageCompU.getServiceTag("makeAttCms", null, null);
+
+			fjBtn.put("cmsUpdUrl","@cmsUpdateUrl@");
+			fjBtn.put("cmsAddUrl","@cmsAddUrl@");
+
+			parmMap.put("button", fjBtn);
 		}
 
 		Gson gson = new Gson();

+ 6 - 1
src/core/page/impl/ObjpTagComper.java

@@ -118,15 +118,17 @@ public class ObjpTagComper extends TagComper {
 			PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_opt,name+"Option");
 
 			if(StringUtils.isNotBlank(placeholder))
+/* 再改,对指定的 placeholder,不加 "请选择" 前缀。Lin
 				PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_placeholder,
 						PageCompC.TAG_PLACEHOLDER_PREFIX_select + placeholder);
+*/				PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_placeholder, placeholder);
 
 			if (filter != null) {
 				filter = filter.replaceAll("\"", "'");
 				PageCompU.setTagAttr(sb, PageCompC.TAG_ATTR_filter, filter);
 			}
 
-			PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_inp,inputValue);
+			PageCompU.setTagAttr(sb,PageCompC.VUE_ATTR_inp,inputValue);
 
 //			// 使用Map创建JSON对象
 //			Map<String, String> parmMap = new HashMap<>();
@@ -165,7 +167,10 @@ public class ObjpTagComper extends TagComper {
 				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_filterField, filterField);// add by Ben(20260313)
 
 			if(StringUtils.isNotBlank(onChange))
+/* 再改,改用增加的 VUE_ATTR_onChange = "onChange" -- <ss-objp 里的 onChange= 不改。Lin
+ * 原,混用 PageCompC.TAG_ATTR_onChange,导致 <ss-objp 里的 onChange= 也被改为 chg=
 				PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_onChange,onChange);//页面配置的JS回调函数 Ben(20251217)
+*/				PageCompU.setTagAttr(sb, PageCompC.VUE_ATTR_onChange, onChange);//页面配置的JS回调函数 Ben(20251217)
 
 			if(StringUtils.isNotBlank(width)){
 /* 再改,修复width属性 Ben(20260314)

+ 23 - 0
src/core/page/impl/OnoffInputComper.java

@@ -52,6 +52,7 @@ public class OnoffInputComper extends TagComper {
 		String value = inpTagAttr.get("ssVal");//选中后的值
 		String desc = inpTagAttr.get("value");
 		String id = inpTagAttr.get("id");
+
 		String nullable = data.get("null");	// "nullable"。Lin	// 即使 radio="true",null 也可以 ="true"。Lin
 		if (StringUtils.isBlank(nullable))
 			nullable = PageCompC.VALUE_FALSE;	// 默认值为 false。Lin
@@ -70,7 +71,15 @@ public class OnoffInputComper extends TagComper {
 			readonly = "true";
 		}
 
+/* 再改。Lin
+ * 值为onchange事件JS方法名,如:<input name="rylbm" ssChg="handleRylbmChange"/> Ben(20260521)
+		String onChange = data.get(PageCompC.TAG_ATTR_onChange);//增加页面配置的JS回调函数 Ben(20260325)
+*/
+/* 再改,不能只处理 inpTagAttr.get(PageCompC.TAG_ATTR_ssChg),会导致 <onoff.ss chg= 没有被处理 -- <input ssChg= 有处理到。Lin
+		String ssChg = inpTagAttr.get(PageCompC.TAG_ATTR_ssChg);	// ("ssChg")。Lin
+*/
 		String onChange = data.get(PageCompC.TAG_ATTR_onChange);//增加页面配置的JS回调函数 Ben(20260325)
+		String ssChg = inpTagAttr.get(PageCompC.TAG_ATTR_ssChg);	// ("ssChg")。Lin
 
 		// 空值的处理
 //		onClass = (StringUtils.isNotBlank(onClass))? ("'"+ onClass +"'") : "null";
@@ -86,6 +95,7 @@ public class OnoffInputComper extends TagComper {
 		 label="是"
 		 value="1"
 		 :multiple="false"
+		 onchange="handleRylbmChange"
 		 />
 		 <ss-onoff
 		 v-model="sfqy"
@@ -93,6 +103,7 @@ public class OnoffInputComper extends TagComper {
 		 label="否"
 		 value="1"
 		 :multiple="false"
+		 onchange="handleRylbmChange"
 		 />
 		 */
 
@@ -134,8 +145,20 @@ public class OnoffInputComper extends TagComper {
 			PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_offClass,offClass);
 		}
 
+/* 再改。Lin
+ * 值为onchange事件JS方法名,如:<input name="rylbm"  ssChg="handleRylbmChange"/> Ben(20260521)
 		if(StringUtils.isNotBlank(onChange))
 			PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_onChange,onChange);//增加页面配置的JS回调函数 Ben(20260325)
+*/
+/* 再改,不能只处理 ssChg,会导致 <onoff.ss chg= 没有被处理 -- <input ssChg= 有处理到。Lin
+ * <ss-objp 里的 onChange= 不改 -- 原,混用 PageCompC.TAG_ATTR_onChange,导致 <ss-objp 里的 onChange= 也被改为 chg=
+		if(StringUtils.isNotBlank(ssChg))
+			PageCompU.setTagAttr(sb,PageCompC.TAG_ATTR_onChange,ssChg);
+*/
+		if (StringUtils.isNotBlank(onChange))
+			PageCompU.setTagAttr(sb, PageCompC.VUE_ATTR_onChange, onChange);//增加页面配置的JS回调函数 Ben(20260325)
+		else if (StringUtils.isNotBlank(ssChg))
+			PageCompU.setTagAttr(sb, PageCompC.VUE_ATTR_onChange, ssChg);
 
 		sb.append(PageCompC.LINE_BREAK).append(">").//改为不使用闭标签 Ben(20251218)
 		append(closingTag).append(PageCompC.LINE_BREAK);

+ 1 - 0
src/ss/cb/CbB.java

@@ -44,6 +44,7 @@ public class CbB implements Serializable {
 	public ObjB transObj = null;	//  再增加 <cb transObj="ry",用于翻译码本 -- 只是翻译,可以用 ObjB -- 对于 码本表,模拟创建了只有部分字段的 ObjB。Lin
 	public CbB transCb = null;	// 再增加 <cb transCb="rylbm",用于从缓存的 Cb 里翻译码本。Lin
 	public String transCfg = null;	//  再增加 <cb transCfg="bpm",用于翻译码本 -- <cb serv="jsonBpmByBiz" transCfg="bpm",通过 AppB.bpmMap(Map<String, BpmB>) 翻译。Lin
+	public ServB transServ = null;	// 再增加 <cb transServ="transRxnd",用于翻译码本 -- 通过服务翻译。Lin
 	public boolean isSqlTrans = false;	//  再增加 <cb sql= transSql="this",支持跨表翻译码本 -- <cb name="xyJoinBj" desc="学员班级" sql="xyJoinBj" transSql="this"/>。Lin
 
 	public SqlB sql = null;	// "查询codebook的sql语句"

+ 26 - 0
src/ss/cb/CbU.java

@@ -897,6 +897,32 @@ public class CbU {
 		}
 ///
 
+/////// 再增加,增加 <cb serv="rxnd" transServ="transRxnd"。Lin
+		if (cb.transServ != null) {
+			ServB service = cb.transServ;
+			SsLog.print("翻译码本:transServ= "+ service.name);
+			String className = service.clazzName;
+			String funcName = service.methodName;
+			try {
+				@SuppressWarnings("unchecked")
+				Class<? extends Serv> c = (Class<? extends Serv>) Class.forName(className);
+				Serv o = c.getDeclaredConstructor().newInstance();
+
+				ServU.wrMethodParm(c, o, "transCode", code);
+				if (service.parmMap != null) {
+					for (Entry<String, String> p : service.parmMap.entrySet()) {
+						ServU.wrMethodParm(c, o, p.getKey(), p.getValue());
+					}
+				}
+
+				return (String) ServU.runMethod(o, funcName, null, false);
+			} catch (Exception e) {
+				log4j.error("CbU.transCbByC( 异常", e);
+				return "*** 调用服务失败 ***";
+			}
+		}
+///////
+
 /// 再增加,支持 <cb sql= transSql="this" -- 支持跨表翻译码本,<cb name="xyJoinBj" desc="学员班级" sql="xyJoinBj" transSql="this"/>。Lin
 /* 去掉,在 CbTransTag 里翻译 -- 需要用到页面写的 <trans.ss filter=
  *    CbTransTag 里 CbU.rdOpt(this.cb, this.filter, request) 改为增加的 CbU.transCb(this.val, this.cb)

+ 7 - 3
src/ss/ccp/CcpFieldB.java

@@ -10,10 +10,14 @@ public class CcpFieldB implements Serializable {
 
 	
 	public String name;
+/* 再去掉,共用 ObjFieldB 的。Lin
+	public String desc;	// 再增加,用于显示在下拉选择框里 -- 不需要加 playDesc。Lin
+*/
 
 	public String cbName;
-	public String sql;
-	
+//	public String sql;	// 再去掉,没用到 -- 统一用 cb= 了。Lin
+
 	public Boolean inpable = false;
-	
+	public Integer width = 0;	// 再增加,对单个字段的 ccp,需要在这写 -- 对象配置文件 没有字段。Lin
+
 }

+ 1 - 0
src/ss/cms/CmsC.java

@@ -49,6 +49,7 @@ public class CmsC {
 
 	
 	// 播放器/编辑器。Lin
+	public final static String CMS_editPage = "cmsEdit";	// cms 编辑器部件。原为 cmsHome.ss.jsp,新UI 改为 cmsEdit.jsp。Lin
 	public static final String CMS_toolDir = WebC.AS_webinfDir + "cms/";	// 再把 相关内容 表改为 内容工具 表 -- 根据 内容工具号 取 播放器、编辑器。Lin
 	public static final String CMS_toolExt = ".cms.data";
 

+ 9 - 5
src/ss/obj/ObjU.java

@@ -751,11 +751,15 @@ public class ObjU {
  //       估计还会是 valObject = null,从 草稿箱 进入导致 -- 确定了
 				if (valObject != null) {
 ///
-				ObjPageB pp = obj.pageMap.get(String.valueOf(valObject));
-
-				wholeMap.put(ObjC.WHOLE_MAP_PLUGIN_KEY_MAP, Map.of(obj.subpageKeyName, pp.keyVal));
-				wholeMap.put(ObjC.WHOLE_MAP_PLUGIN_DEF_MAP, pp.defMap);
-				dest = toSubpageName(dest, pp.name);	// "ws_inp" > "ws_xz_inp"。Lin
+					String val = String.valueOf(valObject).trim();
+					if (StringUtils.isNotBlank(val)) {
+						ObjPageB pp = obj.pageMap.get(val);
+						if (pp != null) {
+							wholeMap.put(ObjC.WHOLE_MAP_PLUGIN_KEY_MAP, Map.of(obj.subpageKeyName, pp.keyVal));
+							wholeMap.put(ObjC.WHOLE_MAP_PLUGIN_DEF_MAP, pp.defMap);
+							dest = toSubpageName(dest, pp.name);	// "ws_inp" > "ws_xz_inp"。Lin
+						}
+					}
 				}	// 再增加,增加判断条件。Lin
 			}
 

+ 68 - 1
src/ss/objp/ObjpResultB.java

@@ -1 +1,68 @@
-package ss.objp;

import java.util.Map;


// 来自 ObjectPickerService 的 内部类 ResultSet。Lin
public class ObjpResultB {

	public String errmsg;

	public String visiable;
	public String invisiable;
	public String helptip_name;

/* 再改为 Map<String, String>。Lin
 *    原 List<Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> 改为 Map<"1":"男","2":"女">
 *    在 JS 再转回 List<Map<"1":Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> -- 先把 Java 改好,不改 JS 先
 * 先不支持 Tips 内容,用到再弄
	public List<Map<String, Object>> result;
*/	public Map<String, String> result;


	// 来自 ObjectPickerService.ResultSet(List<Map<String,Object>> list)。Lin
/* 再改,.result(List<Map<String, Object>>) 改为 Map<String, String>。Lin
 *    原 List<Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> 改为 Map<"1":"男","2":"女">
 *    在 JS 再转回 List<Map<"1":Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> -- 先把 Java 改好,不改 JS 先
 * 先不支持 Tips 内容,用到再弄
	public ObjpResultB(List<Map<String, Object>> list) {
		this.result = list;
/// * 再改,IDEA:'result.size()>=1' can be replaced with '!result.isEmpty()'。Lin
 //		if(result!=null&&result.size()>=1){
/// *
		if (result != null && !(result.isEmpty())) {

//			result.forEach(a->a.put("meowmeow", "咕咕噜噜"));
			int i = 0;
			for (String a:result.get(0).keySet()) {
				if (i == 0) {
					this.invisiable = a;
				} else if (i == 1) {
					this.visiable = a;
				} else if (i == 2) {
					this.helptip_name = a;
				} else {
					break;
				}

				i ++;
			}
		}
	}
*/
	public ObjpResultB(Map<String, String> list, String codeFieldName, String descFieldName) {
		this.result = list;
		this.invisiable = codeFieldName;
		this.visiable = descFieldName;
//		this.helptip_name = a;	// 先去掉,先不支持 Tips 内容,用到再弄。Lin
	}

}
+package ss.objp;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+
+// 来自 ObjectPickerService 的 内部类 ResultSet。Lin
+public class ObjpResultB {
+
+	public String errmsg;
+
+	public String visiable;
+	public String invisiable;
+	public String helptip_name;
+
+/* 再改为 Map<String, String>。Lin
+ *    原 List<Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> 改为 Map<"1":"男","2":"女">
+ *    在 JS 再转回 List<Map<"1":Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> -- 先把 Java 改好,不改 JS 先
+ * 先不支持 Tips 内容,用到再弄
+	public List<Map<String, Object>> result;
+*/
+/* 再改,还需要套上 List<,以保证送到页面的顺序 -- js 的 Map 是无序的 -- 但在页面,看到的都是 从小到大 的顺序排列的 -- 被误导了。Lin
+	public Map<String, String> result;
+*/
+	public List<Map<String, String>> result;
+
+
+	// 来自 ObjectPickerService.ResultSet(List<Map<String,Object>> list)。Lin
+/* 再改,.result(List<Map<String, Object>>) 改为 Map<String, String>。Lin
+ *    原 List<Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> 改为 Map<"1":"男","2":"女">
+ *    在 JS 再转回 List<Map<"1":Map<"xbm":"1","mc":"男">,Map<"xbm":"2","mc":"女">> -- 先把 Java 改好,不改 JS 先
+ * 先不支持 Tips 内容,用到再弄
+	public ObjpResultB(List<Map<String, Object>> list) {
+		this.result = list;
+/// * 再改,IDEA:'result.size()>=1' can be replaced with '!result.isEmpty()'。Lin
+ //		if(result!=null&&result.size()>=1){
+/// *
+		if (result != null && !(result.isEmpty())) {
+
+//			result.forEach(a->a.put("meowmeow", "咕咕噜噜"));
+			int i = 0;
+			for (String a:result.get(0).keySet()) {
+				if (i == 0) {
+					this.invisiable = a;
+				} else if (i == 1) {
+					this.visiable = a;
+				} else if (i == 2) {
+					this.helptip_name = a;
+				} else {
+					break;
+				}
+
+				i ++;
+			}
+		}
+	}
+*/
+	public ObjpResultB(Map<String, String> list, String codeFieldName, String descFieldName) {
+		this.result = new ArrayList<>();
+		list.forEach((k, v) -> this.result.add(Map.of(k, v)));
+
+		this.invisiable = codeFieldName;
+		this.visiable = descFieldName;
+//		this.helptip_name = a;	// 先去掉,先不支持 Tips 内容,用到再弄。Lin
+	}
+
+}

+ 1 - 1
src/ss/objp/ObjpServ.java

@@ -503,7 +503,7 @@ public class ObjpServ extends Serv {
 								qq.nullParmList = new ArrayList<>();
 								qq.nullParmList.add(sqlparam.name);
 							} else {
-								qq.wrStrParm(sqlparam.name, upperValue);
+								qq.wrParmByType(sqlparam.name, upperValue, sqlparam.type);
 							}
 						} else {
 							qq.wrStrParm(sqlparam.name, request.getParameter(sqlparam.name));

+ 1 - 0
src/ss/search/SearchServ.java

@@ -5110,6 +5110,7 @@ public class SearchServ extends Serv {
 						}
 */
 ///
+						pluginMap.put("id", plugin.keyVal);	// 在 objList.jsp 的 .subpageOpt 里增加 .id,用于记录当前细分页选择。Lin
 /* 再去掉 StrJson.toParmStr(,直接用 gson.toJson(param)。Lin
  * 没有去掉左、右的 "{"、"}"
  * pluginMap."param" 改为 ."parm" -- 新查询页

+ 5 - 0
src/ss/skin/SkinC.java

@@ -36,4 +36,9 @@ public class SkinC {
 	// 来自 tt.util.SkinUtil.DISABLE_CUSTOM_SKIN(String)。Lin
 	public static String SESS_noCustomSkin = "disableCustomSkin";
 
+
+/// 再增加,UI 样式细节。Lin
+	public static String STYLE_thWidthStr = "width:160px;";	// <th style= 里的 width:160px;。<th 标签标准宽度。Lin
+///
+
 }

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
web/CompPage.jsp


+ 33 - 0
web/js/load.js

@@ -11,6 +11,39 @@ window.ss = { dom: { TYPE : { "INPUT" : 1, "OBJP":2,"DATE":3,"TIME":4,"DATETIME"
 
 window.SS = window.ss;//最终都用小写ss,暂时先兼容大写SS
 
+(function bootstrapLegacyFormTypeAliases() {
+    const TYPE = window.ss && window.ss.dom && window.ss.dom.TYPE;
+    if (!TYPE) {
+        return;
+    }
+
+    if (TYPE.OBJPICKER == null) {
+        TYPE.OBJPICKER = TYPE.OBJP;
+    }
+    if (TYPE.IMG == null) {
+        TYPE.IMG = TYPE.PIC;
+    }
+
+    const legacyInputTypeMap = {
+        DATE: TYPE.DATE,
+        TIME: TYPE.TIME,
+        DATETIME: TYPE.DATETIME,
+        IMG: TYPE.PIC
+    };
+    Object.keys(legacyInputTypeMap).forEach((key) => {
+        if (Object.prototype.hasOwnProperty.call(Number.prototype, key)) {
+            return;
+        }
+        Object.defineProperty(Number.prototype, key, {
+            configurable: true,
+            enumerable: false,
+            get() {
+                return legacyInputTypeMap[key];
+            }
+        });
+    });
+})();
+
 (function(){
 	    const _deps = [
 	        ['script', '/js/ajax/axios.js',''],	// , '/newUI/ss/ajax/axios.js',。Lin(新UI)

+ 117 - 4
web/js/mp_utils/navigation.js

@@ -6,6 +6,78 @@
 /**
  * 页面导航管理器
  */
+const NAV_IGNORED_KEYS = new Set([
+  "function",
+  "pageList",
+  "pluginList",
+  "children",
+  "options",
+]);
+
+function pickPrimitiveParams(source = {}) {
+  const result = {};
+  Object.entries(source).forEach(([key, value]) => {
+    if (NAV_IGNORED_KEYS.has(key)) return;
+    if (value === undefined || value === null || value === "") return;
+    const type = typeof value;
+    if (type === "string" || type === "number" || type === "boolean") {
+      result[key] = value;
+    }
+  });
+  return result;
+}
+
+function normalizeParamScalar(value) {
+  if (value === undefined || value === null) return "";
+  const text = String(value).trim();
+  if (!text) return "";
+  if (
+    (text.startsWith('"') && text.endsWith('"')) ||
+    (text.startsWith("'") && text.endsWith("'"))
+  ) {
+    return text.slice(1, -1);
+  }
+  return text;
+}
+
+function mergeParamPayload(target, rawValue) {
+  if (rawValue === undefined || rawValue === null || rawValue === "") return;
+
+  if (typeof rawValue === "object" && !Array.isArray(rawValue)) {
+    Object.entries(rawValue).forEach(([key, value]) => {
+      if (value === undefined || value === null || value === "") return;
+      const type = typeof value;
+      if (type === "string" || type === "number" || type === "boolean") {
+        target[key] = value;
+      }
+    });
+    return;
+  }
+
+  if (typeof rawValue !== "string") return;
+  const text = rawValue.trim();
+  if (!text) return;
+
+  try {
+    const parsed = JSON.parse(text);
+    if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
+      mergeParamPayload(target, parsed);
+      return;
+    }
+  } catch (_) {}
+
+  text.split(",").forEach((segment) => {
+    const part = String(segment || "").trim();
+    if (!part) return;
+    const separatorIndex = part.indexOf(":");
+    if (separatorIndex <= 0) return;
+    const key = normalizeParamScalar(part.slice(0, separatorIndex));
+    const value = normalizeParamScalar(part.slice(separatorIndex + 1));
+    if (!key || !value) return;
+    target[key] = value;
+  });
+}
+
 const NavigationManager = {
   
   /**
@@ -55,7 +127,13 @@ const NavigationManager = {
    */
   goToFromButton(button) {
     // 优先检查function.dest,然后是button.dest
-    const rawDestPage = button.function?.dest || button.dest;
+    const buttonConfig =
+      button && typeof button === "object" ? button : {};
+    const functionConfig =
+      buttonConfig.function && typeof buttonConfig.function === "object"
+        ? buttonConfig.function
+        : {};
+    const rawDestPage = functionConfig.dest || buttonConfig.dest;
 
     // 功能说明:后端返回 dest(如 objInp)时自动补齐 mp_ 前缀,统一跳转到移动端页面 by xu 2026-02-28
     const destPage = (() => {
@@ -71,11 +149,46 @@ const NavigationManager = {
     }
 
     const params = {
-      dest: destPage,
-      title: button.function?.desc || button.function?.title || button.desc || button.title || button.buttonName || button.name || '',
-      service: button.function?.servName || button.servName || button.service || ''
+      ...pickPrimitiveParams(buttonConfig),
+      ...pickPrimitiveParams(functionConfig),
+      dest: String(rawDestPage || "").trim(),
+      ssDest: String(rawDestPage || "").trim(),
+      title:
+        functionConfig.desc ||
+        functionConfig.title ||
+        buttonConfig.desc ||
+        buttonConfig.title ||
+        buttonConfig.buttonName ||
+        buttonConfig.name ||
+        "",
+      service:
+        functionConfig.servName ||
+        buttonConfig.servName ||
+        buttonConfig.service ||
+        ""
     };
 
+    mergeParamPayload(params, buttonConfig.param);
+    mergeParamPayload(params, functionConfig.param);
+    mergeParamPayload(params, buttonConfig.parm);
+    mergeParamPayload(params, functionConfig.parm);
+
+    const paramName = String(
+      functionConfig.param_name || buttonConfig.param_name || ""
+    ).trim();
+    const paramValue =
+      functionConfig.param_value !== undefined
+        ? functionConfig.param_value
+        : buttonConfig.param_value;
+    if (
+      paramName &&
+      paramValue !== undefined &&
+      paramValue !== null &&
+      paramValue !== ""
+    ) {
+      params[paramName] = paramValue;
+    }
+
     // 跳转页面,标记需要刷新
     this.goTo(destPage, params, { needRefresh: true });
     return true;

+ 11 - 3
web/js/validate/validation-manager.js

@@ -294,9 +294,17 @@ class ValidationManager {
             const tdFields = Array.from(td.querySelectorAll('[name]'))
                 .map(el => el.getAttribute('name'))
                 .filter(name => {//条件改为:如果字段存在非空校验规则,且当前值为空,filter才通过返回tdField Ben(20260107)
-                    let vArr = this.validations.get(name);
-
-                    for(let i=0;i<vArr.length;i++){
+									let vArr = this.validations.get(name);
+/// 再增加。Lin
+ // 在 objInp.jsp 里的 SS.ready() 里的 for 循环里,调用 this. add( > 本方法时为 cwid 的非空校验 -- this.validations 是上层传入的 cwid 非空校验
+ //    for 循环的值有 sqryid(申请人员ID)、jzwid(建筑物ID)、kfid(客房ID)、cwid(床位ID)
+ // 而,这里拿到第一个字段是 jzwid(name 的值),导致 vArr 为空 -- 只能处理一个 <td 里只有一个 录入字段
+ //    一个 <td 里,会有多个字段。如 jzwid + kfid + cwid
+ // 从而导致 vArr.length 抛出空指针
+									if (!vArr)
+										return false;
+///
+										for(let i=0;i<vArr.length;i++){
                         let v = vArr[i];
                         console.log('@@v:'+JSON.stringify(v));
 

+ 40 - 9
web/js/vue/initVue.js

@@ -4,33 +4,46 @@ const data = {};
 if (window.SS.dom.formElemConfig) {
     Object.entries(window.SS.dom.formElemConfig).forEach(([key, config]) => {
         data[key] = config.val;
+        const formElemType = config ? config.type : null;
         // 处理 objPicker
-        if (config.type === window.SS.dom.TYPE.OBJPICKER) {
+        if (
+            formElemType === window.SS.dom.TYPE.OBJPICKER ||
+            formElemType === window.SS.dom.TYPE.OBJP
+        ) {
             data[key + "ObjPicker"] = true;
             data[key + "Option"] = [];
             data[key + "Url"] = config.url;
         }
 
         // 处理datepicker
-        if (config.type === window.SS.dom.TYPE.DATE) {
-
+        if (
+            formElemType === window.SS.dom.TYPE.DATE ||
+            formElemType === window.SS.dom.TYPE.TIME ||
+            formElemType === window.SS.dom.TYPE.DATETIME
+        ) {
             data[key + "Mode"] = config.mode
             console.log(data[key + "Mode"]);
         }
         // 处理富文本编辑器
-        if (config.type === window.SS.dom.TYPE.RICHTEXT) {
+        if (
+            formElemType === window.SS.dom.TYPE.RICHTEXT ||
+            formElemType === window.SS.dom.TYPE.HTML
+        ) {
             data[key + "Url"] = config.val;
             data[key + "editor"] = config.val;
         }
         // 处理onoff
-        if (config.type === window.SS.dom.TYPE.ONOFFBTN) {
+        if (formElemType === window.SS.dom.TYPE.ONOFFBTN) {
             if(config.val){//增加对空值的判断 Ben(20260408)
                 data[key] = config.val.split('|');
             }else{
                 data[key] = [];
             }
         }
-        if (config.type === window.SS.dom.TYPE.IMG) {
+        if (
+            formElemType === window.SS.dom.TYPE.IMG ||
+            formElemType === window.SS.dom.TYPE.PIC
+        ) {
             data[key + "showUrl"] = config.showUrl;
             data[key + "uploadUrl"] = config.uploadUrl;
         }
@@ -45,9 +58,19 @@ SS.ready(function () {
             const item = ss.dom.formVmConfig[i];
             // 处理每个元素
             let rule = item.rule;
-            let field = item.field;
             let param = item.param;
-            window.ssVm.add(rule, field, param);
+            let fieldArr = Array.isArray(item.field) ? item.field : [item.field];
+            let fieldValMap = [];
+            for (let j = 0; j < fieldArr.length; j++) {
+                const field = fieldArr[j];
+                if (
+                    window.SS.dom.formElemConfig &&
+                    window.SS.dom.formElemConfig[field]
+                ) {
+                    fieldValMap[field] = window.SS.dom.formElemConfig[field].val;
+                }
+            }
+            window.ssVm.add(rule, fieldArr, param, fieldValMap);
         }
 
 
@@ -111,6 +134,14 @@ SS.ready(function () {
                     };
                 }
             });
+
+            try {
+                window.SS = window.SS || {};
+                window.SS.__appMounted = true;
+                document.dispatchEvent(new Event('ssAppMounted'));
+            } catch (e) {
+                console.error('dispatch ssAppMounted failed:', e);
+            }
         }
     })
-});
+});

+ 12624 - 11320
web/js/vue/ss-components.js

@@ -1,11326 +1,12630 @@
-import { ssIcon, commonIcon } from "./icon-config.js";
+import {commonIcon, ssIcon} from "./icon-config.js";
 import * as IndexComponents from "./ss-index-components.js";
 import * as EchartComponents from "./ss-echarts-compnents.js";
-import {
-  isNum,
-  toStyleStr,
-  buildThumbUrl,
-  openServiceDialog,
-  pickSearchParams,
-} from "./tools.js"; // 功能说明:组件内统一构建缩略图URL、打开服务弹窗,减少 JSP 层字段转换 by xu 20260122
-import { EVEN_VAR } from "./EventBus.js";
+import {buildThumbUrl, isNum, toStyleStr,} from "./tools.js"; // 功能说明:组件内统一构建缩略图URL、打开服务弹窗,减少 JSP 层字段转换 by xu 20260122
+import {EVEN_VAR} from "./EventBus.js";
 
 // import * as elements from "../lib/element-plus.js";
 (function () {
-  const {
-    createApp,
-    ref,
-    reactive,
-    watch,
-    onMounted,
-    onBeforeUnmount,
-    h,
-    computed,
-    resolveComponent,
-    watchEffect,
-    nextTick,
-    onVnodeMounted,
-    Teleport,
-    inject,
-    provide,
-  } = Vue;
-
-  // 弹窗默认遮罩z-index
-  let currentZIndex = 100;
-  //   目前已存在的弹窗
-  const topWindow = window.top;
-  topWindow.dialogInstances = topWindow.dialogInstances || [];
-  // 新建弹窗
-  function createSsDialogInstance(setting, callbackEvent) {
-    currentZIndex += 10; // 动态提升 z-index
-    const container = document.createElement("div");
-    document.body.appendChild(container);
-    const app = Vue.createApp({
-      render() {
-        return h(SsDialog, {
-          ...setting,
-          zIndex: currentZIndex,
-          onClose() {
-            document.body.removeChild(container); // 仅移除弹窗容器
-            const index = topWindow.dialogInstances.indexOf(app);
-            if (index > -1) {
-              topWindow.dialogInstances.splice(index, 1); // 移除实例
-            }
-            // 关闭后的回调
-            if (callbackEvent && typeof callbackEvent === "function") {
-              callbackEvent();
-            }
-            app.unmount(); // 仅卸载弹窗实例
-            if (container.parentNode) {
-              container.parentNode.removeChild(container); // 确保移除容器
-            }
-          },
-        });
-      },
-    });
-    topWindow.dialogInstances.push({ app, callbackEvent, container });
-    app.component("ss-mark", SsMark); // 注册 ss-mark 组件
-    app.component("ss-icon", SsIcon);
-    app.component("ss-full-style-header", SsFullStyleHeader); // 注册 ss-full-style-header 组件
-    app.mount(container);
-  }
-  // ss-breadcrumb 一级菜单页面面包屑
-  const SsBreadcrumb = {
-    name: "SsBreadcrumb",
-    props: {
-      level: {
-        type: Object,
-        default: null,
-      },
-    },
-    setup(props) {
-      const currentMenu = ref(null);
-      const folderPath = ref([]);
-      const eventBus = window.parent.sharedEventBus;
-
-      // 监听页面变化
-      onMounted(() => {
-        // 获取初始页面
-        currentMenu.value = eventBus.getState(EVEN_VAR.currentPage);
-        folderPath.value = eventBus.getState("folderPath") || [];
-
-        // 订阅页面变化
-        eventBus.subscribe(EVEN_VAR.currentPage, (page) => {
-          currentMenu.value = page;
-        });
-        eventBus.subscribe("folderPath", (path) => {
-          folderPath.value = path || [];
-        });
-      });
-      // 修改点击处理函数
-      const handlePathClick = (index) => {
-        if (props.level?.onBack) {
-          // 截取到点击的位置,后面的路径会被销毁
-          const newPath = folderPath.value.slice(0, index + 1);
-          eventBus.publish("folderPath", newPath);
-          // 返回到对应层级
-          const targetFolder = newPath[newPath.length - 1]?.folder || null;
-          props.level.onBack(targetFolder);
-        }
-      };
-      const SsCommonIcon = resolveComponent("SsCommonIcon");
-      return () =>
-        h("div", { class: "bread-crumb" }, [
-          currentMenu.value &&
-            h(
-              "div",
-              {
-                onClick: () => {
-                  if (props.level?.onBack) {
-                    eventBus.publish("folderPath", []);
-                    props.level.onBack(null); // 返回到根目录
-                  } else {
-                    eventBus.publish(EVEN_VAR.currentPage, currentMenu.value);
-                  }
-                },
-              },
-              currentMenu.value.label || currentMenu.value.name
-            ),
-
-          ...(folderPath.value || [])
-            .map((folder, index) => [
-              h(SsCommonIcon, { class: "common-icon-arrow-right" }),
-              h(
-                "div",
-                {
-                  class: "bread-crumb-item",
-                  onClick: () => handlePathClick(index),
-                  style: { cursor: "pointer" },
-                },
-                folder.title
-              ),
-            ])
-            .flat(),
-        ]);
-    },
-  };
-
-  // ss-input form表单的输入
-  const SsInput = {
-    name: "SsInp", //把SsInput改为SsInp Ben(20251225)
-    inheritAttrs: false, // 不直接继承属性到组件根元素
-    props: {
-      name: {
-        type: String,
-        required: true,
-        default: "",
-      },
-      // 接收 v-model 绑定的值
-      errTip: {
-        type: String,
-      },
-      required: {
-        type: Boolean,
-        default: false,
-      },
-      placeholder: {
-        type: String,
-        default: "请输入",
-      },
-      defaultValue: [String, Number],
-      modelValue: [String, Number],
-      // 新增:附件配置
-      fj: {
-        type: Object,
-        default: null,
-      },
-      // 新增:param 配置(用于附件功能)
-      param: {
-        type: Object,
-        default: null,
-      },
-      // 新增:高度配置
-      height: {
-        type: String,
-        default: "",
-      },
-      // 功能说明:传 height 时允许回车换行(多行输入);未传 height 默认单行 by xu 20260204
-      // 功能说明:onChange 全局回调 prop,桥接 API 赋值时自动触发 by xu 20260416
-      onchange: {
-        type: String,
-        required: false,
-      },
-    },
-    emits: ["update:modelValue", "input", "blur", "change"], // 允许更新 v-model 绑定的值
-    setup(props, { emit }) {
-      const errMsg = ref("");
-      const inputRef = ref(null);
-      const textareaRef = ref(null);
-      const inputValue = ref(props.modelValue || props.defaultValue || "");
-      const contentFloatingDiv = ref(false); // 控制浮动 DIV 的显示
-      const floatingDivPosition = ref("bottom"); // 'bottom' 或 'top'
-      const isFocused = ref(false); // 跟踪焦点状态
-
-      // 附件相关变量(仅在传入 param 时初始化)
-      const buttonConfigRaw = props.param && props.param.button ? props.param.button : null;
-      const buttonArray = Array.isArray(buttonConfigRaw)
-        ? buttonConfigRaw
-        : buttonConfigRaw
-          ? [buttonConfigRaw]
-          : [];
-      const attachmentButton =
-        buttonArray.find((btn) => btn && btn.cmsAddUrl && btn.cmsUpdUrl) || null;
-      const hasAttachmentButton = !!attachmentButton;
-      const attachmentFieldName =
-        attachmentButton?.name || (props.fj && props.fj.name) || "fjid";
-      const attachmentButtonText =
-        attachmentButton?.desc ||
-        attachmentButton?.text ||
-        props.fj?.desc ||
-        props.fj?.text ||
-        "附件";
-      const resolvePageSearchParam = (key) => {
-        try {
-          return new URL(window.location.href).searchParams.get(key) || "";
-        } catch (error) {
-          return "";
-        }
-      };
-      const resolveAttachmentObjName = () =>
-        props.param?.obj ||
-        props.param?.ssObjName ||
-        document.querySelector("[name='ssObjName']")?.value ||
-        window?.ss?.dom?.ssObjName ||
-        resolvePageSearchParam("ssObjName") ||
-        "";
-      const resolveAttachmentObjId = () =>
-        props.param?.ssObjId ||
-        props.param?.objId ||
-        document.querySelector("[name='ssObjId']")?.value ||
-        resolvePageSearchParam("ssObjId") ||
-        "";
-      const buildAttachmentCreatePayload = () => ({
-        name: attachmentFieldName,
-        ssNrObjName: resolveAttachmentObjName(),
-        ssNrObjId: resolveAttachmentObjId(),
-      });
-      const buildAttachmentDialogQuery = () =>
-        "&nrid=T-" +
-        fjid.value +
-        "&objectId=" +
-        fjid.value +
-        "&objectName=" +
-        attachmentFieldName +
-        "&callback=" +
-        (window[attachmentFieldName + "CallbackName"] || "");
-      let fjid = ref(attachmentButton?.val || null);
-      let mode = props.param ? props.param.mode : null;
-
-      // 功能说明:只有存在非空校验(notNull)且值为空时,才显示红线 by xu 20260402
-      const hasNotNullRule = () => {
-        const validations = window.ssVm?.validations?.get(props.name);
-        if (!validations || validations.length === 0) return false;
-        return validations.some(v => v.ruleName && v.ruleName.includes('notNull'));
-      };
-
-      const showRequired = computed(() => {
-        const validations = window.ssVm?.validations?.get(props.name);
-        if (!validations || validations.length === 0) return false;
-
-        // 检查是否存在 notNull 规则
-        const hasNotNull = validations.some(v => v.ruleName && v.ruleName.includes('notNull'));
-
-        // 有非空规则且值为空时显示红线
-        if (hasNotNull && !inputValue.value) {
-          return true;
-        }
-        return false;
-      });
-
-      // 计算floatdiv应该向上还是向下展开
-      const calculateFloatingDivPosition = () => {
-        nextTick(() => {
-          const textarea = inputRef.value;
-          if (!textarea) return;
-
-          const rect = textarea.getBoundingClientRect();
-          const viewportHeight = window.innerHeight;
-
-          // 预估floatdiv的高度(最多5行 * 20px + 上下padding + border)
-          const estimatedFloatDivHeight = 20 * 5 + 10 + 2; // 5行 + padding + border = 112px
-
-          // 检查下方空间
-          const spaceBelow = viewportHeight - rect.bottom;
-
-          // 如果下方空间不足,且上方空间足够,则向上展开
-          if (
-            spaceBelow < estimatedFloatDivHeight &&
-            rect.top > estimatedFloatDivHeight
-          ) {
-            floatingDivPosition.value = "top";
-          } else {
-            floatingDivPosition.value = "bottom";
-          }
-        });
-      };
-
-      // 计算floatdiv的top偏移量
-      const getFloatingDivTop = computed(() => {
-        if (props.height) {
-          // 有height时,padding是5px
-          return "5px";
-        } else {
-          // 没有height时是单行居中,需要计算居中位置
-          // 假设input-container高度是32px(或者从CSS读取),单行20px
-          // 居中偏移 = (容器高度 - 行高) / 2 = (32 - 20) / 2 = 6px
-          return "6px";
-        }
-      });
-
-      const validate = () => {
-        if (window.ssVm) {
-          const result = window.ssVm.validateField(props.name);
-          errMsg.value = result.valid ? "" : result.message;
-        }
-      };
-
-      // 功能说明:调用全局 onChange 回调 by xu 20260416
-      const callGlobalOnchg = (value) => {
-        if (props.onchange && typeof props.onchange === "string") {
-          if (
-            typeof window !== "undefined" &&
-            window[props.onchange] &&
-            typeof window[props.onchange] === "function"
-          ) {
-            try {
-              window[props.onchange](value);
-            } catch (error) {
-              console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
-            }
-          }
-        }
-      };
-
-      // 使用 watch 监听 props.errTip 和 props.modelValue 的变化
-      watch(
-        () => props.errTip,
-        (newVal) => {
-          errMsg.value = newVal;
-        },
-        { immediate: true }
-      );
-      watch(
-        () => props.modelValue,
-        (newVal) => {
-          inputValue.value = newVal;
-          // 桥接 API 赋值时触发全局 onChange by xu 20260416
-          callGlobalOnchg(newVal);
-        }
-      );
-
-      // 挂载时的逻辑
-      onMounted(() => {
-        errMsg.value = props.errTip;
-        inputValue.value = props.modelValue || props.defaultValue || "";
-      });
-      // 计算并调整textarea的高度
-      const adjustHeight = () => {
-        nextTick(() => {
-          const textarea = textareaRef.value;
-          if (!textarea) return;
-
-          // floatDiv的textarea始终自动计算高度,不受props.height影响
-          // 重置高度以获得正确的scrollHeight
-          textarea.style.height = "auto";
-          // 计算新高度 - 统一限制为5行
-          const lineHeight = parseInt(
-            getComputedStyle(textarea).lineHeight,
-            10
-          );
-          const maxHeight = lineHeight * 5; // 统一为5行
-          const newHeight = Math.min(textarea.scrollHeight, maxHeight);
-          textarea.style.height = `${newHeight}px`;
-        });
-      };
-
-      // 检查是否应该显示浮动窗口(需要同时满足:有焦点 + 内容超出)
-      // 修复新增页面点击就出现floatdiv的问题 by xu 20251212
-      const checkShouldShowFloatingDiv = () => {
-        const textarea = inputRef.value;
-        if (!textarea) return false;
-
-        // 首先检查是否有内容,没有内容时不显示floatdiv by xu 20251212
-        if (!inputValue.value || inputValue.value.toString().trim() === "") {
-          console.log("[floatdiv] 内容为空,不显示floatdiv");
-          return false;
-        }
-
-        // 判断内容是否超出 by xu 20251212
-        // 同时检查横向和纵向溢出,任一方向溢出都应显示floatdiv
-        // 纵向溢出需要加容差值,避免padding/border导致的误判 by xu 20251212
-        const verticalTolerance = 5; // 容差值5px
-        const isHorizontalOverflow =
-          textarea.scrollWidth > textarea.clientWidth;
-        const isVerticalOverflow =
-          textarea.scrollHeight > textarea.clientHeight + verticalTolerance;
-        const isOverflow = isHorizontalOverflow || isVerticalOverflow;
-
-        console.log(
-          "[floatdiv] 溢出检测 - scrollWidth:",
-          textarea.scrollWidth,
-          "clientWidth:",
-          textarea.clientWidth,
-          "horizontalOverflow:",
-          isHorizontalOverflow
-        );
-        console.log(
-          "[floatdiv] 溢出检测 - scrollHeight:",
-          textarea.scrollHeight,
-          "clientHeight:",
-          textarea.clientHeight,
-          "tolerance:",
-          verticalTolerance,
-          "verticalOverflow:",
-          isVerticalOverflow
-        );
-
-        const shouldShow = isFocused.value && isOverflow;
-        console.log(
-          "[floatdiv] 最终判断 - isFocused:",
-          isFocused.value,
-          "isOverflow:",
-          isOverflow,
-          "shouldShow:",
-          shouldShow
-        );
-
-        // 需要同时满足:有焦点 + 内容超出
-        return shouldShow;
-      };
-
-      // 定义事件处理函数
-      const onInput = (event) => {
-        const newValue = event.target.value;
-        inputValue.value = newValue;
-        emit("update:modelValue", newValue);
-        validate(); // 输入时验证
-
-        nextTick(() => {
-          // 检查是否需要显示浮动div
-          contentFloatingDiv.value = checkShouldShowFloatingDiv();
-
-          // 如果需要显示floatdiv,计算其位置
-          if (contentFloatingDiv.value) {
-            calculateFloatingDivPosition();
-          }
-        });
-        adjustHeight();
-      };
-      const onFocus = (event) => {
-        // 设置焦点状态为true
-        isFocused.value = true;
-        adjustHeight();
-
-        // 检查是否应该显示浮动窗口
-        nextTick(() => {
-          contentFloatingDiv.value = checkShouldShowFloatingDiv();
-          if (contentFloatingDiv.value) {
-            calculateFloatingDivPosition();
-          }
-        });
-      };
-
-      // 失去焦点时进行验证
-      const onBlur = (event) => {
-        emit("blur", event.target);
-        validate(); // 失焦时验证
-
-        nextTick(() => {
-          // 如果焦点不在 textarea 上,则隐藏浮动 div
-          if (!document.activeElement.classList.contains("input-control")) {
-            isFocused.value = false;
-            contentFloatingDiv.value = false;
-          }
-        });
-      };
-      const onChange = (event) => {
-        inputValue.value = event.target.value || "";
-        emit("change", inputValue.value);
-      };
-      const onMouseover = (event) => {
-        nextTick(() => {
-          // setTimeout(contentFloatingDiv.value = true, 500)
-        });
-      };
-      const onMouseleave = (event) => {
-        // contentFloatingDiv.value = false
-      };
-
-      // 功能说明:传了 height 视为多行允许回车;未传 height 拦截回车(单行表现) by xu 20260204
-      const onKeydown = (event) => {
-        const allowMultiline =
-          typeof props.height === "string" && props.height.trim() !== "";
-        if (!allowMultiline && event.key === "Enter") {
-          event.preventDefault();
-        }
-      };
-
-      // 附件按钮点击处理(从 SsEditor 搬运)
-      const onAttachmentClick = (e) => {
-        e.preventDefault();
-
-        if (!hasAttachmentButton || !attachmentButton) {
-          console.warn("未配置 param 参数");
-          return;
-        }
-
-        console.log("附件点击了");
-        console.log("param", props.param);
-        console.log("cmsAddUrl", attachmentButton.cmsAddUrl);
-
-        // 如果 fjid 为空,先调用 cmsAddUrl 创建
-        if (fjid.value == null || fjid.value == "") {
-          $.ajax({
-            type: "post",
-            url: attachmentButton.cmsAddUrl,
-            async: false,
-            data: buildAttachmentCreatePayload(),
-            success: function (_fjid) {
-              console.log("cmsAddUrl success", _fjid);
-              fjid.value = _fjid;
-            },
-          });
-        }
-
-        // 构建参数字符串
-        const str = buildAttachmentDialogQuery();
-
-        console.log("str", str);
-
-        // 打开附件编辑对话框
-        SS.openDialog({
-          src: attachmentButton.cmsUpdUrl + str,
-          headerTitle: "编辑",
-          width: 900,
-          high: 664,
-          zIndex: 51,
-        });
-      };
-
-      return {
-        errMsg,
-        inputValue,
-        showRequired,
-        onInput,
-        onBlur,
-        onChange,
-        onMouseover,
-        onMouseleave,
-        onKeydown, // 新增:键盘事件处理 by xu 20251212
-        contentFloatingDiv,
-        floatingDivPosition,
-        getFloatingDivTop,
-        inputRef,
-        textareaRef,
-        onFocus,
-        onAttachmentClick,
-        attachmentFieldName,
-        attachmentButtonText,
-        hasAttachmentButton,
-        fjid, // 附件 ID,用于隐藏字段
-      };
-    },
-    render() {
-      const { resolveComponent, h } = Vue;
-      const SsIcon = resolveComponent("ss-icon");
-      const SsEditorIcon = resolveComponent("SsEditorIcon");
-
-      // 构建主textarea的样式
-      const mainTextareaStyle = {};
-      if (this.height) {
-        mainTextareaStyle.height = "auto";
-        // mainTextareaStyle.paddingTop = '5px'; // 有高度时加上padding-top
-        // mainTextareaStyle.paddingBottom = '5px'; // 有高度时加上padding-bottom
-      } else {
-        // 没有指定height时,固定为单行高度
-        mainTextareaStyle.height = "20px"; // 行高20px
-        mainTextareaStyle.lineHeight = "20px"; // 确保单行垂直居中
-        mainTextareaStyle.display = "flex";
-        mainTextareaStyle.marginBottom = "5px";
-      }
-
-      // 如果有附件按钮,为按钮留出空间
-      if (this.fj || this.hasAttachmentButton) {
-        //加上&&this.param.button条件 Ben(20251221)
-        mainTextareaStyle.paddingRight = "75px";
-      }
-
-      const mainTextareaRows = this.height
-        ? Math.floor(parseFloat("80px") / 20)
-        : 1;
-
-      return h("div", { class: "input" }, [
-        h("div", { class: "input-container" }, [
-          h("div", { class: "input", style: "padding:5px 0" }, [
-            h("textarea", {
-              ref: "inputRef",
-              class: "input-control",
-              name: this.name,
-              value: this.inputValue,
-              onInput: this.onInput,
-              onFocus: this.onFocus,
-              onBlur: this.onBlur,
-              onChange: this.onChange,
-              onKeydown: this.onKeydown, // 新增:禁止回车换行 by xu 20251212
-              placeholder: this.placeholder,
-              onMouseover: this.onMouseover, // 监听鼠标悬停
-              onMouseleave: this.onMouseleave, // 监听鼠标离开
-              rows: mainTextareaRows,
-              ...this.$attrs,
-              style: mainTextareaStyle,
-              autocomplete: "off",
-            }),
-            // 附件按钮(优先使用 param,兼容旧的 fj)
-            this.fj || this.hasAttachmentButton //加上&&this.param.button条件 Ben(20251221)
-              ? h(
-                  "button",
-                  {
-                    type: "button",
-                    class: "fj-button",
-                    onClick: this.hasAttachmentButton
-                      ? this.onAttachmentClick
-                      : (e) => {
-                          e.preventDefault();
-                          console.log("附件配置:", this.fj);
-                        },
-                  },
-                  [
-                    h(SsEditorIcon, {
-                      class: "editor-icon-link",
-                    }),
-                    h("span", { class: "fj-button-text" }, this.attachmentButtonText || "附件"),
-                  ]
-                )
-              : null,
-          ]),
-          this.contentFloatingDiv || ""
-            ? h(
-                "div",
-                {
-                  class: "floating-div",
-                  style:
-                    this.floatingDivPosition === "bottom"
-                      ? {
-                          // 向下展开: 覆盖原输入框,top对齐首行
-                          top: this.getFloatingDivTop,
-                          bottom: "auto",
-                        }
-                      : {
-                          // 向上展开: 同样覆盖原输入框,但从底部开始计算
-                          top: "auto",
-                          bottom: this.height ? "5px" : "6px", // 对齐到原textarea的底部padding位置
-                        },
-                },
-                [
-                  h("textarea", {
-                    ref: "textareaRef",
-                    class: "input-control",
-                    value: this.inputValue,
-                    onInput: this.onInput,
-                    onBlur: this.onBlur,
-                    onFocus: this.onFocus,
-                    onKeydown: this.onKeydown, // 新增:禁止回车换行 by xu 20251212
-                    onMouseover: this.onMouseover, // 监听鼠标悬停
-                    onMouseleave: this.onMouseleave, // 监听鼠标离开
-                    autocomplete: "off",
-                    onVnodeMounted: (vnode) => {
-                      vnode.el.focus();
-                    },
-                  }),
-                ]
-              )
-            : null,
-          // this.errMsg ? h(SsValidate, { errMsg: this.errMsg }) : null,
-        ]),
-        // 附件相关的隐藏字段(仅在有 param 时才渲染)
-        this.param && [
-          // fjid 隐藏字段(只有当 fjid 有值时才渲染)
-          this.fjid &&
-            h("input", {
-              type: "hidden",
-              name: this.attachmentFieldName || "fjid",
-              value: this.fjid,
-            }),
-          // 其他隐藏字段根据 name 生成
-          /* 去掉。文本框不需要(这是富文本才有的) Ben 20251205
-          h("input", {
-          type: "hidden",
-          name: this.name.replace(/wj$/, "") + "Edit",
-          value: this.inputValue
-          }),
-          */
-          // h("input", {
-          //   type: "hidden",
-          //   name: this.name.replace(/wj$/, "") + "wj",
-          //   value: this.inputValue
-          // }),
-          /* 去掉。文本框不需要(这是富文本才有的) Ben 20251205
-          h("input", {
-          type: "hidden",
-          name: "ueditorpath",
-          value: this.name
-          }),
-          */
-        ],
-      ]);
-    },
-  };
-  // ss-normal-input 登录输入
-  const SsLoginInput = {
-    name: "SsLoginInput",
-    inheritAttrs: false,
-    props: {
-      errTip: {
-        type: String,
-      },
-
-      type: {
-        type: String,
-        default: "text",
-      },
-      required: {
-        type: Boolean,
-        default: false,
-      },
-      placeholder: {
-        type: String,
-        default: "请输入",
-      },
-      name: {
-        type: String,
-        default: "",
-      },
-      defaultValue: [String, Number],
-      modelValue: [String, Number],
-    },
-    emits: ["update:modelValue", "input", "blur", "change"], // 允许更新 v-model 绑定的值
-    setup(props, { emit }) {
-      const errMsg = ref("");
-      const inputRef = ref(null);
-      const textareaRef = ref(null);
-      const inputValue = ref(props.modelValue || props.defaultValue || "");
-
-      // 使用 watch 监听 props.errTip 和 props.modelValue 的变化
-      watch(
-        () => props.errTip,
-        (newVal) => {
-          errMsg.value = newVal;
-        },
-        { immediate: true }
-      );
-      watch(
-        () => props.modelValue,
-        (newVal) => {
-          inputValue.value = newVal;
-        }
-      );
-
-      // 挂载时的逻辑
-      onMounted(() => {
-        errMsg.value = props.errTip;
-        inputValue.value = props.modelValue || props.defaultValue || "";
-      });
-
-      // 定义事件处理函数
-      const onInput = (event) => {
-        const newValue = event.target.value;
-        inputValue.value = newValue;
-        emit("update:modelValue", newValue);
-      };
-      return { inputValue, onInput, inputRef, textareaRef };
-    },
-    render() {
-      return h("div", { class: "input" }, [
-        h("div", { class: "input-container" }, [
-          h("div", { class: "input" }, [
-            h("input", {
-              ref: "inputRef",
-              class: "input-control",
-              name: this.name,
-              value: this.inputValue,
-              onInput: this.onInput,
-              type: this.type,
-              placeholder: this.placeholder,
-              required: this.required,
-              ...this.$attrs,
-              autocomplete: "off",
-            }),
-          ]),
-        ]),
-      ]);
-    },
-  };
-  // ss-login-button
-  const SsLoginButton = {
-    name: "SsLoginButton",
-    inheritAttrs: false,
-    props: {
-      class: {
-        type: String,
-        default: "",
-      },
-      text: {
-        type: String,
-        default: "",
-      },
-      type: {
-        type: String,
-        default: "button",
-      },
-    },
-    emits: ["click"],
-    setup(props, { emit }) {
-      // 定义事件处理函数
-      const onClick = (event) => {
-        // 发射一个 'click' 事件,你可以传递所需的参数
-        emit("click", event);
-      };
-
-      return { props, onClick };
-    },
-    render() {
-      const SsIcon = resolveComponent("ss-icon");
-      const SsLoginIcon = resolveComponent("ss-login-icon");
-      return h(
-        "button",
-        { class: "login-button", type: this.type, onClick: this.onClick },
-        [
-          h("span", [h(SsLoginIcon, { class: this.class })]),
-          h("span", {}, this.text),
-        ]
-      );
-    },
-  };
-  // ss-objp 下拉选择
-  const SsObjp = {
-    name: "SsObjp",
-    inheritAttrs: false,
-    props: {
-      onchange: {
-        //在此属性传入onChange的window全局回调函数,函数唯一参数是当前选中值 Ben(20251217)
-        type: String,
-        required: false,
-      },
-      filter: {
-        type: String,
-        required: false,
-      },
-      filterfield: {
-        type: String,
-        required: false,
-      },
-      // filterField: {
-      //   //此属性为页面表单元素的name用逗号分隔,作用为在向后台查询下拉菜单选项时,会带上这些name的表单元素的value值 Ben(20260313)
-      //   type: String,
-      //   required: false,
-      // },
-      cb: {
-        type: String,
-        required: true,
-      },
-      url: {
-        type: String,
-        required: true,
-      },
-      name: {
-        type: String,
-        required: true,
-      },
-      width: {
-        type: String,
-        default: "100%",
-      },
-      placeholder: {
-        type: String,
-        default: "请选择",
-      },
-      inp: {
-        type: Boolean,
-        default: false,
-      },
-      opt: {
-        type: Array,
-        default: () => [],
-      },
-      errTip: String,
-      defaultValue: [String, Number],
-      modelValue: [String, Number],
-      direction: {
-        type: String,
-        default: "bottom",
-      },
-    },
-    emits: ["update:modelValue", "input", "blur", "change"],
-    setup(props, { emit }) {
-      const canInput = props.inp;
-      const errMsg = Vue.ref(props.errTip);
-      const selectItem = Vue.ref({});
-      let inputText = Vue.ref(""); // 用于存储输入框的文本
-      const popupWinVisible = Vue.ref(false);
-
-      const filteredOptions = Vue.ref(props.opt);
-      const popupDirection = Vue.ref("bottom");
-      const popupMaxHeight = Vue.ref("none"); // popup最大高度,用于空间不足时限制高度并出滚动条 by xu 20251212
-      const popupContentAreaMaxHeight = Vue.computed(() => {
-        if (!popupMaxHeight.value || popupMaxHeight.value === "none")
-          return null;
-        const maxHeightNum = Number.parseFloat(popupMaxHeight.value);
-        if (!Number.isFinite(maxHeightNum)) return null;
-        // 功能说明:滚动条统一落在 .content-area(CSS 默认如此),因此需要扣掉 popup-win padding-top(10) 与 popup-content padding(15*2) by xu 20260126
-        const contentAreaMaxHeight = Math.max(60, maxHeightNum - 40);
-        return `${contentAreaMaxHeight}px`;
-      });
-      // 修复表格内下拉弹层被 overflow 截断:popup 使用 Teleport 到 body + fixed 定位 by xu 20260126
-      const selectContainerRef = Vue.ref(null);
-      const popupRef = Vue.ref(null);
-      const teleportRootStyle = Vue.ref({
-        position: "fixed",
-        left: "0",
-        top: "0",
-        width: "0",
-        height: "0",
-        zIndex: 9999,
-        pointerEvents: "none",
-      });
-      const popupLayerStyle = Vue.ref({
-        position: "fixed",
-        left: "0",
-        top: "0",
-        bottom: "auto", // 功能说明:覆盖 .popup-win.top 的 bottom 定位,避免 fixed 场景被撑高/错位 by xu 20260126
-        minWidth: "0",
-        zIndex: 9999,
-        pointerEvents: "auto",
-      });
-
-      // const showRequired = Vue.computed(() => {
-      //   const hasValidationRule = window.ssVm?.validations?.has(props.name);
-      //   if (!hasValidationRule) return false;
-      //   if (errMsg.value) return true;
-      //   if (!selectItem.value?.value) return true;
-      //   return false;
-      // });
-
-      const validate = () => {
-        if (window.ssVm) {
-          const result = window.ssVm.validateField(props.name);
-          // console.log("validate", window.ssVm.validateField(props.name));
-          errMsg.value = result.valid ? "" : result.message;
-        }
-      };
-
-      //在objPicker界面,选中value对应的项
-      const updateSelectItem = () => {
-        // console.log(props.opt);
-        const item = props.opt.find((it) => it.value === props.modelValue);
-        if (item) {
-          selectItem.value = item;
-          inputText.value = item.label;
-        } else {
-          selectItem.value = { label: "", value: "" };
-          inputText.value = "";
-        }
-        // validate();
-      };
-
-      Vue.watch(
-        () => props.errTip,
-        (newVal) => {
-          errMsg.value = newVal;
-        }
-      );
-
-      // 功能说明:调用全局 onChange 回调,必须在 handleModelValueChange 之前定义 by xu 20260416
-      const callGlobalOnchg = (value, desc) => {
-        if (props.onchange && typeof props.onchange === "string") {
-          if (
-            typeof window !== "undefined" &&
-            window[props.onchange] &&
-            typeof window[props.onchange] === "function"
-          ) {
-            try {
-              window[props.onchange](value, desc);
-            } catch (error) {
-              console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
-            }
-          }
-        }
-      };
-
-      // 功能说明:封装 modelValue 变化后的联动逻辑,兼容用户点击和桥接 API 赋值 by xu 20260416
-      const handleModelValueChange = (newValue) => {
-        updateSelectItem();
-        if (newValue) {
-          // 如果当前 options 里没有对应项,去服务端请求回显
-          const exists = props.opt.some((it) => it.value === newValue);
-          if (!exists && props.url && props.cb) {
-            let url = props.url;
-            if (props.filter) {
-              const filterObj = props.filter;
-              for (let k in filterObj) {
-                url += "&" + k + "=" + filterObj[k];
-              }
-            }
-            const params = new URLSearchParams();
-            params.append("objectpickerparam", JSON.stringify({ input: props.inp, codebook: props.cb }));
-            params.append("objectpickertype", "2");
-            params.append("objectpickervalue", newValue);
-            axios.post(url, params, {
-              headers: { "Content-Type": "application/x-www-form-urlencoded" }
-            }).then((response) => {
-              if ("timeout" == response.data.statusText) {
-                alert("网络超时!");
-                return;
-              }
-              if (response.data.result) {
-                const keys = Object.keys(response.data.result);
-                if (keys.length === 1) {
-                  let code = keys[0];
-                  let desc = response.data.result[keys[0]];
-                  props.opt.length = 0;
-                  props.opt.push({ label: desc, value: code });
-                  updateSelectItem();
-                  callGlobalOnchg(code, desc);
-                }
-              }
-            });
-          } else if (selectItem.value && selectItem.value.value) {
-            // options 里有对应项,触发 onChange
-            callGlobalOnchg(selectItem.value.value, selectItem.value.label);
-          }
-        } else {
-          // 值为空时清空选中
-          callGlobalOnchg("", "");
-        }
-      };
-
-      Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true });
-      Vue.watch(
-        () => props.opt,
-        (newVal) => {
-          updateSelectItem();
-          filteredOptions.value = [...newVal];
-          // console.log("filteredOptions", filteredOptions.value);
-        }
-      );
-
-      //初始化objPicker在页面刚打开时的默认值
-      async function initDefaultValue() {
-        try {
-          if (props.url && props.cb && props.modelValue) {
-            let objectPickerParam;
-            let url = props.url;
-
-            //如果有定义过滤器
-            if (props.filter) {
-              //包含HTML实体的JSON字符串转为JSON对象,如原字符串是{&quot;dwid&quot;:&quot;88&quot;},注意key也必需用单引号包着
-              // const decodedString = props.filter.replace(/&quot;/g, '"'); // 转换为: {"dwid":"88"}
-              // objectPickerParam = JSON.parse(decodedString); // 转为json对象
-
-              const filterObj = props.filter; // 转为json对象
-              for (let k in filterObj) {
-                let v = filterObj[k];
-                url += "&" + k + "=" + v;
-              }
-
-              objectPickerParam = props.filter; // 转为json对象
-              objectPickerParam["input"] = props.inp;
-              objectPickerParam["codebook"] = props.cb;
-
-              // alert(url);
-            } else {
-              objectPickerParam = { input: props.inp, codebook: props.cb };
-            }
-
-            const objectPickerParamStr = JSON.stringify(objectPickerParam);
-
-            const params = new URLSearchParams();
-            params.append("objectpickerparam", objectPickerParamStr);
-            params.append("objectpickertype", "2");
-            params.append("objectpickervalue", props.modelValue); //需回显的值
-
-            // alert("1params:"+JSON.stringify(params));
-
-            axios
-              .post(props.url, params, {
-                headers: {
-                  "Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
-                },
-              })
-              .then((response) => {
-                // alert(JSON.stringify(response.data));
-
-                if ("timeout" == response.data.statusText) {
-                  alert("网络超时!");
-                  return;
-                }
-
-                if (response.data.result) {
-                  const keys = Object.keys(response.data.result);
-                  if (keys.length === 1) {
-                    let code = keys[0];
-                    let desc = response.data.result[keys[0]];
-                    if (props.opt)
-                      props.opt.length = 0; //通过修改数组的length属性,直接清空数组元素,内存会被自动释放。这是性能最优的方式
-                    else {
-                      props.opt = [];
-                    }
-                    props.opt.push({ label: desc, value: code });
-                    updateSelectItem();
-
-                    // alert('props.opt:'+JSON.stringify(props.opt));
-                  }
-                }
-              });
-          }
-        } catch (error) {
-          // callback(null, error.message); // 失败回调,传递错误
-        }
-      }
-
-      // Vue.onMounted(updateSelectItem);
-
-      const doSelectItem = (item) => {
-        emit("update:modelValue", item.value);
-        selectItem.value = item;
-        inputText.value = item.label;
-        hidePopup();
-        nextTick(() => {
-          console.log(item.value + "@@@props.modelValue:" + props.modelValue);
-          validate();
-          if (window.ssVm) {
-            // 遍历所有验证规则,找到依赖当前字段的规则
-            for (const [field, rules] of window.ssVm.validations.entries()) {
-              for (const rule of rules) {
-                if (rule.opt?.relField === props.name) {
-                  // console.log("Found dependent field:", field); // 调试日志
-                  window.ssVm.validateField(field);
-                }
-              }
-            }
-          }
-        });
-
-        // callGlobalOnchg 已移到 handleModelValueChange 统一处理,避免用户点击和桥接 API 赋值行为不一致 by xu 20260416
-      };
-
-      //可录入的objPicker,更新下拉菜单选项
-      async function updateOptionBYInputText(inpTxt) {
-        try {
-          let objectPickerParam;
-          let url = props.url;
-
-          if (props.url && props.cb) {
-            //如果有定义过滤器
-            if (props.filter || props.filterfield) {
-              let filterObj = props.filter;
-              if (!props.filter) filterObj = {};
-
-              if (props.filter) {
-                const filterObj = props.filter; // 转为json对象
-                for (let k in filterObj) {
-                  let v = filterObj[k];
-                  url += "&" + k + "=" + v;
-                }
-              }
-
-              if (props.filterfield) {
-                //加上filterfield的值过滤
-                let filterfieldArr = props.filterfield.split(",");
-                for (var i = 0; i < filterfieldArr.length; i++) {
-                  let fieldName = filterfieldArr[i];
-                  let fields = document.getElementsByName(fieldName);
-                  if (!fields || fields.length < 1) {
-                    alert("下拉菜单配置的过滤条件" + fieldName + "不存在!");
-                    continue;
-                  }
-
-                  let v = null;
-                  for (let j = 0; j < fields.length; j++) {
-                    if (fields[j].value) {
-                      v = fields[j].value;
-                      break;
-                    }
-                  }
-
-                  // let field = document.getElementsByName(fieldName)[0];
-                  // let v = field.value;
-                  if (v) {
-                    url += "&" + fieldName + "=" + v;
-                    filterObj[fieldName] = v;
-                  }
-                }
-
-                console.log("filterfield url:" + url);
-              }
-
-              //包含HTML实体的JSON字符串转为JSON对象,如原字符串是{&quot;dwid&quot;:&quot;88&quot;},注意key也必需用单引号包着
-              // const decodedString = props.filter.replace(/&quot;/g, '"'); // 转换为: {"dwid":"88"}
-              // objectPickerParam = JSON.parse(decodedString); // 转为json对象
-              objectPickerParam = filterObj;
-              objectPickerParam["input"] = props.inp;
-              objectPickerParam["codebook"] = props.cb;
-
-              // alert(url);
-            } else {
-              objectPickerParam = { input: props.inp, codebook: props.cb };
-            }
-
-            const objectPickerParamStr = JSON.stringify(objectPickerParam);
-            const params = new URLSearchParams();
-            params.append("objectpickerparam", objectPickerParamStr);
-            params.append("objectpickertype", "1");
-            if (props.inp && props.inp === true) {
-              //把"true"改为true Ben(20251209)
-              params.append("objectpickersearchAll", 0); //只查录入的值
-              params.append("objectpickerinput", inpTxt); //录入的值
-              // 功能说明:将输入值也加到 URL 参数,避免后端只读 URL 不读 body by xu 20250408
-              if (inpTxt) {
-                url += "&objectpickerinput=" + encodeURIComponent(inpTxt);
-              }
-            } else {
-              params.append("objectpickersearchAll", 1);
-            }
-
-            axios
-              .post(url, params, {
-                headers: {
-                  "Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
-                },
-              })
-              .then((response) => {
-                if ("timeout" == response.data.statusText) {
-                  alert("网络超时!");
-                  return;
-                }
-
-                // 先清空选项 by xu 20251212
-                if (props.opt) {
-                  props.opt.length = 0;
-                } else {
-                  props.opt = [];
-                }
-
-                if (response.data.result) {
-                  const keys = Object.keys(response.data.result);
-                  // console.log("params:"+params+"@@response.data:"+JSON.stringify(response.data));
-                  if (keys.length > 0) {
-                    for (let k in response.data.result) {
-                      props.opt.push({
-                        label: response.data.result[k],
-                        value: k,
-                      });
-                    }
-
-                    // console.log('###inpTxt:'+inpTxt+';');
-                    if (
-                      props.inp &&
-                      props.inp === true && //把"true"改为true Ben(20251209)
-                      inpTxt.length > 0
-                    ) {
-                      //对于可录入的,用已录入的值作过滤
-
-                      filteredOptions.value = props.opt.filter((option) =>
-                        option.label
-                          .toLowerCase()
-                          .includes(inputText.value.toLowerCase())
-                      );
-
-                      // 可录入的objPicker,当搜索结果只有一项时,自动选中这一项 by xu 20251212
-                      if (filteredOptions.value.length === 1) {
-                        const autoSelectItem = filteredOptions.value[0];
-                        console.log(
-                          "[objp] 搜索结果只有一项,自动选中:",
-                          autoSelectItem
-                        );
-                        doSelectItem(autoSelectItem);
-                        return; // 自动选中后直接返回,不需要显示popup
-                      }
-
-                      filteredOptions.value.unshift({ label: "", value: "" });
-
-                      // console.log('###做了过滤:'+inputText.value.toLowerCase()+';');
-                    } else {
-                      filteredOptions.value = props.opt;
-                      filteredOptions.value.unshift({ label: "", value: "" });
-                    }
-
-                    console.log("props.opt11:" + JSON.stringify(props.opt));
-                  } else {
-                    // 没有数据时,清空过滤选项 by xu 20251212
-                    filteredOptions.value = [];
-                    console.log("[objp] 接口返回空数据");
-                  }
-                } else {
-                  // result不存在时,清空过滤选项 by xu 20251212
-                  filteredOptions.value = [];
-                  console.log("[objp] 接口返回无result");
-                }
-
-                // 无论是否有数据,都显示popup by xu 20251212
-                openPopup(); // Teleport 场景下统一打开并重定位 by xu 20260126
-              });
-          }
-        } catch (error) {
-          // callback(null, error.message); // 失败回调,传递错误
-        }
-      }
-
-      // 计算弹出方向和最大高度的方法 by xu 20251212
-      // 当空间不足时限制popup高度并显示滚动条
-      const calculatePopupDirection = () => {
-        const triggerEl =
-          selectContainerRef.value?.querySelector(".input") ||
-          selectContainerRef.value;
-        if (!triggerEl) return;
-
-        const selectRect = triggerEl.getBoundingClientRect();
-        const viewportHeight = window.innerHeight;
-
-        // 3. 计算上下可用空间
-        const spaceBelow = viewportHeight - selectRect.bottom - 10; // 减10px留边距
-        const spaceAbove = selectRect.top - 10; // 减10px留边距
-
-        // 4. popup预估高度(假设每项36px,最多显示8项 + padding)
-        const estimatedPopupHeight = 300;
-        const minPopupHeight = 100; // 最小高度
-
-        console.log(
-          "[popup] 空间计算 - spaceAbove:",
-          spaceAbove,
-          "spaceBelow:",
-          spaceBelow,
-          "estimatedHeight:",
-          estimatedPopupHeight
-        );
-
-        // 5. 判断方向和最大高度 by xu 20251212
-        if (spaceBelow >= estimatedPopupHeight) {
-          // 下方空间足够,向下展开,不限制高度
-          popupDirection.value = "bottom";
-          popupMaxHeight.value = "none";
-          console.log("[popup] 向下展开,空间充足");
-        } else if (spaceAbove >= estimatedPopupHeight) {
-          // 上方空间足够,向上展开,不限制高度
-          popupDirection.value = "top";
-          popupMaxHeight.value = "none";
-          console.log("[popup] 向上展开,空间充足");
-        } else {
-          // 上下空间都不足,选择空间大的方向,并限制高度出滚动条
-          if (spaceBelow >= spaceAbove) {
-            popupDirection.value = "bottom";
-            popupMaxHeight.value = Math.max(spaceBelow, minPopupHeight) + "px";
-            console.log(
-              "[popup] 向下展开,空间不足,限制高度:",
-              popupMaxHeight.value
-            );
-          } else {
-            popupDirection.value = "top";
-            popupMaxHeight.value = Math.max(spaceAbove, minPopupHeight) + "px";
-            console.log(
-              "[popup] 向上展开,空间不足,限制高度:",
-              popupMaxHeight.value
-            );
-          }
-        }
-      };
-
-      // Teleport popup 的定位(fixed) by xu 20260126
-      const updatePopupPosition = () => {
-        const triggerEl =
-          selectContainerRef.value?.querySelector(".input") ||
-          selectContainerRef.value;
-        if (!triggerEl) return;
-
-        const triggerRect = triggerEl.getBoundingClientRect();
-        const margin = 10;
-        const viewportWidth = window.innerWidth;
-        const viewportHeight = window.innerHeight;
-        const popupGap = 0; // 功能说明:定位不再做 -10 重叠,让 padding-top 自然形成间距 by xu 20260126
-
-        // 先给一个初始位置,确保下一帧可以测量弹层尺寸 by xu 20260126
-        popupLayerStyle.value = {
-          position: "fixed",
-          left: `${Math.max(margin, triggerRect.left)}px`,
-          top: `${Math.max(margin, triggerRect.bottom + popupGap)}px`, // 功能说明:与输入框底部对齐 by xu 20260126
-          bottom: "auto", // 功能说明:fixed 场景显式取消 bottom,避免与 top 同时生效 by xu 20260126
-          minWidth: `${Math.max(0, triggerRect.width)}px`,
-          zIndex: 9999,
-          pointerEvents: "auto",
-        };
-
-        Vue.nextTick(() => {
-          const popupEl = popupRef.value;
-          if (!popupEl) return;
-
-          const popupRect = popupEl.getBoundingClientRect();
-          const maxLeft = viewportWidth - popupRect.width - margin;
-          const left = Math.min(
-            Math.max(margin, triggerRect.left),
-            Math.max(margin, maxLeft)
-          );
-
-          let top;
-          if (popupDirection.value === "top") {
-            top = triggerRect.top - popupRect.height - popupGap; // 功能说明:向上展开时与输入框顶部对齐 by xu 20260126
-            top = Math.max(margin, top);
-          } else {
-            top = triggerRect.bottom + popupGap; // 功能说明:向下展开时与输入框底部对齐 by xu 20260126
-            if (top + popupRect.height > viewportHeight - margin) {
-              top = Math.max(
-                margin,
-                viewportHeight - popupRect.height - margin
-              );
-            }
-          }
-
-          popupLayerStyle.value = {
-            ...popupLayerStyle.value,
-            left: `${left}px`,
-            top: `${top}px`,
-            bottom: "auto", // 功能说明:无论 top/bottom 展开都用 top 定位,禁用 bottom by xu 20260126
-          };
-        });
-      };
-
-      const openPopup = () => {
-        if (!popupWinVisible.value) popupWinVisible.value = true;
-        Vue.nextTick(() => {
-          calculatePopupDirection();
-          updatePopupPosition();
-        });
-      };
-
-      // Teleport 场景下:滚动/缩放重定位 by xu 20260126
-      const handleViewportChange = () => {
-        if (!popupWinVisible.value) return;
-        calculatePopupDirection();
-        updatePopupPosition();
-      };
-
-      // Teleport 场景下:点击外部关闭 by xu 20260126
-      const onDocPointerDown = (event) => {
-        if (!popupWinVisible.value) return;
-        const target = event.target;
-        if (selectContainerRef.value?.contains(target)) return;
-        if (popupRef.value?.contains(target)) return;
-        hidePopup();
-      };
-
-      //点击下拉菜单的文本区域时,会触发的方法
-      function togglePopup() {
-        // 可录入的 objPicker,更新下拉菜单选项
-        updateOptionBYInputText(inputText.value);
-        // popupWinVisible.value = !popupWinVisible.value;
-        Vue.nextTick(() => {
-          calculatePopupDirection();
-          updatePopupPosition(); // Teleport 场景下同步定位 by xu 20260126
-        });
-      }
-
-      const hidePopup = () => {
-        popupWinVisible.value = false;
-      };
-
-      //点击下拉菜单的三角形时,会触发的方法
-      // 添加toggle逻辑,点击时切换显示/隐藏 by xu 20251212
-      const suffixClick = () => {
-        // 如果popup已显示,则关闭 by xu 20251212
-        if (popupWinVisible.value) {
-          hidePopup();
-          console.log("[objp] 点三角关闭popup");
-          return;
-        }
-
-        //可录入的objPicker,更新下拉菜单选项
-        updateOptionBYInputText("");
-        Vue.nextTick(() => {
-          calculatePopupDirection();
-          updatePopupPosition(); // Teleport 场景下同步定位 by xu 20260126
-        });
-        console.log("[objp] 点三角打开popup");
-      };
-
-      //可录入的objPicker,录入项变化时,会触发
-      async function handleInputChange(event) {
-        inputText.value = event.target.value;
-        if (!inputText.value) {
-          inputText.value = "";
-        }
-
-        //可录入的objPicker,更新下拉菜单选项
-        updateOptionBYInputText(inputText.value);
-
-        // filteredOptions.value = props.opt.filter((option) =>
-        //     option.label.toLowerCase().includes(inputText.value.toLowerCase())
-        // );
-        // if (!popupWinVisible.value) {
-        //   popupWinVisible.value = true; // 确保下拉框在输入时打开
-        // }
-      }
-      Vue.onMounted(() => {
-        initDefaultValue();
-        // Teleport 场景下:滚动/缩放需要重定位(scroll 用 capture 捕获容器滚动) by xu 20260126
-        window.addEventListener("resize", handleViewportChange);
-        window.addEventListener("scroll", handleViewportChange, true);
-
-        // 点击外部关闭(原本依赖 mouseleave,Teleport 后会误关) by xu 20260126
-        document.addEventListener("pointerdown", onDocPointerDown, true);
-      });
-      Vue.onUnmounted(() => {
-        window.removeEventListener("resize", handleViewportChange);
-        window.removeEventListener("scroll", handleViewportChange, true);
-        document.removeEventListener("pointerdown", onDocPointerDown, true);
-      });
-
-      return {
-        errMsg,
-        selectItem,
-        inputText,
-        canInput,
-        filteredOptions,
-        popupWinVisible,
-        popupDirection,
-        popupMaxHeight, // 添加popup最大高度 by xu 20251212
-        popupContentAreaMaxHeight,
-        selectContainerRef,
-        popupRef,
-        teleportRootStyle,
-        popupLayerStyle,
-        suffixClick,
-        togglePopup,
-        hidePopup,
-        doSelectItem,
-        handleInputChange,
-      };
-    },
-
-    template: `
-	      <div class="input" style="position: relative" :style="{width: width}">
-	        <div class="select-container" ref="selectContainerRef">
-	          <div class="input" @click="togglePopup">
-	            <input 
-	              type="hidden"
-	              :name="name"
-              :value="selectItem.value"
-              .value="selectItem.value" 
-            />
-            <input
-              v-model="inputText"
-              @input="handleInputChange"
-              v-if="canInput"
-              :placeholder="placeholder"
-              
-            />
-            
-            <input
-              v-else
-              :placeholder="placeholder"
-              :value="selectItem.label"
-              
-              disabled
-              style="pointer-events: none;"
-            />
-           
-            <div class="suffix" @click.stop="suffixClick">
-	              <ss-form-icon :class="popupWinVisible ? 'form-icon-transform-select select' : 'form-icon-select'" />
-	              
-	            </div>
-	          </div>
-	         
-	            
-	          <!-- 修复表格内弹层被截断:popup Teleport 到 body by xu 20260126 -->
-	          <teleport to="body">
-	            <div v-show="popupWinVisible" class="select-container ss-objp-teleport-root" :style="teleportRootStyle">
-	              <!-- popup弹出层,添加maxHeight和overflowY支持空间不足时滚动 by xu 20251212 -->
-	              <div ref="popupRef" class="popup-win" :class="popupDirection" :style="[popupLayerStyle, { maxHeight: popupMaxHeight !== 'none' ? popupMaxHeight : 'none', overflowY: 'visible' }]">
-	                <div v-if="opt && opt.length && filteredOptions.length > 0" class="popup-content">
-	                  <div class="content-area" :style="popupContentAreaMaxHeight ? { maxHeight: popupContentAreaMaxHeight, overflowY: 'auto' } : null">
-	                    <div v-for="(item, index) in filteredOptions" :key="index" @click="doSelectItem(item)" :class="{ active: item.value === selectItem.value }">
-	                      <span class="check-icon">
-	                       
-	                        <ss-form-icon class="form-icon-select-checked" />
-	                      </span>
-	                      <span>{{ item.label }}</span>
-	                    </div>
-	                  </div>
-	                </div>
-	                <div v-else class="popup-content"><div class="content-area"><div class="content-area"> <span>无选项</span></div></div></div>
-	              </div>
-	            </div>
-	          </teleport>
-	        </div>
-	      </div>
-
-	    `,
-  };
-  // ss-hidden 隐藏字段组件
-  const SsHidden = {
-    name: "SsHidden",
-    props: {
-      modelValue: String,
-      name: {
-        type: String,
-        required: true,
-      },
-      rule: {
-        type: String,
-        required: false,//因为要单独发布非级联用的隐藏字段,改为非必需
-      },
-
-      param: {
-        type: String,
-        required: false,//因为要单独发布非级联用的隐藏字段,改为非必需
-      },
-      url: {
-        type: String,
-        required: false,//因为要单独发布非级联用的隐藏字段,改为非必需
-      },
-    },
-    emits: ["update:modelValue"],
-
-    setup(props, { emit }) {
-      const errMsg = Vue.ref("");
-      const validate = () => {
-        if (window.ssVm) {
-          const result = window.ssVm.validateField(props.name);
-          console.log("validate", window.ssVm.validateField(props.name));
-          errMsg.value = result.valid ? "" : result.message;
-        }
-      };
-      Vue.onMounted(() => {
-        /**
-         * 初始化级联菜单值初始值思路:
-         * 1. 带隐藏字段(即带编码规则)的级联菜单
-         *  在隐藏字段这,可以取到要回显的值和编码规则,从而计算出各级下拉菜单要回显的值。
-         *  然后通过ajax取各级级联菜单的值回显。
-         *  2. 不带隐藏字段的级联,只能在各个下拉菜单的setup事件中通过ajax取回显值回显
-         */
-
-        // 当同组级联下拉菜单选中值变化时,会调用本隐藏字段下面这方法设置隐藏字段值
-        window.addEventListener(
-          "cascader-setHiddenVal-" + props.name,
-          (event) => {
-            const { value } = event.detail;
-            emit("update:modelValue", value);
-            console.log(value);
-            setTimeout(() => {
-              validate();
-            }, 50);
-          }
-        );
-
-        // 如果有初始值,触发回显过程
-        if (props.modelValue&&props.param) {//增加props.param非空判断,非级联的hidden没props.param Ben(20260414)
-          console.log("级联隐藏字段,开始回显,初始值:", props.modelValue);
-          triggerCascaderEcho(props.modelValue);
-          validate();
-        }
-      });
-
-      // 触发级联回显
-      const triggerCascaderEcho = (code) => {
-        /**
-         * 开始回显,初始值: 440304
-         * 解析后的所有值: Array(3)0: "440000"1: "440300"2: "440304"length: 3[[Prototype]]: Array(0)
-         */
-        const values = parseHiddenCodeForAll(code, props.rule);
-        console.log("解析后的所有值:", values);
-
-        // 转换为 JSON 对象
-        // const paramObj = JSON.parse(props.param);
-        const paramObj = props.param;
-        let selectArr = paramObj.fieldOrd; //保存本组级联菜单项的数组,如:['hksheng','hkshi','hkxian']
-        if (selectArr.length != values.length) {
-          // alert('属性'+props.name+'的值'+code+'与级联菜单中下拉菜单的数目不匹配!');
-          return;
-        }
-
-        // 按顺序触发回显,并增加延迟确保数据加载
-        /**
-         * 通过隐藏字段的setup事件,
-         * 循环遍历各级下拉菜单,并触发定义在下拉菜单中的'cascader-echo'事件,
-         * 在此事件中完成每个下拉菜单回显值操作(只取当前要回显的键值对显示,
-         * 下拉菜单所有的值,在点击下拉菜单时,才通过ajax取)。
-         */
-        values.forEach((value, index) => {
-          if (value) {
-            setTimeout(() => {
-              let upperVal = undefined;
-              if (index != 0) {
-                upperVal = values[index - 1];
-              }
-
-              const echoEvent = new CustomEvent(
-                "cascader-echo-" + selectArr[index],
-                {
-                  detail: {
-                    name: props.name,
-                    value: value,
-                    // level: index + 1,
-                    isAuto: true, // 标记为自动回显
-                    upperVal: upperVal,
-                  },
-                }
-              );
-
-              console.log(props.name + "--upperValue:" + upperVal);
-
-              window.dispatchEvent(echoEvent);
-            }, index * 500); // 每级增加500ms延迟
-          }
-        });
-      };
-
-      // 解析所有级别的代码
-      const parseHiddenCodeForAll = (code, rule) => {
-        if (!code || !rule) return [];
-
-        // 获取规则中每段的长度
-        const segments = [];
-        let currentChar = rule[0];
-        let currentLength = 1;
-
-        for (let i = 1; i < rule.length; i++) {
-          if (rule[i] === currentChar) {
-            currentLength++;
-          } else {
-            segments.push(currentLength);
-            currentChar = rule[i];
-            currentLength = 1;
-          }
-        }
-        segments.push(currentLength);
-
-        // 解析每一级的值
-        const values = [];
-        let position = 0;
-
-        segments.forEach((length, index) => {
-          const value = code
-            .substring(0, position + length)
-            .padEnd(rule.length, "0");
-          values.push(value);
-          position += length;
-        });
-
-        return values;
-      };
-      watchEffect(() => {});
-      return {};
-    },
-    template: `<input type="hidden" :name="name" :value="modelValue">`,
-  };
-  // ss-cascader 级联选择器
-  const SsCcp = {
-    name: "SsCcp",
-    inheritAttrs: false,
-    props: {
-      modelValue: String,
-
-      name: {
-        type: String,
-        required: true,
-      },
-      level: {
-        type: Number,
-        required: true,
-      },
-      opt: {
-        type: Array,
-        default: () => [],
-      },
-      placeholder: {
-        type: String,
-        default: "请选择",
-      },
-      width: {
-        type: String,
-        default: "150px",
-      },
-      direction: {
-        type: String,
-        default: "bottom",
-      },
-      mode: {
-        type: String,
-        default: "1",
-      },
-
-      //级联菜单配置参数,如果是数组,则代表本下拉菜单是多套级联菜单共用的第一级菜单。如果是对象,则只有一套级联菜单用此下拉菜单。
-      param: {
-        type: String,
-        required: true,
-      },
-      //向后台拿数据的url
-      url: {
-        type: String,
-        required: true,
-      },
-    },
-    emits: ["update:modelValue", "change"],
-
-    setup(props, { emit }) {
-      // alert('级联菜单初始化:'+props.name+':--:'+props.modelValue);
-      const selectItem = Vue.ref({ label: props.placeholder, value: "" });
-      const popupWinVisible = Vue.ref(false);
-      const isAutoEcho = Vue.ref(false); // 用于标记是否是自动回显
-      const upperValue = Vue.ref(""); //上级下拉菜单当前值,在初始化下拉菜单默认值时,和上级下拉菜单的值变化时,修改此upperValue变量
-      const popupDirection = Vue.ref("bottom");
-      const popupMaxHeight = Vue.ref("none"); // popup最大高度,用于空间不足时限制高度并出滚动条 by xu 20251212
-
-      //有隐藏字段的下拉菜单,加载菜单项并展开事件
-      // 被上级下拉菜单选中值后,触发本下拉菜单刷新菜单项并弹出显示
-      window.addEventListener("cascader-open-" + props.name, async (event) => {
-        const { upperVal } = event.detail;
-        upperValue.value = upperVal;
-        console.log(
-          "22props.name:" +
-            props.name +
-            ",22props.upperValue:" +
-            upperValue.value
-        );
-
-        selectItem.value = ""; //清除本下拉菜单当前选中的值
-        emit("update:modelValue", ""); //通知父级
-
-        //清空下拉菜单,并设置第一项的值为placeholder
-        clearAndInit1stOpt();
-
-        //下个下拉菜单名
-        let nextSelName = getNextSel(props.name, props.param.fieldOrd);
-        if (nextSelName) {
-          //清下个下拉菜单选中值和选项
-          event = new CustomEvent("cascader-cleanOpt-" + nextSelName, {
-            detail: {},
-          });
-          window.dispatchEvent(event);
-        }
-
-        showPopup();
-      });
-
-      //设置mode2的下级下拉菜单的上级菜单当前值
-      function setNextSelectUpperValue() {
-        //设置下级菜单的上级菜单当前值upperValue
-        let paramArr = undefined;
-        if (Array.isArray(props.param)) {
-          paramArr = props.param;
-        } else {
-          paramArr = [];
-          paramArr.push(props.param);
-        }
-
-        for (const oneParam of paramArr) {
-          //下个下拉菜单名
-          const nextSelName = getNextSel(props.name, oneParam.fieldOrd);
-          if (nextSelName) {
-            setTimeout(() => {
-              const openNextEvent = new CustomEvent(
-                "cascade-setUpperVal-" + nextSelName,
-                {
-                  detail: {
-                    upperVal: props.modelValue,
-                  },
-                }
-              );
-              window.dispatchEvent(openNextEvent);
-            }, 100);
-          }
-        } // end for
-      }
-
-      // 把上级 级联下拉菜单的值,设置进本组件的事件
-      window.addEventListener("cascade-setUpperVal-" + props.name, (event) => {
-        // alert('props.name:'+props.name+',props.upperValue:'+event.detail.upperVal);
-        const { upperVal } = event.detail;
-        upperValue.value = upperVal;
-
-        // console.log('props.name:'+props.name+',props.upperValue:'+upperValue.value);
-      });
-
-      //清空下拉菜单,并设置第一项的值为空
-      function clearAndInit1stOpt() {
-        if (props.opt)
-          props.opt.length = 0; //通过修改数组的length属性,直接清空数组元素,内存会被自动释放。这是性能最优的方式
-        else {
-          props.opt = [];
-        }
-        props.opt.push({ label: "", value: "" });
-      }
-
-      //获取下一级下拉菜单,如果下一级下拉菜单不存在,则返回undefined
-      function getNextSel(selName, selNameArr) {
-        // 检查参数有效性
-        if (!Array.isArray(selNameArr) || selNameArr.length === 0) {
-          return undefined;
-        }
-
-        // 查找当前元素的索引
-        const currentIndex = selNameArr.indexOf(selName);
-
-        // 如果元素不存在或已经是最后一个元素,返回undefined
-        if (currentIndex === -1 || currentIndex === selNameArr.length - 1) {
-          return undefined;
-        }
-
-        // 返回下一个元素
-        return selNameArr[currentIndex + 1];
-      }
-
-      const validate = () => {
-        if (window.ssVm) {
-          return window.ssVm.validateField(props.name);
-        }
-        return { valid: true };
-      };
-
-      // 处理选择事件
-      const doSelectItem = (item) => {
-        selectItem.value = item;
-        emit("update:modelValue", item.value); //修改本下拉菜单在vue中保存的值
-
-        // alert('item.value:'+item.value);
-        if (props.mode === "1") {
-          // mode 1 模式:修改隐藏字段值
-
-          let event = new CustomEvent(
-            "cascader-setHiddenVal-" + props.param.combField,
-            {
-              detail: {
-                value: item.value,
-              },
-            }
-          );
-          window.dispatchEvent(event);
-        }
-        emit("change", item.value); //触发配置的change方法
-
-        nextTick(() => {
-          validate();
-          if (window.ssVm) {
-            for (const [field, rules] of window.ssVm.validations.entries()) {
-              for (const rule of rules) {
-                if (rule.options?.relField) {
-                  const relFields = String(rule.options.relField)
-                    .split(",")
-                    .map((name) => name.trim())
-                    .filter(Boolean);
-                  if (relFields.includes(props.name)) {
-                    window.ssVm.validateField(field);
-                  }
-                }
-              }
-            }
-          }
-        });
-
-        //设置下级菜单的上级菜单当前值upperValue
-        let paramArr = undefined;
-        if (Array.isArray(props.param)) {
-          paramArr = props.param;
-        } else {
-          paramArr = [];
-          paramArr.push(props.param);
-        }
-
-        for (const oneParam of paramArr) {
-          //下个下拉菜单名
-          const nextSelName = getNextSel(props.name, oneParam.fieldOrd);
-          if (nextSelName) {
-            setTimeout(() => {
-              const openNextEvent = new CustomEvent(
-                "cascader-open-" + nextSelName,
-                {
-                  detail: {
-                    upperVal: item.value,
-                  },
-                }
-              );
-              window.dispatchEvent(openNextEvent);
-            }, 100);
-          }
-        } // end for
-
-        hidePopup();
-
-        //下个下拉菜单名
-        // let nextSelName = getNextSel(props.name, props.param.fieldOrd);
-        // if(nextSelName){
-        //   // //设置下一级下拉菜单中保存的本下拉菜单值(upperValue)
-        //   // event = new CustomEvent('cascade-setUpperVal-'+nextSelName, {
-        //   //   detail: {
-        //   //     value: item.value
-        //   //   }
-        //   // });
-        //   // window.dispatchEvent(event);
-        //
-        //   //触发下一级下拉菜单,重新初始化下拉菜单项并弹出显示
-        //   event = new CustomEvent('cascader-open-' +nextSelName, {
-        //     detail: {
-        //       upperVal: item.value
-        //     }
-        //   });
-        //   window.dispatchEvent(event);
-        // }
-
-        // 只在手动选择时自动展开下一级
-        // if (!isAutoEcho.value) {
-        //   const nextLevel = props.level + 1;
-        //   setTimeout(() => {
-        //     const openNextEvent = new CustomEvent('open-next-cascader', {
-        //       detail: {
-        //         name: props.name,
-        //         level: nextLevel
-        //       }
-        //     });
-        //     window.dispatchEvent(openNextEvent);
-        //   }, 100);
-        // }
-      };
-
-      // 监听下一级展开事件 (仅 mode 2)
-      window.addEventListener("cascade-open", (event) => {
-        if (props.mode === "2") {
-          const { level } = event.detail;
-          if (level === props.level) {
-            popupWinVisible.value = true;
-          }
-        }
-      });
-
-      if (props.mode === "1") {
-        //如果是有隐藏字段的下拉菜单
-        // 监听回显事件
-        window.addEventListener(
-          "cascader-echo-" + props.name,
-          async (event) => {
-            const { name, value, isAuto, upperVal } = event.detail;
-            // level,
-            if (upperVal) {
-              upperValue.value = upperVal;
-              console.log(
-                "value:" +
-                  value +
-                  ",upperValue:" +
-                  upperValue +
-                  ",初始化级联组件时props.name:" +
-                  props.name
-              );
-            }
-
-            // if (name === props.name && level === props.level) {
-            // 设置自动回显标记
-            isAutoEcho.value = true;
-
-            // if (props.opt.length === 0) {
-            // const loadDataEvent = new CustomEvent('cascader-load-data', {
-            //   detail: {
-            //     name: props.name,
-            //     level: props.level,
-            //     value: value
-            //   }
-            // });
-            // window.dispatchEvent(loadDataEvent);
-
-            //下面的代码只用于页面刚打开时,初始化级联菜单的回显值。
-
-            //Vue.watch用于监听数据的变化,并在数据变化时执行特定的回调函数。
-            //这段代码使用了 Vue.js 的 watch API 来监听 props.opt 的变化,如果props.opt有变化,则自动
-
-            //   const unwatch = Vue.watch(
-            //       () => props.opt,                // 监听的数据源(props.opt)
-            //       (newOptions) => {              // 回调函数
-            //         if (newOptions.length > 0) { // 条件判断
-            //           matchAndSelect(value);     // 执行逻辑
-            //           unwatch();                 // 停止监听
-            //         }
-            //       },
-            //       { immediate: true }            // 配置:立即触发一次
-            //   );
-            // } else {
-            //   matchAndSelect(value);
-            // }
-
-            // 初始化级联菜单在页面刚打开时的默认值
-            async function initDefaultValue(value) {
-              try {
-                // alert(1);
-                if (
-                  props.url &&
-                  props.param
-                  // && props.modelValue 对于有rule编码规则的级联菜单(即mode=1),modelValue一定是空的,所以注释掉,修复mode=1的级联菜单无法回显问题。Ben(20251124)
-                ) {
-                  // alert(2);
-                  /**
-                   *         let objectPickerParam=
-                   *             {"objectpickerparam":"{\"input\":\"false\",\"cascadingLevel\":\"hksheng,hkshi,hkxian\"," +
-                   *                     "\"name\":\"hksheng\"," +
-                   *                     "\"cascadingName\":\"dq\",\"cascadingInputsName\":\"hkdqm\"," +
-                   *                     "\"codebook\":\"sheng\"}",
-                   *                 "objectpickertype":2,
-                   *                 "objectpickervalue":"440000"
-                   *             };
-                   */
-
-                  const objectPickerParam = {
-                    input: "false",
-                    cascadingLevel: props.param.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
-                    name: props.name, //本下拉菜单名
-                    cascadingName: props.param.name, //级联菜单名
-                    cascadingInputsName: props.param.combField, //对象属性,即隐藏字段名,如:hkdqm
-                    codebook: props.param.codebook,
-                  };
-
-                  const objectPickerParamStr =
-                    JSON.stringify(objectPickerParam);
-
-                  const params = new URLSearchParams();
-                  params.append("objectpickerparam", objectPickerParamStr);
-                  params.append("objectpickertype", "2");
-                  params.append("objectpickervalue", value); //需回显的值
-
-                  axios
-                    .post(props.url, params, {
-                      headers: {
-                        "Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
-                      },
-                    })
-                    .then((response) => {
-                      // alert(JSON.stringify(response.data));
-
-                      if ("timeout" == response.data.statusText) {
-                        alert("网络超时!");
-                        return;
-                      }
-
-                      if (response.data.result) {
-                        const keys = Object.keys(response.data.result);
-                        if (keys.length === 1) {
-                          let code = keys[0];
-                          let desc = response.data.result[keys[0]];
-                          clearAndInit1stOpt();
-                          props.opt.push({ label: desc, value: code });
-
-                          if (value) matchAndSelect(value);
-                          // updateSelectItem();
-
-                          // alert('props.opt:'+JSON.stringify(props.opt));
-                        }
-                      }
-                    });
-                }
-              } catch (error) {
-                alert(error);
-                // callback(null, error.message); // 失败回调,传递错误
-              }
-            }
-
-            //下面的代码只用于页面刚打开时,初始化级联菜单的回显值。
-            initDefaultValue(value);
-
-            // 延迟重置自动回显标记
-            setTimeout(() => {
-              isAutoEcho.value = false;
-            }, 500);
-          }
-        );
-
-        // 被上级下拉菜单触发的,清除选中值和下拉菜单选项
-        window.addEventListener(
-          "cascader-cleanOpt-" + props.name,
-          async (event) => {
-            upperValue.value = "";
-
-            selectItem.value = ""; //清除本下拉菜单当前选中的值
-            emit("update:modelValue", ""); //通知父级
-
-            //清空所有下拉菜单项
-            if (props.opt) {
-              props.opt.length = 0;
-            } else {
-              props.opt = [];
-            }
-
-            //下个下拉菜单名
-            let nextSelName = getNextSel(props.name, props.param.fieldOrd);
-            // alert('nextSelName:'+nextSelName+'--,props.name:'+props.name);
-            if (nextSelName) {
-              //清下个下拉菜单选中值和选项
-              event = new CustomEvent("cascader-cleanOpt-" + nextSelName, {
-                detail: {},
-              });
-              window.dispatchEvent(event);
-            }
-          }
-        );
-      } else if (props.mode === "2") {
-        //没隐藏字段的下拉菜单,在这初始化默认值
-
-        let needInitParam = undefined;
-        if (Array.isArray(props.param)) {
-          needInitParam = props.param[props.param.length - 1]; //只初始化数组最后一项
-          console.log("needInitParam最后一项:" + JSON.stringify(needInitParam));
-        } else {
-          needInitParam = props.param;
-        }
-
-        // 初始化级联菜单在页面刚打开时的默认值
-        async function initDefaultValue(value, param) {
-          try {
-            // alert(1);
-            if (props.url && param && props.modelValue) {
-              // alert(2);
-              /**
-               *        let param=
-               *             {"objectpickerparam":"{\"input\":\"false\",\"cascadingLevel\":\"rylbm,gwid\"," +
-               *                     "\"name\":\"gwid\",\"cascadingName\":\"rylb_gw\"," +
-               *                     "\"codebook\":\"gwByRylb\"}",
-               *                 "objectpickertype":2,
-               *                 "objectpickervalue":"102121"};
-               */
-
-              // alert('props.name:'+props.name+',props.param.fieldOrd:'+props.param.fieldOrd);
-
-              const objectPickerParam = {
-                input: "false",
-                cascadingLevel: param.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
-                name: props.name, //本下拉菜单名
-                cascadingName: param.name, //级联菜单名
-                codebook: param.codebook,
-              };
-
-              const objectPickerParamStr = JSON.stringify(objectPickerParam);
-
-              const sendParams = new URLSearchParams();
-              sendParams.append("objectpickerparam", objectPickerParamStr);
-              sendParams.append("objectpickertype", "2");
-              sendParams.append("objectpickervalue", value); //需回显的值
-
-              axios
-                .post(props.url, sendParams, {
-                  headers: {
-                    "Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
-                  },
-                })
-                .then((response) => {
-                  // alert(JSON.stringify(response.data));
-
-                  if ("timeout" == response.data.statusText) {
-                    alert("网络超时!");
-                    return;
-                  }
-
-                  if (response.data.result) {
-                    const keys = Object.keys(response.data.result);
-
-                    console.log(
-                      "name:" +
-                        props.name +
-                        ",@@级联初始化默认值value:" +
-                        value +
-                        "--param:" +
-                        JSON.stringify(param) +
-                        "--objectPickerParamStr:" +
-                        objectPickerParamStr +
-                        "--response.data:" +
-                        JSON.stringify(response.data)
-                    );
-
-                    if (keys.length === 1) {
-                      let code = keys[0];
-                      let desc = response.data.result[keys[0]];
-
-                      if (props.opt)
-                        props.opt.length = 0; //通过修改数组的length属性,直接清空数组元素,内存会被自动释放。这是性能最优的方式
-                      else {
-                        props.opt = [];
-                      }
-                      props.opt.push({ label: desc, value: code });
-
-                      if (value) matchAndSelect(value);
-
-                      console.log(
-                        "GOOD mode2回显的默认值:" +
-                          JSON.stringify({ label: desc, value: code }) +
-                          "--props.param:" +
-                          JSON.stringify(param)
-                      );
-
-                      // updateSelectItem();
-
-                      // alert('props.opt:'+JSON.stringify(props.opt));
-                    }
-                  }
-                });
-            }
-          } catch (error) {
-            alert(error);
-            // callback(null, error.message); // 失败回调,传递错误
-          }
-
-          // 重置自动回显标记
-          isAutoEcho.value = false;
-        }
-
-        // 初始化级联菜单在页面刚打开时的默认值
-        initDefaultValue(props.modelValue, needInitParam);
-
-        //设置mode2的下级下拉菜单的上级菜单当前值
-        setNextSelectUpperValue();
-      }
-
-      //选中要回显的默认值
-      const matchAndSelect = (value) => {
-        const matchedOption = props.opt.find((opt) => opt.value === value);
-        if (matchedOption) {
-          selectItem.value = matchedOption;
-          emit("update:modelValue", value);
-          emit("change", value);
-        }
-      };
-
-      // 计算弹出方向和最大高度的方法 by xu 20251212
-      // 当空间不足时限制popup高度并显示滚动条
-      const calculatePopupDirection = () => {
-        // 1. 获取select容器元素
-        const selectEl = document.querySelector(
-          `[name="${props.name}"]`
-        )?.nextElementSibling;
-        console.log("selectEl:" + selectEl, props.name);
-        if (!selectEl) return;
-
-        // 2. 获取位置信息
-        const selectRect = selectEl.getBoundingClientRect();
-        const viewportHeight = window.innerHeight;
-
-        // 3. 计算上下可用空间 by xu 20251212
-        const spaceBelow = viewportHeight - selectRect.bottom - 10; // 减10px留边距
-        const spaceAbove = selectRect.top - 10; // 减10px留边距
-
-        // 4. popup预估高度(假设每项36px,最多显示8项 + padding)
-        const estimatedPopupHeight = 300;
-        const minPopupHeight = 100; // 最小高度
-
-        console.log(
-          "[popup] 空间计算 - spaceAbove:",
-          spaceAbove,
-          "spaceBelow:",
-          spaceBelow,
-          "estimatedHeight:",
-          estimatedPopupHeight
-        );
-
-        // 5. 判断方向和最大高度 by xu 20251212
-        if (spaceBelow >= estimatedPopupHeight) {
-          // 下方空间足够,向下展开,不限制高度
-          popupDirection.value = "bottom";
-          popupMaxHeight.value = "none";
-          console.log("[popup] 向下展开,空间充足");
-        } else if (spaceAbove >= estimatedPopupHeight) {
-          // 上方空间足够,向上展开,不限制高度
-          popupDirection.value = "top";
-          popupMaxHeight.value = "none";
-          console.log("[popup] 向上展开,空间充足");
-        } else {
-          // 上下空间都不足,选择空间大的方向,并限制高度出滚动条
-          if (spaceBelow >= spaceAbove) {
-            popupDirection.value = "bottom";
-            popupMaxHeight.value = Math.max(spaceBelow, minPopupHeight) + "px";
-            console.log(
-              "[popup] 向下展开,空间不足,限制高度:",
-              popupMaxHeight.value
-            );
-          } else {
-            popupDirection.value = "top";
-            popupMaxHeight.value = Math.max(spaceAbove, minPopupHeight) + "px";
-            console.log(
-              "[popup] 向上展开,空间不足,限制高度:",
-              popupMaxHeight.value
-            );
-          }
-        }
-      };
-      //级联菜单点击事件
-      const togglePopup = () => {
-        if (!popupWinVisible.value) {
-          //如果当前下拉菜单是隐藏的,先ajax重新加载下拉菜单项,再显示。
-
-          showPopup();
-        } else {
-          hidePopup();
-        }
-      };
-
-      //显示下拉菜单,在此之前先清除下拉菜单项
-      const showPopup = () => {
-        //清空下拉菜单,并设置第一项的值为空
-        clearAndInit1stOpt();
-        Vue.nextTick(() => {
-          calculatePopupDirection();
-        });
-        let url = props.url;
-        let filterObj = props.param.filter;
-
-        if (filterObj) {
-          for (let k in filterObj) {
-            let v = filterObj[k];
-            url += "&" + k + "=" + v;
-          }
-        }
-
-        if (props.mode === "1") {
-          //如果是有隐藏字段的下拉菜单
-
-          console.log("666url:" + url);
-
-          // alert('url:'+url);
-
-          // 获取级联菜单所有下拉菜单项
-          async function getSelectItems(value) {
-            try {
-              // alert(1);
-              if (props.url && props.param) {
-                // alert(2);
-                /**
-                 *            param={"objectpickerparam":"{\"input\":\"false\",\"cascadingLevel\":\"hksheng,hkshi,hkxian\"," +
-                 *                     "\"name\":\"hksheng\",\"cascadingName\":\"dq\"," +
-                 *                     "\"cascadingInputsName\":\"hkdqm\",\"codebook\":\"sheng\"}",
-                 *                 "objectpickertype":1,//2表示获取要回显的一项,1表示获取所有下拉菜单项
-                 *                 "upperValue":"440000"
-                 *             };
-                 */
-
-                const objectPickerParam = {
-                  input: "false",
-                  cascadingLevel: props.param.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
-                  name: props.name, //本下拉菜单名
-                  cascadingName: props.param.name, //级联菜单名
-                  cascadingInputsName: props.param.combField, //对象属性,即隐藏字段名,如:hkdqm
-                  codebook: props.param.codebook,
-                };
-
-                console.log("mode1 upperValue.value:" + upperValue.value);
-
-                const objectPickerParamStr = JSON.stringify(objectPickerParam);
-
-                const params = new URLSearchParams();
-                params.append("objectpickerparam", objectPickerParamStr);
-                params.append("objectpickertype", "1");
-                if (upperValue.value) {
-                  params.append("upperValue", upperValue.value);
-                }
-                // params.append('objectpickervalue', value); //需回显的值
-
-                axios
-                  .post(url, params, {
-                    headers: {
-                      "Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
-                    },
-                  })
-                  .then((response) => {
-                    if ("timeout" == response.data.statusText) {
-                      alert("网络超时!");
-                      return;
-                    }
-
-                    if (response.data.result) {
-                      const keys = Object.keys(response.data.result);
-                      console.log(
-                        "params:" +
-                          params +
-                          "@@response.data:" +
-                          JSON.stringify(response.data)
-                      );
-
-                      if (keys.length > 0) {
-                        for (let k in response.data.result) {
-                          props.opt.push({
-                            label: response.data.result[k],
-                            value: k,
-                          });
-                        }
-
-                        console.log("props.opt11:" + JSON.stringify(props.opt));
-                      } else {
-                        // 没有数据时打印日志 by xu 20251212
-                        console.log("[ccp mode1] 接口返回空数据");
-                      }
-                    } else {
-                      // result不存在时打印日志 by xu 20251212
-                      console.log("[ccp mode1] 接口返回无result");
-                    }
-
-                    // 无论是否有数据,都显示popup by xu 20251212
-                    if (!popupWinVisible.value) {
-                      popupWinVisible.value = true;
-                    }
-                  });
-              }
-            } catch (error) {
-              alert(error);
-              // callback(null, error.message); // 失败回调,传递错误
-            }
-          }
-
-          getSelectItems(props.modelValue);
-        } else if (props.mode === "2") {
-          //没隐藏字段的下拉菜单
-
-          let needInitParam = undefined;
-          if (Array.isArray(props.param)) {
-            needInitParam = props.param[props.param.length - 1]; //只初始化数组最后一项
-            console.log(
-              "needInitParam最后一项:" + JSON.stringify(needInitParam)
-            );
-          } else {
-            needInitParam = props.param;
-          }
-
-          // 获取级联菜单所有下拉菜单项
-          async function getSelectItems(value, sendParam) {
-            try {
-              // alert(1);
-              if (props.url && sendParam) {
-                // alert(2);
-                /**
-                 *            param="{\"input\":\"false\",\"cascadingLevel\":\"dwid,sjryid\",
-                 *            \"ryid\":\"111121\",\"name\":\"sjryid\",
-                 *            \"cascadingName\":\"dw_sjry\",\"codebook\":\"sjryByDw\"}"
-                 */
-
-                const objectPickerParam = {
-                  input: "false",
-                  cascadingLevel: sendParam.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
-                  name: props.name, //本下拉菜单名
-                  cascadingName: sendParam.name, //级联菜单名
-                  codebook: sendParam.codebook,
-                };
-
-                console.log("mode2 upperValue.value:" + upperValue.value);
-
-                const objectPickerParamStr = JSON.stringify(objectPickerParam);
-
-                const params = new URLSearchParams();
-                params.append("objectpickerparam", objectPickerParamStr);
-                params.append("objectpickertype", "1");
-                if (upperValue.value) {
-                  params.append("upperValue", upperValue.value);
-                }
-                // params.append('objectpickervalue', value); //需回显的值
-
-                axios
-                  .post(url, params, {
-                    headers: {
-                      "Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
-                    },
-                  })
-                  .then((response) => {
-                    if ("timeout" == response.data.statusText) {
-                      alert("网络超时!");
-                      return;
-                    }
-
-                    if (response.data.result) {
-                      const keys = Object.keys(response.data.result);
-                      console.log(
-                        "params:" +
-                          params +
-                          "@@response.data:" +
-                          JSON.stringify(response.data)
-                      );
-
-                      if (keys.length > 0) {
-                        for (let k in response.data.result) {
-                          props.opt.push({
-                            label: response.data.result[k],
-                            value: k,
-                          });
-                        }
-
-                        console.log("props.opt11:" + JSON.stringify(props.opt));
-                      } else {
-                        // 没有数据时打印日志 by xu 20251212
-                        console.log("[ccp mode2] 接口返回空数据");
-                      }
-                    } else {
-                      // result不存在时打印日志 by xu 20251212
-                      console.log("[ccp mode2] 接口返回无result");
-                    }
-
-                    // 无论是否有数据,都显示popup by xu 20251212
-                    if (!popupWinVisible.value) {
-                      popupWinVisible.value = true;
-                    }
-                  });
-              }
-            } catch (error) {
-              alert(error);
-              // callback(null, error.message); // 失败回调,传递错误
-            }
-          }
-
-          getSelectItems(props.modelValue, needInitParam);
-
-          // popupWinVisible.value = !popupWinVisible.value;
-        }
-      };
-
-      const hidePopup = () => {
-        popupWinVisible.value = false;
-      };
-
-      // 合并所有的 onMounted 逻辑
-      Vue.onMounted(() => {
-        window.addEventListener("resize", calculatePopupDirection);
-
-        // 1. 监听展开下一级事件
-        window.addEventListener("open-next-cascader", (event) => {
-          const { name, level } = event.detail;
-          if (name === props.name && level === props.level) {
-            popupWinVisible.value = true;
-          }
-        });
-
-        // 2. 监听级联事件
-        window.addEventListener("cascader-change", (event) => {
-          const { name, level, value } = event.detail;
-          if (name === props.name && level < props.level) {
-            selectItem.value = { label: "", value: "" };
-            emit("update:modelValue", "");
-            if (ssHidden) {
-              ssHidden.updateValue(value);
-            }
-          }
-        });
-      });
-      Vue.onUnmounted(() => {
-        window.removeEventListener("resize", calculatePopupDirection);
-      });
-      // 监听值变化,处理回显 (mode 2)
-      Vue.watch(
-        () => props.modelValue,
-        (newVal) => {
-          if (props.mode === "2" && newVal) {
-            // 使用 watchEffect 替代嵌套的 watch
-            Vue.watchEffect(() => {
-              if (props.opt.length > 0) {
-                const matchedOption = props.opt.find(
-                  (opt) => opt.value === newVal
-                );
-                if (matchedOption) {
-                  selectItem.value = matchedOption;
-                }
-              }
-            });
-          } else {
-            // 原有的值变化处理
-            const item = props.opt.find((it) => it.value === newVal);
-            if (item) {
-              selectItem.value = item;
-            } else {
-              selectItem.value = { label: "", value: "" };
-            }
-          }
-        },
-        { immediate: true }
-      );
-
-      // 监听选项变化,当数据加载完成时进行匹配
-      Vue.watch(
-        () => props.opt,
-        (newOptions) => {
-          if (newOptions.length > 0) {
-            const matchedOption = newOptions.find(
-              (opt) => opt.value === selectItem.value.value
-            );
-            if (matchedOption) {
-              selectItem.value = matchedOption;
-              emit("update:modelValue", matchedOption.value);
-              emit("change", matchedOption.value);
-            }
-          }
-        }
-      );
-
-      return {
-        selectItem,
-        popupWinVisible,
-        popupDirection,
-        popupMaxHeight, // 添加popup最大高度 by xu 20251212
-        togglePopup,
-        hidePopup,
-        doSelectItem,
-      };
-    },
-
-    template: `
-      <div class="input ss-ccp-container" style="position: relative" :style="{width: width}">
-        <input type="hidden" :name="name" :value="modelValue">
-        <div class="select-container" @mouseleave="hidePopup">
-          <div class="input" @click="togglePopup">
-            <input 
-              type="hidden"
-              :name="name"
-              :value="selectItem.value"
-            />
-            <input
-              :placeholder="placeholder"
-              :value="selectItem.label"
-              disabled
-              style="pointer-events: none;"
-            />
-            <div class="suffix">
-              <ss-form-icon :class="popupWinVisible ? 'form-icon-transform-select select' : 'form-icon-select'" />
-            </div>
-          </div>
-
-          <!-- popup弹出层,添加maxHeight和overflowY支持空间不足时滚动 by xu 20251212 -->
-          <div v-show="popupWinVisible" class="popup-win " :class="popupDirection" :style="{ maxHeight: popupMaxHeight, overflowY: popupMaxHeight !== 'none' ? 'auto' : 'visible' }">
-            <div v-if="opt && opt.length > 0" class="popup-content">
-              <div class="content-area">
-                <div 
-                  v-for="(item, index) in opt" 
-                  :key="index" 
-                  @click="doSelectItem(item)" 
-                  :class="{ active: item.value === selectItem.value }"
-                >
-                  <span class="check-icon">
-                    <ss-form-icon class="form-icon-select-checked" />
-                  </span>
-                  <span>{{ item.label }}</span>
-                </div>
-              </div>
-            </div>
-            <div v-else class="popup-content">
-              <div class="content-area">
-                <div class="content-area">
-                  <span>无选项</span>
-                </div>
-              </div>
-            </div>
-          </div>
-        </div>
-      </div>
-    `,
-  };
-  // ss-date-picker 日期时间选择器组件
-  const SsDatePicker = {
-    name: "SsDatePicker",
-    props: {
-      modelValue: {
-        type: [String, Number, Date],
-        default: "",
-      },
-      name: {
-        type: String,
-        required: true,
-      },
-      type: {
-        type: String,
-        default: "date",
-        validator: (value) => ["date", "datetime", "time"].includes(value),
-      },
-      fmt: {
-        type: String,
-        default: null,
-      },
-      placeholder: {
-        type: String,
-        default: "",
-      },
-      width: {
-        type: String,
-        default: "100%",
-      },
-    },
-
-    emits: ["update:modelValue"],
-
-    setup(props, { emit }) {
-      const errMsg = ref("");
-      const validate = () => {
-        if (window.ssVm) {
-          const result = window.ssVm.validateField(props.name);
-          console.log("validate", window.ssVm.validateField(props.name));
-          errMsg.value = result.valid ? "" : result.message;
-        }
-      };
-      // 根据type确定默认格式
-      const defaultFormat = computed(() => {
-        switch (props.type) {
-          case "datetime":
-            return "YYYY-MM-DD HH:mm:ss";
-          case "date":
-            return "YYYY-MM-DD";
-          case "time":
-            return "HH:mm:ss";
-        }
-      });
-      const convertJavaFormatToElement = (javaFormat) => {
-        if (!javaFormat) return null;
-        return javaFormat
-          .replace("yyyy", "YYYY")
-          .replace("MM", "MM")
-          .replace("dd", "DD")
-          .replace("HH", "HH")
-          .replace("mm", "mm")
-          .replace("ss", "ss");
-      };
-
-      const finalFormat = computed(() => {
-        if (props.fmt) {
-          return convertJavaFormatToElement(props.fmt);
-        }
-        return defaultFormat.value;
-      });
-
-      // 使用 resolveComponent 获取组件
-      const ElDatePicker = resolveComponent("ElDatePicker");
-      const ElTimePicker = resolveComponent("ElTimePicker");
-      const SsFormIcon = resolveComponent("SsFormIcon");
-      const ElIcon = resolveComponent("ElIcon");
-
-      const handleValueUpdate = (val) => {
-        emit("update:modelValue", val);
-        emit("change", val); // 同时触发 change 事件
-        setTimeout(() => {
-          validate();
-        }, 50);
-      };
-      const dateType = computed(() => {
-        const fmt = props.fmt || "";
-        if (fmt.includes("HH:mm:ss")) {
-          return "datetime";
-        } else if (fmt.includes("HH:mm")) {
-          return "datetime";
-        } else if (fmt.includes("mm:ss")) {
-          return "time";
-        }
-        return "date";
-      });
-
-      let useTimePicker = true;
-      //"yyyy-MM-dd HH:mm:ss";  "日期字符串格式在java的写法",传到本组件fmt属性也是按这个格式
-      if (props.fmt) {
-        //有fmt属性,则以fmt属性优先判断类型
-        if (/[dMy]/.test(props.fmt)) {
-          //如果有传入日期格式,且含年月日
-          useTimePicker = false;
-        } else {
-          useTimePicker = true;
-        }
-      } else if (props.type !== "time") {
-        useTimePicker = false;
-      }
-
-      return () =>
-        h("div", { class: "ss-date-picker", style: { width: props.width } }, [
-          h("input", {
-            type: "hidden",
-            name: props.name,
-            value: props.modelValue,
-          }),
-          // 选择组件
-          h(useTimePicker ? ElTimePicker : ElDatePicker, {
-            modelValue: props.modelValue,
-            "onUpdate:modelValue": handleValueUpdate,
-            type: dateType.value,
-            format: finalFormat.value,
-            "value-format": finalFormat.value,
-            clearable: true,
-            placeholder: props.placeholder,
-            class: "custom-date-picker", // 用于自定义样式
-            "time-arrow-control": props.type === "datetime", // 修改这里
-            size: "large", // 添加这一行,改为 large 尺寸
-            style: { width: "100%" },
-            "prefix-icon": h(SsFormIcon, { class: "form-icon-time" }),
-          }),
-        ]);
-    },
-  };
-  // ss-icon 图标
-  // v3.0 增加 class 属性分支:有 class 走新逻辑,否则走 v1.0 逻辑 by xu 20251212
-  // v3.0 用法: <ss-icon class="icon-obj-ry menu-icon" />
-  // v1.0 用法: <ss-icon name="setting" size="20px" />
-  const SsIcon = {
-    name: "SsIcon",
-    // v3.0 禁用 class 透传,手动处理 by xu 20251215
-    inheritAttrs: false,
-    props: {
-      // v1.0: 以下为旧属性
-      name: { type: String },
-      size: { type: [Number, String], default: 16 },
-      unit: { type: String, default: "px" },
-      color: String,
-      type: {
-        type: String,
-        default: ssIcon.name,
-        validator: function (value) {
-          return [ssIcon, commonIcon].some((icon) => icon.name === value);
-        },
-      },
-    },
-    emits: ["update:modelValue", "input", "blur", "change"],
-    setup(props, { emit, attrs }) {
-      // v3.0 分支:有 class 属性时直接渲染(从 attrs 获取) by xu 20251215
-      if (attrs.class) {
-        return () =>
-          h("i", { ...attrs, class: attrs.class + " icon-container" });
-      }
-
-      // v1.0 分支:原有逻辑
-      const useIconType = computed(() => {
-        return [ssIcon, commonIcon].find(
-          (iconConfig) => iconConfig.name === props.type
-        );
-      });
-      const iconName = computed(() => {
-        const iconConfig = useIconType.value; // 注意:使用 .value 来访问响应式引用的值
-        if (!iconConfig) {
-          console.error(`Icon type "${props.type}" not found.`);
-          return "";
-        }
-        const iconType = iconConfig.types[props.name];
-        if (!iconType) {
-          console.error(
-            `Icon name "${props.name}" not found in type "${props.type}".`
-          );
-          return "";
-        }
-        return `${iconConfig.prefix}${iconType}`;
-      });
-
-      // 类似地,你可以计算 fontFamily 和 style
-      const fontFamily = computed(() => {
-        return useIconType.value ? useIconType.value.family : "";
-      });
-      // console.log(iconName.value,fontFamily.value)
-      const style = computed(() => {
-        const sizeStyle = isNum(props.size)
-          ? `${props.size}${props.unit}`
-          : props.size;
-        const styleObj = {
-          fontSize: sizeStyle,
-          color: props.color || "",
-        };
-        return toStyleStr(styleObj);
-      });
-
-      // 使用渲染函数定义模板逻辑
-      return () =>
-        h("i", {
-          class: ["icon-container", iconName.value, fontFamily.value],
-          style: style.value,
-        });
-    },
-  };
-  // 通用icon
-  const SsCommonIcon = {
-    name: "SsCommonIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("i", {
-          class: props.class + " common-icon",
-        });
-    },
-  };
-  // 登录页icon
-  const SsLoginIcon = {
-    name: "SsLoginIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " login-icon",
-        });
-    },
-  };
-  // 弹窗icon
-  const SsDialogIcon = {
-    name: "SsDialogIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("i", {
-          class: props.class + " dialog-icon",
-        });
-    },
-  };
-  // 全局左侧导航图标组件
-  const SsNavIcon = {
-    name: "SsNavIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " nav-icon",
-        });
-    },
-  };
-  // 顶部工具栏图标组件
-  const SsHeaderIcon = {
-    name: "SsHeaderIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " header-icon",
-        });
-    },
-  };
-
-  // 全局菜单图标组件
-  const SsGolbalMenuIcon = {
-    name: "SsGolbalMenuIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " global-menu-icon",
-        });
-    },
-  };
-  // 全局查询列表卡片图标
-  const SsCartListIcon = {
-    name: "SsCartListIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " cart-list-icon",
-        });
-    },
-  };
-  // 全局底部工具栏图标组件
-  const SsQuickIcon = {
-    name: "SsQuickIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " quick-icon",
-        });
-    },
-  };
-  // 表单组件icon
-  const SsFormIcon = {
-    name: "SsFormIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " form-icon",
-        });
-    },
-  };
-  // 弹窗底部按钮icon
-  const SsBottomDivIcon = {
-    name: "SsBottomDivIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("div", {
-          class: props.class + " bottom-div-icon",
-        });
-    },
-  };
-  // editor组件icon
-  const SsEditorIcon = {
-    name: "SsEditorIcon",
-    props: {
-      class: {
-        type: String,
-        required: true,
-      },
-    },
-    setup(props) {
-      return () =>
-        h("i", {
-          class: props.class + " editor-icon",
-        });
-    },
-  };
-  // ss-validate校验器
-  const SsValidate = {
-    name: "SsValidate",
-    props: {
-      errMsg: { type: String },
-      textAlign: { type: String, default: "left" },
-      style: { type: Object, default: () => ({}) },
-    },
-    template: `<div class="validate-vline"></div>
-    <div class="validate-tip" :style="style">
-      <div class="tip" :style="{ textAlign: textAlign }">{{ errMsg }}</div>
-      <div class="tip-more" :style="{ textAlign: textAlign }">{{ errMsg }}</div>
-    </div>`,
-  };
-  // ss-onoff-array 多选按钮 数组形式
-  const SsonoffArray = {
-    name: "SsonoffArray",
-    props: {
-      name: {
-        type: String,
-        required: true,
-      },
-      opt: {
-        type: Array,
-        default: () => [],
-      },
-      defaultValue: [String, Number, Array],
-      modelValue: [String, Number, Array],
-      multiple: {
-        // 新增多选模式属性
-        type: Boolean,
-        default: false,
-      },
-      // 是否允许一项都不选,默认true允许 by xu 20251212
-      null: {
-        type: Boolean,
-        default: true,
-      },
-    },
-    emits: ["update:modelValue"], // 允许更新 v-model 绑定的值
-    setup(props, { emit }) {
-      console.log("多选按钮", props.opt);
-      // 使用数组来存储选中值
-      const checkedValue = ref(
-        props.multiple
-          ? Array.isArray(props.defaultValue)
-            ? props.defaultValue
-            : []
-          : props.defaultValue
-      );
-      const errMsg = ref(props.errTip);
-
-      // 生成icon名字
-      const genIconName = (itemValue) => {
-        if (props.multiple) {
-          return checkedValue.value.includes(itemValue)
-            ? "form-icon-onoff-checked"
-            : "form-icon-onoff-unchecked";
-        }
-        return checkedValue.value === itemValue
-          ? "form-icon-onoff-checked"
-          : "form-icon-onoff-unchecked";
-      };
-      // 选中项
-      const selectItem = (value) => {
-        if (props.multiple) {
-          // 多选模式
-          const index = checkedValue.value.indexOf(value);
-          if (index === -1) {
-            checkedValue.value = [...checkedValue.value, value];
-          } else {
-            // 取消选中当前项
-            const newValue = checkedValue.value.filter((v) => v !== value);
-            // 如果不允许为空且取消后为空,则阻止取消操作 by xu 20251212
-            if (!props.null && newValue.length === 0) {
-              return; // 阻止取消最后一项
-            }
-            checkedValue.value = newValue;
-          }
-        } else {
-          // 单选模式
-          // 如果点击的是当前已选中的项,判断是否允许取消 by xu 20251212
-          if (checkedValue.value === value) {
-            if (!props.null) {
-              return; // 不允许为空时,阻止取消
-            }
-            checkedValue.value = ""; // 允许为空时,取消选中
-          } else {
-            checkedValue.value = value;
-          }
-        }
-
-        emit("update:modelValue", checkedValue.value);
-        nextTick(() => {
-          // 触发验证
-          if (window.ssVm) {
-            window.ssVm.validateField(props.name);
-          }
-        });
-      };
-
-      return { checkedValue, genIconName, selectItem };
-    },
-    // 使用渲染函数定义模板逻辑
-    render() {
-      const SsFormIcon = resolveComponent("ss-form-icon");
-      return h("div", { class: "radio-container" }, [
-        // 根据情况创建 input
-        this.multiple
-          ? this.checkedValue.length
-            ? // 多选且有选中值:为选中项创建 input
-              this.checkedValue.map((value) =>
-                h("input", {
-                  type: "checkbox",
-                  name: this.name,
-                  value: value,
-                  checked: true,
-                  style: { display: "none" },
-                })
-              )
-            : // 多选但没有选中值:创建一个空值 input
-              h("input", {
-                type: "hidden",
-                name: this.name,
-                value: "",
-              })
-          : // 单选模式:创建一个 input
-            h("input", {
-              type: "hidden",
-              name: this.name,
-              value: this.checkedValue || "",
-            }),
-
-        this.opt.map((item, i) =>
-          h(
-            "div",
-            {
-              key: i,
-              class: {
-                checked: this.multiple
-                  ? this.checkedValue.includes(item.value)
-                  : this.checkedValue === item.value,
-              },
-              style: { width: item.width },
-              onClick: () => this.selectItem(item.value),
-            },
-            [
-              h("span", null, item.label),
-              h("div", { class: "mark" }, [
-                h(SsFormIcon, {
-                  class: this.genIconName(item.value),
-                }),
-              ]),
-            ]
-          )
-        ),
-      ]);
-    },
-  };
-
-  // ss-onoff 一个按钮
-  const Ssonoff = {
-    name: "Ssonoff",
-    props: {
-      name: {
-        type: String,
-        required: true,
-      },
-      label: {
-        type: String,
-        required: true,
-      },
-      value: {
-        type: [String, Number],
-        required: true,
-      },
-      width: {
-        type: String,
-        default: "",
-      },
-      onchange: {
-        // 在此属性传入 onChange 的 window 全局回调函数,第一参数是当前整组值 by Ben/xu(20260320)
-        type: String,
-        required: false,
-      },
-      modelValue: [String, Number, Array],
-      multiple: {
-        type: Boolean,
-        default: false,
-      },
-      null: {
-        type: Boolean,
-        default: true,
-      },
-    },
-    emits: ["update:modelValue", "change"],
-
-    setup(props, { emit }) {
-      const parseModelValue = (val) => {
-        if (Array.isArray(val)) {
-          return val
-            .map((item) => (item == null ? "" : item.toString()))
-            .filter(Boolean);
-        }
-        if (val == null || val === "") return [];
-        // 如果以逗号开头,去掉开头的逗号
-        const cleanValue = val.toString().replace(/^,+/, "");
-        if (!cleanValue) return [];
-        if (cleanValue.includes("|")) {
-          return cleanValue.split("|").filter(Boolean);
-        }
-        if (cleanValue.includes(",")) {
-          return cleanValue.split(",").filter(Boolean);
-        }
-        return [cleanValue];
-      };
-
-      const callGlobalOnchg = (groupValue) => {
-        if (props.onchange && typeof props.onchange === "string") {
-          if (
-            typeof window !== "undefined" &&
-            window[props.onchange] &&
-            typeof window[props.onchange] === "function"
-          ) {
-            try {
-              window[props.onchange](groupValue, props.value, props.label);
-            } catch (error) {
-              console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
-            }
-          } else {
-            console.warn(`全局函数 ${props.onchange} 未定义或不是一个函数。`);
-          }
-        }
-      };
-
-      // 判断当前按钮是否选中
-      const isChecked = computed(() => {
-        if (props.multiple) {
-          const currentValue = parseModelValue(props.modelValue);
-          return currentValue.includes(props.value.toString());
-        }
-        return props.modelValue + "" === props.value + ""; //强转为字符串类型再比较(改之前是数字类型和字符串类型作比较,永远为false) Ben 20251206
-      });
-
-      // 功能说明:watch modelValue 变化,兼容桥接 API 赋值触发 onChange by xu 20260416
-      let isToggleTriggering = false; // 避免 toggleSelect 内部 emit 重复触发
-      Vue.watch(
-        () => props.modelValue,
-        (newVal) => {
-          if (isToggleTriggering) return;
-          callGlobalOnchg(newVal);
-        }
-      );
-
-      // 切换选中状态
-      const toggleSelect = () => {
-        let newModelValue;
-
-        if (props.multiple) {
-          const currentValue = parseModelValue(props.modelValue);
-          const currentButtonValue = props.value.toString();
-          const index = currentValue.indexOf(currentButtonValue);
-          let newValue;
-
-          if (index === -1) {
-            // 选中当前项
-            newValue = [...currentValue, currentButtonValue];
-          } else {
-            // 取消选中当前项
-            const filteredValue = currentValue.filter(
-              (value) => value !== currentButtonValue
-            );
-
-            // 如果不允许为空且取消后为空,则阻止取消操作
-            if (!props.null && filteredValue.length === 0) {
-              return; // 阻止取消最后一项
-            }
-
-            newValue = filteredValue;
-          }
-          newModelValue = newValue.join(",");
-        } else {
-          // 单选模式
-          const currentValue = parseModelValue(props.modelValue);
-          const isCurrentlySelected = currentValue.includes(
-            props.value.toString()
-          );
-
-          if (!isCurrentlySelected) {
-            // 选中当前项
-            newModelValue = props.value;
-          } else {
-            // 取消选中当前项
-            // 如果不允许为空且当前只有这一项被选中,则阻止取消操作
-            if (!props.null && currentValue.length === 1) {
-              return; // 阻止取消唯一选中项
-            }
-            newModelValue = "";
-          }
-        }
-
-        isToggleTriggering = true; // emit 前设置,避免 watch 重复触发 onChange by xu 20260416
-        emit("update:modelValue", newModelValue);
-        emit("change", newModelValue, props.value, props.label);
-
-        nextTick(() => {
-          isToggleTriggering = false; // 重置标志,允许后续桥接 API 赋值触发 onChange by xu 20260416
-          // 触发验证
-          if (window.ssVm) {
-            window.ssVm.validateField(props.name);
-          }
-        });
-      };
-
-      return { isChecked, toggleSelect };
-    },
-
-    render() {
-      const SsFormIcon = resolveComponent("ss-form-icon");
-      return h("div", { class: "radio-container2" }, [
-        // 隐藏的表单元素
-        this.multiple
-          ? h("input", {
-              type: "hidden",
-              name: `${this.name}`, // 多选模式下使用数组形式的 name
-              value: this.isChecked ? this.value : "",
-            })
-          : this.isChecked &&
-            h("input", {
-              // 只有当前按钮被选中时才创建 input
-              type: "hidden",
-              name: this.name,
-              value: this.value,
-            }),
-
-        // 按钮显示
-        h(
-          "div",
-          {
-            class: { checked: this.isChecked },
-            style: { width: this.width },
-            onClick: this.toggleSelect,
-          },
-          [
-            h("span", null, this.label),
-            h("div", { class: "mark" }, [
-              h(SsFormIcon, {
-                class: this.isChecked
-                  ? "form-icon-onoff-checked"
-                  : "form-icon-onoff-unchecked",
-              }),
-            ]),
-          ]
-        ),
-      ]);
-    },
-  };
-
-  // ss-textarea
-  // ss-textarea
-  const SsTextarea = {
-    name: "SsTextarea",
-    props: {
-      name: {
-        type: String,
-        required: true,
-      },
-      placeholder: {
-        type: String,
-        default: "请输入",
-      },
-      defaultValue: [String, Number],
-      modelValue: [String, Number],
-      // 功能说明:onChange 全局回调 prop,桥接 API 赋值时自动触发 by xu 20260416
-      onchange: {
-        type: String,
-        required: false,
-      },
-    },
-    emits: ["update:modelValue"],
-    setup(props, { emit }) {
-      const inputValue = ref(props.modelValue || props.defaultValue || "");
-
-      // 功能说明:调用全局 onChange 回调 by xu 20260416
-      const callGlobalOnchg = (value) => {
-        if (props.onchange && typeof props.onchange === "string") {
-          if (
-            typeof window !== "undefined" &&
-            window[props.onchange] &&
-            typeof window[props.onchange] === "function"
-          ) {
-            try {
-              window[props.onchange](value);
-            } catch (error) {
-              console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
-            }
-          }
-        }
-      };
-
-      // 监听 modelValue 变化
-      watch(
-        () => props.modelValue,
-        (newVal) => {
-          inputValue.value = newVal;
-          callGlobalOnchg(newVal);
-        }
-      );
-
-      // 输入事件处理
-      const onInput = (event) => {
-        const newValue = event.target.value;
-        inputValue.value = newValue;
-        emit("update:modelValue", newValue);
-        // 触发验证
-        if (window.ssVm) {
-          window.ssVm.validateField(props.name);
-        }
-      };
-
-      // 失焦时验证
-      const onBlur = () => {
-        if (window.ssVm) {
-          window.ssVm.validateField(props.name);
-        }
-      };
-
-      return { inputValue, onInput, onBlur };
-    },
-    render() {
-      return h("div", { class: "textarea-container" }, [
-        h("div", { class: "textarea" }, [
-          h("input", {
-            type: "hidden",
-            name: this.name,
-            value: this.inputValue || "",
-          }),
-          h("textarea", {
-            placeholder: this.placeholder,
-            value: this.inputValue,
-            onInput: this.onInput,
-            onBlur: this.onBlur,
-          }),
-        ]),
-      ]);
-    },
-  };
-
-  // ss-editor 富文本编辑器 基于Jodit
-  const SsEditor = {
-    name: "SsEditor",
-    props: {
-      modelValue: {
-        type: String,
-        default: "",
-      },
-      html: {
-        type: String,
-        default: "",
-      },
-      htmlname: {
-        type: String,
-        default: "",
-      },
-      storename: {
-        type: String,
-        default: "",
-      },
-      name: {
-        type: String,
-        default: "",
-      },
-      url: {
-        type: String,
-        default: "",
-      },
-      height: {
-        type: [Number, String],
-        default: 400,
-      },
-      placeholder: {
-        type: String,
-        default: "请输入内容",
-      },
-      mode: {
-        type: String,
-        default: "edit", // 'edit' | 'play'
-      },
-      uploadUrl: {
-        type: String,
-        default: "/ulByHttp", //原值为“upload” Ben(20251205)
-      },
-      param: {
-        type: Object,
-        default: () => ({}),
-      },
-    },
-
-    emits: ["update:modelValue", "ready", "change"],
-
-    setup(props, { emit }) {
-      const editorRef = ref(null);
-      const editorContent = ref("");
-      const currentModelValue = ref(props.modelValue || "");
-      const uniqueId = "editor-" + Date.now();
-      const errMsg = Vue.ref("");
-
-      // button 支持对象(旧格式,单个附件按钮)或数组(新格式,多个按钮)by xu 20250331
-      const buttonConfigRaw = props.param && props.param.button ? props.param.button : null;
-      const buttonArray = Array.isArray(buttonConfigRaw)
-        ? buttonConfigRaw
-        : buttonConfigRaw
-          ? [buttonConfigRaw]
-          : [];
-
-      // 找到附件按钮配置(有 cmsAddUrl 的)
-      const fjButton = buttonArray.find(btn => btn && btn.cmsAddUrl && btn.cmsUpdUrl) || {};
-      const fjid = ref(fjButton.val || null);
-      const attachmentFieldName = fjButton.name || "fjid";
-      const attachmentLabel = fjButton.desc || fjButton.text || "附件";
-      const resolveStoreFieldName = () => {
-        if (props.storename) {
-          return props.storename;
-        }
-        if (!props.name) {
-          return "";
-        }
-        return /wj$/i.test(props.name) ? props.name : props.name + "wj";
-      };
-      const resolveHtmlFieldName = () => {
-        if (props.htmlname) {
-          return props.htmlname;
-        }
-        const storeFieldName = resolveStoreFieldName();
-        if (storeFieldName && /wj$/i.test(storeFieldName)) {
-          return storeFieldName.replace(/wj$/i, "") + "Edit";
-        }
-        if (!props.name) {
-          return "";
-        }
-        return props.name.replace(/wj$/i, "") + "Edit";
-      };
-      const resolvePageSearchParam = (key) => {
-        try {
-          return new URL(window.location.href).searchParams.get(key) || "";
-        } catch (error) {
-          return "";
-        }
-      };
-      const resolveAttachmentObjName = () =>
-        props.param?.obj ||
-        props.param?.ssObjName ||
-        document.querySelector("[name='ssObjName']")?.value ||
-        window?.ss?.dom?.ssObjName ||
-        resolvePageSearchParam("ssObjName") ||
-        "";
-      const resolveAttachmentObjId = () =>
-        props.param?.ssObjId ||
-        props.param?.objId ||
-        document.querySelector("[name='ssObjId']")?.value ||
-        resolvePageSearchParam("ssObjId") ||
-        "";
-      const buildAttachmentCreatePayload = () => ({
-        name: attachmentFieldName,
-        ssNrObjName: resolveAttachmentObjName(),
-        ssNrObjId: resolveAttachmentObjId(),
-      });
-      const buildAttachmentDialogQuery = () =>
-        "&nrid=T-" +
-        fjid.value +
-        "&objectId=" +
-        fjid.value +
-        "&objectName=" +
-        attachmentFieldName +
-        "&callback=" +
-        (window[attachmentFieldName + "CallbackName"] || "");
-      const ensureAttachmentId = () => {
-        if (fjid.value != null && fjid.value !== "") {
-          return true;
-        }
-        if (!fjButton.cmsAddUrl) {
-          console.warn("ss-editor 未配置附件创建地址,无法初始化附件记录");
-          return false;
-        }
-        $.ajax({
-          type: "post",
-          url: fjButton.cmsAddUrl,
-          async: false,
-          data: buildAttachmentCreatePayload(),
-          success: function (_fjid) {
-            console.log("cmsAddUrl success", _fjid);
-            fjid.value = _fjid;
-          },
-        });
-        return fjid.value != null && fjid.value !== "";
-      };
-      const openAttachmentDialog = () => {
-        if (!fjButton.cmsUpdUrl) {
-          console.warn("ss-editor 未配置附件编辑地址,忽略附件操作");
-          return;
-        }
-        if (!ensureAttachmentId()) {
-          return;
-        }
-        const str = buildAttachmentDialogQuery();
-        console.log("str", str);
-        SS.openDialog({
-          src: fjButton.cmsUpdUrl + str,
-          headerTitle: "编辑",
-          width: 900,
-          high: 664,
-          zIndex: 51,
-        });
-      };
-
-      // 筛选出自定义按钮(有 func 的)
-      const customButtonsFromParam = buttonArray.filter(btn => btn.func).map(btn => ({
-        name: btn.name,
-        text: btn.desc || btn.text,
-        tooltip: btn.desc || btn.tooltip,
-        icon: btn.icon || 'editor-icon-file',
-        onClick: btn.func  // 函数名字符串
-      }));
-
-      const mode = props.param ? props.param.mode : null;
-
-      const normalizeHtml = (rawHtml) => {
-        if (rawHtml == null) {
-          return "";
-        }
-        const html = String(rawHtml).trim();
-        if (!html) {
-          return "";
-        }
-        if (
-          /<html[\s>]/i.test(html) ||
-          /<body[\s>]/i.test(html) ||
-          /<!doctype/i.test(html)
-        ) {
-          try {
-            const doc = new DOMParser().parseFromString(html, "text/html");
-            if (doc && doc.body) {
-              return doc.body.innerHTML || "";
-            }
-          } catch (e) {
-            console.warn("ss-editor 解析完整HTML失败,回退原始内容:", e);
-          }
-        }
-        return html;
-      };
-
-      const syncHiddenContentInput = (html) => {
-        const contentElements = document.getElementsByName(resolveHtmlFieldName());
-        if (contentElements.length > 0) {
-          contentElements[0].value = html;
-        }
-      };
-
-      const setEditorHtml = (html) => {
-        const normalizedHtml = normalizeHtml(html);
-        editorContent.value = normalizedHtml;
-        syncHiddenContentInput(normalizedHtml);
-        if (editorRef.value && editorRef.value.value !== normalizedHtml) {
-          editorRef.value.value = normalizedHtml;
-        }
-      };
-
-      const resolveWindowFunction = (handlerName) => {
-        if (!handlerName || typeof handlerName !== "string") {
-          return null;
-        }
-        return handlerName.split(".").reduce((current, key) => {
-          return current && current[key] != null ? current[key] : null;
-        }, window);
-      };
-
-      const getCustomButtonKey = (button, index) => {
-        const baseName =
-          (button &&
-            (button.key || button.name || button.text || button.tooltip)) ||
-          `button${index + 1}`;
-        return `ssCustomButton_${String(baseName).replace(
-          /[^a-zA-Z0-9_-]/g,
-          "_"
-        )}_${index}`;
-      };
-
-      const normalizeCustomButtons = (buttons = []) => {
-        return Array.isArray(buttons)
-          ? buttons.filter(Boolean).map((button, index) => ({
-              ...button,
-              _buttonKey: getCustomButtonKey(button, index),
-            }))
-          : [];
-      };
-
-      const renderButtonIcon = (icon) => {
-        if (!icon) {
-          return null;
-        }
-        if (typeof icon === "string" && icon.trim().startsWith("<")) {
-          return icon;
-        }
-        return `<span class="editor-icon ${icon}"></span>`;
-      };
-
-      const buildCustomButtonRegistry = (buttons = []) => {
-        const controls = {};
-        const buttonNames = [];
-        const iconMap = {};
-        normalizeCustomButtons(buttons).forEach((button) => {
-          const buttonKey = button._buttonKey;
-          const handler =
-            button.onClick ||
-            button.click ||
-            button.handler ||
-            button.exec ||
-            null;
-          const tooltip =
-            button.tooltip ||
-            button.text ||
-            button.label ||
-            button.name ||
-            "自定义按钮";
-          buttonNames.push(buttonKey);
-          if (button.icon) {
-            iconMap[buttonKey] = button.icon;
-          }
-          controls[buttonKey] = {
-            name: button.name || buttonKey,
-            tooltip,
-            exec: function (editor) {
-              const context = {
-                editor,
-                button,
-                props,
-                value:
-                  editor && typeof editor.value !== "undefined"
-                    ? editor.value
-                    : "",
-                setValue: (value) => setEditorHtml(value),
-                getValue: () =>
-                  editor && typeof editor.value !== "undefined"
-                    ? editor.value
-                    : "",
-                emit,
-                currentModelValue: currentModelValue.value,
-                fjid: fjid.value,
-              };
-              if (typeof handler === "function") {
-                return handler(context);
-              }
-              if (typeof handler === "string") {
-                const windowHandler = resolveWindowFunction(handler);
-                if (typeof windowHandler === "function") {
-                  return windowHandler(context);
-                }
-                console.warn("ss-editor 自定义按钮未找到点击事件:", handler);
-                return undefined;
-              }
-              console.warn("ss-editor 自定义按钮缺少点击事件配置:", button);
-              return undefined;
-            },
-          };
-        });
-        return {
-          controls,
-          buttonNames,
-          iconMap,
-        };
-      };
-
-      const validate = () => {
-        if (window.ssVm) {
-          const result = window.ssVm.validateField(props.name);
-          console.log("validate", window.ssVm.validateField(props.name));
-          errMsg.value = result.valid ? "" : result.message;
-        }
-      };
-
-      onMounted(() => {
-        validate();
-
-        // 只读模式下不初始化 Jodit,直接设置内容 by xu 20250402
-        if (props.mode === "play") {
-          if (props.html) {
-            setEditorHtml(props.html);
-          } else if (props.url) {
-            const params = new URLSearchParams();
-            if (mode) params.append("mode", mode);
-            if (props.modelValue) params.append("path", props.modelValue);
-
-            axios
-              .post(props.url, params, {
-                headers: {
-                  "Content-Type": "application/x-www-form-urlencoded",
-                },
-              })
-              .then((response) => {
-                if ("timeout" == response.data.statusText) {
-                  alert("网络超时!");
-                  return;
-                }
-
-                const content = response.data.content;
-                if (content != null) {
-                  setEditorHtml(content);
-                }
-
-                const filePath = response.data.path;
-                if (filePath) {
-                  currentModelValue.value = filePath;
-                  emit("update:modelValue", filePath);
-                }
-              });
-          } else {
-            setEditorHtml(props.html);
-          }
-          return;
-        }
-
-        // 读取按钮配置 by xu 20250408(移除废弃的 props.customButtons)
-        let buttonsToUse = [];
-        // 1. 优先从 param.button 数组中筛选(新格式)by xu 20250331
-        if (customButtonsFromParam && customButtonsFromParam.length > 0) {
-          buttonsToUse = customButtonsFromParam;
-        }
-        // 2. 尝试从 param.customButtons 读取(旧格式,兼容)
-        if (!buttonsToUse || buttonsToUse.length === 0) {
-          if (props.param && props.param.customButtons && props.param.customButtons.length > 0) {
-            buttonsToUse = props.param.customButtons;
-          }
-        }
-        // 3. 尝试通过桥接 API 读取
-        if (!buttonsToUse || buttonsToUse.length === 0) {
-          const vm = window.SS.dom.getVueApp({ scope: "chain" });
-          if (vm && vm.zwwjCustomButtons) {
-            buttonsToUse = vm.zwwjCustomButtons;
-          }
-        }
-        // 4. 从 formElemConfig 读取(兜底)
-        if (!buttonsToUse || buttonsToUse.length === 0) {
-          const zwwjConfig = window.SS.dom.formElemConfig?.zwwj;
-          if (zwwjConfig?.customButtons) {
-            buttonsToUse = zwwjConfig.customButtons;
-          } else {
-            buttonsToUse = window.SS.dom.formElemConfig?.zwwjCustomButtons;
-          }
-        }
-
-        const {
-          controls: customButtonControls,
-          buttonNames: customButtonNames,
-          iconMap: customButtonIconMap,
-        } = buildCustomButtonRegistry(buttonsToUse);
-        console.log(
-          "[SsEditor] 解析后的按钮:",
-          customButtonNames,
-          customButtonControls
-        );
-
-        const appendCustomButtons = (buttons = []) => {
-          if (!customButtonNames.length) {
-            return buttons;
-          }
-          const toolbarButtons = [...buttons];
-          const insertIndex = toolbarButtons.includes("dots")
-            ? toolbarButtons.indexOf("dots")
-            : toolbarButtons.includes("print")
-            ? toolbarButtons.indexOf("print")
-            : -1;
-          if (insertIndex >= 0) {
-            toolbarButtons.splice(insertIndex, 0, ...customButtonNames);
-            return toolbarButtons;
-          }
-          return [...toolbarButtons, ...customButtonNames];
-        };
-
-        const editor = Jodit.make(`#${uniqueId}`, {
-          height: props.height,
-          placeholder: props.placeholder,
-          readonly: props.mode === "play",
-          language: "zh_cn",
-          i18n: {
-            zh_cn: {
-              Link: "链接",
-              URL: "链接",
-              "No follow": "无跟踪",
-              "Class name": "类名",
-              Image: "图片",
-              File: "文件",
-              "Line height": "行高",
-              Alternative: "描述",
-              "Alternative text": "描述",
-              "Lower Alpha": "小写字母",
-              "Upper Alpha": "大写字母",
-              "Upper Roman": "大写罗马数字",
-              "Lower Roman": "小写罗马数字",
-              "Lower Greek": "小写希腊字母",
-              "Lower Letter": "小写字母",
-              "Upper Letter": "大写字母",
-            },
-          },
-          showXPathInStatusbar: false,
-          showCharsCounter: false,
-          showWordsCounter: false,
-          allowResizeY: false,
-          toolbarSticky: false,
-          statusbar: false,
-          uploader: {
-            url: props.uploadUrl,
-            format: "json",
-            method: "POST",
-            filesVariableName: function (i) {
-              return "imgs[" + i + "]";
-            },
-            headers: {
-              Accept: "application/json",
-            },
-            prepareData: function (formData) {
-              return formData;
-            },
-            isSuccess: function (resp) {
-              console.log("isSuccess resp:", resp);
-              return resp.code === 0;
-            },
-            getMessage: function (resp) {
-              console.log("getMessage resp:", resp);
-              return resp.msg || "上传失败";
-            },
-            process: function (resp) {
-              console.log("process resp:", resp);
-              return resp.data.url;
-            },
-            error: function (e) {
-              console.error("上传失败:", e.message);
-            },
-            defaultHandlerSuccess: function (resp) {
-              console.log("上传成功:", resp);
-            },
-            defaultHandlerError: function (err) {
-              console.error("上传错误:", err);
-            },
-            contentType: function () {
-              return false;
-            },
-          },
-          controls: {
-            font: {
-              list: {
-                Arial: "Arial",
-                SimSun: "宋体",
-                SimHei: "黑体",
-                "Microsoft YaHei": "微软雅黑",
-                KaiTi: "楷体",
-                FangSong: "仿宋",
-                "Times New Roman": "Times New Roman",
-                "Courier New": "Courier New",
-              },
-            },
-            customLinkButton: {
-              name: "link",
-              tooltip: attachmentLabel,
-              exec: function () {
-                openAttachmentDialog();
-              },
-            },
-            ...customButtonControls,
-          },
-          toolbarAdaptive: true,
-          // 调试:记录最终按钮配置
-          buttons: (() => {
-            const finalButtons = appendCustomButtons([
-              "fullsize",
-              "bold",
-              "italic",
-              "underline",
-              "strikethrough",
-              "eraser",
-              "|",
-              "font",
-              "fontsize",
-              "brush",
-              "paragraph",
-              "|",
-              "left",
-              "center",
-              "right",
-              "justify",
-              "|",
-              "ul",
-              "ol",
-              "indent",
-              "outdent",
-              "|",
-              "image",
-              "table",
-              "customLinkButton",
-              "print",
-              "|",
-              "undo",
-              "redo",
-              "find",
-            ]);
-            console.log("[SsEditor] 最终 buttons 配置:", finalButtons);
-            return finalButtons;
-          })(),
-          buttonsMD: appendCustomButtons([
-            "fullsize",
-            "bold",
-            "italic",
-            "underline",
-            "strikethrough",
-            "eraser",
-            "|",
-            "font",
-            "fontsize",
-            "brush",
-            "paragraph",
-            "|",
-            "font",
-            "fontsize",
-            "|",
-            "left",
-            "center",
-            "right",
-            "justify",
-            "|",
-            "image",
-            "customLinkButton",
-            "|",
-            "dots",
-          ]),
-          buttonsSM: appendCustomButtons([
-            "fullsize",
-            "bold",
-            "italic",
-            "|",
-            "image",
-            "|",
-            "dots",
-          ]),
-          buttonsXS: appendCustomButtons(["fullsize", "bold", "|", "dots"]),
-          sizeLG: 1024,
-          sizeMD: 768,
-          sizeSM: 576,
-          getIcon: function (name, clearName) {
-            const iconMap = {
-              bold: "editor-icon-bold",
-              italic: "editor-icon-italic",
-              underline: "editor-icon-underline",
-              strikethrough: "editor-icon-strikethrough",
-              eraser: "editor-icon-eraser",
-              copyformat: "editor-icon-copyformat",
-              font: "editor-icon-font",
-              fontsize: "editor-icon-fontsize",
-              brush: "editor-icon-brush",
-              paragraph: "editor-icon-paragraph",
-              left: "editor-icon-align-left",
-              center: "editor-icon-align-center",
-              right: "editor-icon-align-right",
-              justify: "editor-icon-align-justify",
-              ul: "editor-icon-ul",
-              ol: "editor-icon-ol",
-              indent: "editor-icon-indent",
-              outdent: "editor-icon-outdent",
-              image: "editor-icon-image",
-              file: "editor-icon-file",
-              video: "editor-icon-video",
-              table: "editor-icon-table",
-              link: "editor-icon-link",
-              source: "editor-icon-source",
-              eye: "editor-icon-preview",
-              fullsize: "editor-icon-fullsize",
-              shrink: "editor-icon-fullsize-exit",
-              print: "editor-icon-print",
-              undo: "editor-icon-undo",
-              redo: "editor-icon-redo",
-              search: "editor-icon-find",
-              selectall: "editor-icon-selectall",
-            };
-            const customIcon =
-              customButtonIconMap[clearName] || customButtonIconMap[name];
-            if (customIcon) {
-              return renderButtonIcon(customIcon);
-            }
-            const iconClass = iconMap[clearName] || iconMap[name];
-            if (iconClass) {
-              return renderButtonIcon(iconClass);
-            }
-            return null;
-          },
-        });
-
-        editorRef.value = editor;
-
-        editor.events.on("change", () => {
-          const html = editor.value || "";
-          editorContent.value = html;
-          syncHiddenContentInput(html);
-          emit("change", html);
-          setTimeout(() => {
-            validate();
-          }, 50);
-        });
-
-        emit("ready", editor);
-
-        if (props.html) {
-          setEditorHtml(props.html);
-        } else if (props.url) {
-          const params = new URLSearchParams();
-          if (mode) params.append("mode", mode);
-          if (props.modelValue) params.append("path", props.modelValue);
-
-          axios
-            .post(props.url, params, {
-              headers: {
-                "Content-Type": "application/x-www-form-urlencoded",
-              },
-            })
-            .then((response) => {
-              if ("timeout" == response.data.statusText) {
-                alert("网络超时!");
-                return;
-              }
-
-              const content = response.data.content;
-              if (content != null) {
-                setEditorHtml(content);
-              }
-
-              const filePath = response.data.path;
-              if (filePath) {
-                currentModelValue.value = filePath;
-                emit("update:modelValue", filePath);
-              }
-            });
-        } else {
-          setEditorHtml(props.html);
-        }
-      });
-
-      watch(
-        () => props.html,
-        (newValue) => {
-          setEditorHtml(newValue);
-        }
-      );
-
-      watch(
-        () => props.modelValue,
-        (newValue) => {
-          currentModelValue.value = newValue || "";
-        }
-      );
-
-      watch(
-        () => props.mode,
-        (newMode) => {
-          if (editorRef.value) {
-            editorRef.value.setReadOnly(newMode === "play");
-          }
-        }
-      );
-
-      onBeforeUnmount(() => {
-        if (editorRef.value) {
-          editorRef.value.destruct();
-        }
-      });
-
-      return () => {
-        const htmlFieldName = resolveHtmlFieldName();
-        const storeFieldName = resolveStoreFieldName();
-        const editorPathField = storeFieldName || props.name || "";
-
-        // 只读模式:不初始化 Jodit,直接渲染 HTML + 附件按钮 by xu 20250402
-        if (props.mode === "play") {
-          return h("div", { class: "ss-editor-container ss-editor-readonly" }, [
-            fjid.value &&
-              h("input", {
-                type: "hidden",
-                name: attachmentFieldName,
-                value: fjid.value,
-              }),
-            h("input", {
-              type: "hidden",
-              name: htmlFieldName,
-              value: editorContent.value,
-            }),
-            h("input", {
-              type: "hidden",
-              name: storeFieldName,
-              value: currentModelValue.value,
-            }),
-            h("input", {
-              type: "hidden",
-              name: "ueditorpath",
-              value: editorPathField,
-            }),
-            // 附件按钮(只读模式下仍显示)
-            fjButton.cmsAddUrl && fjButton.cmsUpdUrl &&
-              h("div", {
-                class: "ss-editor-attach-btn",
-                onClick: openAttachmentDialog,
-              }, [
-                h("span", { class: "editor-icon editor-icon-file" }),
-                h("span", { class: "ss-editor-attach-text" }, attachmentLabel)
-              ]),
-            // HTML 内容展示
-            h("div", {
-              class: "ss-editor-readonly-content",
-              innerHTML: editorContent.value,
-            }),
-          ]);
-        }
-
-        // 正常编辑模式:渲染 textarea 供 Jodit 初始化
-        return h("div", { class: "ss-editor-container" }, [
-          fjid.value &&
-            h("input", {
-              type: "hidden",
-              name: attachmentFieldName,
-              value: fjid.value,
-            }),
-          h("input", {
-            type: "hidden",
-            name: htmlFieldName,
-            value: editorContent.value,
-          }),
-          h("input", {
-            type: "hidden",
-            name: storeFieldName,
-            value: currentModelValue.value,
-          }),
-          h("input", {
-            type: "hidden",
-            name: "ueditorpath",
-            value: editorPathField,
-          }),
-          h("textarea", { id: uniqueId }),
-        ]);
-      };
-    },
-  };
-  // 弹窗右边图标
-  const SsFullStyleHeader = {
-    name: "SsFullStyleHeader",
-    props: {
-      title: {
-        type: String,
-        default: "标题",
-      },
-    },
-    emits: ["close"],
-    setup(props, { emit }) {
-      // console.log(props.title)
-      const onClose = () => {
-        emit("close");
-      };
-      const SsIcon = resolveComponent("ss-icon");
-      return () =>
-        h("div", { class: "header-container" }, [
-          h("div", { class: "title" }, props.title),
-          h("div", { class: "handle-bar" }, [
-            h("div", { class: "left-bar" }, [
-              h(SsDialogIcon, { class: "dialog-icon-download" }),
-              h(SsDialogIcon, { class: "dialog-icon-print" }),
-              h(SsDialogIcon, { class: "dialog-icon-setting" }),
-              h(SsDialogIcon, { class: "dialog-icon-collect" }),
-              h(SsDialogIcon, { class: "dialog-icon-help" }),
-              h(SsDialogIcon, { class: "dialog-icon-full-screen" }),
-              h(SsDialogIcon, { class: "dialog-icon-lock" }),
-            ]),
-            h("div", { class: "close-bar", onClick: onClose }, [
-              h(SsDialogIcon, { class: "dialog-icon-close" }),
-            ]),
-          ]),
-        ]);
-    },
-  };
-  // ss-dialog弹窗
-  const SsDialog = {
-    name: "SsDialog",
-    props: {
-      src: {
-        type: String,
-      },
-      headerTitle: {
-        type: String,
-        // required: true,
-        default: "弹窗",
-      },
-      width: {
-        type: String,
-        default: "1400",
-      },
-      height: {
-        type: String,
-        default: "600",
-      },
-      params: {
-        type: Object,
-        default: () => ({}),
-      },
-      zIndex: {
-        type: Number,
-        default: 1000,
-      },
-    },
-    emits: ["close"],
-    setup(props, { slots, emit }) {
-      // 关闭窗口方法
-      const onClose = () => {
-        emit("close");
-      };
-      const showHeader = ref(true);
-      const headerVisible = ref(false);
-      const popupHieght = ref(props.height);
-      // 状态:存储位置信息
-      const position = reactive({
-        // 页面居中
-        x: (window.innerWidth - props.width) / 2,
-        y: (window.innerHeight - popupHieght.value) / 2,
-        isDragging: false,
-        offsetX: 0,
-        offsetY: 0,
-      });
-      // 鼠标按下时设置起始坐标并开始拖拽
-      const startDrag = (event) => {
-        position.isDragging = true;
-        position.offsetX = event.clientX - position.x;
-        position.offsetY = event.clientY - position.y;
-      };
-      // 鼠标移动时更新位置
-      const onDrag = (event) => {
-        if (position.isDragging) {
-          position.x = event.clientX - position.offsetX;
-          position.y = event.clientY - position.offsetY;
-        }
-      };
-      // 鼠标放开时结束拖拽
-      const endDrag = () => {
-        position.isDragging = false;
-      };
-      // 监听来自 iframe 的消息
-      const handleMessage = (event) => {
-        //  顶天立地
-        if (event.data && typeof event.data.hasScrollBar !== "undefined") {
-          if (event.data.hasScrollBar) {
-            //   console.log(event);
-            position.y = 10;
-            showHeader.value = false;
-            headerVisible.value = true;
-            popupHieght.value = window.innerHeight - 20;
-            //   console.log(popupHieght.value);
-            document.querySelector(".body").style.height = "100%";
-            document.querySelector(".body").style.paddingTop = "30px";
-            document.querySelector(".header-container ").style.position =
-              "absolute";
-            document.querySelector(".header-container ").style.zIndex = "10";
-          }
-        }
-      };
-      // 鼠标移入关闭按钮区域时显示头部
-      const onMouseEnterCloseButton = () => {
-        headerVisible.value = false;
-      };
-      // 鼠标移出关闭按钮区域时隐藏头部
-      const onMouseLeaveCloseButton = () => {
-        headerVisible.value = true;
-      };
-      // 在组件挂载时添加全局事件监听器
-      Vue.onMounted(() => {
-        // 如果传过来的高度大于窗口高度,则设置为窗口高度减去20 否则保持传过来的高度
-        popupHieght.value =
-          popupHieght.value > window.innerHeight
-            ? window.innerHeight - 20
-            : popupHieght.value;
-        const container = document.querySelector(".header-container");
-        if (container) {
-          container.addEventListener("mousedown", startDrag);
-        }
-        document.addEventListener("mousemove", onDrag);
-        document.addEventListener("mouseup", endDrag);
-        window.addEventListener("message", handleMessage);
-      });
-
-      // 在组件卸载时移除全局事件监听器
-      Vue.onUnmounted(() => {
-        document.removeEventListener("mousemove", onDrag);
-        document.removeEventListener("mouseup", endDrag);
-        window.removeEventListener("message", handleMessage);
-      });
-      const SsMark = resolveComponent("ss-mark");
-      const SsFullStyleHeader = resolveComponent("ss-full-style-header");
-      // render函数定义组件结构
-      return () =>
-        h(
-          Teleport,
-          { to: "body" }, // 使用 Teleport 将弹窗内容挂载到 body
-          h(SsMark, {}, [
-            h(
-              "div",
-              {
-                class: "popup-container",
-                style: {
-                  position: "absolute",
-                  left: `${position.x}px`,
-                  top: `${position.y}px`,
-                  width: props.width + "px",
-                  height: popupHieght.value + "px",
-                  zIndex: props.zIndex, // 确保弹窗在最上层
-                },
-              },
-              [
-                h(SsFullStyleHeader, {
-                  class: "header",
-                  title: props.headerTitle,
-                  onClose: onClose,
-                  onMousedown: startDrag, // 绑定拖动事件
-                  onMouseUp: endDrag,
-                  ...(!showHeader.value && {
-                    onMouseenter: onMouseEnterCloseButton,
-                    onMouseleave: onMouseLeaveCloseButton,
-                  }),
-                  style: {
-                    cursor: position.isDragging ? "grabbing" : "grab",
-                    visibility: headerVisible.value ? "hidden" : "visible",
-                  },
-                }),
-                h(
-                  "div",
-                  {
-                    class: "body",
-                    style: {},
-                  },
-                  [
-                    h("iframe", {
-                      src: props.src,
-                      frameborder: 0,
-                      style: { width: "100%", height: "100%" },
-                    }),
-                  ]
-                ),
-                headerVisible.value &&
-                  h("div", {
-                    class: "close-button",
-
-                    onMouseenter: onMouseEnterCloseButton,
-                    onMouseleave: onMouseLeaveCloseButton,
-                    style: {
-                      position: "absolute",
-                      top: "0",
-                      right: "0",
-                      // background: 'black',
-                      width: "60px",
-                      height: "60px",
-                      cursor: "pointer",
-                    },
-                  }),
-              ]
-            ),
-          ])
-        );
-    },
-  };
-  // ss-mark遮罩层
-  const SsMark = {
-    name: "SsMark",
-
-    setup(props, { slots, emit }) {
-      return () =>
-        h("div", { class: "dialog-container" }, [
-          h("div", { class: "mark-content" }, [
-            h("div", { class: "dialog-contianer" }, [
-              slots.default ? slots.default() : "",
-            ]),
-          ]),
-        ]);
-    },
-  };
-  // ss-bottom-button 底部按钮
-  // 修改支持更多按钮 by xu 20251211
-  const SsBottomButton = {
-    name: "SsBottomButton",
-    props: {
-      text: {
-        type: String,
-        required: false,
-      },
-      type: {
-        type: String,
-        default: "button",
-      },
-      iconClass: {
-        type: String,
-      },
-      class: {
-        type: String,
-        default: "",
-      },
-      onclick: {
-        type: [Function, String],
-        default: null,
-      },
-      // 修改支持更多按钮 by xu 20251211
-      more: {
-        type: [Boolean, String],
-        default: false,
-      },
-    },
-    setup(props, { emit }) {
-      const SsBottomDivIcon = Vue.resolveComponent("ss-bottom-div-icon");
-      const showDropdown = Vue.ref(false);
-      // 修改支持更多按钮 by xu 20251211
-      const moreKey = Vue.computed(() => {
-        const val = props.more;
-        if (val === false || val === null || typeof val === "undefined") {
-          return null;
-        }
-        if (val === true || val === "" || val === "true") {
-          return "moreChg";
-        }
-        return val;
-      });
-
-      // 从配置中读取按钮信息和下拉选项
-      const config = Vue.computed(() => {
-        if (
-          moreKey.value &&
-          window.ss &&
-          window.ss.dom &&
-          window.ss.dom.btnElemConfig
-        ) {
-          return window.ss.dom.btnElemConfig[moreKey.value] || {};
-        }
-        return {};
-      });
-
-      const buttonText = Vue.computed(() => {
-        return props.text || config.value.desc || "";
-      });
-
-      const dropOptions = Vue.computed(() => {
-        return config.value.dropOptions || [];
-      });
-
-      const hasDropdown = Vue.computed(() => {
-        return dropOptions.value.length > 0;
-      });
-
-      const handleMouseEnter = () => {
-        if (hasDropdown.value) {
-          showDropdown.value = true;
-        }
-      };
-
-      const handleMouseLeave = () => {
-        showDropdown.value = false;
-      };
-
-      const handleDropItemClick = (option) => {
-        if (option.callback && typeof option.callback === "function") {
-          option.callback();
-        }
-        showDropdown.value = false;
-      };
-
-      return () =>
-        h(
-          "div",
-          {
-            class: "ss-bottom-button-wrapper",
-            onMouseenter: handleMouseEnter,
-            onMouseleave: handleMouseLeave,
-          },
-          [
-            h(
-              "button",
-              {
-                class: props.class,
-                onClick: (e) => {
-                  e.stopPropagation();
-                  emit("click", e);
-                  if (props.onclick) {
-                    // 如果是函数直接调用
-                    if (typeof props.onclick === "function") {
-                      props.onclick(e);
-                    } else if (typeof props.onclick === "string") {
-                      // 如果是字符串,使用直接的方法执行
-                      // 临时存储按钮元素到全局变量
-                      window.__ss_current_button = e.currentTarget;
-
-                      // 直接执行代码,使用eval以保留原始上下文
-                      try {
-                        eval(props.onclick);
-                      } finally {
-                        // 清理全局变量
-                        delete window.__ss_current_button;
-                      }
-                    }
-                  }
-                },
-                type: props.type,
-              },
-              [
-                h("span", null, [
-                  h(SsBottomDivIcon, {
-                    class: props.iconClass,
-                  }),
-                ]),
-                h("span", null, buttonText.value),
-              ]
-            ),
-            // 渲染下拉菜单
-            hasDropdown.value && showDropdown.value
-              ? h(
-                  "div",
-                  {
-                    class: "ss-bottom-button-dropdown",
-                  },
-                  dropOptions.value.map((option) =>
-                    h(
-                      "div",
-                      {
-                        class: "ss-bottom-button-dropdown-item",
-                        onClick: (e) => {
-                          e.stopPropagation();
-                          handleDropItemClick(option);
-                        },
-                      },
-                      option.desc
-                    )
-                  )
-                )
-              : null,
-          ]
-        );
-    },
-  };
-  // ss-search搜索框
-  const SsSearch = {
-    name: "SsSearch",
-    props: {
-      theme: {
-        type: String,
-        default: "light",
-        validator: function (value) {
-          return ["dark", "light"].includes(value);
-        },
-      },
-      placeholder: {
-        type: String,
-        default: "请输入搜索条件",
-      },
-    },
-    setup(props, { emit }) {
-      const onClick = () => {
-        console.log("Search clicked");
-        emit("click");
-      };
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      return () =>
-        Vue.h(
-          "div",
-          {
-            class: ["search-container", props.theme],
-            onClick: onClick,
-          },
-          [
-            Vue.h("input", {
-              placeholder: props.placeholder,
-              disabled: true,
-            }),
-            Vue.h(SsIcon, {
-              name: "search-result",
-              size: "20px",
-            }),
-          ]
-        );
-    },
-  };
-  // ss-cart-item 菜单页面的卡片 左右结构
-  const SsCartItem = {
-    name: "SsCartItem",
-    props: {
-      active: Boolean,
-      item: {
-        type: Object,
-        default: () => ({
-          thumb: "images/example/project-img.png",
-          title: "广州(国际)科技成果转化天河基地专",
-          description: "佳能中国广州分公司",
-          all: 50,
-          finish: 5,
-        }),
-      },
-    },
-    setup(props, { emit }) {
-      const item = props.item;
-
-      const itemWidth = Vue.computed(() => {
-        const containerWidth =
-          document.body.clientWidth || document.body.scrollWidth - 520;
-        const halfWidth = containerWidth / 2;
-        if (halfWidth < 480) {
-          return Math.min(containerWidth, 702) + "px";
-        } else {
-          return Math.min(halfWidth, 702) + "px";
-        }
-      });
-
-      const onItemClick = (e) => {
-        emit("click", e);
-      };
-
-      return {
-        item,
-        itemWidth,
-        onItemClick,
-      };
-    },
-    render() {
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      return Vue.h(
-        "div",
-        {
-          class: { "item-container": true, active: this.active },
-          onClick: this.onItemClick,
-          style: { width: this.itemWidth },
-        },
-        [
-          Vue.h("div", { class: "header" }, [
-            Vue.h(SsIcon, { name: "setting", size: "20px" }),
-          ]),
-          Vue.h("div", { class: "body" }, [
-            Vue.h("div", { class: "left" }, [
-              Vue.h("img", {
-                src: this.item.thumb,
-                alt: "Thumbnail",
-                class: "imgUnHandle",
-                style: { "object-fit": "cover", width: "100%", height: "100%" },
-              }),
-            ]),
-            Vue.h("div", { class: "right" }, [
-              Vue.h("div", { class: "title" }, this.item.title),
-              Vue.h("div", { class: "desc" }, this.item.description),
-              Vue.h("div", { class: "progress" }, [
-                Vue.h(
-                  "div",
-                  {
-                    style: {
-                      width: `${(this.item.finish / this.item.all) * 100}%`,
-                    },
-                  },
-                  [Vue.h("div", `${this.item.finish}/${this.item.all}`)]
-                ),
-              ]),
-            ]),
-          ]),
-        ]
-      );
-    },
-  };
-  // ss-cart-item2 菜单页面的卡片 上下结构
-  const SsCartItem2 = {
-    name: "SsCartItem2",
-    props: {
-      active: Boolean,
-      item: {
-        type: Object,
-        default: () => ({
-          thumb: "images/example/project-img.png",
-          title: "广州(国际)科技成果转化天河基地专",
-          description: "佳能中国广州分公司",
-          all: 50,
-          finish: 5,
-        }),
-      },
-    },
-    setup(props, { emit }) {
-      const item = props.item;
-      const itemWidth = Vue.computed(() => {
-        const containerWidth =
-          document.body.clientWidth || document.body.scrollWidth - 520;
-        const halfWidth = containerWidth / 2;
-        if (halfWidth < 480) {
-          return Math.min(containerWidth, 702) + "px";
-        } else {
-          return Math.min(halfWidth, 702) + "px";
-        }
-      });
-
-      const onItemClick = (e) => {
-        emit("click", e);
-      };
-
-      return {
-        item,
-        itemWidth,
-        onItemClick,
-      };
-    },
-
-    render() {
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      return Vue.h(
-        "div",
-        {
-          class: { "item-container2": true, active: this.active },
-          onClick: this.onItemClick,
-          style: { width: this.itemWidth },
-        },
-        [
-          Vue.h("div", { class: "action-bar" }, [
-            Vue.h(SsIcon, { name: "setting", size: "20px" }),
-          ]),
-          Vue.h("div", { class: "header" }, [
-            Vue.h("div", { class: "title" }, `${this.item.title}`),
-          ]),
-          Vue.h("div", { class: "body" }, [
-            Vue.h("div", { class: "left" }, [
-              Vue.h("img", {
-                src: this.item.thumb,
-                alt: "Thumbnail",
-                class: "imgUnHandle",
-                style: { "object-fit": "cover", width: "100%", height: "100%" },
-              }),
-            ]),
-            Vue.h("div", { class: "right" }, [
-              Vue.h("div", { class: "content" }, this.item.description),
-              Vue.h("div", { class: "tip" }, [
-                Vue.h("div", { class: "progress" }, [
-                  Vue.h(
-                    "div",
-                    {
-                      style: {
-                        width: `${(this.item.finish / this.item.all) * 100}%`,
-                      },
-                    },
-                    [Vue.h("div", `${this.item.finish}/${this.item.all}`)]
-                  ),
-                ]),
-              ]),
-            ]),
-          ]),
-        ]
-      );
-    },
-  };
-
-  /**
-   * SsListCard - 列表卡片组件
-   *
-   * @description 用于显示列表项的卡片组件,支持缩略图、标签、状态、操作按钮和选择功能
-   *
-   * @prop {Object} item - 卡片数据对象
-   * @prop {String} item.title - 卡片标题
-   * @prop {String} [item.thumb] - 缩略图 URL(可选)
-   * @prop {String} [item.thumbType] - 缩略图类型:'thumbnail'(缩略图)或默认(证件照)
-   * @prop {String} [item.status] - 卡片状态:'available'(可用-绿色)、'unavailable'(不可用-黄色)、'disabled'(禁用-红色)
-   * @prop {Array} item.tags - 标签数组,格式:[{键: 值}, ...]
-   * @prop {Function} item.onclick - 点击卡片的回调函数
-   * @prop {Array} [item.buttons] - 操作按钮数组(可选),显示在右上角齿轮
-   * @prop {Array} [item.statusIcons] - 状态图标数组(可选),显示在右上角,格式:[{class: '图标类名', title: '提示文字'}, ...]
-   *
-   * @example
-   * // 基础用法
-   * const item = {
-   *   title: "卡片标题",
-   *   tags: [
-   *     { 类型: '文档' },
-   *     { 状态: '进行中' }
-   *   ],
-   *   onclick: () => console.log('点击了卡片')
-   * };
-   *
-   * @example
-   * // 带缩略图和状态
-   * const item = {
-   *   title: "场地预定",
-   *   thumbType: 'thumbnail',
-   *   thumb: "https://example.com/image.jpg",
-   *   status: "available",  // 绿色背景
-   *   tags: [{ 容量: '50人' }],
-   *   onclick: () => {}
-   * };
-   *
-   * @example
-   * // 带操作按钮和状态图标
-   * const item = {
-   *   title: "会议室A",
-   *   tags: [{ 楼层: '3F' }],
-   *   onclick: () => {},
-   *   // 右上角操作按钮(齿轮)
-   *   buttons: [{
-   *     class: 'cart-list-setting',
-   *     title: '编辑',
-   *     onclick: () => console.log('编辑')
-   *   }],
-   *   // 右上角状态图标(在齿轮右边)
-   *   statusIcons: [{
-   *     class: 'icon-emoji',
-   *     title: '清洁中'
-   *   }]
-   * };
-   *
-   * @features
-   * - 卡片选择:鼠标悬停右下角显示选择角标,点击切换选中状态,选中后显示底部深灰色线条
-   * - 状态颜色:根据 status 字段显示不同背景色(可用/不可用/禁用)
-   * - 图片类型:支持证件照(73×100px)和缩略图(180×100px)两种尺寸
-   * - 操作按钮:右上角齿轮,hover 显示,支持多个按钮下拉菜单
-   * - 状态图标:右上角显示状态图标,齿轮会根据图标数量自动左移
-   *
-   * @author xu
-   * @date 20260105
-   */
-  // 组件文档补全(JSDoc) by xu 20260108
-  /**
-   * SsListCard(左侧对象卡片)
-   *
-   * 用途:
-   * - 渲染左侧卡片(标题 + tags)
-   * - 右下角“角标”用于选中/取消选中(不会触发卡片 click)
-   *
-   * 调用示例:
-   * ```html
-   * <ss-list-card :item="item" @toggle-select="handleToggleSelect" @click="openDetail"></ss-list-card>
-   * ```
-   *
-   * Props:
-   * - `item`:卡片数据对象(建议含 `id/title/tags[]`;内部会读写 `item._ssSelected` 作为选中态)
-   *
-   * Emits:
-   * - `toggle-select`:点击角标触发,参数 `{ item, selected }`
-   * - `click`:点击卡片主体触发(用于打开详情等)
-   */
-  const SsListCard = {
-    name: "SsListCard",
-    props: {
-      ssObjName: { type: String, default: "" }, // 功能:业务对象名(用于默认缩略图 icon) by xu 20260109
-      cardClickAction: { type: String, default: "view" }, // 功能:卡片主体点击动作(view=查看;single=单选互斥) by xu 20260109
-      item: {
-        type: Object,
-        required: true,
-      },
-    },
-    emits: ["click", "change", "toggle-select"],
-    setup(props, { emit }) {
-      const item = props.item;
-      // 移除 itemWidth 计算属性,不再需要 by xu 20260105
-      // 判断卡片类型 by xu 20260105
-      const cardType = Vue.computed(() => {
-        // 支持“无图但保留缩略图占位”(同一业务列表图片形态一致) by xu 20260109
-        if (!item.thumb && !item.thumbType) return ""; // 业务列表“无图”形态
-        // 根据 thumbType 字段判断,如果没有则默认为证件照
-        return item.thumbType === "thumbnail" ? "card-thumbnail" : "card-photo";
-      });
-      // 判断状态类型 - 场地预定状态 by xu 20260105
-      const statusClass = Vue.computed(() => {
-        if (!item.status) return ""; // 无状态,默认白色
-        // 映射状态值到 CSS 类名
-        const statusMap = {
-          available: "status-available",
-          unavailable: "status-unavailable",
-          disabled: "status-disabled",
-        };
-        return statusMap[item.status] || "";
-      });
-      const onItemClick = (e) => {
-        // 清除所有类型卡片的 active 状态(卡片主体点击仅做 active 高亮) by xu 20260109
-        const allListCards = document.querySelectorAll(
-          ".knowledge-item-container"
-        );
-        const allFolderCards = document.querySelectorAll(".ss-folder-list");
-
-        allListCards.forEach((card) => card.classList.remove("active"));
-        allFolderCards.forEach((card) => card.classList.remove("active"));
-
-        // 设置当前项的 active 状态
-        e.currentTarget.classList.add("active");
-        // 卡片主体点击动作由页面级配置控制 by xu 20260109
-        if (props.cardClickAction === "view") {
-          props.item.onclick?.();
-          // 通知父级:卡片点击(查看) by xu 20260109
-          emit("click", props.item);
-        }
-      };
-      const onItemChange = (e, icon, index) => {
-        e.stopPropagation(); // 阻止事件冒泡到卡片
-        props.item.buttons[0].onclick();
-        // emit("change", { item: props.item, icon, index });
-      };
-      return {
-        item,
-        cardType,
-        statusClass,
-        onItemClick,
-        onItemChange,
-      };
-    },
-
-    data() {
-      return {
-        showButtons: false,
-        selected: false, // 选择状态 by xu 20260105
-        showTextPopover: false, // 功能:右侧文字区 hover 展示全量 by xu 20260108
-        textPopoverType: "", // second-summary / second-tags / third / third-full by xu 20260108
-        textPopoverBottom: 0, // 功能:popover 从当前省略行位置向上展开 by xu 20260108
-        hideTextPopoverTimer: null, // 功能:鼠标从省略行移到浮层的缓冲 by xu 20260108
-        textPopoverPayload: null, // { kind, text?, lines? } by xu 20260108
-        ellipsisVisible: {
-          // 功能:只在真实出现 ... 时才显示命中区/允许 goheight by xu 20260109
-          secondSummary: false,
-          secondTags: false,
-          third: false,
-          thirdFull: false,
-        },
-      };
-    },
-
-    methods: {
-      __allowSelect() {
-        // 功能说明:无 rbarObj 时禁用选中能力(隐藏右下角勾选并禁止 toggle) by xu 20260122
-        try {
-          if (this?.$root && this.$root.hasObjPanel === false) return false;
-          if (
-            typeof window !== "undefined" &&
-            window.__objListVm &&
-            window.__objListVm.hasObjPanel === false
-          )
-            return false;
-        } catch (_) {}
-        return true;
-      },
-      // 切换选择状态(对外 emit,支持方案A父级 state 中转) by xu 20260106
-      toggleSelect(e) {
-        e.stopPropagation();
-        if (!this.__allowSelect()) return; // 功能说明:无 rbarObj 时禁止选中 by xu 20260122
-        // 使用 item 上的状态,便于父级/右侧边栏反向同步 by xu 20260106
-        this.item._ssSelected = !this.item?._ssSelected;
-        this.$emit("toggle-select", {
-          item: this.item,
-          selected: !!this.item?._ssSelected,
-        });
-      },
-      // 卡片主体点击=单选互斥:只有“本次切到选中”才清理其他选中 by xu 20260109
-      toggleSelectExclusive(e) {
-        e?.stopPropagation?.();
-        if (!this.__allowSelect()) return; // 功能说明:无 rbarObj 时禁止选中 by xu 20260122
-        this.item._ssSelected = !this.item?._ssSelected;
-        const selected = !!this.item?._ssSelected;
-        this.$emit("toggle-select", {
-          item: this.item,
-          selected,
-          exclusive: true,
-        });
-      },
-      // 功能:无缩略图时,用业务对象 icon 做默认图(ss-icon + icon-obj-xx) by xu 20260109
-      getBizThumbIconClass() {
-        const name = String(
-          this.ssObjName ||
-            this.item?.ssObjName ||
-            this.$root?.ssObjName ||
-            window?.ss?.dom?.ssObjName ||
-            ""
-        ).trim();
-        if (!name) return "";
-        return `icon-obj-${name}`;
-      },
-      // 功能:构造右侧文字区 4 行(摘要/类目或标签/对象号) by xu 20260108
-      buildRightTextLines() {
-        const item = this.item || {};
-        const summary = String(item?.desc ?? "").trim(); // 后端字段后续映射 by xu 20260108
-        const objNum = String(item?.objNum ?? "").trim(); // 后端字段后续映射 by xu 20260108
-        const categoryArr = Array.isArray(item?.category) ? item.category : [];
-        const tagsArr = Array.isArray(item?.tags) ? item.tags : [];
-        const hasTags = tagsArr.length > 0;
-        const hasCategory = categoryArr.length > 0;
-
-        // 第二部分(L1-L3):摘要优先,其次物品参数 by xu 20260108
-        const secondKind = summary ? "summary" : hasTags ? "tags" : "";
-        const hasSecond = !!secondKind;
-
-        // 第三部分(L4):对象号优先,其次类目 by xu 20260108
-        const thirdKind = objNum ? "objNum" : hasCategory ? "category" : "";
-        const hasThird = !!thirdKind;
-        const thirdFull = !hasSecond && hasThird; // 第二部分为空则第三部分占满 4 行 by xu 20260108
-        const secondFull = hasSecond && !hasThird && secondKind === "tags"; // 仅标签时占满 4 行(不留空行) by xu 20260109
-
-        const toValueText = (obj) => {
-          // 功能说明:类目/物品参数回显展示 key: value(否则只显示值看不懂) by xu 20260114
-          const [k, v] = Object.entries(obj || {})[0] || ["", ""];
-          const key = k !== undefined && k !== null ? String(k).trim() : "";
-          const val = v !== undefined && v !== null ? String(v).trim() : "";
-          if (key && val) return `${key}:${val}`;
-          if (val) return val;
-          if (key) return key;
-          return "";
-        };
-
-        const toLineList = (arr) =>
-          (arr || [])
-            .map(toValueText)
-            .map((s) => String(s ?? "").trim())
-            .filter(Boolean);
-
-        const flat = (arr) => toLineList(arr).join(" ");
-
-        // 第二部分 tags:默认 3 行;仅标签时占满 4 行(避免底部空一行) by xu 20260109
-        const secondTagsMaxLines = secondFull ? 4 : 3;
-        const secondTagsLinesFull = toLineList(tagsArr);
-        const secondTagsHead = secondTagsLinesFull.slice(
-          0,
-          Math.max(0, secondTagsMaxLines - 1)
-        );
-        const secondTagsTail = secondTagsLinesFull.slice(
-          Math.max(0, secondTagsMaxLines - 1)
-        );
-        const secondTagsLast =
-          secondTagsTail.length <= 1
-            ? secondTagsTail[0] || ""
-            : secondTagsTail.join(" "); // 功能:最后一行平铺剩余 by xu 20260108
-
-        // 第三部分类目:卡片上串成一行;goheight 展开时一条一行 by xu 20260109
-        const categoryLinesFull = toLineList(categoryArr);
-        const categoryLine = categoryLinesFull.join(" ");
-
-        const thirdText =
-          thirdKind === "objNum"
-            ? objNum
-            : thirdKind === "category"
-            ? categoryLine
-            : "";
-
-        return {
-          secondKind,
-          thirdKind,
-          hasSecond,
-          hasThird,
-          thirdFull,
-          secondFull,
-          summary,
-          secondTagsMaxLines,
-          secondTagsHead,
-          secondTagsLast,
-          secondTagsLinesFull,
-          objNum,
-          categoryLine,
-          categoryLinesFull,
-          thirdText,
-        };
-      },
-      measureTextOverflowByLines(text, maxLines, width) {
-        const w = Number(width) || 0;
-        if (!w || !text) return false;
-        const probe = document.createElement("div");
-        probe.style.position = "fixed";
-        probe.style.left = "-99999px";
-        probe.style.top = "0";
-        probe.style.width = w + "px";
-        probe.style.fontSize = "18px";
-        probe.style.lineHeight = "24px";
-        probe.style.whiteSpace = "normal";
-        probe.style.wordBreak = "break-word";
-        probe.style.visibility = "hidden";
-        probe.textContent = text;
-        document.body.appendChild(probe);
-        const h = probe.getBoundingClientRect().height || 0;
-        document.body.removeChild(probe);
-        return h > maxLines * 24 + 1;
-      },
-      measureSingleLineOverflow(text, width) {
-        const w = Number(width) || 0;
-        if (!w || !text) return false;
-        const probe = document.createElement("span");
-        probe.style.position = "fixed";
-        probe.style.left = "-99999px";
-        probe.style.top = "0";
-        probe.style.display = "inline-block";
-        probe.style.maxWidth = w + "px";
-        probe.style.fontSize = "18px";
-        probe.style.lineHeight = "24px";
-        probe.style.whiteSpace = "nowrap";
-        probe.style.visibility = "hidden";
-        probe.textContent = text;
-        document.body.appendChild(probe);
-        const overflow =
-          (probe.scrollWidth || 0) > (probe.clientWidth || w) + 1;
-        document.body.removeChild(probe);
-        return overflow;
-      },
-      // 功能:根据当前卡片宽度刷新「是否出现 ...」状态(用于控制命中区显示) by xu 20260109
-      refreshEllipsisVisible() {
-        try {
-          const right = this.$el?.querySelector?.(".right");
-          const rawWidth =
-            right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
-          const width = Math.max(0, Math.round(rawWidth)); // 修复:内容区不再使用 padding-right 预留,测量按真实宽度 by xu 20260109
-          const model = this.buildRightTextLines();
-
-          const next = {
-            secondSummary: false,
-            secondTags: false,
-            third: false,
-            thirdFull: false,
-          };
-
-          if (model.secondKind === "summary" && model.summary) {
-            next.secondSummary = this.measureTextOverflowByLines(
-              model.summary,
-              3,
-              width
-            );
-          }
-          if (model.secondKind === "tags") {
-            // 功能说明:tags 采用「最后一行平铺剩余」策略,是否出现 ... 仅取决于最后一行是否溢出(数量多但平铺放得下不算溢出) by xu 20260114
-            next.secondTags = this.measureSingleLineOverflow(
-              model.secondTagsLast,
-              width
-            );
-          }
-          if (model.hasThird && !model.thirdFull) {
-            next.third = this.measureSingleLineOverflow(model.thirdText, width);
-          }
-          if (model.hasThird && model.thirdFull) {
-            next.thirdFull = this.measureTextOverflowByLines(
-              model.thirdText,
-              4,
-              width
-            );
-          }
-
-          const prev = this.ellipsisVisible || {};
-          const changed =
-            prev.secondSummary !== next.secondSummary ||
-            prev.secondTags !== next.secondTags ||
-            prev.third !== next.third ||
-            prev.thirdFull !== next.thirdFull;
-          if (changed) this.ellipsisVisible = next;
-        } catch (e) {
-          // ignore by xu 20260109
-        }
-      },
-      showTextPopoverFor(el, kind) {
-        // 调试开关:window.__SS_LISTCARD_DEBUG__ = true 时打印 hover/溢出判断日志 by xu 20260108
-        const debug =
-          typeof window !== "undefined" && !!window.__SS_LISTCARD_DEBUG__;
-        if (debug) {
-          console.log("[SsListCard] ellipsis hover", {
-            kind,
-            el: el?.className,
-          });
-        }
-        const model = this.buildRightTextLines();
-        const lineEl = el?.closest?.(".ss-card-text__line") || el;
-        const right = lineEl?.closest?.(".right") || el?.closest?.(".right");
-        const rawWidth =
-          right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
-        const width = Math.max(0, Math.round(rawWidth)); // 修复:内容区不再预留 padding-right,测量按真实宽度 by xu 20260109
-
-        const textEl =
-          kind === "second-summary"
-            ? lineEl?.querySelector?.(".ss-card-text__secondSummary")
-            : kind === "second-tags"
-            ? lineEl?.querySelector?.(".ss-card-text__tagLineLast")
-            : kind === "third"
-            ? lineEl?.querySelector?.(".ss-card-text__thirdLine")
-            : lineEl?.querySelector?.(".ss-card-text__thirdFull");
-
-        let payload = null;
-        // 仅当真实会出现 ... 时才允许 goheight(避免“没超出也能出 goheight”) by xu 20260109
-        const overflowed =
-          kind === "second-summary"
-            ? this.measureTextOverflowByLines(model.summary, 3, width)
-            : kind === "second-tags"
-            ? this.measureSingleLineOverflow(model.secondTagsLast, width) // 功能说明:同 refreshEllipsisVisible,tags 仅看最后一行是否溢出 by xu 20260114
-            : kind === "third"
-            ? this.measureSingleLineOverflow(model.thirdText, width)
-            : this.measureTextOverflowByLines(model.thirdText, 4, width);
-        if (!overflowed) return;
-
-        if (kind === "second-summary") {
-          if (model.summary) payload = { kind, text: model.summary };
-        } else if (kind === "second-tags") {
-          if (
-            Array.isArray(model.secondTagsLinesFull) &&
-            model.secondTagsLinesFull.length
-          ) {
-            payload = { kind, lines: model.secondTagsLinesFull };
-          }
-        } else if (kind === "third") {
-          if (
-            model.thirdKind === "category" &&
-            Array.isArray(model.categoryLinesFull) &&
-            model.categoryLinesFull.length
-          ) {
-            payload = { kind, lines: model.categoryLinesFull }; // 功能:类目展开一条一行 by xu 20260109
-          } else if (model.thirdText) {
-            payload = { kind, text: model.thirdText };
-          }
-        } else if (kind === "third-full") {
-          if (
-            model.thirdKind === "category" &&
-            Array.isArray(model.categoryLinesFull) &&
-            model.categoryLinesFull.length
-          ) {
-            payload = { kind, lines: model.categoryLinesFull }; // 功能:类目占满模式展开一条一行 by xu 20260109
-          } else if (model.thirdText) {
-            payload = { kind, text: model.thirdText };
-          }
-        }
-        if (debug) {
-          console.log("[SsListCard] ellipsis decide", {
-            kind,
-            rawWidth: Math.round(rawWidth),
-            width,
-            hasPayload: !!payload,
-            textEl: textEl?.className,
-            textClient: textEl
-              ? {
-                  cw: textEl.clientWidth,
-                  ch: textEl.clientHeight,
-                  sw: textEl.scrollWidth,
-                  sh: textEl.scrollHeight,
-                }
-              : null,
-          });
-        }
-        if (!payload) return;
-
-        this.clearHideTextPopoverTimer();
-        const container = lineEl?.closest?.(".right");
-        const containerRect = container?.getBoundingClientRect?.();
-        const lineRect = lineEl?.getBoundingClientRect?.();
-        if (containerRect && lineRect) {
-          const bottom = Math.max(
-            0,
-            Math.round(containerRect.bottom - lineRect.bottom)
-          );
-          this.textPopoverBottom = bottom;
-        } else {
-          this.textPopoverBottom = 0;
-        }
-        this.textPopoverPayload = payload;
-        this.textPopoverType = kind;
-        this.showTextPopover = true;
-        if (debug) console.log("[SsListCard] goheight show", payload);
-      },
-      isOverflowing(el) {
-        if (!el) return false;
-        // 单行/多行省略统一判断:scroll 尺寸大于 client 尺寸即认为有 ... by xu 20260108
-        return (
-          (el.scrollWidth &&
-            el.clientWidth &&
-            el.scrollWidth > el.clientWidth + 1) ||
-          (el.scrollHeight &&
-            el.clientHeight &&
-            el.scrollHeight > el.clientHeight + 1)
-        );
-      },
-      isSummaryOverflowing(el) {
-        if (!el) return false;
-        // -webkit-line-clamp 场景下 scrollHeight 不稳定,改用“无 clamp 的离屏测量”判断是否超过 2 行 by xu 20260108
-        const text = String(this.item?.desc ?? "").trim();
-        if (!text) return false;
-        const rect = el.getBoundingClientRect?.();
-        const width = rect?.width || el.clientWidth || 0;
-        if (!width) return false;
-        const probe = document.createElement("div");
-        probe.style.position = "fixed";
-        probe.style.left = "-99999px";
-        probe.style.top = "0";
-        probe.style.width = width + "px";
-        probe.style.fontSize = "18px";
-        probe.style.lineHeight = "24px";
-        probe.style.whiteSpace = "normal";
-        probe.style.wordBreak = "break-word";
-        probe.style.visibility = "hidden";
-        probe.textContent = text;
-        document.body.appendChild(probe);
-        const h = probe.getBoundingClientRect().height || 0;
-        document.body.removeChild(probe);
-        return h > 48 + 1;
-      },
-      clearHideTextPopoverTimer() {
-        if (this.hideTextPopoverTimer) {
-          clearTimeout(this.hideTextPopoverTimer);
-          this.hideTextPopoverTimer = null;
-        }
-      },
-      // 修复 goheight hover 无响应:移除重复方法覆盖,统一使用上面的 showTextPopoverFor(el, kind) by xu 20260109
-      hideTextPopoverLater() {
-        this.clearHideTextPopoverTimer();
-        this.hideTextPopoverTimer = setTimeout(() => {
-          this.showTextPopover = false;
-          this.textPopoverType = "";
-          this.textPopoverPayload = null;
-        }, 120);
-      },
-      hideTextPopover() {
-        this.clearHideTextPopoverTimer();
-        this.showTextPopover = false;
-        this.textPopoverType = "";
-        this.textPopoverPayload = null;
-      },
-      // 功能:新需求下不在 updated 内做测量,避免死循环 by xu 20260108
-    },
-
-    mounted() {
-      // 无需在 mounted/updated 里做 overflow 测量(避免死循环),只在 hover 触发时判断 by xu 20260108
-      // 仅用于控制“...命中区是否显示”,不会触发循环更新 by xu 20260109
-      this.$nextTick?.(() => {
-        requestAnimationFrame(() => this.refreshEllipsisVisible?.());
-      });
-      this.__ssListCardResizeHandler = () => this.refreshEllipsisVisible?.(); // 功能:窗口变化时刷新 ... 显示 by xu 20260109
-      window.addEventListener?.("resize", this.__ssListCardResizeHandler);
-    },
-    updated() {
-      // 卡片数据更新后刷新一次 ... 显示状态(避免“宽度/内容变了但命中区不变”) by xu 20260109
-      this.$nextTick?.(() => {
-        requestAnimationFrame(() => this.refreshEllipsisVisible?.());
-      });
-    },
-    beforeUnmount() {
-      // 清理 timer,避免残留导致异常 by xu 20260108
-      this.clearHideTextPopoverTimer?.();
-      if (this.__ssListCardResizeHandler) {
-        window.removeEventListener?.("resize", this.__ssListCardResizeHandler);
-        this.__ssListCardResizeHandler = null;
-      }
-    },
-
-    render() {
-      const SsCartListIcon = Vue.resolveComponent("ss-cart-list-icon");
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      const hasThumbArea = !!(this.item?.thumb || this.item?.thumbType); // 功能:无图但有 thumbType 时仍保留占位 by xu 20260109
-      const thumbSrc = (() => {
-        // 功能说明:兼容 thumb 为 raw path 或 {val}/{value},组件内统一转为 dlByHttp URL by xu 20260122
-        const t = this.item?.thumb;
-        if (!t) return "";
-        if (typeof t === "string") {
-          const s = t.trim();
-          if (!s) return "";
-          // 已经是 URL/绝对路径则直接使用;否则按 path 构建 dlByHttp by xu 20260122
-          if (
-            /^https?:\/\//i.test(s) ||
-            s.startsWith("/service?") ||
-            s.startsWith("/")
-          )
-            return s;
-          return buildThumbUrl(s);
-        }
-        return buildThumbUrl(t);
-      })();
-      return Vue.h(
-        "div",
-        {
-          class: {
-            "knowledge-item-container": true,
-            active: this.item.active,
-            [this.cardType]: !!this.cardType, // 动态添加卡片类型类名 by xu 20260105
-            [this.statusClass]: !!this.statusClass,
-          },
-          onClick: (e) => {
-            this.onItemClick?.(e);
-            if (this.__allowSelect() && this.cardClickAction === "single") {
-              // 功能说明:无 rbarObj 时不允许单选互斥 by xu 20260122
-              this.toggleSelectExclusive?.(e);
-            }
-          }, // 功能:卡片主体点击动作(view/single) by xu 20260109
-          // 移除固定宽度,由 CSS min-width 控制 by xu 20260105
-        },
-        [
-          // 右上角状态图标区域 by xu 20260105
-          this.item?.statusIcons?.length > 0 &&
-            Vue.h(
-              "div",
-              { class: "card-status-icons" },
-              this.item.statusIcons.map((icon) =>
-                Vue.h(SsIcon, {
-                  class: `status-icon ${icon.class}`,
-                  title: icon.title,
-                })
-              )
-            ),
-
-          this.item?.buttons?.length > 0 &&
-            Vue.h(
-              "div",
-              {
-                class: "header",
-                style:
-                  this.item?.statusIcons?.length > 0
-                    ? {
-                        right: `${this.item.statusIcons.length * 48}px`,
-                        borderTopRightRadius: "0",
-                      }
-                    : {},
-                onMouseenter: () => (this.showButtons = true),
-                onMouseleave: () => (this.showButtons = false),
-                onClick: (e) => this.onItemChange(e, this.item.buttons[0], 0),
-              },
-              [
-                // 只在有按钮时渲染设置图标
-                // this.item?.buttons?.length > 0 &&
-                Vue.h("div", {
-                  class: "cart-list-setting cart-list-icon",
-                  title: this.item?.buttons?.[0]?.title,
-                }),
-
-                // 鼠标移入时显示按钮列表,与图标同级
-                // this.item?.buttons?.length > 0 &&
-                this.showButtons &&
-                  this.item?.buttons?.length > 1 &&
-                  Vue.h(
-                    "div",
-                    {
-                      class: "cart-list-button-popup",
-                    },
-                    this.item.buttons.map((btn) =>
-                      Vue.h(
-                        "div",
-                        {
-                          onClick: (e) => {
-                            e.stopPropagation();
-                            btn.onclick?.();
-                          },
-                        },
-                        [
-                          // 如果有 class,显示对应的图标
-                          btn.class &&
-                            Vue.h(SsCartListIcon, {
-                              class: [btn.class],
-                            }),
-                          // 显示按钮文本
-                          Vue.h("span", null, btn.title),
-                        ]
-                      )
-                    )
-                  ),
-              ]
-            ),
-
-          Vue.h("div", { class: "body" }, [
-            Vue.h("div", { class: "box-header" }, [
-              Vue.h("div", `${this.item.title}`),
-            ]),
-            Vue.h(
-              "div",
-              {
-                class: !hasThumbArea ? "no-thumb box-body" : "box-body",
-              },
-              [
-                hasThumbArea
-                  ? thumbSrc
-                    ? Vue.h("div", { class: "left" }, [
-                        Vue.h("img", {
-                          src: thumbSrc,
-                          alt: "Thumbnail",
-                          class: "imgUnHandle",
-                          style: {
-                            "object-fit": "cover",
-                            width: "100%",
-                            height: "100%",
-                          },
-                        }),
-                      ])
-                    : Vue.h(
-                        // 功能:无图占位(ss-icon + biz icon,居中) by xu 20260109
-                        "div",
-                        { class: "left ss-objlist-thumbPlaceholder" },
-                        [
-                          Vue.h(SsIcon, {
-                            class: `${this.getBizThumbIconClass()} ss-objlist-thumbIcon`,
-                          }),
-                        ]
-                      )
-                  : null,
-                Vue.h(
-                  "div",
-                  {
-                    class: "right",
-                  },
-                  (() => {
-                    const model = this.buildRightTextLines(); // 功能:右侧文字区新规则(第二部分/第三部分优先级) by xu 20260108
-                    const hasAny = !!(model?.hasSecond || model?.hasThird);
-
-                    if (!hasAny) return [];
-
-                    const children = [];
-
-                    // 第二部分:L1-L3(摘要优先,其次 tags;不足留空;超出 L3 ...) by xu 20260108
-                    if (model.hasSecond) {
-                      if (model.secondKind === "summary") {
-                        children.push(
-                          Vue.h(
-                            "div",
-                            {
-                              class:
-                                "ss-card-text__line ss-card-text__secondBlock",
-                            },
-                            [
-                              Vue.h(
-                                "div",
-                                {
-                                  class: "ss-card-text__secondSummary",
-                                  title: model.summary,
-                                },
-                                model.summary
-                              ),
-                              Vue.h("span", {
-                                class: [
-                                  "ss-card-text__ellipsisHit",
-                                  "ss-card-text__ellipsisHit--second",
-                                  this.ellipsisVisible?.secondSummary
-                                    ? "is-on"
-                                    : "",
-                                ],
-                                title: "查看完整摘要",
-                                onMouseenter: (e) =>
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "second-summary"
-                                  ),
-                                onClick: (e) => {
-                                  e?.stopPropagation?.();
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "second-summary"
-                                  );
-                                }, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
-                                onMouseleave: () => this.hideTextPopoverLater(),
-                              }),
-                            ]
-                          )
-                        );
-                      } else if (model.secondKind === "tags") {
-                        children.push(
-                          Vue.h(
-                            "div",
-                            {
-                              class: [
-                                "ss-card-text__line",
-                                model.secondFull
-                                  ? "ss-card-text__secondFullBlock"
-                                  : "ss-card-text__secondBlock",
-                              ],
-                            },
-                            [
-                              // 功能:仅标签时占满 4 行 by xu 20260109
-                              Vue.h(
-                                "div",
-                                { class: "ss-card-text__secondTags" },
-                                [
-                                  ...model.secondTagsHead.map((t) =>
-                                    Vue.h(
-                                      "div",
-                                      {
-                                        class: "ss-card-text__tagLine",
-                                        title: t,
-                                      },
-                                      t
-                                    )
-                                  ),
-                                  // 第三行:平铺剩余(可能为空) by xu 20260108
-                                  Vue.h(
-                                    "div",
-                                    {
-                                      class:
-                                        "ss-card-text__tagLine is-last ss-card-text__tagLineLast",
-                                      title: model.secondTagsLast,
-                                    },
-                                    model.secondTagsLast
-                                  ),
-                                ].filter(Boolean)
-                              ),
-                              // 只在最后一行出现 ... 时才触发 goheight by xu 20260108
-                              Vue.h("span", {
-                                class: [
-                                  "ss-card-text__ellipsisHit",
-                                  "ss-card-text__ellipsisHit--second",
-                                  this.ellipsisVisible?.secondTags
-                                    ? "is-on"
-                                    : "",
-                                ],
-                                title: "查看完整物品参数",
-                                onMouseenter: (e) =>
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "second-tags"
-                                  ),
-                                onClick: (e) => {
-                                  e?.stopPropagation?.();
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "second-tags"
-                                  );
-                                }, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
-                                onMouseleave: () => this.hideTextPopoverLater(),
-                              }),
-                            ]
-                          )
-                        );
-                      }
-                    }
-
-                    // 第三部分:默认 L4;第二部分为空则占满 L1-L4 by xu 20260108
-                    if (model.hasThird) {
-                      if (model.thirdFull) {
-                        children.push(
-                          Vue.h(
-                            "div",
-                            {
-                              class:
-                                "ss-card-text__line ss-card-text__thirdFullBlock",
-                            },
-                            [
-                              Vue.h(
-                                "div",
-                                {
-                                  class: "ss-card-text__thirdFull",
-                                  title: model.thirdText,
-                                },
-                                model.thirdText
-                              ),
-                              Vue.h("span", {
-                                class: [
-                                  "ss-card-text__ellipsisHit",
-                                  "ss-card-text__ellipsisHit--third",
-                                  this.ellipsisVisible?.thirdFull
-                                    ? "is-on"
-                                    : "",
-                                ],
-                                title: "查看完整信息",
-                                onMouseenter: (e) =>
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third-full"
-                                  ),
-                                onClick: (e) => {
-                                  e?.stopPropagation?.();
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third-full"
-                                  );
-                                }, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
-                                onMouseleave: () => this.hideTextPopoverLater(),
-                              }),
-                            ]
-                          )
-                        );
-                      } else {
-                        children.push(
-                          Vue.h(
-                            "div",
-                            {
-                              class:
-                                "ss-card-text__line ss-card-text__thirdLineWrap",
-                            },
-                            [
-                              Vue.h(
-                                "div",
-                                {
-                                  class: "ss-card-text__thirdLine",
-                                  title: model.thirdText,
-                                },
-                                model.thirdText
-                              ),
-                              Vue.h("span", {
-                                class: [
-                                  "ss-card-text__ellipsisHit",
-                                  "ss-card-text__ellipsisHit--third",
-                                  this.ellipsisVisible?.third ? "is-on" : "",
-                                ],
-                                title: "查看完整信息",
-                                onMouseenter: (e) =>
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third"
-                                  ),
-                                onClick: (e) => {
-                                  e?.stopPropagation?.();
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third"
-                                  );
-                                }, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
-                                onMouseleave: () => this.hideTextPopoverLater(),
-                              }),
-                            ]
-                          )
-                        );
-                      }
-                    }
-
-                    // hover 展开浮层:宽度=右侧文字区,底对齐向上展开,带阴影 by xu 20260108
-                    // popover 作为 `.right` 的 sibling 渲染,避免被 `.ss-card-text{overflow:hidden}` 裁剪 by xu 20260108
-                    const popover =
-                      this.showTextPopover &&
-                      Vue.h(
-                        "div",
-                        {
-                          class: "ss-card-text-popover",
-                          style: { bottom: this.textPopoverBottom + "px" },
-                          onMouseenter: () => {
-                            this.clearHideTextPopoverTimer();
-                            this.showTextPopover = true;
-                          },
-                          onMouseleave: () => this.hideTextPopoverLater(),
-                        },
-                        (() => {
-                          const p = this.textPopoverPayload || {};
-                          if (p.kind === "second-summary" && p.text) {
-                            return [
-                              Vue.h(
-                                "div",
-                                { class: "ss-card-text-popover__summary" },
-                                p.text
-                              ),
-                            ];
-                          }
-                          if (Array.isArray(p.lines)) {
-                            return [
-                              Vue.h(
-                                "div",
-                                { class: "ss-card-text-popover__kvlist" },
-                                p.lines.map((t) =>
-                                  Vue.h(
-                                    "div",
-                                    { class: "ss-card-text-popover__kv" },
-                                    t
-                                  )
-                                )
-                              ),
-                            ];
-                          }
-                          if (
-                            (p.kind === "third" || p.kind === "third-full") &&
-                            p.text
-                          ) {
-                            return [
-                              Vue.h(
-                                "div",
-                                { class: "ss-card-text-popover__objno" },
-                                p.text
-                              ),
-                            ];
-                          }
-                          return [];
-                        })()
-                      );
-
-                    return [
-                      Vue.h("div", { class: "ss-card-text" }, children),
-                      popover,
-                    ];
-                  })()
-                ),
-              ]
-            ),
-          ]),
-
-          // 右下角卡片选择图标 by xu 20260105
-          this.__allowSelect()
-            ? Vue.h(SsIcon, {
-                class: this.item?._ssSelected
-                  ? "card-icon icon-cardChk-on"
-                  : "card-icon icon-cardChk",
-                onClick: this.toggleSelect,
-              })
-            : null,
-
-          // 选中后底部线条 by xu 20260105
-          this.__allowSelect() &&
-            this.item?._ssSelected &&
-            Vue.h("div", { class: "select-bottom-line" }),
-        ]
-      );
-    },
-  };
-
-  // 二级对象卡片:复用一级对象新卡片布局/省略浮层,但去掉勾选与 single 选中,仅支持点击查看 by xu 20260115
-  const SsCObjCardList = {
-    name: "SsCObjCardList",
-    props: {
-      ssObjName: { type: String, default: "" }, // 功能说明:业务对象名(用于默认缩略图 icon) by xu 20260115
-      dataType: { type: String, default: "" }, // 功能说明:页面类型(play=查看模式不显示右上角按钮) by xu 20250408
-      item: {
-        type: Object,
-        required: true,
-      },
-    },
-    emits: ["click", "change"],
-    setup(props, { emit }) {
-      const item = props.item;
-      const dataType = props.dataType; // 功能说明:页面类型 by xu 20250408
-      const cardType = Vue.computed(() => {
-        if (!item.thumb && !item.thumbType) return "";
-        return item.thumbType === "thumbnail" ? "card-thumbnail" : "card-photo";
-      });
-      const statusClass = Vue.computed(() => {
-        if (!item.status) return "";
-        const statusMap = {
-          available: "status-available",
-          unavailable: "status-unavailable",
-          disabled: "status-disabled",
-        };
-        return statusMap[item.status] || "";
-      });
-      const onItemClick = (e) => {
-        // 清除所有类型卡片的 active 状态(保持与一级对象一致) by xu 20260115
-        const allListCards = document.querySelectorAll(
-          ".knowledge-item-container"
-        );
-        const allFolderCards = document.querySelectorAll(".ss-folder-list");
-        allListCards.forEach((card) => card.classList.remove("active"));
-        allFolderCards.forEach((card) => card.classList.remove("active"));
-        e.currentTarget.classList.add("active");
-        // 二级对象卡片:点击仅查看(调用 item.onclick) by xu 20260115
-        props.item.onclick?.();
-        emit("click", props.item);
-      };
-      const onItemChange = (e) => {
-        e.stopPropagation();
-        props.item.buttons?.[0]?.onclick?.();
-      };
-      return { item, dataType, cardType, statusClass, onItemClick, onItemChange };
-    },
-    data() {
-      return {
-        showButtons: false,
-        showTextPopover: false, // 功能:右侧文字区 hover 展示全量 by xu 20260115
-        textPopoverType: "", // second-summary / second-tags / third / third-full by xu 20260115
-        textPopoverBottom: 0, // 功能:popover 从当前省略行位置向上展开 by xu 20260115
-        hideTextPopoverTimer: null, // 功能:鼠标从省略行移到浮层的缓冲 by xu 20260115
-        textPopoverPayload: null, // { kind, text?, lines? } by xu 20260115
-        ellipsisVisible: {
-          secondSummary: false,
-          secondTags: false,
-          third: false,
-          thirdFull: false,
-        }, // 功能:只在真实出现 ... 时才显示命中区/允许 goheight by xu 20260115
-      };
-    },
-    methods: {
-      getBizThumbIconClass() {
-        // 功能:无缩略图时,用业务对象 icon 做默认图(ss-icon + icon-obj-xx) by xu 20260115
-        const name = String(
-          this.ssObjName ||
-            this.item?.ssObjName ||
-            this.$root?.ssObjName ||
-            window?.ss?.dom?.ssObjName ||
-            ""
-        ).trim();
-        if (!name) return "";
-        return "icon-obj-" + name;
-      },
-      buildRightTextLines() {
-        // 功能:沿用一级对象卡片右侧文字区规则 by xu 20260115
-        const item = this.item || {};
-        const summary = String(item?.desc ?? "").trim();
-        const objNum = String(item?.objNum ?? "").trim();
-        const categoryArr = Array.isArray(item?.category) ? item.category : [];
-        const tagsArr = Array.isArray(item?.tags) ? item.tags : [];
-        const hasTags = tagsArr.length > 0;
-        const hasCategory = categoryArr.length > 0;
-        const secondKind = summary ? "summary" : hasTags ? "tags" : "";
-        const hasSecond = !!secondKind;
-        const thirdKind = objNum ? "objNum" : hasCategory ? "category" : "";
-        const hasThird = !!thirdKind;
-        const thirdFull = !hasSecond && hasThird;
-        const secondFull = hasSecond && !hasThird && secondKind === "tags";
-        const toValueText = (obj) => {
-          // 功能说明:类目/物品参数回显展示 key: value(否则只显示值看不懂) by xu 20260115
-          const [k, v] = Object.entries(obj || {})[0] || ["", ""];
-          const key = k !== undefined && k !== null ? String(k).trim() : "";
-          const val = v !== undefined && v !== null ? String(v).trim() : "";
-          if (key && val) return key + ":" + val;
-          if (val) return val;
-          if (key) return key;
-          return "";
-        };
-        const toLineList = (arr) =>
-          (arr || [])
-            .map(toValueText)
-            .map((s) => String(s ?? "").trim())
-            .filter(Boolean);
-        const secondTagsMaxLines = secondFull ? 4 : 3;
-        const secondTagsLinesFull = toLineList(tagsArr);
-        const secondTagsHead = secondTagsLinesFull.slice(
-          0,
-          Math.max(0, secondTagsMaxLines - 1)
-        );
-        const secondTagsTail = secondTagsLinesFull.slice(
-          Math.max(0, secondTagsMaxLines - 1)
-        );
-        const secondTagsLast =
-          secondTagsTail.length <= 1
-            ? secondTagsTail[0] || ""
-            : secondTagsTail.join(" ");
-        const categoryLinesFull = toLineList(categoryArr);
-        const categoryLine = categoryLinesFull.join(" ");
-        const thirdText =
-          thirdKind === "objNum"
-            ? objNum
-            : thirdKind === "category"
-            ? categoryLine
-            : "";
-        return {
-          secondKind,
-          thirdKind,
-          hasSecond,
-          hasThird,
-          thirdFull,
-          secondFull,
-          summary,
-          secondTagsMaxLines,
-          secondTagsHead,
-          secondTagsLast,
-          secondTagsLinesFull,
-          objNum,
-          categoryLine,
-          categoryLinesFull,
-          thirdText,
-        };
-      },
-      measureTextOverflowByLines(text, maxLines, width) {
-        const w = Number(width) || 0;
-        if (!w || !text) return false;
-        const probe = document.createElement("div");
-        probe.style.position = "fixed";
-        probe.style.left = "-99999px";
-        probe.style.top = "0";
-        probe.style.width = w + "px";
-        probe.style.fontSize = "18px";
-        probe.style.lineHeight = "24px";
-        probe.style.whiteSpace = "normal";
-        probe.style.wordBreak = "break-word";
-        probe.style.visibility = "hidden";
-        probe.textContent = text;
-        document.body.appendChild(probe);
-        const h = probe.getBoundingClientRect().height || 0;
-        document.body.removeChild(probe);
-        return h > maxLines * 24 + 1;
-      },
-      measureSingleLineOverflow(text, width) {
-        const w = Number(width) || 0;
-        if (!w || !text) return false;
-        const probe = document.createElement("span");
-        probe.style.position = "fixed";
-        probe.style.left = "-99999px";
-        probe.style.top = "0";
-        probe.style.display = "inline-block";
-        probe.style.maxWidth = w + "px";
-        probe.style.fontSize = "18px";
-        probe.style.lineHeight = "24px";
-        probe.style.whiteSpace = "nowrap";
-        probe.style.visibility = "hidden";
-        probe.textContent = text;
-        document.body.appendChild(probe);
-        const overflow =
-          (probe.scrollWidth || 0) > (probe.clientWidth || w) + 1;
-        document.body.removeChild(probe);
-        return overflow;
-      },
-      refreshEllipsisVisible() {
-        // 功能:刷新「是否出现 ...」状态(用于控制命中区显示) by xu 20260115
-        try {
-          const right = this.$el?.querySelector?.(".right");
-          const rawWidth =
-            right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
-          const width = Math.max(0, Math.round(rawWidth));
-          const model = this.buildRightTextLines();
-          const next = {
-            secondSummary: false,
-            secondTags: false,
-            third: false,
-            thirdFull: false,
-          };
-          if (model.secondKind === "summary" && model.summary) {
-            next.secondSummary = this.measureTextOverflowByLines(
-              model.summary,
-              3,
-              width
-            );
-          }
-          if (model.secondKind === "tags") {
-            next.secondTags = this.measureSingleLineOverflow(
-              model.secondTagsLast,
-              width
-            ); // 功能说明:tags 仅看最后一行是否溢出 by xu 20260115
-          }
-          if (model.hasThird && !model.thirdFull) {
-            next.third = this.measureSingleLineOverflow(model.thirdText, width);
-          }
-          if (model.hasThird && model.thirdFull) {
-            next.thirdFull = this.measureTextOverflowByLines(
-              model.thirdText,
-              4,
-              width
-            );
-          }
-          const prev = this.ellipsisVisible || {};
-          const changed =
-            prev.secondSummary !== next.secondSummary ||
-            prev.secondTags !== next.secondTags ||
-            prev.third !== next.third ||
-            prev.thirdFull !== next.thirdFull;
-          if (changed) this.ellipsisVisible = next;
-        } catch (e) {
-          // ignore by xu 20260115
-        }
-      },
-      clearHideTextPopoverTimer() {
-        if (this.hideTextPopoverTimer) {
-          clearTimeout(this.hideTextPopoverTimer);
-          this.hideTextPopoverTimer = null;
-        }
-      },
-      hideTextPopoverLater() {
-        this.clearHideTextPopoverTimer();
-        this.hideTextPopoverTimer = setTimeout(() => {
-          this.showTextPopover = false;
-          this.textPopoverType = "";
-          this.textPopoverPayload = null;
-        }, 120);
-      },
-      showTextPopoverFor(el, kind) {
-        const model = this.buildRightTextLines();
-        const lineEl = el?.closest?.(".ss-card-text__line") || el;
-        const right = lineEl?.closest?.(".right") || el?.closest?.(".right");
-        const rawWidth =
-          right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
-        const width = Math.max(0, Math.round(rawWidth));
-        const overflowed =
-          kind === "second-summary"
-            ? this.measureTextOverflowByLines(model.summary, 3, width)
-            : kind === "second-tags"
-            ? this.measureSingleLineOverflow(model.secondTagsLast, width)
-            : kind === "third"
-            ? this.measureSingleLineOverflow(model.thirdText, width)
-            : this.measureTextOverflowByLines(model.thirdText, 4, width);
-        if (!overflowed) return;
-        let payload = null;
-        if (kind === "second-summary") {
-          if (model.summary) payload = { kind, text: model.summary };
-        } else if (kind === "second-tags") {
-          if (
-            Array.isArray(model.secondTagsLinesFull) &&
-            model.secondTagsLinesFull.length
-          ) {
-            payload = { kind, lines: model.secondTagsLinesFull };
-          }
-        } else if (kind === "third") {
-          if (
-            model.thirdKind === "category" &&
-            Array.isArray(model.categoryLinesFull) &&
-            model.categoryLinesFull.length
-          ) {
-            payload = { kind, lines: model.categoryLinesFull };
-          } else if (model.thirdText) {
-            payload = { kind, text: model.thirdText };
-          }
-        } else if (kind === "third-full") {
-          if (
-            model.thirdKind === "category" &&
-            Array.isArray(model.categoryLinesFull) &&
-            model.categoryLinesFull.length
-          ) {
-            payload = { kind, lines: model.categoryLinesFull };
-          } else if (model.thirdText) {
-            payload = { kind, text: model.thirdText };
-          }
-        }
-        if (!payload) return;
-        this.clearHideTextPopoverTimer();
-        const container = lineEl?.closest?.(".right");
-        const containerRect = container?.getBoundingClientRect?.();
-        const lineRect = lineEl?.getBoundingClientRect?.();
-        if (containerRect && lineRect) {
-          const bottom = Math.max(
-            0,
-            Math.round(containerRect.bottom - lineRect.bottom)
-          );
-          this.textPopoverBottom = bottom;
-        } else {
-          this.textPopoverBottom = 0;
-        }
-        this.textPopoverPayload = payload;
-        this.textPopoverType = kind;
-        this.showTextPopover = true;
-      },
-    },
-    mounted() {
-      this.$nextTick?.(() => {
-        requestAnimationFrame(() => this.refreshEllipsisVisible?.());
-      });
-      this.__ssCObjCardResizeHandler = () => this.refreshEllipsisVisible?.(); // 功能说明:窗口变化时刷新 ... 显示 by xu 20260115
-      window.addEventListener?.("resize", this.__ssCObjCardResizeHandler);
-    },
-    updated() {
-      this.$nextTick?.(() => {
-        requestAnimationFrame(() => this.refreshEllipsisVisible?.());
-      });
-    },
-    beforeUnmount() {
-      this.clearHideTextPopoverTimer?.();
-      if (this.__ssCObjCardResizeHandler) {
-        window.removeEventListener?.("resize", this.__ssCObjCardResizeHandler);
-        this.__ssCObjCardResizeHandler = null;
-      }
-    },
-    render() {
-      const SsCartListIcon = Vue.resolveComponent("ss-cart-list-icon");
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      const hasThumbArea = !!(this.item?.thumb || this.item?.thumbType);
-      const thumbSrc = (() => {
-        // 功能说明:兼容 thumb 为 raw path 或 {val}/{value},组件内统一转为 dlByHttp URL by xu 20260122
-        const t = this.item?.thumb;
-        if (!t) return "";
-        if (typeof t === "string") {
-          const s = t.trim();
-          if (!s) return "";
-          if (
-            /^https?:\/\//i.test(s) ||
-            s.startsWith("/service?") ||
-            s.startsWith("/")
-          )
-            return s;
-          return buildThumbUrl(s);
-        }
-        return buildThumbUrl(t);
-      })();
-      return Vue.h(
-        "div",
-        {
-          class: {
-            "knowledge-item-container": true,
-            active: this.item.active,
-            [this.cardType]: !!this.cardType,
-            [this.statusClass]: !!this.statusClass,
-          },
-          onClick: (e) => this.onItemClick?.(e), // 功能说明:二级对象卡片点击仅查看 by xu 20260115
-        },
-        [
-          this.item?.statusIcons?.length > 0 &&
-            Vue.h(
-              "div",
-              { class: "card-status-icons" },
-              this.item.statusIcons.map((icon) =>
-                Vue.h(SsIcon, {
-                  class: "status-icon " + icon.class,
-                  title: icon.title,
-                })
-              )
-            ),
-          this.item?.buttons?.length > 0 && this.dataType !== "play" &&
-            Vue.h(
-              "div",
-              {
-                class: "header",
-                style:
-                  this.item?.statusIcons?.length > 0
-                    ? {
-                        right: String(this.item.statusIcons.length * 48) + "px",
-                        borderTopRightRadius: "0",
-                      }
-                    : {},
-                onMouseenter: () => (this.showButtons = true),
-                onMouseleave: () => (this.showButtons = false),
-                onClick: (e) => this.onItemChange(e),
-              },
-              [
-                Vue.h("div", {
-                  class: "cart-list-setting cart-list-icon",
-                  title: this.item?.buttons?.[0]?.title,
-                }),
-                this.showButtons &&
-                  this.item?.buttons?.length > 1 &&
-                  Vue.h(
-                    "div",
-                    { class: "cart-list-button-popup" },
-                    this.item.buttons.map((btn) =>
-                      Vue.h(
-                        "div",
-                        {
-                          onClick: (e) => {
-                            e.stopPropagation();
-                            btn.onclick?.();
-                          },
-                        },
-                        [
-                          btn.class &&
-                            Vue.h(SsCartListIcon, { class: [btn.class] }),
-                          Vue.h("span", null, btn.title),
-                        ]
-                      )
-                    )
-                  ),
-              ]
-            ),
-          Vue.h("div", { class: "body" }, [
-            Vue.h("div", { class: "box-header" }, [
-              Vue.h("div", String(this.item.title || "")),
-            ]),
-            Vue.h(
-              "div",
-              { class: !hasThumbArea ? "no-thumb box-body" : "box-body" },
-              [
-                hasThumbArea
-                  ? thumbSrc
-                    ? Vue.h("div", { class: "left" }, [
-                        Vue.h("img", {
-                          src: thumbSrc,
-                          alt: "Thumbnail",
-                          class: "imgUnHandle",
-                          style: {
-                            "object-fit": "cover",
-                            width: "100%",
-                            height: "100%",
-                          },
-                        }),
-                      ])
-                    : Vue.h(
-                        "div",
-                        { class: "left ss-objlist-thumbPlaceholder" },
-                        [
-                          Vue.h(SsIcon, {
-                            class:
-                              this.getBizThumbIconClass() +
-                              " ss-objlist-thumbIcon",
-                          }),
-                        ]
-                      )
-                  : null,
-                Vue.h(
-                  "div",
-                  { class: "right" },
-                  (() => {
-                    const model = this.buildRightTextLines();
-                    const hasAny = !!(model?.hasSecond || model?.hasThird);
-                    if (!hasAny) return [];
-                    const children = [];
-                    if (model.hasSecond && model.secondKind === "summary") {
-                      children.push(
-                        Vue.h(
-                          "div",
-                          {
-                            class:
-                              "ss-card-text__line ss-card-text__secondBlock",
-                          },
-                          [
-                            Vue.h(
-                              "div",
-                              {
-                                class: "ss-card-text__secondSummary",
-                                title: model.summary,
-                              },
-                              model.summary
-                            ),
-                            Vue.h("span", {
-                              class: [
-                                "ss-card-text__ellipsisHit",
-                                "ss-card-text__ellipsisHit--second",
-                                this.ellipsisVisible?.secondSummary
-                                  ? "is-on"
-                                  : "",
-                              ],
-                              title: "查看完整信息",
-                              onMouseenter: (e) =>
-                                this.showTextPopoverFor(
-                                  e?.currentTarget,
-                                  "second-summary"
-                                ),
-                              onClick: (e) => {
-                                e?.stopPropagation?.();
-                                this.showTextPopoverFor(
-                                  e?.currentTarget,
-                                  "second-summary"
-                                );
-                              },
-                              onMouseleave: () => this.hideTextPopoverLater(),
-                            }),
-                          ]
-                        )
-                      );
-                    }
-                    if (model.hasSecond && model.secondKind === "tags") {
-                      children.push(
-                        Vue.h(
-                          "div",
-                          {
-                            class: [
-                              "ss-card-text__line",
-                              model.secondFull
-                                ? "ss-card-text__secondFullBlock"
-                                : "ss-card-text__secondBlock",
-                            ],
-                          },
-                          [
-                            Vue.h(
-                              "div",
-                              { class: "ss-card-text__secondTags" },
-                              [
-                                ...model.secondTagsHead.map((t) =>
-                                  Vue.h(
-                                    "div",
-                                    {
-                                      class: "ss-card-text__tagLine",
-                                      title: t,
-                                    },
-                                    t
-                                  )
-                                ),
-                                Vue.h(
-                                  "div",
-                                  {
-                                    class:
-                                      "ss-card-text__tagLine is-last ss-card-text__tagLineLast",
-                                    title: model.secondTagsLast,
-                                  },
-                                  model.secondTagsLast
-                                ),
-                              ]
-                            ),
-                            Vue.h("span", {
-                              class: [
-                                "ss-card-text__ellipsisHit",
-                                "ss-card-text__ellipsisHit--second",
-                                this.ellipsisVisible?.secondTags ? "is-on" : "",
-                              ],
-                              title: "查看完整信息",
-                              onMouseenter: (e) =>
-                                this.showTextPopoverFor(
-                                  e?.currentTarget,
-                                  "second-tags"
-                                ),
-                              onClick: (e) => {
-                                e?.stopPropagation?.();
-                                this.showTextPopoverFor(
-                                  e?.currentTarget,
-                                  "second-tags"
-                                );
-                              },
-                              onMouseleave: () => this.hideTextPopoverLater(),
-                            }),
-                          ]
-                        )
-                      );
-                    }
-                    if (model.hasThird) {
-                      if (model.thirdFull) {
-                        children.push(
-                          Vue.h(
-                            "div",
-                            {
-                              class:
-                                "ss-card-text__line ss-card-text__thirdFullBlock",
-                            },
-                            [
-                              Vue.h(
-                                "div",
-                                {
-                                  class: "ss-card-text__thirdFull",
-                                  title: model.thirdText,
-                                },
-                                model.thirdText
-                              ),
-                              Vue.h("span", {
-                                class: [
-                                  "ss-card-text__ellipsisHit",
-                                  "ss-card-text__ellipsisHit--third",
-                                  this.ellipsisVisible?.thirdFull
-                                    ? "is-on"
-                                    : "",
-                                ],
-                                title: "查看完整信息",
-                                onMouseenter: (e) =>
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third-full"
-                                  ),
-                                onClick: (e) => {
-                                  e?.stopPropagation?.();
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third-full"
-                                  );
-                                },
-                                onMouseleave: () => this.hideTextPopoverLater(),
-                              }),
-                            ]
-                          )
-                        );
-                      } else {
-                        children.push(
-                          Vue.h(
-                            "div",
-                            {
-                              class:
-                                "ss-card-text__line ss-card-text__thirdLineWrap",
-                            },
-                            [
-                              Vue.h(
-                                "div",
-                                {
-                                  class: "ss-card-text__thirdLine",
-                                  title: model.thirdText,
-                                },
-                                model.thirdText
-                              ),
-                              Vue.h("span", {
-                                class: [
-                                  "ss-card-text__ellipsisHit",
-                                  "ss-card-text__ellipsisHit--third",
-                                  this.ellipsisVisible?.third ? "is-on" : "",
-                                ],
-                                title: "查看完整信息",
-                                onMouseenter: (e) =>
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third"
-                                  ),
-                                onClick: (e) => {
-                                  e?.stopPropagation?.();
-                                  this.showTextPopoverFor(
-                                    e?.currentTarget,
-                                    "third"
-                                  );
-                                },
-                                onMouseleave: () => this.hideTextPopoverLater(),
-                              }),
-                            ]
-                          )
-                        );
-                      }
-                    }
-                    const popover =
-                      this.showTextPopover &&
-                      Vue.h(
-                        "div",
-                        {
-                          class: "ss-card-text-popover",
-                          style: { bottom: this.textPopoverBottom + "px" },
-                          onMouseenter: () => {
-                            this.clearHideTextPopoverTimer();
-                            this.showTextPopover = true;
-                          },
-                          onMouseleave: () => this.hideTextPopoverLater(),
-                        },
-                        (() => {
-                          const p = this.textPopoverPayload || {};
-                          if (p.kind === "second-summary" && p.text) {
-                            return [
-                              Vue.h(
-                                "div",
-                                { class: "ss-card-text-popover__summary" },
-                                p.text
-                              ),
-                            ];
-                          }
-                          if (Array.isArray(p.lines)) {
-                            return [
-                              Vue.h(
-                                "div",
-                                { class: "ss-card-text-popover__kvlist" },
-                                p.lines.map((t) =>
-                                  Vue.h(
-                                    "div",
-                                    { class: "ss-card-text-popover__kv" },
-                                    t
-                                  )
-                                )
-                              ),
-                            ];
-                          }
-                          if (
-                            (p.kind === "third" || p.kind === "third-full") &&
-                            p.text
-                          ) {
-                            return [
-                              Vue.h(
-                                "div",
-                                { class: "ss-card-text-popover__objno" },
-                                p.text
-                              ),
-                            ];
-                          }
-                          return [];
-                        })()
-                      );
-                    return [
-                      Vue.h("div", { class: "ss-card-text" }, children),
-                      popover,
-                    ];
-                  })()
-                ),
-              ]
-            ),
-          ]),
-        ]
-      );
-    },
-  };
-
-  // ss-sidebar 右侧边栏(容器 + 子组件),用于 objList 右侧区域 by xu 20260106
-  // 组件文档补全(JSDoc) by xu 20260108
-  /**
-   * SsSidebarButtons(右侧边栏顶部按钮栏)
-   *
-   * 用途:
-   * - 渲染 objList 右侧顶部快捷操作(预定/入住/退房/清洁...)
-   * - 内部复用 `ss-search-button`(项目现有按钮样式/交互)
-   *
-   * 调用示例:
-   * ```html
-   * <ss-sidebar-buttons :items="sidebarButtons" />
-   * ```
-   *
-   * Props:
-   * - `items`: 按钮配置数组
-   *   - `{ id, text, icon?, onClick? }`
-   *
-   * Emits:
-   * - `click`:点击按钮时触发,参数为按钮对象
-   */
-  const SsSidebarButtons = {
-    name: "SsSidebarButtons",
-    props: {
-      items: { type: Array, default: () => [] },
-    },
-    emits: ["click"],
-    render() {
-      const SsSearchButton = Vue.resolveComponent("ss-search-button");
-      const items = this.items || [];
-      if (!items.length) return null;
-      return Vue.h(
-        "div",
-        { class: "ss-sidebar-actions" },
-        items.map((btn) =>
-          // 顶部操作按钮复用 ss-search-button(先 mock 固定按钮) by xu 20260106
-          Vue.h(SsSearchButton, {
-            text: btn?.text ?? "",
-            iconClass: btn?.iconClass ?? "",
-            opt: btn?.opt ?? [],
-            checkId: btn?.checkId ?? "0",
-            width: btn?.width,
-            id: btn?.id,
-            onClick: (e) => {
-              e?.stopPropagation?.();
-              btn?.onClick?.(btn);
-              this.$emit("click", btn);
-            },
-          })
-        )
-      );
-    },
-  };
-
-  // 组件文档补全(JSDoc) by xu 20260108
-  /**
-   * SsSidebarChart(ECharts 容器渲染)
-   *
-   * 用途:
-   * - 仅负责 echarts init / setOption / resize / dispose
-   * - 被 `ss-sidebar-chart-hover` 与图表面板复用
-   *
-   * 调用示例:
-   * ```html
-   * <ss-sidebar-chart :options="option" height="220px" />
-   * ```
-   *
-   * Props:
-   * - `options`:ECharts option(Object)
-   * - `height`:容器高度(String)
-   */
-  const SsSidebarChart = {
-    name: "SsSidebarChart",
-    props: {
-      options: { type: Object, default: () => ({}) },
-      height: { type: String, default: "200px" },
-    },
-    setup(props) {
-      const elRef = Vue.ref(null);
-      let chart = null;
-
-      const renderChart = () => {
-        if (!elRef.value || !window.echarts) return;
-        if (!chart) {
-          chart = window.echarts.init(elRef.value);
-        }
-        chart.setOption(props.options || {}, true);
-      };
-
-      const resizeChart = () => {
-        chart?.resize?.();
-      };
-
-      Vue.onMounted(() => {
-        renderChart();
-        window.addEventListener("resize", resizeChart);
-      });
-
-      Vue.onBeforeUnmount(() => {
-        window.removeEventListener("resize", resizeChart);
-        chart?.dispose?.();
-        chart = null;
-      });
-
-      Vue.watch(
-        () => props.options,
-        () => {
-          renderChart();
-        },
-        { deep: true }
-      );
-
-      return { elRef };
-    },
-    render() {
-      return Vue.h("div", {
-        ref: "elRef",
-        style: {
-          width: "100%",
-          height: this.height,
-          // 图表容器不加 padding/border,由外层布局控制 by xu 20260106
-          background: "transparent",
-          border: "none",
-          "border-radius": "0",
-        },
-      });
-    },
-  };
-
-  // ss-sidebar-chart-hover:hover 弹出左侧大图(支持图钉/全屏) by xu 20260106
-  // 组件文档补全(JSDoc) by xu 20260108
-  /**
-   * SsSidebarChartHover(小图 + hover 左侧大图预览 + 图钉固定 + 全屏)
-   *
-   * 用途:
-   * - 右侧统计图小卡片:hover 时在左侧弹出大图预览
-   * - 预览头部:左侧图标+标题;右侧固定/全屏按钮(icon-base)
-   * - 全屏:方案A(浏览器 Fullscreen API)
-   *
-   * 调用示例(由 ss-sidebar chart panel 内部调用):
-   * ```html
-   * <ss-sidebar-chart-hover
-   *   title="校舍建筑面积和总体分布"
-   *   icon-class="menu-icon icon-obj-jzw"
-   *   :options="option"
-   *   height="220px"
-   * />
-   * ```
-   *
-   * Props:
-   * - `title/iconClass/icon`:用于预览/全屏 header 显示(与面板 header 一致)
-   * - `options`:ECharts option
-   * - `height`:小图高度
-   * - `previewWidth/previewHeight`:预览建议尺寸(会按视口自适应)
-   */
-  const SsSidebarChartHover = {
-    name: "SsSidebarChartHover",
-    props: {
-      // hover 大图标题/图标(与小图面板 header 一致) by xu 20260108
-      title: { type: String, default: "" },
-      iconClass: { type: String, default: "" },
-      icon: { type: String, default: "" },
-      options: { type: Object, default: () => ({}) },
-      height: { type: String, default: "220px" },
-      // hover 弹窗建议尺寸:默认 1000x650(比例由逻辑统一管控),实际渲染会按比例自适应视口 by xu 20260115
-      previewWidth: { type: Number, default: 1000 },
-      previewHeight: { type: Number, default: 650 },
-    },
-    setup(props) {
-      const triggerRef = Vue.ref(null);
-      const fullscreenRef = Vue.ref(null);
-      const open = Vue.ref(false);
-      const pinned = Vue.ref(false);
-      const fullscreen = Vue.ref(false);
-      const hoveringTrigger = Vue.ref(false);
-      const hoveringPreview = Vue.ref(false);
-      const previewStyle = Vue.ref({});
-      let closeTimer = null;
-
-      const updatePreviewPosition = () => {
-        const el = triggerRef.value;
-        if (!el) return;
-        const rect = el.getBoundingClientRect();
-        // 功能说明:优先使用 visualViewport(避免浏览器 UI/缩放导致可视区与 innerHeight 偏差,出现预览被遮挡约 70px) by xu 20260116
-        const docEl = document.documentElement;
-        const vv = window.visualViewport;
-        let viewportLeft = Number(vv?.offsetLeft ?? 0) || 0;
-        let viewportTop = Number(vv?.offsetTop ?? 0) || 0;
-        let vw =
-          Number(vv?.width ?? 0) ||
-          Number(docEl?.clientWidth || 0) ||
-          window.innerWidth;
-        let vh =
-          Number(vv?.height ?? 0) ||
-          Number(docEl?.clientHeight || 0) ||
-          window.innerHeight;
-        // 功能说明:若页面在 iframe 内,父页面可能裁切 iframe 可见区域(overflow/弹窗容器),需要用“iframe可见区域”做二次约束 by xu 20260116
-        try {
-          const inIframe = window.top && window.top !== window;
-          const frameEl = window.frameElement;
-          if (inIframe && frameEl && window.top?.document) {
-            const topVv = window.top.visualViewport;
-            const topDocEl = window.top.document.documentElement;
-            const topVw =
-              Number(topVv?.width ?? 0) ||
-              Number(topDocEl?.clientWidth || 0) ||
-              window.top.innerWidth;
-            const topVh =
-              Number(topVv?.height ?? 0) ||
-              Number(topDocEl?.clientHeight || 0) ||
-              window.top.innerHeight;
-            const fr = frameEl.getBoundingClientRect?.();
-            if (fr && fr.width > 0 && fr.height > 0) {
-              const visibleW = Math.max(
-                0,
-                Math.min(fr.right, topVw) - Math.max(fr.left, 0)
-              );
-              const visibleH = Math.max(
-                0,
-                Math.min(fr.bottom, topVh) - Math.max(fr.top, 0)
-              );
-              if (visibleW > 0) {
-                vw = Math.min(vw, visibleW);
-                viewportLeft = Math.max(0, -fr.left); // iframe内坐标系偏移(左侧被裁切时) by xu 20260116
-              }
-              if (visibleH > 0) {
-                vh = Math.min(vh, visibleH);
-                viewportTop = Math.max(0, -fr.top); // iframe内坐标系偏移(顶部被裁切时) by xu 20260116
-              }
-            }
-          }
-        } catch (_) {}
-
-        // 预览窗尺寸:优先保证“完整可见”,其次再尽量对齐右侧 header 顶部 by xu 20260116
-        const viewportPaddingX = 40;
-        const viewportPaddingTop = 20;
-        const viewportPaddingBottom = 10;
-        // 功能说明:hover 预览框不要覆盖右侧栏,优先放在 ss-sidebar 左侧;必要时动态缩小宽度 by xu 20260115
-        const sidebarEl = el.closest ? el.closest(".ss-sidebar") : null;
-        const sidebarRect = sidebarEl?.getBoundingClientRect?.();
-        const maxWidthByViewport = Math.max(240, vw - viewportPaddingX);
-        const maxWidthByLeftSpace = sidebarRect
-          ? Math.max(
-              240,
-              sidebarRect.left - viewportPaddingX - 14 /* gapFromSidebar */
-            )
-          : maxWidthByViewport;
-        // 功能说明:预览框尺寸按比例(默认 5:3)缩放,并提供最大/最小值约束 by xu 20260115
-        const ratio = 3 / 5;
-        const minWidth = 320;
-        const minHeight = 240;
-        const maxHeightByViewport = Math.max(
-          minHeight,
-          vh - viewportPaddingTop - viewportPaddingBottom
-        );
-        const maxWidthByProp = Number(props.previewWidth) || 1000;
-        const maxHeightByProp = Number(props.previewHeight) || 650;
-
-        // 优先按高度撑满可视区(保证预览完整可见),再根据左侧可用宽度回退 by xu 20260116
-        const maxHeight = Math.min(maxHeightByProp, maxHeightByViewport);
-        let height = Math.max(minHeight, maxHeight);
-        let width = Math.round(height / ratio);
-        width = Math.min(
-          width,
-          maxWidthByProp,
-          maxWidthByViewport,
-          maxWidthByLeftSpace
-        );
-        width = Math.max(minWidth, width);
-        height = Math.round(width * ratio);
-        if (height > maxHeight) {
-          height = maxHeight;
-          width = Math.round(height / ratio);
-        }
-
-        // 默认贴着小图左侧弹出,右边缘与小图左边缘轻微重叠,避免 1px 缝隙导致 hover 闪断 by xu 20260108
-        const overlap = 2;
-        const gapFromSidebar = 14; // 功能说明:弹窗与右侧边栏留出距离(更不贴近) by xu 20260108
-        // 优先:贴在 sidebar 左侧(不压住右侧栏内容) by xu 20260115
-        let left = sidebarRect
-          ? sidebarRect.left - gapFromSidebar - width + overlap
-          : rect.left - width - gapFromSidebar + overlap;
-        // 如果左侧空间不足,则贴右侧(兜底,同样重叠) by xu 20260108
-        if (left < 0) left = rect.right + gapFromSidebar - overlap;
-        left = Math.max(
-          viewportLeft,
-          Math.min(left, viewportLeft + vw - width)
-        );
-
-        // top:优先保证完整可见,然后才贴近 header 顶部 by xu 20260116
-        let headerEl = el;
-        while (headerEl && !headerEl.classList?.contains("ss-sidebar-panel")) {
-          headerEl = headerEl.parentElement;
-        }
-        let headerRect = headerEl
-          ?.querySelector(".ss-sidebar-panel__header")
-          ?.getBoundingClientRect();
-        let top = headerRect?.top ?? rect.top;
-        top = Math.max(
-          viewportTop + viewportPaddingTop,
-          Math.min(top, viewportTop + vh - height - viewportPaddingBottom)
-        );
-
-        previewStyle.value = {
-          position: "fixed",
-          left: `${Math.round(left)}px`,
-          top: `${Math.round(top)}px`,
-          width: `${width}px`,
-          height: `${height}px`,
-          zIndex: 2147483647, // 功能说明:提高层级到接近浏览器上限,避免仍被页面固定栏/弹窗遮挡 by xu 20260116
-        };
-      };
-
-      const clearCloseTimer = () => {
-        if (closeTimer) {
-          clearTimeout(closeTimer);
-          closeTimer = null;
-        }
-      };
-
-      const scheduleClose = () => {
-        clearCloseTimer();
-        if (pinned.value || fullscreen.value) return;
-        if (hoveringTrigger.value || hoveringPreview.value) return; // 功能:鼠标在小图/大图之间移动不关闭 by xu 20260108
-        closeTimer = setTimeout(() => {
-          open.value = false;
-        }, 100);
-      };
-
-      const openPreview = () => {
-        clearCloseTimer();
-        updatePreviewPosition();
-        open.value = true;
-      };
-
-      const togglePin = () => {
-        pinned.value = !pinned.value;
-        if (pinned.value) {
-          open.value = true;
-          updatePreviewPosition();
-        }
-      };
-
-      const toggleFullscreen = () => {
-        // 全屏:采用浏览器 Fullscreen API(方案A),不使用遮罩弹窗 by xu 20260108
-        if (!fullscreen.value) {
-          open.value = false; // 避免同时渲染预览与全屏 by xu 20260108
-          fullscreen.value = true;
-          Vue.nextTick(() => {
-            const el = fullscreenRef.value;
-            if (el?.requestFullscreen) {
-              el.requestFullscreen().catch(() => {
-                // requestFullscreen 失败则回退为非全屏状态 by xu 20260108
-                fullscreen.value = false;
-              });
-            } else {
-              fullscreen.value = false;
-            }
-          });
-        } else {
-          if (document?.exitFullscreen) {
-            document.exitFullscreen().catch(() => {});
-          }
-        }
-      };
-
-      const handleFullscreenChange = () => {
-        const isFs = !!document.fullscreenElement;
-        fullscreen.value = isFs; // 功能说明:同步 ESC/系统退出全屏状态 by xu 20260108
-        if (isFs) {
-          open.value = false;
-          clearCloseTimer();
-          return;
-        }
-        // 退出全屏后:若固定或仍 hover,则恢复预览,否则关闭 by xu 20260108
-        if (pinned.value || hoveringTrigger.value || hoveringPreview.value) {
-          open.value = true;
-          updatePreviewPosition();
-        } else {
-          open.value = false;
-        }
-      };
-
-      Vue.onMounted(() => {
-        window.addEventListener("resize", updatePreviewPosition);
-        window.addEventListener("scroll", updatePreviewPosition, true);
-        document.addEventListener("fullscreenchange", handleFullscreenChange); // 功能说明:监听全屏状态变化 by xu 20260108
-      });
-
-      Vue.onBeforeUnmount(() => {
-        clearCloseTimer();
-        window.removeEventListener("resize", updatePreviewPosition);
-        window.removeEventListener("scroll", updatePreviewPosition, true);
-        document.removeEventListener(
-          "fullscreenchange",
-          handleFullscreenChange
-        );
-      });
-
-      return {
-        triggerRef,
-        fullscreenRef,
-        open,
-        pinned,
-        fullscreen,
-        hoveringTrigger,
-        hoveringPreview,
-        previewStyle,
-        openPreview,
-        scheduleClose,
-        clearCloseTimer,
-        togglePin,
-        toggleFullscreen,
-      };
-    },
-    render() {
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      const Chart = Vue.resolveComponent("ss-sidebar-chart");
-      const hasHeader = !!(this.title || this.iconClass || this.icon); // 功能:hover 大图显示左侧图标+标题 by xu 20260108
-
-      const previewContent = Vue.h(
-        "div",
-        {
-          class: { "ss-sidebar-chart-preview": true, "is-pinned": this.pinned },
-          style: this.previewStyle,
-          onMouseenter: () => {
-            this.hoveringPreview = true;
-            this.clearCloseTimer();
-          },
-          onMouseleave: () => {
-            this.hoveringPreview = false;
-            this.scheduleClose();
-          },
-        },
-        [
-          hasHeader
-            ? Vue.h(
-                "div",
-                {
-                  class:
-                    "ss-sidebar-panel__header ss-sidebar-chart-preview__header",
-                },
-                [
-                  Vue.h("div", { class: "ss-sidebar-panel__title" }, [
-                    this.iconClass
-                      ? Vue.h(SsIcon, {
-                          class: this.iconClass + " ss-sidebar-panel__icon",
-                        })
-                      : this.icon
-                      ? Vue.h(SsIcon, {
-                          name: this.icon,
-                          size: "16px",
-                          class: "ss-sidebar-panel__icon",
-                        })
-                      : null,
-                    Vue.h("span", null, this.title || "统计图"),
-                  ]),
-                  Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
-                    Vue.h(
-                      "button",
-                      {
-                        type: "button",
-                        class: {
-                          "ss-sidebar-chart-tool": true,
-                          "is-active": this.pinned,
-                        },
-                        title: this.pinned ? "取消固定" : "固定",
-                        onClick: (e) => {
-                          e.stopPropagation();
-                          this.togglePin();
-                        },
-                      },
-                      // 功能说明:右侧栏 hover 工具图标使用 ss-sidebar-base-icon(不复用左侧 menu-base-icon) by xu 20260123
-                      [
-                        Vue.h(SsIcon, {
-                          class: this.pinned
-                            ? "ss-sidebar-base-icon icon-fix-bold"
-                            : "ss-sidebar-base-icon icon-fix",
-                        }),
-                      ]
-                    ),
-                    Vue.h(
-                      "button",
-                      {
-                        type: "button",
-                        class: "ss-sidebar-chart-tool",
-                        title: "全屏",
-                        onClick: (e) => {
-                          e.stopPropagation();
-                          this.toggleFullscreen();
-                        },
-                      },
-                      [
-                        Vue.h(SsIcon, {
-                          class: this.fullscreen
-                            ? "ss-sidebar-base-icon icon-fs-exit"
-                            : "ss-sidebar-base-icon icon-fs",
-                        }),
-                      ]
-                    ),
-                  ]),
-                ]
-              )
-            : Vue.h(
-                "div",
-                {
-                  class:
-                    "ss-sidebar-chart-preview__header ss-sidebar-chart-preview__header--simple",
-                },
-                [
-                  Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
-                    Vue.h(
-                      "button",
-                      {
-                        type: "button",
-                        class: {
-                          "ss-sidebar-chart-tool": true,
-                          "is-active": this.pinned,
-                        },
-                        title: this.pinned ? "取消固定" : "固定",
-                        onClick: (e) => {
-                          e.stopPropagation();
-                          this.togglePin();
-                        },
-                      },
-                      [
-                        Vue.h(SsIcon, {
-                          class: this.pinned
-                            ? "ss-sidebar-base-icon icon-fix-bold"
-                            : "ss-sidebar-base-icon icon-fix",
-                        }),
-                      ]
-                    ),
-                    Vue.h(
-                      "button",
-                      {
-                        type: "button",
-                        class: "ss-sidebar-chart-tool",
-                        title: "全屏",
-                        onClick: (e) => {
-                          e.stopPropagation();
-                          this.toggleFullscreen();
-                        },
-                      },
-                      [
-                        Vue.h(SsIcon, {
-                          class: this.fullscreen
-                            ? "ss-sidebar-base-icon icon-chk-on"
-                            : "ss-sidebar-base-icon icon-chk",
-                        }),
-                      ]
-                    ),
-                  ]),
-                ]
-              ),
-          Vue.h("div", { class: "ss-sidebar-chart-preview__body" }, [
-            Vue.h(Chart, { options: this.options, height: "100%" }),
-          ]),
-        ]
-      );
-
-      const fullscreenContent =
-        this.fullscreen &&
-        Vue.h(
-          "div",
-          {
-            ref: "fullscreenRef",
-            class: "ss-sidebar-chart-fullscreen",
-          },
-          [
-            Vue.h(
-              "div",
-              {
-                class:
-                  "ss-sidebar-panel__header ss-sidebar-chart-fullscreen__header",
-              },
-              [
-                Vue.h("div", { class: "ss-sidebar-panel__title" }, [
-                  this.iconClass
-                    ? Vue.h(SsIcon, {
-                        class: this.iconClass + " ss-sidebar-panel__icon",
-                      })
-                    : this.icon
-                    ? Vue.h(SsIcon, {
-                        name: this.icon,
-                        size: "16px",
-                        class: "ss-sidebar-panel__icon",
-                      })
-                    : null,
-                  Vue.h("span", null, this.title || "统计图"),
-                ]),
-                Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
-                  Vue.h(
-                    "button",
-                    {
-                      type: "button",
-                      class: {
-                        "ss-sidebar-chart-tool": true,
-                        "is-active": this.pinned,
-                      },
-                      title: this.pinned ? "取消固定" : "固定",
-                      onClick: (e) => {
-                        e.stopPropagation();
-                        this.togglePin();
-                      },
-                    },
-                    [
-                      Vue.h(SsIcon, {
-                        class: this.pinned
-                          ? "ss-sidebar-base-icon icon-fix-bold"
-                          : "ss-sidebar-base-icon icon-fix",
-                      }),
-                    ]
-                  ),
-                  Vue.h(
-                    "button",
-                    {
-                      type: "button",
-                      class: "ss-sidebar-chart-tool",
-                      title: "退出全屏",
-                      onClick: (e) => {
-                        e.stopPropagation();
-                        this.toggleFullscreen();
-                      },
-                    },
-                    [
-                      Vue.h(SsIcon, {
-                        class: "ss-sidebar-base-icon icon-fs-exit",
-                      }),
-                    ]
-                  ),
-                ]),
-              ]
-            ),
-            Vue.h("div", { class: "ss-sidebar-chart-fullscreen__body" }, [
-              Vue.h(Chart, { options: this.options, height: "100%" }),
-            ]),
-          ]
-        );
-
-      return Vue.h("div", { class: "ss-sidebar-chart-hover" }, [
-        Vue.h(
-          "div",
-          {
-            ref: "triggerRef",
-            class: "ss-sidebar-chart-hover__trigger",
-            onMouseenter: () => {
-              this.hoveringTrigger = true;
-              this.openPreview();
-            },
-            onMouseleave: () => {
-              this.hoveringTrigger = false;
-              this.scheduleClose();
-            },
-          },
-          [Vue.h(Chart, { options: this.options, height: this.height })]
-        ),
-        (this.open || this.fullscreen) &&
-          Vue.h(Vue.Teleport, { to: "body" }, [
-            this.open ? previewContent : null,
-            fullscreenContent || null,
-          ]),
-      ]);
-    },
-  };
-
-  // 组件文档补全(JSDoc) by xu 20260108
-  /**
-   * SsSidebarList(右侧业务面板:人员/已选/服务/预定...)
-   *
-   * 用途:
-   * - 统一渲染面板 header(图标/标题/数量/右侧按钮)
-   * - 统一渲染 list(固定行高、hover、右侧移除按钮等)
-   *
-   * 调用示例(由 ss-sidebar 通过 panels 配置驱动):
-   * ```js
-   * { type:'list', title:'已选', iconClass:'menu-icon icon-obj-xcd', mode:'selected', items:selectedItems, closable:true }
-   * ```
-   *
-   * Props(核心):
-   * - `title`:header 标题
-   * - `iconClass/icon`:header 图标(优先 iconClass)
-   * - `count`:数量回显(图表面板可不传)
-   * - `closable`:是否显示“清空”按钮(触发 emit clear)
-   * - `headerFilters`:header 条件数组(组件名 + props),用于联调接口搜索
-   * - `headerSearchButton`:是否显示搜索按钮(触发 emit search)
-   * - `items`:列表数据
-   * - `mode`:`selected` 时右侧按钮语义为“移除”
-   * - `itemLayout`:`simple` / `person`(人员号槽位)
-   * - `itemAction`:是否显示 item 右侧操作按钮(hover 才出现)
-   *
-   * Emits:
-   * - `remove(item)`:点击 item 右侧移除
-   * - `clear()`:点击 header 清空
-   * - `search({keyword, filters})`:点击 header 搜索
-   */
-  const SsSidebarList = {
-    name: "SsSidebarList",
-    props: {
-      title: { type: String, default: "" },
-      // header 图标:优先使用 iconClass(走 ss-icon v3.0 class 分支) by xu 20260106
-      iconClass: { type: String, default: "" },
-      icon: { type: String, default: "" }, // 兼容旧写法(ss-icon name)
-      count: { type: [Number, String], default: "" },
-      // 选中类分区:右侧关闭按钮=清空分区数据 by xu 20260106
-      closable: { type: Boolean, default: false },
-      searchable: { type: Boolean, default: false },
-      // 搜索框是否放在 header 内(人员块需要该布局) by xu 20260106
-      searchInHeader: { type: Boolean, default: false },
-      // header 搜索:下拉条件 + 搜索按钮(适合“人员”块) by xu 20260106
-      headerFilters: { type: Array, default: () => [] },
-      headerSearchButton: { type: Boolean, default: false },
-      searchPlaceholder: { type: String, default: "搜索" },
-      // 列表项布局:simple(仅标题) / person(标题+人员号槽位) by xu 20260106
-      itemLayout: { type: String, default: "simple" },
-      itemAction: { type: Boolean, default: true },
-      collapsible: { type: Boolean, default: true }, // 功能说明:是否允许双击 header 折叠/展开 by xu 20260116
-      collapsed: { type: Boolean, default: false }, // 功能说明:折叠态仅展示 header by xu 20260116
-      items: { type: Array, default: () => [] },
-      mode: { type: String, default: "search" }, // search / selected
-    },
-    emits: ["select", "remove", "clear", "search", "toggle-collapse"],
-    data() {
-      return {
-        keyword: "",
-        filterValues: {},
-      }; // 功能说明:折叠状态完全由 props.collapsed 驱动,避免多面板复用导致状态不同步 by xu 20260116
-    },
-    created() {
-      // header 下拉条件默认值初始化 by xu 20260106
-      (this.headerFilters || []).forEach((f) => {
-        if (!f || !f.key) return;
-        if (this.filterValues[f.key] !== undefined) return;
-        const first = f?.options?.[0]?.value ?? "";
-        this.filterValues[f.key] = f.value !== undefined ? f.value : first;
-      });
-    },
-    methods: {
-      __shouldIgnoreHeaderToggle(e) {
-        // 功能说明:忽略工具区/输入区触发折叠,避免误触 by xu 20260116
-        const t = e?.target;
-        if (!t || !t.closest) return false;
-        if (t.closest(".ss-sidebar-panel__tools")) return true;
-        if (t.closest(".ss-sidebar-panel__filters")) return true;
-        if (t.closest("input,textarea,select,button")) return true;
-        return false;
-      },
-      __toggleCollapseInternal(e, source) {
-        if (!this.collapsible) return;
-        if (this.__shouldIgnoreHeaderToggle(e)) return;
-
-        const nextCollapsed = !this.collapsed;
-        console.log("[SsSidebarList] toggle emit", {
-          title: this.title,
-          source,
-          to: nextCollapsed,
-        }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        // 功能说明:由父组件(SsSidebar.toggleSectionCollapse)统一控制 section 高度与折叠数组 by xu 20260116
-        this.$emit("toggle-collapse");
-      },
-    },
-    render() {
-      const items = this.items || [];
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      const isSelectedMode = this.mode === "selected";
-      const activeKeyword = this.filterValues?.keyword ?? this.keyword; // 功能:keyword 优先取 headerFilters.keyword by xu 20260106
-      const hasHeaderKeyword = (this.headerFilters || []).some(
-        (f) => f?.key === "keyword"
-      ); // 功能:header 内 keyword 过滤 by xu 20260106
-      const renderHeaderFilter = (f) => {
-        if (!f) return null;
-        const key = f.key;
-        const componentName = f.component;
-        if (!key || !componentName) return null;
-        const Comp = Vue.resolveComponent(componentName);
-        if (!Comp) return null;
-        const modelValue = this.filterValues[key];
-        const props = f.props || {};
-        return Vue.h(Comp, {
-          ...props,
-          modelValue,
-          "onUpdate:modelValue": (v) => {
-            this.filterValues[key] = v;
-          },
-        });
-      };
-      const filteredItems =
-        this.searchable && activeKeyword
-          ? items.filter((it) =>
-              String(it?.title ?? "")
-                .toLowerCase()
-                .includes(String(activeKeyword).toLowerCase())
-            )
-          : items;
-
-      if (!filteredItems.length && !this.title) return null;
-
-      if (this.collapsed) {
-        return Vue.h("div", { class: "ss-sidebar-panel" }, [
-          this.title
-            ? Vue.h(
-                "div",
-                {
-                  class: "ss-sidebar-panel__header",
-                  // 功能说明:折叠触发绑定到整个 header(dblclick + click.detail==2 兜底) by xu 20260116
-                  onDblclick: (e) => {
-                    e?.preventDefault?.();
-                    e?.stopPropagation?.();
-                    console.log("[SsSidebarList] header dblclick", {
-                      title: this.title,
-                      collapsed: true,
-                    }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-                    this.__toggleCollapseInternal(e, "dblclick");
-                  },
-                  // 功能说明:移除 click.detail==2 兜底,避免双击同时触发 click+dblclick 导致“折叠又立刻展开” by xu 20260116
-                },
-                [
-                  Vue.h("div", { class: "ss-sidebar-panel__title" }, [
-                    this.iconClass
-                      ? Vue.h(SsIcon, {
-                          class: this.iconClass + " ss-sidebar-panel__icon",
-                        })
-                      : this.icon
-                      ? Vue.h(SsIcon, {
-                          name: this.icon,
-                          size: "16px",
-                          class: "ss-sidebar-panel__icon",
-                        })
-                      : null,
-                    Vue.h("span", null, this.title),
-                    this.count !== ""
-                      ? Vue.h(
-                          "span",
-                          { class: "ss-sidebar-panel__count" },
-                          `(${this.count})`
-                        )
-                      : null,
-                  ]),
-                  Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
-                    this.closable
-                      ? Vue.h(
-                          "button",
-                          {
-                            type: "button",
-                            class: "ss-sidebar-icon-btn ss-sidebar-header-btn",
-                            title: "清空",
-                            onClick: (e) => {
-                              e.stopPropagation();
-                              this.$emit("clear");
-                            },
-                          },
-                          [
-                            Vue.h(SsIcon, {
-                              class: "ss-sidebar-base-icon icon-cl",
-                            }),
-                          ] // 功能说明:右侧栏“已选”清空按钮图标使用 ss-sidebar-base-icon by xu 20260123
-                        )
-                      : null,
-                  ]),
-                ]
-              )
-            : null,
-        ]);
-      }
-
-      return Vue.h("div", { class: "ss-sidebar-panel" }, [
-        this.title
-          ? Vue.h(
-              "div",
-              {
-                class: "ss-sidebar-panel__header",
-                // 功能说明:折叠触发绑定到整个 header(dblclick + click.detail==2 兜底) by xu 20260116
-                onDblclick: (e) => {
-                  e?.preventDefault?.();
-                  e?.stopPropagation?.();
-                  console.log("[SsSidebarList] header dblclick", {
-                    title: this.title,
-                    collapsed: false,
-                  }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-                  this.__toggleCollapseInternal(e, "dblclick");
-                },
-                // 功能说明:移除 click.detail==2 兜底,避免双击同时触发 click+dblclick 导致“折叠又立刻展开” by xu 20260116
-              },
-              [
-                Vue.h("div", { class: "ss-sidebar-panel__title" }, [
-                  // 图标 + 标题(每个分区都有) by xu 20260106
-                  this.iconClass
-                    ? Vue.h(SsIcon, {
-                        class: this.iconClass + " ss-sidebar-panel__icon",
-                      })
-                    : this.icon
-                    ? Vue.h(SsIcon, {
-                        name: this.icon,
-                        size: "16px",
-                        class: "ss-sidebar-panel__icon",
-                      })
-                    : null,
-                  Vue.h("span", null, this.title),
-                  // 数量回显:图表分区可不传 count by xu 20260106
-                  this.count !== ""
-                    ? Vue.h(
-                        "span",
-                        { class: "ss-sidebar-panel__count" },
-                        `(${this.count})`
-                      )
-                    : null,
-                ]),
-                Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
-                  // header 条件(例如下拉框)+ 右侧搜索按钮 by xu 20260106
-                  this.headerFilters?.length
-                    ? Vue.h(
-                        "div",
-                        { class: "ss-sidebar-panel__filters" },
-                        this.headerFilters
-                          .map(renderHeaderFilter)
-                          .filter(Boolean)
-                      )
-                    : null,
-                  this.headerSearchButton
-                    ? Vue.h(
-                        "button",
-                        {
-                          type: "button",
-                          class: "ss-sidebar-icon-btn",
-                          title: "搜索",
-                          onClick: (e) => {
-                            e.stopPropagation();
-                            this.$emit("search", {
-                              // headerFilters 内也可能包含 keyword by xu 20260106
-                              keyword: activeKeyword,
-                              filters: { ...(this.filterValues || {}) },
-                            });
-                          },
-                        },
-                        [Vue.h(SsIcon, { name: "search", size: "14px" })]
-                      )
-                    : null,
-                  // 人员块:搜索框在 header 内 by xu 20260106
-                  this.searchable &&
-                  this.searchInHeader &&
-                  !this.headerSearchButton
-                    ? Vue.h(
-                        "div",
-                        { class: "ss-sidebar-panel__searchInline" },
-                        [
-                          Vue.h(
-                            "div",
-                            { class: "ss-sidebar-search is-inline" },
-                            [
-                              Vue.h(SsIcon, {
-                                name: "search",
-                                size: "14px",
-                                class: "ss-sidebar-search__prefix",
-                              }),
-                              Vue.h("input", {
-                                class: "ss-sidebar-search__input",
-                                value: this.keyword,
-                                placeholder: this.searchPlaceholder,
-                                onInput: (e) => {
-                                  this.keyword = e?.target?.value ?? "";
-                                },
-                              }),
-                            ]
-                          ),
-                        ]
-                      )
-                    : null,
-                  this.closable
-                    ? Vue.h(
-                        "button",
-                        {
-                          type: "button",
-                          class: "ss-sidebar-icon-btn ss-sidebar-header-btn",
-                          title: "清空",
-                          onClick: (e) => {
-                            e.stopPropagation();
-                            this.$emit("clear");
-                          },
-                        },
-                        // 清空按钮使用 icon-base 的 icon-cl by xu 20260106
-                        [
-                          Vue.h(SsIcon, {
-                            class: "ss-sidebar-base-icon icon-cl",
-                          }),
-                        ] // 功能说明:右侧栏清空按钮图标使用 ss-sidebar-base-icon by xu 20260123
-                      )
-                    : null,
-                ]),
-              ]
-            )
-          : null,
-        // 非 header 内搜索:独立一行 by xu 20260106
-        // headerSearchButton/headerFilters 已覆盖搜索能力时,不再额外渲染独立搜索行 by xu 20260106
-        this.searchable &&
-        !this.searchInHeader &&
-        !this.headerSearchButton &&
-        !hasHeaderKeyword
-          ? Vue.h("div", { class: "ss-sidebar-panel__search" }, [
-              Vue.h("div", { class: "ss-sidebar-search" }, [
-                Vue.h(SsIcon, {
-                  name: "search",
-                  size: "14px",
-                  class: "ss-sidebar-search__prefix",
-                }),
-                Vue.h("input", {
-                  class: "ss-sidebar-search__input",
-                  value: this.keyword,
-                  placeholder: this.searchPlaceholder,
-                  onInput: (e) => {
-                    this.keyword = e?.target?.value ?? "";
-                  },
-                }),
-              ]),
-            ])
-          : null,
-        Vue.h(
-          "div",
-          { class: "ss-sidebar-list" },
-          filteredItems.map((item, idx) => {
-            const title = item?.title ?? "";
-            const tags = item?.tags || [];
-            const isPersonLayout = this.itemLayout === "person";
-            const hasTags = !isPersonLayout && tags?.length > 0; // 列表项垂直对齐:有 tags 顶对齐 by xu 20260106
-
-            return Vue.h(
-              "div",
-              {
-                class: {
-                  "ss-sidebar-list-item": true,
-                  "is-first": idx === 0,
-                  "is-person": isPersonLayout,
-                  "has-tags": hasTags,
-                },
-              },
-              [
-                Vue.h("div", { class: "ss-sidebar-list-item__main" }, [
-                  Vue.h(
-                    "div",
-                    { class: "ss-sidebar-list-item__title" },
-                    Vue.h(
-                      "span",
-                      {
-                        style: {
-                          "white-space": "nowrap",
-                          overflow: "hidden",
-                          "text-overflow": "ellipsis",
-                        },
-                      },
-                      title
-                    )
-                  ),
-                  // 非人员布局才显示 tags by xu 20260106
-                  !isPersonLayout && tags?.length
-                    ? Vue.h(
-                        "div",
-                        { class: "ss-sidebar-list-item__tags" },
-                        tags.map((tag) => {
-                          const [k, v] = Object.entries(tag)[0] || ["", ""];
-                          return Vue.h(
-                            "span",
-                            { class: "ss-sidebar-tag", title: `${k}: ${v}` },
-                            `${k}: ${v}`
-                          );
-                        })
-                      )
-                    : null,
-                ]),
-                // 人员布局:中间保留“人员号”槽位 by xu 20260106
-                isPersonLayout
-                  ? Vue.h(
-                      "div",
-                      {
-                        class: "ss-sidebar-list-item__meta",
-                        title: String(item?.meta ?? ""),
-                      },
-                      item?.meta ?? ""
-                    )
-                  : null,
-                this.itemAction
-                  ? Vue.h(
-                      "button",
-                      {
-                        type: "button",
-                        class: {
-                          // item 操作按钮:默认无背景/无边框,hover 才高亮 by xu 20260106
-                          "ss-sidebar-item-btn": true,
-                        },
-                        title: isSelectedMode ? "移除" : "选择",
-                        onClick: (e) => {
-                          e.stopPropagation();
-                          if (isSelectedMode) this.$emit("remove", item);
-                          else this.$emit("select", item);
-                        },
-                      },
-                      [
-                        // item 移除图标使用 icon-base 的 icon-cl by xu 20260106
-                        isSelectedMode
-                          ? Vue.h(SsIcon, {
-                              class: "ss-sidebar-base-icon icon-cl",
-                            }) // 功能说明:右侧栏 item 移除图标使用 ss-sidebar-base-icon by xu 20260123
-                          : Vue.h(SsIcon, { name: "check", size: "14px" }),
-                      ]
-                    )
-                  : null,
-              ]
-            );
-          })
-        ),
-      ]);
-    },
-  };
-
-  // ss-sidebar-report-table:右侧“统计表/报表”面板(pstatList grtjlbm=51 聚拢渲染) by xu 20260115
-  const SsSidebarReportTable = {
-    name: "SsSidebarReportTable",
-    props: {
-      title: { type: String, default: "" },
-      iconClass: { type: String, default: "" },
-      icon: { type: String, default: "" },
-      items: { type: Array, default: () => [] }, // pstatList(grtjlbm=51) 数组
-      onOpen: { type: Function, default: null }, // (srv, ctx) => void
-      collapsible: { type: Boolean, default: true }, // 功能说明:是否允许双击 header 折叠/展开 by xu 20260116
-      collapsed: { type: Boolean, default: false }, // 功能说明:折叠态仅展示 header by xu 20260116
-    },
-    emits: ["open", "toggle-collapse"],
-    data() {
-      return {}; // 功能说明:折叠状态完全由 props.collapsed 驱动 by xu 20260116
-    },
-    methods: {
-      __toggleCollapseInternal(e, source) {
-        if (!this.collapsible) return;
-        const next = !this.collapsed;
-        console.log("[SsSidebarReportTable] toggle emit", {
-          title: this.title,
-          source,
-          to: next,
-        }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        this.$emit("toggle-collapse");
-      },
-    },
-    render() {
-      const SsIcon = Vue.resolveComponent("ss-icon");
-      const list = this.items || [];
-      if (!this.title && !list.length) return null;
-
-      const header = this.title
-        ? Vue.h(
-            "div",
-            {
-              class: "ss-sidebar-panel__header",
-              // 功能说明:折叠触发绑定到整个 header(dblclick + click.detail==2 兜底) by xu 20260116
-              onDblclick: (e) => {
-                e?.preventDefault?.();
-                e?.stopPropagation?.();
-                console.log("[SsSidebarReportTable] header dblclick", {
-                  title: this.title,
-                  collapsed: this.collapsed,
-                }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-                this.__toggleCollapseInternal(e, "dblclick");
-              },
-              // 功能说明:移除 click.detail==2 兜底,避免双击同时触发 click+dblclick 导致“折叠又立刻展开” by xu 20260116
-            },
-            [
-              Vue.h("div", { class: "ss-sidebar-panel__title" }, [
-                this.iconClass
-                  ? Vue.h(SsIcon, {
-                      class: this.iconClass + " ss-sidebar-panel__icon",
-                    })
-                  : this.icon
-                  ? Vue.h(SsIcon, {
-                      name: this.icon,
-                      size: "16px",
-                      class: "ss-sidebar-panel__icon",
-                    })
-                  : null,
-                Vue.h("span", null, this.title),
-              ]),
-              Vue.h("div", { class: "ss-sidebar-panel__tools" }),
-            ]
-          )
-        : null;
-
-      const renderReport = (report) => {
-        const title = String(report?.mc ?? "");
-        const mx = Array.isArray(report?.grtjmxList) ? report.grtjmxList : [];
-        if (!title && !mx.length) return null;
-
-        // 功能说明:每个报表对象渲染为一个 table(有边框、无圆角、表间距10px;样式由 base.css 统一控制) by xu 20260115
-        const cols = Math.max(1, mx.length);
-        // 功能说明:table 外层包一层 wrap,子项过多时支持横向滚动 by xu 20260115
-        return Vue.h("div", { class: "ss-sidebar-report-table-wrap" }, [
-          Vue.h("table", { class: "ss-sidebar-report-table" }, [
-            Vue.h("thead", null, [
-              Vue.h("tr", null, [
-                Vue.h(
-                  "th",
-                  { class: "ss-sidebar-report-table__title", colspan: cols },
-                  Vue.h(
-                    "div",
-                    { class: "ss-sidebar-report-table__title-content" },
-                    [
-                      Vue.h("span", { class: "ss-sidebar-report-table__dot" }),
-                      Vue.h(
-                        "span",
-                        { class: "ss-sidebar-report-table__title-text", title },
-                        title
-                      ),
-                    ]
-                  )
-                ),
-              ]),
-            ]),
-            Vue.h("tbody", null, [
-              Vue.h(
-                "tr",
-                null,
-                mx.map((cell) => {
-                  const text = String(cell?.mc ?? "");
-                  const srv = {
-                    servName: cell?.fwm ?? "",
-                    dest: cell?.bjm ?? "",
-                    title: text,
-                    width: cell?.width,
-                    height: cell?.height,
-                    minHeight: cell?.height,
-                    maxHeight: cell?.height,
-                    showTitle: text,
-                  };
-
-                  return Vue.h(
-                    "td",
-                    {
-                      class: "ss-sidebar-report-table__cell",
-                      title: text,
-                      onClick: (e) => {
-                        e?.stopPropagation?.();
-                        try {
-                          this.onOpen?.(srv, { report, cell });
-                        } catch (_) {}
-                        this.$emit("open", { report, cell, srv });
-                      },
-                    },
-                    text
-                  );
-                })
-              ),
-            ]),
-          ]),
-        ]);
-      };
-
-      // 功能说明:报表面板增加独立 class,便于 base.css 统一控制 padding/间距 by xu 20260115
-      return Vue.h(
-        "div",
-        { class: "ss-sidebar-panel ss-sidebar-report-panel" },
-        [
-          header,
-          this.collapsed
-            ? null
-            : Vue.h(
-                "div",
-                // 功能说明:报表列表滚动/高度样式下沉到 base.css,避免写在 DOM 上 by xu 20260115
-                { class: "ss-sidebar-report__list" },
-                list.map(renderReport).filter(Boolean)
-              ),
-        ]
-      );
-    },
-  };
-
-  // 组件文档补全(JSDoc) by xu 20260108
-  /**
-   * SsSidebar(objList 右侧边栏容器)
-   *
-   * 用途:
-   * - 统一渲染顶部按钮栏(buttons)
-   * - 统一渲染中间业务面板(list panels,可拖拽调高度)
-   * - 统一渲染底部图表(chart panels,内部用 ss-sidebar-chart-hover)
-   *
-   * 调用示例:
-   * ```html
-   * <ss-sidebar :buttons="sidebarButtons" :panels="sidebarPanels" @remove="handleSidebarRemove" />
-   * ```
-   *
-   * Props:
-   * - `buttons`:顶部按钮配置数组
-   * - `panels`:分区配置数组(`type: 'list' | 'chart'`)
-   *
-   * Events(向外透传):
-   * - `remove(item)`:来自 list 面板移除
-   * - `select(item)`:来自 list 面板选择(如后续需要)
-   */
-  const SsSidebar = {
-    name: "SsSidebar",
-    props: {
-      buttons: { type: Array, default: () => [] },
-      charts: { type: Array, default: () => [] },
-      list: { type: Array, default: () => [] }, // legacy
-      listMode: { type: String, default: "search" }, // legacy
-      panels: { type: Array, default: () => [] },
-    },
-    emits: ["select", "remove"],
-    data() {
-      return {
-        // 业务面板高度(索引 -> px) by xu 20260106
-        sectionHeights: [],
-        sectionCollapsed: [], // 功能说明:面板折叠状态(sectionPanels 索引) by xu 20260116
-        sectionHeightsExpanded: [], // 功能说明:面板展开高度缓存(用于折叠后恢复) by xu 20260116
-        sectionLastItemCounts: [], // 功能说明:记录栏目数据量,供“无数据默认关闭/已选自动展开”规则复用 by xu 20260313
-        chartCollapsed: [], // 功能说明:图表面板折叠状态(chartPanels 索引) by xu 20260116
-        chartHeaderTitleDownAt: [], // 功能说明:双击检测绑定到 chart 标题区 by xu 20260116
-        reportCollapsed: [], // 功能说明:报表面板折叠状态(reportPanels 索引) by xu 20260116
-        resizeTimer: null,
-        resizing: false,
-        resizeIndex: -1,
-        resizeStartY: 0,
-        resizeStartPrev: 0,
-        resizeStartNext: 0,
-        __resizeMoveHandler: null, // 功能说明:显式绑定 this 的 pointermove handler,避免 addEventListener 场景 this 丢失导致拖拽无效 by xu 20260122
-        __resizeEndHandler: null, // 功能说明:显式绑定 this 的 pointerup handler,确保能正确结束拖拽 by xu 20260122
-        __resizeCancelHandler: null, // 功能说明:显式绑定 this 的 pointercancel handler,触控取消也能收尾 by xu 20260122
-        __resizePrevSectionEl: null, // 功能说明:拖拽时直接写 DOM 高度(修复响应式更新不生效) by xu 20260122
-        __resizeNextSectionEl: null, // 功能说明:拖拽时直接写 DOM 高度(修复响应式更新不生效) by xu 20260122
-      };
-    },
-    methods: {
-      // 初始化默认高度(只在第一次/面板数量变化时补齐) by xu 20260106
-      ensureSectionHeights(sectionCount) {
-        if (!Array.isArray(this.sectionHeights)) this.sectionHeights = [];
-        if (this.sectionHeights.length === sectionCount) return;
-        const next = [];
-        for (let i = 0; i < sectionCount; i++) {
-          next[i] = this.sectionHeights[i] ?? 190; // 默认高度 by xu 20260106
-        }
-        this.sectionHeights = next;
-        // 功能说明:面板数量变化时补齐折叠/缓存数组长度 by xu 20260116
-        this.sectionCollapsed = Array.from(
-          { length: sectionCount },
-          (_, i) => !!this.sectionCollapsed?.[i]
-        );
-        this.sectionHeightsExpanded = Array.from(
-          { length: sectionCount },
-          (_, i) => this.sectionHeightsExpanded?.[i] ?? null
-        );
-        this.sectionLastItemCounts = Array.from(
-          { length: sectionCount },
-          (_, i) => Number(this.sectionLastItemCounts?.[i] ?? 0) || 0
-        );
-      },
-      __getPanelsForSectionState(panelsInput) {
-        return (panelsInput || []).length
-          ? panelsInput
-          : this.list?.length
-          ? [
-              {
-                type: "list",
-                title: "已选",
-                icon: "",
-                mode: this.listMode,
-                items: this.list,
-              },
-            ]
-          : [];
-      },
-      __getSectionPanelsForState(panelsInput) {
-        return this.__getPanelsForSectionState(panelsInput)
-          .filter((p) => {
-            const k = String(p?._tabKey ?? "")
-              .trim()
-              .toLowerCase();
-            const t = String(p?.title ?? "").trim();
-            if (k === "rbarobj") return false;
-            if (t === "对象") return false;
-            return true;
-          })
-          .filter((p) => p?.type !== "chart" && p?.type !== "report-table");
-      },
-      __getSectionPanelCount(panel) {
-        const explicitCount = Number(panel?.count);
-        if (Number.isFinite(explicitCount)) return explicitCount;
-        return Array.isArray(panel?.items) ? panel.items.length : 0;
-      },
-      __setSectionCollapsedState(index, collapsed) {
-        const i = Number(index);
-        if (isNaN(i) || i < 0) return;
-        const nextCollapsed = !!collapsed;
-        const collapsedHeight = 37;
-        const cur = !!this.sectionCollapsed?.[i];
-        const currentHeight = Number(this.sectionHeights?.[i] ?? 190) || 190;
-        if (nextCollapsed === cur) {
-          if (nextCollapsed && currentHeight !== collapsedHeight) {
-            this.sectionHeights.splice(i, 1, collapsedHeight);
-          }
-          return;
-        }
-        if (nextCollapsed) {
-          this.sectionHeightsExpanded[i] =
-            currentHeight > collapsedHeight
-              ? currentHeight
-              : Number(this.sectionHeightsExpanded?.[i] ?? 190) || 190;
-          this.sectionHeights.splice(i, 1, collapsedHeight);
-        } else {
-          const restore =
-            Number(this.sectionHeightsExpanded?.[i] ?? 190) || 190;
-          this.sectionHeights.splice(i, 1, restore);
-        }
-        this.sectionCollapsed.splice(i, 1, nextCollapsed);
-      },
-      __syncSectionAutoCollapse(panelsInput) {
-        const sectionPanels = this.__getSectionPanelsForState(panelsInput);
-        const sectionCount = sectionPanels.length;
-        this.ensureSectionHeights(sectionCount);
-        const prevCounts = Array.isArray(this.sectionLastItemCounts)
-          ? this.sectionLastItemCounts.slice()
-          : [];
-        const nextCounts = Array.from({ length: sectionCount }, (_, i) =>
-          this.__getSectionPanelCount(sectionPanels[i])
-        );
-        this.sectionLastItemCounts = nextCounts;
-        sectionPanels.forEach((panel, index) => {
-          const count = Number(nextCounts[index] ?? 0) || 0;
-          const prevCount = Number(prevCounts[index] ?? 0) || 0;
-          const title = String(panel?.title ?? "").trim();
-          if (count <= 0) {
-            this.__setSectionCollapsedState(index, true);
-            return;
-          }
-          if (title === "已选" && count > prevCount) {
-            this.__setSectionCollapsedState(index, false);
-          }
-        });
-      },
-      toggleSectionCollapse(index) {
-        // 功能说明:双击 header 折叠/展开 section 面板(仅控制高度与内容渲染) by xu 20260116
-        const i = Number(index);
-        if (isNaN(i) || i < 0) return;
-        // 功能说明:加更细粒度日志,定位“多面板折叠无视觉效果”的根因(高度是否真的变、DOM 是否更新) by xu 20260116
-        const collapsedHeight = 37; // 功能说明:header(35) + panel 边框(2),避免 flex shrink 导致 header 变 25px by xu 20260116
-        const cur = !!this.sectionCollapsed?.[i];
-        console.log("[SsSidebar] toggleSectionCollapse", {
-          index: i,
-          to: !cur,
-          prevHeight: this.sectionHeights?.[i],
-        }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        if (!cur) {
-          this.sectionHeightsExpanded[i] = this.sectionHeights[i] ?? 190;
-          this.sectionHeights.splice(i, 1, collapsedHeight);
-        } else {
-          const restore =
-            Number(this.sectionHeightsExpanded?.[i] ?? 190) || 190;
-          this.sectionHeights.splice(i, 1, restore);
-        }
-        this.sectionCollapsed.splice(i, 1, !cur);
-        console.log("[SsSidebar] section state(after)", {
-          index: i,
-          height: this.sectionHeights?.[i],
-          collapsed: this.sectionCollapsed?.[i],
-          allHeights: Array.from(this.sectionHeights || []),
-          allCollapsed: Array.from(this.sectionCollapsed || []),
-        }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        Vue.nextTick(() => {
-          try {
-            const root = this.$el;
-            const sections = root?.querySelectorAll?.(".ss-sidebar-section");
-            const el = sections?.[i];
-            const rectH = el?.getBoundingClientRect?.().height;
-            console.log("[SsSidebar] section dom(beforeFix)", {
-              index: i,
-              styleHeight: el?.style?.height,
-              rectH,
-            }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-
-            // 功能说明:若渲染未把 height patch 到 DOM,则在 nextTick 强制同步一次(并打印) by xu 20260116
-            const targetH =
-              (Number(this.sectionHeights?.[i] ?? 190) || 190) + "px";
-            if (el && el.style && el.style.height !== targetH) {
-              el.style.height = targetH;
-            }
-            if (el?.classList) {
-              el.classList.toggle("is-collapsed", !!this.sectionCollapsed?.[i]);
-            }
-            const rectAfter = el?.getBoundingClientRect?.().height;
-            console.log("[SsSidebar] section dom(afterFix)", {
-              index: i,
-              styleHeight: el?.style?.height,
-              rectH: rectAfter,
-              targetH,
-            }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-          } catch (err) {
-            console.log("[SsSidebar] section dom(afterTick) error", err); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-          }
-        });
-      },
-      toggleChartCollapse(index) {
-        // 功能说明:双击 header 折叠/展开底部 chart 面板(隐藏/显示 chart-hover) by xu 20260116
-        const i = Number(index);
-        if (isNaN(i) || i < 0) return;
-        const cur = !!this.chartCollapsed?.[i];
-        console.log("[SsSidebar] toggleChartCollapse", { index: i, to: !cur }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        this.chartCollapsed.splice(i, 1, !cur);
-        console.log("[SsSidebar] chart state(after)", {
-          index: i,
-          collapsed: this.chartCollapsed?.[i],
-          allCollapsed: Array.from(this.chartCollapsed || []),
-        }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        Vue.nextTick(() => {
-          try {
-            const root = this.$el;
-            const el = root?.querySelector?.(
-              `.ss-sidebar-chart-panel[data-chart-idx="${i}"]`
-            );
-            console.log("[SsSidebar] chart dom(beforeFix)", {
-              index: i,
-              found: !!el,
-            }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-            if (el?.classList)
-              el.classList.toggle("is-collapsed", !!this.chartCollapsed?.[i]);
-            console.log("[SsSidebar] chart dom(afterFix)", {
-              index: i,
-              collapsed: !!this.chartCollapsed?.[i],
-            }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-          } catch (err) {
-            console.log("[SsSidebar] chart dom(afterTick) error", err); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-          }
-        });
-      },
-      toggleReportCollapse(index) {
-        // 功能说明:双击 header 折叠/展开底部 report-table 面板(隐藏/显示表格) by xu 20260116
-        const i = Number(index);
-        if (isNaN(i) || i < 0) return;
-        const cur = !!this.reportCollapsed?.[i];
-        console.log("[SsSidebar] toggleReportCollapse", { index: i, to: !cur }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        this.reportCollapsed.splice(i, 1, !cur);
-        console.log("[SsSidebar] report state(after)", {
-          index: i,
-          collapsed: this.reportCollapsed?.[i],
-          allCollapsed: Array.from(this.reportCollapsed || []),
-        }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-        Vue.nextTick(() => {
-          try {
-            const root = this.$el;
-            const el = root?.querySelector?.(
-              `.ss-sidebar-report-panel[data-report-idx="${i}"]`
-            );
-            console.log("[SsSidebar] report dom(beforeFix)", {
-              index: i,
-              found: !!el,
-            }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-            if (el?.classList)
-              el.classList.toggle("is-collapsed", !!this.reportCollapsed?.[i]);
-            console.log("[SsSidebar] report dom(afterFix)", {
-              index: i,
-              collapsed: !!this.reportCollapsed?.[i],
-            }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-          } catch (err) {
-            console.log("[SsSidebar] report dom(afterTick) error", err); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
-          }
-        });
-      },
-      startResize(index, e) {
-        if (e?.preventDefault) e.preventDefault();
-        if (e?.stopPropagation) e.stopPropagation();
-        if (this.resizing) return;
-
-        // 长按 0.5s 后才进入拖拽调高度 by xu 20260106
-        clearTimeout(this.resizeTimer);
-        // 功能说明:修复“长按拖拽偶发失效/卡死”——pointerup 早于 500ms 时必须取消 timer,否则 timer 触发后进入 resizing=true 且再也收不到 pointerup,导致后续都无法拖拽 by xu 20260122
-        const pointerId = e?.pointerId;
-        const cancelPendingResize = (ev) => {
-          try {
-            if (
-              pointerId != null &&
-              ev?.pointerId != null &&
-              ev.pointerId !== pointerId
-            )
-              return;
-          } catch (_) {}
-          clearTimeout(this.resizeTimer);
-          this.resizeTimer = null;
-          document.removeEventListener("pointerup", cancelPendingResize, true);
-          document.removeEventListener(
-            "pointercancel",
-            cancelPendingResize,
-            true
-          );
-        };
-        // 功能说明:用 document+capture 监听,避免 window 监听在部分容器/iframe 场景丢事件导致拖拽无响应 by xu 20260122
-        document.addEventListener("pointerup", cancelPendingResize, {
-          passive: false,
-          once: true,
-          capture: true,
-        });
-        document.addEventListener("pointercancel", cancelPendingResize, {
-          passive: false,
-          once: true,
-          capture: true,
-        });
-
-        const startY = e?.clientY ?? 0;
-        const gapEl = e?.currentTarget;
-        // 功能说明:记录 gap 前后 section 节点,拖拽过程中直接写入 style.height,避免某些环境下 Vue render 不刷新导致“拖拽无视觉变化” by xu 20260122
-        this.__resizePrevSectionEl = gapEl?.previousElementSibling || null;
-        this.__resizeNextSectionEl = gapEl?.nextElementSibling || null;
-        this.resizeTimer = setTimeout(() => {
-          // 定时器触发后进入拖拽态,移除“取消等待”监听,避免误取消 by xu 20260122
-          document.removeEventListener("pointerup", cancelPendingResize, true);
-          document.removeEventListener(
-            "pointercancel",
-            cancelPendingResize,
-            true
-          );
-          this.resizing = true;
-          this.resizeIndex = index;
-          this.resizeStartY = startY;
-          this.resizeStartPrev = this.sectionHeights[index] ?? 190;
-          this.resizeStartNext = this.sectionHeights[index + 1] ?? 190;
-
-          gapEl?.classList?.add("is-active");
-          try {
-            if (gapEl?.setPointerCapture && pointerId != null)
-              gapEl.setPointerCapture(pointerId);
-          } catch (_) {} // 功能说明:捕获 pointer,避免拖拽过程中移出窗口导致 pointermove 丢失 by xu 20260122
-
-          // 功能说明:用 document+capture,确保拖拽时 pointermove/up 不会被中途 stopPropagation 影响 by xu 20260122
-          document.addEventListener(
-            "pointermove",
-            this.__resizeMoveHandler || this.onResizeMove,
-            { passive: false, capture: true }
-          );
-          document.addEventListener(
-            "pointerup",
-            this.__resizeEndHandler || this.endResize,
-            { passive: false, once: true, capture: true }
-          );
-          document.addEventListener(
-            "pointercancel",
-            this.__resizeCancelHandler || this.endResize,
-            { passive: false, once: true, capture: true }
-          ); // 功能说明:触控/手势取消时也要结束拖拽 by xu 20260122
-        }, 500);
-      },
-      onResizeMove(e) {
-        if (!this.resizing) return;
-        if (e?.preventDefault) e.preventDefault();
-        const dy = (e?.clientY ?? 0) - this.resizeStartY;
-
-        const minPanelHeight = 83; // header(35) + listMin(48) by xu 20260106
-        const prev = Math.max(minPanelHeight, this.resizeStartPrev + dy);
-        const next = Math.max(minPanelHeight, this.resizeStartNext - dy);
-
-        // 若其中一个达到最小值,则停止继续挤压 by xu 20260106
-        const adjustedDy = prev - this.resizeStartPrev;
-        const nextAdjusted = this.resizeStartNext - adjustedDy;
-        const appliedPrev = prev;
-        const appliedNext = Math.max(minPanelHeight, nextAdjusted);
-        this.sectionHeights.splice(this.resizeIndex, 1, appliedPrev);
-        this.sectionHeights.splice(this.resizeIndex + 1, 1, appliedNext);
-        // 功能说明:强制触发一次 sectionHeights 引用变化,避免某些运行时环境下 splice 未触发视图更新导致“拖拽没反应” by xu 20260122
-        this.sectionHeights = (this.sectionHeights || []).slice();
-        // 功能说明:兜底——直接写 DOM 的 height,确保视觉立即响应(用于排查/修复某些环境下 render 不更新) by xu 20260122
-        try {
-          if (this.__resizePrevSectionEl?.style)
-            this.__resizePrevSectionEl.style.height = appliedPrev + "px";
-          if (this.__resizeNextSectionEl?.style)
-            this.__resizeNextSectionEl.style.height = appliedNext + "px";
-        } catch (_) {}
-      },
-      endResize(e) {
-        clearTimeout(this.resizeTimer);
-        this.resizeTimer = null;
-        if (!this.resizing) return;
-        if (e?.preventDefault) e.preventDefault();
-
-        const activeGaps = document.querySelectorAll(
-          ".ss-sidebar-gap.is-active"
-        );
-        activeGaps.forEach((g) => g.classList.remove("is-active"));
-
-        this.resizing = false;
-        this.resizeIndex = -1;
-        this.__resizePrevSectionEl = null; // 功能说明:释放 DOM 引用,避免内存泄漏 by xu 20260122
-        this.__resizeNextSectionEl = null; // 功能说明:释放 DOM 引用,避免内存泄漏 by xu 20260122
-        document.removeEventListener(
-          "pointermove",
-          this.__resizeMoveHandler || this.onResizeMove,
-          true
-        );
-        document.removeEventListener(
-          "pointercancel",
-          this.__resizeCancelHandler || this.endResize,
-          true
-        ); // 功能说明:清理 cancel 监听,避免残留 by xu 20260122
-      },
-    },
-    watch: {
-      panels: {
-        handler(nextPanels) {
-          this.__syncSectionAutoCollapse(nextPanels);
-        },
-        deep: true,
-        immediate: true,
-      },
-      list: {
-        handler(nextList) {
-          if ((this.panels || []).length) return;
-          this.__syncSectionAutoCollapse(nextList);
-        },
-        deep: true,
-        immediate: true,
-      },
-    },
-    mounted() {
-      clearTimeout(this.resizeTimer);
-      this.resizeTimer = null;
-      // 功能说明:绑定拖拽事件 handler(用于 add/removeEventListener) by xu 20260122
-      if (!this.__resizeMoveHandler)
-        this.__resizeMoveHandler = (e) => this.onResizeMove?.(e);
-      if (!this.__resizeEndHandler)
-        this.__resizeEndHandler = (e) => this.endResize?.(e);
-      if (!this.__resizeCancelHandler)
-        this.__resizeCancelHandler = (e) => this.endResize?.(e);
-      // 功能说明:暂时回退为固定底部留白方案(CSS 控制),后续再定位遮挡根因 by xu 20260115
-    },
-    beforeUnmount() {
-      clearTimeout(this.resizeTimer);
-      this.resizeTimer = null;
-      document.removeEventListener(
-        "pointermove",
-        this.__resizeMoveHandler || this.onResizeMove,
-        true
-      );
-      document.removeEventListener(
-        "pointerup",
-        this.__resizeEndHandler || this.endResize,
-        true
-      );
-      document.removeEventListener(
-        "pointercancel",
-        this.__resizeCancelHandler || this.endResize,
-        true
-      );
-    },
-    render() {
-      const SsSidebarButtonsComp = Vue.resolveComponent("ss-sidebar-buttons");
-      const SsSidebarChartComp = Vue.resolveComponent("ss-sidebar-chart");
-      const SsSidebarListComp = Vue.resolveComponent("ss-sidebar-list");
-      const SsSidebarReportTableComp = Vue.resolveComponent(
-        "ss-sidebar-report-table"
-      );
-      const SsIcon = Vue.resolveComponent("ss-icon");
-
-      // 支持 panels(多分区),list/listMode 作为 legacy 兜底 by xu 20260106
-      const panels = (this.panels || []).length
-        ? this.panels
-        : this.list?.length
-        ? [
-            {
-              type: "list",
-              title: "已选",
-              icon: "",
-              mode: this.listMode,
-              items: this.list,
-            },
-          ]
-        : [];
-      // 功能说明:右侧栏强制移除“对象”tab(兼容后端返回 rbarObj/rbarobj 或直接返回中文“对象”标题) by xu 20260116
-      const panelsNoObj = (panels || []).filter((p) => {
-        const k = String(p?._tabKey ?? "")
-          .trim()
-          .toLowerCase();
-        const t = String(p?.title ?? "").trim();
-        if (k === "rbarobj") return false;
-        if (t === "对象") return false;
-        return true;
-      });
-      // 功能说明:report-table 作为底部报表区(放在统计图下面),不参与可拖拽 section 面板 by xu 20260115
-      const sectionPanels = panelsNoObj.filter(
-        (p) => p?.type !== "chart" && p?.type !== "report-table"
-      );
-      const chartPanels = panelsNoObj.filter((p) => p?.type === "chart");
-      const reportPanels = panelsNoObj.filter(
-        (p) => p?.type === "report-table"
-      );
-      this.ensureSectionHeights(sectionPanels.length);
-      // 功能说明:补齐 chart/report 折叠数组长度 by xu 20260116
-      this.chartCollapsed = Array.from(
-        { length: chartPanels.length },
-        (_, i) => !!this.chartCollapsed?.[i]
-      );
-      this.chartHeaderTitleDownAt = Array.from(
-        { length: chartPanels.length },
-        (_, i) => this.chartHeaderTitleDownAt?.[i] ?? 0
-      );
-      this.reportCollapsed = Array.from(
-        { length: reportPanels.length },
-        (_, i) => !!this.reportCollapsed?.[i]
-      );
-
-      return Vue.h("div", { class: "ss-sidebar" }, [
-        this.buttons?.length
-          ? Vue.h(SsSidebarButtonsComp, { items: this.buttons })
-          : null,
-        Vue.h(
-          "div",
-          { class: "ss-sidebar__inner" },
-          [
-            ...(this.charts || []).map((c) =>
-              Vue.h(SsSidebarChartComp, {
-                options: c?.options || {},
-                height: c?.height || "200px",
-              })
-            ),
-            // 可拖拽的业务面板容器 by xu 20260106
-            Vue.h(
-              "div",
-              { class: "ss-sidebar-sections", style: { flex: "0 0 auto" } },
-              sectionPanels.flatMap((p, idx) => {
-                const panelContent =
-                  p?.type === "report-table"
-                    ? Vue.h(SsSidebarReportTableComp, {
-                        key: `ss-sidebar-report-in-section-${idx}-${
-                          p?.title ?? ""
-                        }`,
-                        title: p?.title ?? "",
-                        icon: p?.icon ?? "",
-                        iconClass: p?.iconClass ?? "",
-                        items: p?.items || [],
-                        onOpen: (srv, ctx) => p?.onOpen?.(srv, ctx),
-                      })
-                    : Vue.h(SsSidebarListComp, {
-                        key: `ss-sidebar-list-${idx}-${p?.title ?? ""}`,
-                        title: p?.title ?? "",
-                        icon: p?.icon ?? "",
-                        count: p?.count ?? p?.items?.length ?? "",
-                        closable: !!p?.closable,
-                        searchable: !!p?.searchable,
-                        searchInHeader: !!p?.searchInHeader,
-                        headerFilters: p?.headerFilters || [],
-                        headerSearchButton: !!p?.headerSearchButton,
-                        searchPlaceholder: p?.searchPlaceholder ?? "搜索",
-                        itemLayout: p?.itemLayout ?? "simple",
-                        itemAction: p?.itemAction ?? true,
-                        collapsible: true,
-                        collapsed: !!this.sectionCollapsed?.[idx],
-                        onToggleCollapse: () =>
-                          this.toggleSectionCollapse?.(idx),
-                        iconClass: p?.iconClass ?? "",
-                        items: p?.items || [],
-                        mode: p?.mode || "search",
-                        onSelect: (item) => this.$emit("select", item),
-                        onRemove: (item) => this.$emit("remove", item),
-                        onClear: () => p?.onClear?.(),
-                        onSearch: (payload) => p?.onSearch?.(payload),
-                      });
-
-                const section = Vue.h(
-                  "div",
-                  {
-                    class: {
-                      "ss-sidebar-section": true,
-                      "is-collapsed": !!this.sectionCollapsed?.[idx],
-                    },
-                    key: `ss-sidebar-section-${idx}-${p?.type ?? "list"}-${
-                      p?.title ?? ""
-                    }`,
-                    style: {
-                      height: (this.sectionHeights[idx] ?? 190) + "px",
-                      flex: "0 0 auto",
-                    },
-                  },
-                  [
-                    Vue.h("div", { class: "ss-sidebar-section__content" }, [
-                      panelContent,
-                    ]),
-                  ]
-                );
-
-                const gap =
-                  idx < sectionPanels.length - 1
-                    ? Vue.h("div", {
-                        class: "ss-sidebar-gap",
-                        onPointerdown: (e) => this.startResize(idx, e),
-                      })
-                    : null;
-
-                return gap ? [section, gap] : [section];
-              })
-            ),
-            // 图表区固定在底部(hover 弹出大图) by xu 20260106
-            ...chartPanels.map((p, chartIdx) =>
-              Vue.h(
-                "div",
-                {
-                  class: {
-                    "ss-sidebar-panel": true,
-                    "ss-sidebar-chart-panel": true,
-                    "is-collapsed": !!this.chartCollapsed?.[chartIdx],
-                  },
-                  style: { flex: "0 0 auto", minHeight: "37px" },
-                  "data-chart-idx": chartIdx,
-                  key: `ss-sidebar-chart-${chartIdx}-${p?.title ?? ""}`,
-                },
-                [
-                  p?.title
-                    ? Vue.h(
-                        "div",
-                        {
-                          class: "ss-sidebar-panel__header",
-                          onDblclick: (e) => {
-                            e?.preventDefault?.();
-                            e?.stopPropagation?.();
-                            console.log("[SsSidebar] chart header dblclick", {
-                              idx: chartIdx,
-                              title: p?.title,
-                            });
-                            this.toggleChartCollapse?.(chartIdx);
-                          },
-                        },
-                        [
-                          Vue.h("div", { class: "ss-sidebar-panel__title" }, [
-                            p?.iconClass
-                              ? Vue.h(SsIcon, {
-                                  class:
-                                    p.iconClass + " ss-sidebar-panel__icon",
-                                })
-                              : p?.icon
-                              ? Vue.h(SsIcon, {
-                                  name: p.icon,
-                                  size: "16px",
-                                  class: "ss-sidebar-panel__icon",
-                                })
-                              : null,
-                            Vue.h("span", null, p.title),
-                          ]),
-                          Vue.h("div", { class: "ss-sidebar-panel__tools" }),
-                        ]
-                      )
-                    : null,
-                  this.chartCollapsed?.[chartIdx]
-                    ? null
-                    : Vue.h(Vue.resolveComponent("ss-sidebar-chart-hover"), {
-                        title: p?.title ?? "",
-                        iconClass: p?.iconClass ?? "",
-                        icon: p?.icon ?? "",
-                        options: p?.options || {},
-                        height: p?.height || "240px",
-                      }),
-                ]
-              )
-            ),
-            ...reportPanels.map((p, reportIdx) =>
-              Vue.h(
-                "div",
-                {
-                  class: {
-                    "ss-sidebar-report-panel-wrap": true,
-                    "ss-sidebar-report-panel": true,
-                    "is-collapsed": !!this.reportCollapsed?.[reportIdx],
-                  },
-                  style: { flex: "0 0 auto", minHeight: "37px" },
-                  "data-report-idx": reportIdx,
-                  key: `ss-sidebar-report-wrap-${reportIdx}-${p?.title ?? ""}`,
-                },
-                [
-                  Vue.h(SsSidebarReportTableComp, {
-                    key: `ss-sidebar-report-${reportIdx}-${p?.title ?? ""}`,
-                    title: p?.title ?? "",
-                    icon: p?.icon ?? "",
-                    iconClass: p?.iconClass ?? "",
-                    items: p?.items || [],
-                    collapsible: true,
-                    collapsed: !!this.reportCollapsed?.[reportIdx],
-                    onToggleCollapse: () =>
-                      this.toggleReportCollapse?.(reportIdx),
-                    onOpen: (srv, ctx) => p?.onOpen?.(srv, ctx),
-                  }),
-                ]
-              )
-            ),
-          ].filter(Boolean)
-        ),
-      ]);
-    },
-  };
-
-  // ss-folder-card 文件夹卡片
-  const SsFolderCard = {
-    name: "SsFolderCard",
-    props: {
-      item: {
-        type: Object,
-        required: true,
-      },
-    },
-    data() {
-      return {
-        showButtons: false,
-      };
-    },
-    emits: ["click", "change"],
-    setup(props, { emit }) {
-      const item = props.item;
-      const showChildren = ref(false);
-      const eventBus = window.parent.sharedEventBus;
-
-      const itemWidth = Vue.computed(() => {
-        // 功能说明:页面改为 grid 等分布局后,卡片宽度交给容器控制,这里固定 100% by xu 20260116
-        return "100%";
-      });
-      onMounted(() => {
-        eventBus.subscribe("folderPath", (path) => {
-          const currentPath = path || [];
-          // 如果当前文件夹不在路径中,则销毁视图
-          if (
-            !currentPath.some((item) => item.folder.title === props.item.title)
-          ) {
-            showChildren.value = false;
-          }
-        });
-      });
-      const onItemClick = (e) => {
-        if (e && e.stopPropagation) {
-          e.stopPropagation();
-        }
-        // 单击只处理 active 状态
-        if (e && e.currentTarget) {
-          const allListCards = document.querySelectorAll(
-            ".knowledge-item-container"
-          );
-          const allFolderCards = document.querySelectorAll(".ss-folder-list");
-
-          allListCards.forEach((card) => card.classList.remove("active"));
-          allFolderCards.forEach((card) => card.classList.remove("active"));
-
-          e.currentTarget.classList.add("active");
-        } else {
-          // 如果是数据对象,需要找到对应的 DOM 元素
-          const allListCards = document.querySelectorAll(
-            ".knowledge-item-container"
-          );
-          const allFolderCards = document.querySelectorAll(".ss-folder-list");
-          allListCards.forEach((card) => card.classList.remove("active"));
-          allFolderCards.forEach((card) => card.classList.remove("active"));
-          // 找到标题匹配的文件夹元素
-          const targetFolder = Array.from(allFolderCards).find((card) =>
-            card.textContent.includes(e.title)
-          );
-
-          if (targetFolder) {
-            targetFolder.classList.add("active");
-          }
-        }
-        emit("click", item);
-      };
-      // 修改双击处理函数
-      const handleFolderDblClick = (folder, e) => {
-        if (e) e.stopPropagation();
-        if (folder.children?.length) {
-          showChildren.value = true;
-          const pathInfo = {
-            title: folder.title,
-            folder: folder,
-          };
-          const currentPath = eventBus.getState("folderPath") || [];
-          if (!currentPath.some((item) => item.title === folder.title)) {
-            eventBus.publish("folderPath", [...currentPath, pathInfo]);
-          }
-        }
-      };
-      const onItemChange = (e, icon, index) => {
-        e.stopPropagation();
-        props.item.buttons[0].onclick();
-        // emit("change", { item: props.item, icon, index });
-      };
-      return {
-        item,
-        itemWidth,
-        showChildren,
-        onItemClick,
-        onItemChange,
-        handleFolderDblClick,
-      };
-    },
-    render() {
-      const SsCartListIcon = Vue.resolveComponent("ss-cart-list-icon");
-      if (this.showChildren) {
-        return h(SsFolderCartView, {
-          folder: this.item,
-        });
-      }
-      return Vue.h(
-        "div",
-        {
-          class: { "ss-folder-list": true, active: this.item.active },
-          onClick: (e) => {
-            e.stopPropagation();
-            this.onItemClick(e);
-          },
-          onDblclick: (e) => this.handleFolderDblClick(this.item, e),
-          style: { width: this.itemWidth },
-        },
-        [
-          // 文件夹特有的装饰元素
-          Vue.h("div", { class: "ss-folder-list-trapezoid" }),
-          Vue.h("div", { class: "ss-folder-list-top-transparent" }),
-          Vue.h("div", { class: "ss-folder-list-top" }),
-          Vue.h("div", { class: "ss-folder-list-right" }),
-
-          // header 部分(按钮)
-          this.item?.buttons?.length > 0 &&
-            Vue.h(
-              "div",
-              {
-                class: "header",
-                onMouseenter: () => (this.showButtons = true),
-                onMouseleave: () => (this.showButtons = false),
-                onClick: (e) => this.onItemChange(e, this.item.buttons[0], 0),
-              },
-              [
-                // this.item?.buttons?.length > 0 &&
-                Vue.h("div", {
-                  class: "cart-list-setting cart-list-icon",
-                  title: this.item?.buttons?.[0]?.title,
-                }),
-
-                // this.item?.buttons?.length > 0 &&
-                this.showButtons &&
-                  this.item?.buttons?.length > 1 &&
-                  Vue.h(
-                    "div",
-                    {
-                      class: "cart-list-button-popup",
-                    },
-                    this.item.buttons.map((btn) =>
-                      Vue.h(
-                        "div",
-                        {
-                          onClick: (e) => {
-                            e.stopPropagation();
-                            btn.onclick?.();
-                          },
-                        },
-                        [
-                          btn.class &&
-                            Vue.h(SsCartListIcon, {
-                              class: [btn.class],
-                            }),
-                          Vue.h("span", null, btn.title),
-                        ]
-                      )
-                    )
-                  ),
-              ]
-            ),
-          // body 部分
-          Vue.h("div", { class: "body" }, [
-            Vue.h("div", { class: "box-header" }, [
-              Vue.h("div", null, this.item.title),
-            ]),
-            Vue.h(
-              "div",
-              {
-                class: !this.item.thumb ? "no-thumb box-body" : "box-body",
-              },
-              [
-                this.item.thumb
-                  ? Vue.h("div", { class: "left" }, [
-                      Vue.h("img", {
-                        src: this.item.thumb,
-                        alt: "Thumbnail",
-                        class: "imgUnHandle",
-                        style: {
-                          "object-fit": "cover",
-                          width: "100%",
-                          height: "100%",
-                        },
-                      }),
-                    ])
-                  : null,
-                Vue.h("div", { class: "right" }, [
-                  ...this.item.tags.map((tag) => {
-                    const [key, value] = Object.entries(tag)[0];
-                    return Vue.h(
-                      "div",
-                      {
-                        class: "title",
-                        title: `${key}: ${value}`,
-                      },
-                      `${key}: ${value}`
-                    );
-                  }),
-                ]),
-              ]
-            ),
-          ]),
-        ]
-      );
-    },
-  };
-  // SsFolderCartView 组件 - 用于显示文件夹内容
-  const SsFolderCartView = {
-    name: "SsFolderCartView",
-    props: {
-      folder: {
-        type: Object,
-        required: true,
-      },
-    },
-    emits: ["click"],
-    setup(props, { emit }) {
-      const eventBus = window.parent.sharedEventBus;
-      const currentFolder = ref(props.folder);
-      const showChildren = ref(false);
-
-      const onItemClick = (e) => {
-        if (e && e.stopPropagation) {
-          e.stopPropagation();
-        }
-        // 单击只处理 active 状态
-        if (e && e.currentTarget) {
-          const allListCards = document.querySelectorAll(
-            ".knowledge-item-container"
-          );
-          const allFolderCards = document.querySelectorAll(".ss-folder-list");
-
-          allListCards.forEach((card) => card.classList.remove("active"));
-          allFolderCards.forEach((card) => card.classList.remove("active"));
-
-          e.currentTarget.classList.add("active");
-        } else {
-          // 如果是数据对象,需要找到对应的 DOM 元素
-          const allListCards = document.querySelectorAll(
-            ".knowledge-item-container"
-          );
-          const allFolderCards = document.querySelectorAll(".ss-folder-list");
-
-          allListCards.forEach((card) => card.classList.remove("active"));
-          allFolderCards.forEach((card) => card.classList.remove("active"));
-
-          // 找到标题匹配的文件夹元素
-          const targetFolder = Array.from(allFolderCards).find((card) =>
-            card.textContent.includes(e.title)
-          );
-
-          if (targetFolder) {
-            targetFolder.classList.add("active");
-          }
-        }
-        emit("click", props.folder);
-      };
-      const handleFolderDblClick = (folder, e) => {
-        if (e) e.stopPropagation();
-        if (folder.children?.length) {
-          showChildren.value = true;
-          const pathInfo = {
-            title: folder.title,
-            folder: folder,
-          };
-          const currentPath = eventBus.getState("folderPath") || [];
-          if (!currentPath.some((item) => item.title === folder.title)) {
-            eventBus.publish("folderPath", [...currentPath, pathInfo]);
-            currentFolder.value = folder;
-          }
-        }
-      };
-
-      const goBack = (targetFolder) => {
-        if (targetFolder === null) {
-          // 返回根目录
-          eventBus.publish("folderPath", []);
-        } else {
-          currentFolder.value = targetFolder;
-        }
-      };
-
-      return {
-        currentFolder,
-        showChildren,
-        onItemClick,
-        handleFolderDblClick,
-        goBack,
-      };
-    },
-
-    render() {
-      return h(
-        "div",
-        {
-          class: "page-container",
-          style: {
-            position: "fixed",
-            top: 0,
-            left: 0,
-            width: "100%",
-            height: "100%",
-            background: "var(--lightgray)",
-            padding: "20px 0",
-            zIndex: 1000,
-          },
-        },
-        [
-          // 搜索栏
-          h("div", { class: "search-bar" }, [
-            h("div", { class: "search-bar-contaienr" }, [
-              h(SsBreadcrumb, {
-                level: {
-                  onBack: this.goBack,
-                },
-              }),
-            ]),
-          ]),
-
-          // 内容区域
-          h(
-            "div",
-            {
-              class: "content-area item-content-area",
-              style: { gap: "20px" },
-            },
-            [
-              ...(this.currentFolder.children || []).map((child, index) =>
-                h(child.children ? SsFolderCard : SsListCard, {
-                  key: index,
-                  item: child,
-                  onClick: (e) => this.onItemClick(e),
-                  onDblclick: (e) => this.handleFolderDblClick(child, e),
-                })
-              ),
-            ]
-          ),
-        ]
-      );
-    },
-  };
-
-  // ss-page分页
-  const SsPage = {
-    name: "SsPage",
-    props: {
-      total: {
-        type: Number,
-        required: true,
-      },
-
-      size: {
-        type: Number,
-        default: 10,
-      },
-      page: {
-        type: Number,
-        default: 1,
-      },
-      onChange: {
-        type: Function,
-        default: () => {},
-      },
-    },
-    setup(props) {
-      const totalItems = ref(props.total); // 总条目数
-      const totalPages = ref(Math.ceil(props.total / props.size));
-      const currentPage = ref(props.page); // 当前页码
-
-      // 计算显示的信息
-      const pageInfo = ref(
-        `共${totalItems.value}条,第 ${currentPage.value}/${totalPages.value} 页`
-      );
-
-      // 上一页的逻辑
-      const goToPreviousPage = (e) => {
-        e.preventDefault(); // 阻止默认行为
-        if (currentPage.value > 1) {
-          currentPage.value -= 1;
-          updatePageInfo();
-          props.onChange?.({
-            pageNo: currentPage.value, // 当前页码
-            rowNumPer: props.size, // 每页条数
-            rowNum: props.total, // 总记录数
-          });
-        }
-      };
-
-      // 下一页的逻辑
-      const goToNextPage = (e) => {
-        e.preventDefault(); // 阻止默认行为
-        if (currentPage.value < totalPages.value) {
-          currentPage.value += 1;
-          updatePageInfo();
-          props.onChange?.({
-            pageNo: currentPage.value, // 当前页码
-            rowNumPer: props.size, // 每页条数
-            rowNum: props.total, // 总记录数
-          });
-        }
-      };
-
-      // 更新页码信息的函数
-      const updatePageInfo = () => {
-        pageInfo.value = `共${totalItems.value}条,第 ${currentPage.value}/${totalPages.value} 页`;
-      };
-
-      return {
-        pageInfo,
-        totalPages,
-        goToPreviousPage,
-        goToNextPage,
-      };
-    },
-
-    render(props, { slots, emit }) {
-      return Vue.h("div", { class: "pager-container" }, [
-        Vue.h("input", { type: "hidden", name: "rowNum", value: props.total }),
-        Vue.h("input", {
-          type: "hidden",
-          name: "rowNumPer",
-          value: props.size,
-        }),
-        Vue.h("input", {
-          type: "hidden",
-          name: "pageCount",
-          value: this.totalPages,
-        }),
-        Vue.h("input", { type: "hidden", name: "pageNo", value: props.page }),
-        Vue.h("div", { class: "pager-content" }, [
-          Vue.h("div", { class: "info" }, this.pageInfo),
-          Vue.h(
-            "div",
-            { class: "btn" },
-            Vue.h(
-              "button",
-              { onClick: (e) => this.goToPreviousPage(e) },
-              "上一页"
-            )
-          ),
-          Vue.h(
-            "div",
-            { class: "btn" },
-            Vue.h("button", { onClick: (e) => this.goToNextPage(e) }, "下一页")
-          ),
-        ]),
-      ]);
-    },
-  };
-  // ss-right-info 一级页面右边栏
-  const SSRightInfo = {
-    name: "SSRightInfo",
-    setup() {
-      // 初始化响应式数据
-      const item = ref({
-        thumb: "images/example/project-img.png", // 更换为适合你项目的实际路径
-        title: "工业和信息化产业高质量发展资金",
-      });
-
-      return {
-        item,
-      };
-    },
-    render() {
-      return Vue.h("div", { class: "info-container" }, [
-        Vue.h("div", { class: "header" }, [
-          Vue.h("div", [
-            Vue.h("img", {
-              src: this.item.thumb,
-              class: "imgUnHandle",
-              style: { "object-fit": "cover", width: "100%", height: "100%" },
-            }), // 将 ImageViewer 替换为 img 标签
-          ]),
-          Vue.h("div", [Vue.h("div", this.item.title)]),
-        ]),
-        Vue.h("div", { class: "section-container" }, [
-          Vue.h("div", { class: "section" }, [
-            Vue.h("div", { class: "title" }, "合同"),
-            Vue.h("div", { class: "text" }, "合同总金额:42,399,320"),
-            Vue.h(
-              "div",
-              { class: "a" },
-              "《工业和信息化产业高质量发展资金补助合同》"
-            ),
-          ]),
-          Vue.h("div", { class: "section" }, [
-            Vue.h("div", { class: "title" }, "发票"),
-            Vue.h("div", { class: "text" }, "应开发票总额:42,399,320"),
-            Vue.h("div", { class: "text" }, "已开发票金额:17,235,345"),
-            Vue.h("div", { class: "text" }, "未开发票金额:25,163,975"),
-          ]),
-          Vue.h("div", { class: "section" }, [
-            Vue.h("div", { class: "title" }, "项目组成员"),
-            Vue.h("div", { class: "text" }, "我司:3人"),
-            Vue.h("div", { class: "text" }, "对方:2人"),
-            Vue.h("div", { class: "text" }, "项目负责人:张三"),
-          ]),
-          Vue.h("div", { class: "section" }, [
-            Vue.h("div", { class: "title" }, "采购"),
-            Vue.h("div", { class: "text" }, "总额:999,320"),
-            Vue.h("div", { class: "text" }, "已付金额:335,345"),
-            Vue.h("div", { class: "text" }, "未付金额:663,975"),
-          ]),
-        ]),
-      ]);
-    },
-  };
-  //
-  const SsSuccessPopup = {
-    name: "SsSuccessPopup",
-    props: {
-      right: {
-        type: String,
-        default: "20px",
-      },
-      bottom: {
-        type: String,
-        default: "calc(100% + 5px)",
-      },
-    },
-    setup(props, { expose }) {
-      // 响应式状态:是否可见
-      const visible = ref(false);
-
-      // 计算样式
-      const style = computed(() => {
-        return {
-          "--message-dialog-right": props.right,
-          "--message-dialog-bottom": props.bottom,
-        };
-      });
-
-      // 显示对话框的方法
-      const show = () => {
-        visible.value = true;
-      };
-
-      // 隐藏对话框的方法
-      const hide = () => {
-        visible.value = false;
-      };
-
-      // 将方法暴露给外部使用
-      expose({ show, hide });
-
-      // 返回渲染函数
-      return () => {
-        if (!visible.value) return null;
-        const SsIcon = resolveComponent("ss-icon");
-        return h(
-          "div",
-          {
-            class: "success-popup",
-            style: style.value,
-            onClick: (e) => e.stopPropagation(),
-          },
-          [
-            h("div", { class: "left" }, [
-              h("div", { class: "icon" }, [
-                h(SsIcon, { name: "check", size: "36px" }),
-              ]),
-            ]),
-            h("div", { class: "right" }, [
-              h("div", { class: "title" }, "提交成功"),
-              h("div", { class: "desc" }, "您的信息已成功提交。"),
-            ]),
-          ]
-        );
-      };
-    },
-  };
-  const SsErrorDialog = {
-    name: "SsErrorDialog",
-    setup(props, { emit }) {
-      const visible = ref(false);
-
-      const style = computed(() => {
-        return {};
-      });
-
-      const show = () => {
-        visible.value = true;
-      };
-
-      const hide = () => {
-        visible.value = false;
-      };
-
-      const onBack = () => {
-        emit("back");
-        hide();
-      };
-
-      return {
-        visible,
-        style,
-        show,
-        hide,
-        onBack,
-      };
-    },
-    render() {
-      const SsIcon = resolveComponent("ss-icon");
-      return this.visible
-        ? h(
-            "div",
-            {
-              class: "errorDialog",
-              style: this.style,
-              onClick: (event) => event.stopPropagation(),
-            },
-            [
-              h("div", { class: "body" }, [
-                h("div", { class: "left" }, [
-                  h("div", { class: "icon" }, [
-                    h(SsIcon, { name: "close", size: "36px" }),
-                  ]),
-                ]),
-                h("div", { class: "right" }, [
-                  h("div", { class: "title" }, "操作失败"),
-                  h("div", { class: "desc" }, "请点击返回以继续。"),
-                ]),
-              ]),
-              h("div", { class: "footer" }, [
-                h("div", { class: "left" }),
-                h("div", { class: "right" }, [
-                  h(
-                    "div",
-                    {
-                      class: "btn",
-                      onClick: this.onBack,
-                    },
-                    [h(SsIcon, { name: "arrow-left-line" }), h("div", "返回")]
-                  ),
-                ]),
-              ]),
-            ]
-          )
-        : null;
-    },
-  };
-  /**
-   * 审核链条
-   * @name ss-verify
-   * @param { Array } verify-list 审核节点列表
-   * @property { Array } verify-list 审核节点列表
-   * @example <ss-verify :verify-list="verifyList"></ss-verify>
-   * verify-list [
-   *    {
-   *        groupName: "",  // 群组名称
-   *        open: true, // 默认是否展开
-   *        children:[ //群组里的人员
-   *           {
-   *            thumb: "images/example/user-4.png", // 头像
-   *             name: "李丽思 ", // 姓名
-   *             role: "人事处处长",  // 角色
-   *             description: "同意。",  // 审核意见
-   *             time: "09:38 08/11", // 审核时间
-   *             video: false,  // false不显示/true显示 视频icon
-   *             link: false,  // false不显示/true显示 链接icon 后续应该是附件
-   *           }
-   *        ]
-   *    }
-   *  ]
-   */
-  const SsVerify = {
-    name: "SsVerify",
-    props: {
-      verifyList: {
-        type: Array,
-        required: true,
-      },
-    },
-    setup(props) {
-      const toggleOpen = (item) => {
-        item.open = !item.open;
-      };
-      onMounted(() => {
-        setTimeout(() => {
-          const lastOpenGroup = document.querySelector(".group-item-last-open");
-          console.log("lastOpenGroup", lastOpenGroup);
-          if (lastOpenGroup) {
-            const nodes = $(lastOpenGroup).find(".verify-node-container");
-            if (nodes.length) {
-              let totalHeight = 0;
-              const gudingHeight = 100;
-
-              if (nodes.length === 1) {
-                totalHeight = gudingHeight;
-              } else {
-                // 累加除最后一个节点外的所有节点高度
-                for (let i = 0; i < nodes.length - 1; i++) {
-                  totalHeight += $(nodes[i]).outerHeight();
-                }
-                totalHeight += gudingHeight;
-              }
-
-              console.log("节点信息:", {
-                节点总数: nodes.length,
-                计算后的高度: totalHeight,
-              });
-
-              lastOpenGroup.style.setProperty(
-                "--group-line-height",
-                `${totalHeight}px`
-              );
-            }
-          }
-        }, 0);
-      });
-      return {
-        toggleOpen,
-      };
-    },
-    render() {
-      const SsIcon = resolveComponent("ss-icon");
-      const SsCommonIcon = resolveComponent("ss-common-icon");
-      const SsVerifyNode = resolveComponent("ss-verify-node");
-      return h(
-        "div",
-        { class: "verify-nodes" },
-        this.verifyList.map((item, i) =>
-          h(
-            "div",
-            {
-              key: i,
-              class: {
-                "group-item": true,
-                "group-item-last-open":
-                  i === this.verifyList.length - 1 && item.open,
-              },
-            },
-            [
-              h(
-                "div",
-                {
-                  class: "group-item-title",
-                  onClick: () => this.toggleOpen(item),
-                },
-                [
-                  h("div", { class: "icon" }, [
-                    item.open
-                      ? h(SsCommonIcon, { class: "common-icon-folder-open" })
-                      : h(SsCommonIcon, { class: "common-icon-folder-close" }),
-                    h(
-                      "div",
-                      {
-                        class: "num",
-                        style: { top: item.open ? "60%" : "55%" },
-                      },
-                      item.children?.length || 0
-                    ),
-                  ]),
-                  h("div", { class: "name" }, item.groupName),
-                ]
-              ),
-              item.open && item.children?.length > 0
-                ? h(
-                    "div",
-                    { class: "group-item-children" },
-                    item.children.map((citem, j) =>
-                      h(SsVerifyNode, {
-                        key: j,
-                        item: citem,
-                        // isGroup: i + 1 !== this.verifyList.length,
-                        isGroup: true,
-                      })
-                    )
-                  )
-                : null,
-            ]
-          )
-        )
-      );
-    },
-  };
-
-  /**
-   * 审核页面的审核节点
-   * @name ss-verify-node
-   * @param {Object} item 审核节点信息
-   * @param {Boolean} isGroup 是否为分组节点
-   */
-  const SsVerifyNode = {
-    name: "SsVerifyNode",
-    props: {
-      item: {
-        type: Object,
-        required: true,
-      },
-      isGroup: {
-        type: Boolean,
-        default: false,
-      },
-    },
-    render() {
-      const SsIcon = resolveComponent("ss-icon");
-      const SsCommonIcon = resolveComponent("ss-common-icon");
-      return Vue.h("div", { class: "verify-node-container" }, [
-        Vue.h("div", { class: "info" }, [
-          Vue.h("div", { class: "avatar" }, [
-            Vue.h("img", {
-              src: this.item.thumb,
-              style: {
-                width: "50px",
-                height: "50px",
-                borderRadius: "50%",
-              },
-            }),
-          ]),
-          Vue.h("div", { class: "desc" }, [
-            Vue.h("div", this.item.name),
-            Vue.h("div", this.item.role),
-          ]),
-          Vue.h("div", { class: "link" }, [
-            Vue.h("div", [
-              this.item.video
-                ? Vue.h(SsCommonIcon, { class: "common-icon-video" })
-                : null,
-              this.item.link
-                ? Vue.h(SsCommonIcon, {
-                    class: "common-icon-paper-clip",
-                  })
-                : null,
-            ]),
-          ]),
-        ]),
-        Vue.h(
-          "div",
-          {
-            class: {
-              description: true,
-              link: this.isGroup,
-            },
-            attrs: { "data-num": "3" },
-          },
-          [Vue.h("div", this.item.description)]
-        ),
-        Vue.h("div", { class: "time" }, this.item.time),
-      ]);
-    },
-  };
-  /**
-   * 智能识别图片的左侧图片播放 可以放大缩小旋转图片
-   * @name ss-orc-img-box
-   * @param { Object } image-obj 包含图片的url, 和图片的名称
-   *
-   */
-  const SsOrcImgBox = {
-    name: "SsOrcImgBox",
-    props: {
-      imageObj: {
-        type: Object,
-        required: true,
-      },
-    },
-    setup(props) {
-      const zoom = ref(1);
-      const rotation = ref(0);
-      const containerWidth = ref(0);
-      const containerHeight = ref(0);
-      const container = ref(null);
-      const imgPosition = ref({ x: 0, y: 0 });
-      const isDragging = ref(false);
-      const lastMousePosition = ref({ x: 0, y: 0 });
-      const imgStyle = computed(() => ({
-        width: `${zoom.value * 100}%`,
-        height: `${zoom.value * 100}%`,
-        transform: `rotate(${rotation.value}deg) translate(${imgPosition.value.x}px, ${imgPosition.value.y}px)`,
-        transformOrigin: "center center",
-        cursor: isDragging.value ? "grabbing" : "grab",
-      }));
-
-      const resetZoom = () => {
-        zoom.value = 1;
-        rotation.value = rotation.value + 90;
-        imgPosition.value = { x: 0, y: 0 };
-      };
-
-      const handleRangeChange = (event) => {
-        const value = event.target.value / 50; // 0 到 100 映射到 0 到 2 的缩放
-        zoom.value = Math.max(value, 0.1); // 设置最小缩放值为 0.1
-      };
-      const updateImgBoxDimensions = () => {
-        if (container.value) {
-          containerWidth.value = container.value.clientWidth;
-          containerHeight.value = container.value.clientHeight;
-        }
-      };
-      const onMouseDown = (event) => {
-        isDragging.value = true;
-        lastMousePosition.value = { x: event.clientX, y: event.clientY };
-      };
-
-      const onMouseMove = (event) => {
-        if (isDragging.value) {
-          const dx = event.clientX - lastMousePosition.value.x;
-          const dy = event.clientY - lastMousePosition.value.y;
-
-          // 防止旋转后拖动的x,y反转
-          // 首先将当前旋转角度从度数转换为弧度,因为 JavaScript 的 Math 库使用弧度
-          const angle = rotation.value * (Math.PI / 180);
-          // 使用基本的二维旋转矩阵将原始位移 dx 和 dy 转换为旋转后的位移 rotatedDx 和 rotatedDy。
-          const rotatedDx = dx * Math.cos(angle) + dy * Math.sin(angle);
-          const rotatedDy = dy * Math.cos(angle) - dx * Math.sin(angle);
-
-          imgPosition.value = {
-            x: imgPosition.value.x + rotatedDx,
-            y: imgPosition.value.y + rotatedDy,
-          };
-          lastMousePosition.value = { x: event.clientX, y: event.clientY };
-        }
-      };
-
-      const onMouseUp = () => {
-        isDragging.value = false;
-      };
-      onMounted(() => {
-        nextTick(() => {
-          updateImgBoxDimensions();
-          window.addEventListener("resize", updateImgBoxDimensions);
-          window.addEventListener("mousemove", onMouseMove);
-          window.addEventListener("mouseup", onMouseUp);
-        });
-      });
-
-      return {
-        zoom,
-        rotation,
-        container,
-        imgStyle,
-        resetZoom,
-        handleRangeChange,
-        containerWidth,
-        containerHeight,
-        onMouseDown,
-        imgPosition,
-      };
-    },
-    render() {
-      const SsIcon = resolveComponent("ss-icon");
-      return h("div", { class: "ocr-img-box" }, [
-        h("div", { class: "img-bar" }, [
-          h("div", this.imageObj.name),
-          h("div", { class: "action-bar" }, [
-            h("div", { class: "ocr-img-range-box" }, [
-              h("input", {
-                type: "range",
-                min: 0,
-                max: 100,
-                value: this.zoom * 50, // 初始位置为50
-                onInput: this.handleRangeChange,
-              }),
-              h("span", { class: "line" }),
-            ]),
-            h(SsIcon, {
-              name: "reset",
-              size: "26px",
-              onClick: this.resetZoom,
-            }),
-          ]),
-        ]),
-        h("div", { class: "img-viewer", ref: "container" }, [
-          h(
-            "div",
-            {
-              class: "img-box",
-              style: {
-                width: `${this.containerWidth}px`,
-                height: `${this.containerHeight}px`,
-                overflow: "hidden",
-                position: "relative",
-              },
-            },
-            [
-              h("img", {
-                src: this.imageObj.thumb,
-                style: this.imgStyle,
-                class: "zoomable-img",
-                onMousedown: this.onMouseDown,
-              }),
-            ]
-          ),
-        ]),
-      ]);
-    },
-  };
-  // 搜索输入框组件
-  const SsSearchInput = {
-    name: "SsSearchInput",
-    props: {
-      name: String,
-      placeholder: String,
-      width: {
-        type: String,
-        default: "100px",
-      },
-      modelValue: String,
-    },
-    emits: ["update:modelValue", "search"],
-    setup(props, { emit }) {
-      const handleInput = (e) => {
-        emit("update:modelValue", e.target.value);
-      };
-      const handleKeyup = (e) => {
-        if (e.key === "Enter") {
-          emit("search");
-        }
-      };
-
-      return { handleInput, handleKeyup };
-    },
-    render() {
-      return h(
-        "div",
-        {
-          class: "input",
-          style: this.width ? { width: this.width } : undefined,
-        },
-        [
-          h("input", {
-            name: this.name,
-            placeholder: this.placeholder,
-            value: this.modelValue,
-            onInput: this.handleInput,
-            onKeyup: this.handleKeyup,
-          }),
-        ]
-      );
-    },
-  };
-  // ss-search-date-picker 日期时间选择器组件
-  const SsSearchDatePicker = {
-    name: "SsSearchDatePicker",
-    props: {
-      modelValue: {
-        type: [String, Number, Date],
-        default: "",
-      },
-      name: {
-        type: String,
-        required: true,
-      },
-      type: {
-        type: String,
-        default: "date",
-        validator: (value) => ["date", "datetime", "time"].includes(value),
-      },
-      fmt: {
-        type: String,
-        default: null,
-      },
-      placeholder: {
-        type: String,
-        default: "",
-      },
-      width: {
-        type: String,
-        default: "100%",
-      },
-    },
-
-    emits: ["update:modelValue"],
-
-    setup(props, { emit }) {
-      const errMsg = ref("");
-      const validate = () => {
-        if (window.ssVm) {
-          const result = window.ssVm.validateField(props.name);
-          console.log("validate", window.ssVm.validateField(props.name));
-          errMsg.value = result.valid ? "" : result.message;
-        }
-      };
-      // 根据type确定默认格式
-      const defaultFormat = computed(() => {
-        switch (props.type) {
-          case "datetime":
-            return "YYYY-MM-DD HH:mm:ss";
-          case "date":
-            return "YYYY-MM-DD";
-          case "time":
-            return "HH:mm:ss";
-        }
-      });
-
-      const convertJavaFormatToElement = (javaFormat) => {
-        if (!javaFormat) return null;
-        return javaFormat
-          .replace("yyyy", "YYYY")
-          .replace("MM", "MM")
-          .replace("dd", "DD")
-          .replace("HH", "HH")
-          .replace("mm", "mm")
-          .replace("ss", "ss");
-      };
-
-      const finalFormat = computed(() => {
-        if (props.fmt) {
-          return convertJavaFormatToElement(props.fmt);
-        }
-        return defaultFormat.value;
-      });
-
-      // 使用 resolveComponent 获取组件
-      const ElDatePicker = resolveComponent("ElDatePicker");
-      const ElTimePicker = resolveComponent("ElTimePicker");
-      const SsFormIcon = resolveComponent("SsFormIcon");
-      const ElIcon = resolveComponent("ElIcon");
-      let useTimePicker = true;
-      //"yyyy-MM-dd HH:mm:ss";  "日期字符串格式在java的写法",传到本组件fmt属性也是按这个格式
-      if (props.fmt) {
-        //有fmt属性,则以fmt属性优先判断类型
-        if (/[dMy]/.test(props.fmt)) {
-          //如果有传入日期格式,且含年月日
-          useTimePicker = false;
-        } else {
-          useTimePicker = true;
-        }
-      } else if (props.type !== "time") {
-        useTimePicker = false;
-      }
-      const dateType = computed(() => {
-        const fmt = props.fmt || "";
-        if (fmt.includes("HH:mm:ss")) {
-          return "datetime";
-        } else if (fmt.includes("HH:mm")) {
-          return "datetime";
-        } else if (fmt.includes("mm:ss")) {
-          return "time";
-        }
-        return "date";
-      });
-      const handleValueUpdate = (val) => {
-        emit("update:modelValue", val);
-        emit("change", val); // 同时触发 change 事件
-        setTimeout(() => {
-          validate();
-        }, 50);
-      };
-      return () =>
-        h(
-          "div",
-          { class: "ss-search-date-picker", style: { width: props.width } },
-          [
-            h("input", {
-              type: "hidden",
-              name: props.name,
-              value: props.modelValue,
-            }),
-            h(useTimePicker ? ElTimePicker : ElDatePicker, {
-              modelValue: props.modelValue,
-              "onUpdate:modelValue": handleValueUpdate,
-              type: dateType.value,
-              format: finalFormat.value,
-              "value-format": finalFormat.value,
-              clearable: true,
-              placeholder: props.placeholder,
-              class: "custom-date-picker", // 用于自定义样式
-              "time-arrow-control": props.type === "datetime", // 修改这里
-              size: "large", // 添加这一行,改为 large 尺寸
-              style: { width: "100%" },
-              "prefix-icon": h(SsFormIcon, { class: "form-icon-time" }),
-            }),
-          ]
-        );
-    },
-  };
-  // 搜索按钮组件(包含下拉按钮)
-  const SsSearchButton = {
-    name: "SsSearchButton",
-    props: {
-      text: {
-        type: String,
-        required: true,
-      },
-      iconClass: {
-        type: String,
-        required: false,
-      },
-      opt: {
-        type: Array,
-        default: () => [],
-      },
-      checkId: {
-        type: String,
-        default: "0",
-      },
-      width: {
-        //add by Ben(20251225)
-        type: String,
-        required: false,
-      },
-      id: {
-        //add by Ben(20251225)
-        type: String,
-        required: false,
-      },
-    },
-    emits: ["click"],
-    setup(props, { emit }) {
-      const currentId = ref(props.checkId || "0");
-      const showPopup = ref(false);
-
-      const handleMouseEnter = () => {
-        showPopup.value = true;
-      };
-
-      const handleMouseLeave = () => {
-        showPopup.value = false;
-      };
-
-      // 添加点击事件处理,阻止默认行为
-      const handleClick = (e) => {
-        e.preventDefault();
-        if (props.opt?.length > 0) {
-          const selectedOption =
-            currentId.value === "0"
-              ? props.opt[0]
-              : props.opt.find((opt) => opt.id === currentId.value);
-
-          if (selectedOption) {
-            selectedOption.callback?.();
-          }
-        } else {
-          emit("click", e);
-        }
-      };
-      // 获取显示文本
-      const getDisplayText = () => {
-        if (!props.opt?.length) return props.text;
-
-        const selectedOption =
-          currentId.value === "0"
-            ? props.opt[0]
-            : props.opt.find((opt) => opt.id === currentId.value);
-
-        return selectedOption ? selectedOption.desc : props.opt[0].desc;
-      };
-
-      return () =>
-        h(
-          "button",
-          {
-            class:
-              props.opt?.length > 0
-                ? "ss-drop-button ss-drop-button-more"
-                : "ss-drop-button",
-            type: "button", // 明确指定按钮类型为 button
-            onMouseenter: handleMouseEnter,
-            onMouseleave: handleMouseLeave,
-            onClick: handleClick, // 添加点击事件处理
-            style: { width: props.width }, //add by Ben(20251225)
-            id: props.id, //add by Ben(20251225)
-          },
-          [
-            props.iconClass
-              ? h("span", {
-                  class: props.iconClass,
-                  style: { fontFamily: "iconfont", marginRight: "5px" },
-                })
-              : null,
-            h("span", getDisplayText()),
-            props.opt.length > 0 &&
-              showPopup.value &&
-              h(
-                "div",
-                {
-                  class: "popup",
-                },
-                props.opt.map((item) =>
-                  h(
-                    "div",
-                    {
-                      onClick: (e) => {
-                        e.preventDefault(); // 选项点击也阻止默认行为
-                        e.stopPropagation(); // 阻止事件冒泡
-                        currentId.value = item.id; // 更新当前选中的ID
-                        item.callback();
-                        showPopup.value = false; // 选择后关闭弹窗
-                      },
-                    },
-                    item.desc
-                  )
-                )
-              ),
-          ]
-        );
-    },
-  };
-  // 下拉按钮组件
-  const SsDropButton = {
-    name: "SsDropButton",
-    props: {
-      text: {
-        type: String,
-        required: true,
-      },
-      iconClass: {
-        type: String,
-        required: true,
-      },
-      opt: {
-        type: Array,
-        default: () => [],
-      },
-      checkId: {
-        type: String,
-        default: "0",
-      },
-      onclick: {
-        type: Function,
-        default: null,
-      },
-    },
-    setup(props) {
-      const currentId = ref(props.checkId || "0");
-      const showPopup = ref(false);
-
-      const handleMouseEnter = () => {
-        showPopup.value = true;
-      };
-
-      const handleMouseLeave = () => {
-        showPopup.value = false;
-      };
-
-      // 添加点击事件处理,阻止默认行为
-      const handleClick = (e) => {
-        e.preventDefault();
-        if (props.opt?.length > 0) {
-          const selectedOption =
-            currentId.value === "0"
-              ? props.opt[0]
-              : props.opt.find((opt) => opt.id === currentId.value);
-
-          if (selectedOption) {
-            selectedOption.callback?.();
-          }
-        } else if (props.onclick) {
-          props.onclick();
-        }
-      };
-      // 获取显示文本
-      const getDisplayText = () => {
-        if (!props.opt?.length) return props.text;
-
-        const selectedOption =
-          currentId.value === "0"
-            ? props.opt[0]
-            : props.opt.find((opt) => opt.id === currentId.value);
-
-        return selectedOption ? selectedOption.desc : props.opt[0].desc;
-      };
-
-      return () =>
-        h(
-          "button",
-          {
-            class:
-              props.opt?.length > 0
-                ? "ss-drop-button ss-drop-button-more"
-                : "ss-drop-button",
-            type: "button", // 明确指定按钮类型为 button
-            onMouseenter: handleMouseEnter,
-            onMouseleave: handleMouseLeave,
-            onClick: handleClick, // 添加点击事件处理
-          },
-          [
-            h("span", {
-              class: props.iconClass,
-              style: { fontFamily: "iconfont" },
-            }),
-            h("span", getDisplayText()),
-            props.opt.length > 0 &&
-              showPopup.value &&
-              h(
-                "div",
-                {
-                  class: "popup",
-                },
-                props.opt.map((item) =>
-                  h(
-                    "div",
-                    {
-                      onClick: (e) => {
-                        e.preventDefault(); // 选项点击也阻止默认行为
-                        e.stopPropagation(); // 阻止事件冒泡
-                        currentId.value = item.id; // 更新当前选中的ID
-                        item.callback();
-                        showPopup.value = false; // 选择后关闭弹窗
-                      },
-                    },
-                    item.desc
-                  )
-                )
-              ),
-          ]
-        );
-    },
-  };
-  /**
-   * 二级页面标签组件
-   * @name ss-sub-tab
-   * @description 用于展示二级页面的布局组件,包含左侧垂直标签导航(支持分组)和右侧iframe内容区
-   * @property {String} headerImage - 左侧顶部图片地址
-   * @property {Array} menuList - 菜单配置列表
-   * @property {Object} [activeMenu] - 当前选中的菜单项,不传则自动选择第一个可选菜单
-   * @property {Array} footerButtons - 底部按钮配置列表
-
-   */
-  /**
-   * SsSubTab 左侧菜单+iframe内容组件
-   * v3.0 改造:去掉顶部图片,改为图标+悬浮模式,iframe懒加载 by xu 20251216
-   */
-  const SsSubTab = {
-    name: "SsSubTab",
-    props: {
-      menuList: {
-        type: Array,
-        required: true,
-      },
-      activeMenu: {
-        type: String,
-        default: "",
-      },
-      footerButtons: {
-        type: Array,
-        default: () => [],
-      },
-      leftDisplay: {
-        type: Boolean,
-        default: true,
-      },
-      // v3.0 新增:菜单模式 collapse(悬浮展开) / fixed(始终收起) by xu 20251216
-      initialMode: {
-        type: String,
-        default: "collapse",
-      },
-    },
-    emits: ["menu-change", "footer-click"],
-    setup(props, { emit }) {
-      // v3.0 新增:默认图标映射,使用icon-biz图标 by xu 20251216
-      const defaultIcons = [
-        "icon-obj-ry", // 人员
-        "icon-obj-dw", // 单位
-        "icon-obj-gw", // 岗位
-        "icon-biz-rc", // 人才
-        "icon-biz-xc", // 巡查
-        "icon-biz-cl", // 材料
-        "icon-biz-men", // 门
-        "icon-obj-xy", // 协议
-      ];
-      //功能: SsSubTab 支持后端下发 iconName + pobj/cobj 两级菜单 by xu 20251222
-      const isTrue = (v) => v === true || v === "true" || v === 1 || v === "1"; //功能 by xu 20251222
-      const resolveIconClass = (iconNameOrClass, fallbackIndex) => {
-        //功能 by xu 20251222
-        const fallback = `menu-icon ${
-          defaultIcons[fallbackIndex % defaultIcons.length]
-        }`;
-        if (!iconNameOrClass) {
-          return fallback;
-        }
-        // 已经是完整 class(可能包含 menu-icon / menu-base-icon / 多个 class)
-        if (
-          typeof iconNameOrClass === "string" &&
-          iconNameOrClass.indexOf(" ") > -1
-        ) {
-          return iconNameOrClass;
-        }
-        const iconName = iconNameOrClass;
-        if (iconName === "menu-icon" || iconName === "menu-base-icon") {
-          return fallback;
-        }
-        // 业务图标库:icon-biz / icon-obj -> menu-icon
-        if (
-          typeof iconName === "string" &&
-          (iconName.indexOf("icon-obj-") === 0 ||
-            iconName.indexOf("icon-biz-") === 0)
-        ) {
-          return `menu-icon ${iconName}`;
-        }
-        // 默认认为是 icon-base 图标 -> menu-base-icon
-        return `menu-base-icon ${iconName}`;
-      };
-      const getMenuIcon = (item, index) => {
-        //功能 by xu 20251222
-        if (!item) {
-          return resolveIconClass(null, index);
-        }
-        //功能: 变动图标后端暂不正确,前端先写死为 icon-chg by xu 20251223
-        if (item.title === "变动" || item.name === "sys_bd") {
-          return resolveIconClass("icon-chg", index);
-        }
-        // 兼容旧字段 icon(优先使用)
-        if (item.icon) return resolveIconClass(item.icon, index);
-        // v3.0 使用后端下发 iconName
-        if (item.iconName) return resolveIconClass(item.iconName, index);
-        return resolveIconClass(null, index);
-      };
-
-      //功能: SsSubTab 底部按钮支持 icon+文字(icon-base)by xu 20251224
-      const getFooterIcon = (button) => {
-        //功能 by xu 20251224
-        if (!button) return "menu-base-icon icon-subm";
-        const iconNameOrClass =
-          button.iconClass || button.iconName || button.icon;
-        if (!iconNameOrClass) return "menu-base-icon icon-subm";
-        if (
-          typeof iconNameOrClass === "string" &&
-          iconNameOrClass.indexOf(" ") > -1
-        ) {
-          return iconNameOrClass;
-        }
-        return `menu-base-icon ${iconNameOrClass}`;
-      };
-
-      //功能: pobj/cobj 扁平结构转换为 children 树结构,兼容原 children 结构 by xu 20251222
-      const normalizeMenuList = (rawList) => {
-        if (!Array.isArray(rawList) || rawList.length === 0) {
-          return [];
-        }
-        const hasTree = rawList.some(
-          (it) => Array.isArray(it?.children) && it.children.length > 0
-        );
-        if (hasTree) {
-          return rawList.map((it) => ({
-            ...it,
-            __level: 1,
-            children: Array.isArray(it.children)
-              ? it.children.map((c) => ({ ...c, __level: 2 }))
-              : it.children,
-          }));
-        }
-        const hasMarker = rawList.some(
-          (it) => it && ("pobj" in it || "cobj" in it)
-        );
-        if (!hasMarker) {
-          return rawList.map((it) => ({ ...it, __level: 1 }));
-        }
-        const result = [];
-        let currentGroup = null;
-        for (const item of rawList) {
-          //功能: “变动”始终按一级处理(即使后端误传 pobj/cobj)by xu 20251223
-          const isChgItem =
-            item && (item.title === "变动" || item.name === "sys_bd");
-          if (isChgItem) {
-            result.push({ ...item, __level: 1 });
-            continue;
-          }
-          const isParent = isTrue(item?.pobj);
-          const isChild = isTrue(item?.cobj);
-          if (isParent) {
-            currentGroup = {
-              ...item,
-              __level: 1,
-              children: [],
-            };
-            result.push(currentGroup);
-            continue;
-          }
-          if (isChild && currentGroup) {
-            currentGroup.children.push({ ...item, __level: 2 });
-            continue;
-          }
-          //功能: 变动等无 pobj/cobj 的选项按一级展示(不挂到 children,也不打断当前分组)by xu 20251223
-          result.push({ ...item, __level: 1 });
-        }
-        return result;
-      };
-      const menuListComputed = computed(() =>
-        normalizeMenuList(props.menuList)
-      ); //功能 by xu 20251222
-      //功能: 分组展开状态(默认展开),避免 computed 生成对象导致 open 状态丢失 by xu 20251222
-      const groupOpenState = reactive({}); // { [key]: boolean }
-      const getGroupKey = (item) => item?.name || item?.title || ""; //功能 by xu 20251222
-      const isGroupOpen = (item) => {
-        //功能 by xu 20251222
-        const key = getGroupKey(item);
-        if (!key) return true;
-        return groupOpenState[key] !== false;
-      };
-      const toggleGroupOpen = (item) => {
-        //功能 by xu 20251222
-        const key = getGroupKey(item);
-        if (!key) return;
-        groupOpenState[key] = !isGroupOpen(item);
-      };
-      const getLevelClass = (item, fallbackLevel) => {
-        //功能 by xu 20251222
-        //功能: “变动”始终按一级样式处理 by xu 20251223
-        if (item && (item.title === "变动" || item.name === "sys_bd")) {
-          return "level-1";
-        }
-        const level = item?.__level || fallbackLevel || 1;
-        return level === 2 ? "level-2" : "level-1";
-      };
-
-      // v3.0 新增:菜单模式管理 by xu 20251216
-      const menuMode = ref(props.initialMode);
-      const isHovering = ref(false);
-
-      const toggleMenuMode = () => {
-        menuMode.value = menuMode.value === "collapse" ? "fixed" : "collapse";
-      };
-
-      //功能: 提供给旧UI弹窗顶部按钮调用的 API(替代点击 .menu-mode-toggle DOM)by xu 20251224
-      const registerSsSubTabApi = () => {
-        //功能 by xu 20251224
-        try {
-          window.SS = window.SS || {};
-          window.SS.dom = window.SS.dom || {};
-          //功能: 兼容小写 ss 命名空间(部分页面只引用 window.ss)by xu 20251224
-          window.ss = window.ss || window.SS;
-          window.ss.dom = window.ss.dom || window.SS.dom;
-          const api = {
-            toggleMenuMode,
-            getMenuMode: () => menuMode.value,
-          };
-          window.SS.dom.ssSubTabApi = api;
-          window.ss.dom.ssSubTabApi = api;
-          //功能: 多层弹窗(如 objPlay -> objInfo) 场景,将 API 注册到 topWindow 供按钮跨层调用 by xu 20251224
-          try {
-            const wdDialogId =
-              window.wd &&
-              wd.display &&
-              wd.display.getwdDialogId &&
-              wd.display.getwdDialogId();
-            if (wdDialogId && window.top) {
-              window.top.__ssSubTabApiMap = window.top.__ssSubTabApiMap || {};
-              window.top.__ssSubTabApiMap[wdDialogId] = api;
-            }
-          } catch (e) {}
-          try {
-            console.log(
-              "[SsSubTabApi] registered",
-              window.location && window.location.pathname
-            );
-          } catch (e) {}
-        } catch (e) {}
-      };
-      const unregisterSsSubTabApi = () => {
-        //功能 by xu 20251224
-        try {
-          //功能: 从 topWindow 解绑(避免弹窗关闭后残留)by xu 20251224
-          try {
-            const wdDialogId =
-              window.wd &&
-              wd.display &&
-              wd.display.getwdDialogId &&
-              wd.display.getwdDialogId();
-            if (
-              wdDialogId &&
-              window.top &&
-              window.top.__ssSubTabApiMap &&
-              window.top.__ssSubTabApiMap[wdDialogId]
-            ) {
-              delete window.top.__ssSubTabApiMap[wdDialogId];
-            }
-          } catch (e) {}
-          if (window.SS?.dom?.ssSubTabApi?.toggleMenuMode === toggleMenuMode) {
-            delete window.SS.dom.ssSubTabApi;
-          }
-          if (window.ss?.dom?.ssSubTabApi?.toggleMenuMode === toggleMenuMode) {
-            delete window.ss.dom.ssSubTabApi;
-          }
-        } catch (e) {}
-      };
-      //功能: 立即注册,避免 enable 早于 onMounted 导致“api not ready”by xu 20251224
-      registerSsSubTabApi(); //功能 by xu 20251224
-      onBeforeUnmount(unregisterSsSubTabApi); //功能 by xu 20251224
-
-      const onMouseEnter = () => {
-        if (menuMode.value === "collapse") {
-          isHovering.value = true;
-        }
-      };
-      const onMouseLeave = () => {
-        isHovering.value = false;
-      };
-
-      const isExpanded = computed(() => {
-        return menuMode.value === "collapse" && isHovering.value;
-      });
-
-      // v3.0 新增:iframe 懒加载,点击才加载 by xu 20251216
-      const loadedMenus = ref(new Set());
-
-      const isMenuLoaded = (menuName) => {
-        return loadedMenus.value.has(menuName);
-      };
-
-      // 根据标题找到对应的菜单项
-      const findMenuByTitle = (title) => {
-        for (const item of menuListComputed.value) {
-          //功能 by xu 20251222
-          if (item.children?.length > 0) {
-            const child = item.children.find((c) => c.title === title);
-            if (child) return child;
-          } else if (item.title === title) {
-            return item;
-          }
-        }
-        return null;
-      };
-
-      // 计算默认选中的菜单项
-      const defaultActiveMenu = computed(() => {
-        if (props.activeMenu) {
-          const menu = findMenuByTitle(props.activeMenu);
-          if (menu) return menu;
-        }
-        const firstItem = menuListComputed.value[0]; //功能 by xu 20251222
-        if (!firstItem) return null;
-        //功能: 默认选中第一个一级菜单(不默认跳到第一个二级)by xu 20251224
-        return firstItem;
-      });
-
-      const currentMenu = ref(defaultActiveMenu.value);
-
-      // 监听外部activeMenu变化
-      watch(
-        () => props.activeMenu,
-        (newTitle) => {
-          if (newTitle) {
-            const menu = findMenuByTitle(newTitle);
-            if (menu) {
-              currentMenu.value = menu;
-            }
-          }
-        }
-      );
-
-      // 初始化:默认选中项加入已加载集合
-      watch(
-        currentMenu,
-        (menu) => {
-          if (menu?.name) {
-            loadedMenus.value.add(menu.name);
-          }
-        },
-        { immediate: true }
-      );
-
-      // 选择菜单项时触发 menu-change 钩子
-      const selectItem = (item) => {
-        currentMenu.value = item;
-        // 标记为已加载
-        if (item.name) {
-          loadedMenus.value.add(item.name);
-        }
-        emit("menu-change", item);
-      };
-
-      // 处理底部按钮点击
-      const handleFooterClick = (button, index) => {
-        emit("footer-click", { button, index });
-      };
-
-      return {
-        menuListComputed, //功能 by xu 20251222
-        currentMenu,
-        selectItem,
-        handleFooterClick,
-        getFooterIcon, //功能: SsSubTab 底部按钮支持 icon+文字(icon-base)by xu 20251224
-        menuMode,
-        isHovering,
-        isExpanded,
-        toggleMenuMode,
-        onMouseEnter,
-        onMouseLeave,
-        isMenuLoaded,
-        getMenuIcon,
-        isGroupOpen, //功能 by xu 20251222
-        toggleGroupOpen, //功能 by xu 20251222
-        getLevelClass, //功能 by xu 20251222
-      };
-    },
-    template: `
-	          <div class="project-edit-container">
-              <div class="left-side"
-                   v-if="leftDisplay"
-                   :data-mode="menuMode"
-                   :class="{ 'is-expanded': isExpanded }"
-                   @mouseenter="onMouseEnter"
-                   @mouseleave="onMouseLeave">
-
-                  <!-- 菜单内容 -->
-	                  <div class="menu-content">
-	                      <div class="scroll-view">
-		                          <template v-for="(menuItem, i) in menuListComputed" :key="i">
-		                              <!-- 分组菜单 -->
-		                              <div v-if="menuItem.children?.length > 0" class="group">
-		                                  <!-- 功能: 一级(pobj)可点击进入,箭头仅控制展开/收起;二级点击不影响一级选中状态 by xu 20251223 -->
-		                                  <div class="menu-item"
-		                                       :class="[getLevelClass(menuItem, 1), { active: menuItem.name === currentMenu?.name }]"
-		                                       @click="selectItem(menuItem)">
-		                                      <ss-icon :class="getMenuIcon(menuItem, i)" />
-		                                      <span class="menu-label">{{ menuItem.title }}</span>
-		                                      <!-- 功能: 一级菜单有子项时显示 dot(参考全局左侧菜单)by xu 20251224 -->
-		                                      <div class="has-children-dot"></div>
-		                                      <div class="menu-tooltip">{{ menuItem.title }}</div>
-		                                  </div>
-		                                  <!-- 功能: 二级菜单始终展示,不做收缩展开 by xu 20251223 -->
-		                                  <div class="group-detail">
-		                                      <div v-for="(item, j) in menuItem.children"
-		                                          :key="j"
-		                                          class="menu-item"
-		                                          :class="[getLevelClass(item, 2), { active: item.name === currentMenu?.name }]"
-		                                          @click.stop="selectItem(item)">
-		                                          <ss-icon :class="getMenuIcon(item, j)" />
-		                                          <span class="menu-label">{{ item.title }}</span>
-		                                      </div>
-	                                  </div>
-	                              </div>
-                              <!-- 普通菜单项 -->
-		                              <div v-else
-		                                  class="menu-item"
-		                                  :class="[getLevelClass(menuItem, 1), { active: menuItem.name === currentMenu?.name }]"
-		                                  @click="selectItem(menuItem)">
-		                                  <ss-icon :class="getMenuIcon(menuItem, i)" />
-		                                  <span class="menu-label">{{ menuItem.title }}</span>
-	                                  <div class="menu-tooltip">{{ menuItem.title }}</div>
-	                              </div>
-                          </template>
-                      </div>
-                  </div>
-
-	                  <!-- 底部按钮 -->
-		                  <div v-if="footerButtons.length > 0"
-		                      class="sub-tab-menu-footer"
-		                      :class="{ 'has-text': !!footerButtons[0].text }"
-		                      @click="footerButtons[0].onclick">
-	                      <ss-icon :class="getFooterIcon(footerButtons[0])" />
-	                      <div class="footer-label" v-if="footerButtons[0].text">{{ footerButtons[0].text }}</div>
-	                      <ss-icon v-if="footerButtons.length > 1" class="footer-arrow" name="arrow-up" size="24px" />
-	                      <div v-if="footerButtons.length > 1" class="sub-tab-menu-popup">
-	                          <div v-for="(button, index) in footerButtons.slice(1)"
-	                              :key="index"
-	                              @click.stop="button.onclick">
-	                              {{ button.text }}
-	                          </div>
-	                      </div>
-	                  </div>
-
-              </div>
-
-              <!-- 右侧内容区域 - 懒加载 iframe -->
-              <div class="content-area fit-height-content" style="overflow: hidden;" :style="!leftDisplay ? { width: '100%' } : {}">
-                  <template v-for="(menuItem, i) in menuList" :key="i">
-                      <iframe
-                          v-if="isMenuLoaded(menuItem.name)"
-                          :src="menuItem.url"
-                          style="height: 100%;width: 100%;"
-                          frameborder="0"
-                          class="sub-tab-iframe"
-                          :id="i === 0 ? 'sub-tab-iframe' : ''"
-                          v-show="currentMenu?.name === menuItem.name"
-                      />
-                  </template>
-              </div>
-          </div>
-      `,
-  };
-  // <iframe
-  //     v-if="currentMenu?.url"
-  //     :src="currentMenu.url"
-  //     style="height: 100%;width: 100%;"
-  //     frameborder="0"
-  //     id="sub-tab-iframe"
-  // />
-
-  // ss-photo-upload 通用图片上传组件
-  const SsImgUpload = {
-    name: "SsImgUpload",
-    props: {
-      name: {
-        type: String,
-        required: true,
-      },
-      // 图片URL,用于回显
-      // url: {
-      //   type: String,
-      //   default: "",
-      // },
-      // 样式类名
-      class: {
-        type: String,
-        required: true,
-      },
-      // 裁剪配置
-      cropperOpt: {
-        type: Object,
-        default: () => ({
-          width: 360,
-          height: 360,
-          aspectRatio: 1,
-        }),
-      },
-      //上传图片url(未加图片名参数之前的部分)
-      ulUrl: {
-        type: String,
-        required: true,
-      },
-      //下载图片url(未加图片名参数之前的部分)
-      dlUrl: {
-        type: String,
-        required: true,
-      },
-      modelValue: [String, Number],
-    },
-
-    emits: ["update:modelValue"],
-
-    setup(props, { emit }) {
-      const inputId = Vue.computed(
-        () => `file_${Vue.getCurrentInstance().uid}`
-      );
-      //修改图片初始显示路径
-      let pathVal = ref(props.modelValue);
-      let picUrl = ref("");
-      if (props.modelValue) {
-        picUrl.value = props.dlUrl + "&path=" + props.modelValue;
-      }
-
-      Vue.onMounted(() => {
-        window.SS.cropper.init({
-          el: $(`#${inputId.value}`),
-          photoSize: {
-            width: props.cropperOpt.width,
-            height: props.cropperOpt.height,
-          },
-          aspectRatio: props.cropperOpt.aspectRatio,
-          uploadUrl: props.ulUrl,
-          success: (path) => {
-            pathVal.value = path;
-            picUrl.value = props.dlUrl + "&path=" + path;
-            emit("update:modelValue", path);
-          },
-        });
-      });
-
-      return () =>
-        h("div", { class: [props.class] }, [
-          h("input", {
-            type: "file",
-            accept: "image/*",
-            id: inputId.value,
-            style: { display: "none" },
-          }),
-          h("input", {
-            type: "hidden",
-            name: props.name,
-            value: pathVal.value,
-          }),
-          h(
-            "div",
-            {
-              style: {
-                width: "100%",
-                height: "100%",
-              },
-              onClick: () => $(`#${inputId.value}`).click(),
-            },
-            [
-              picUrl.value &&
-                h("img", {
-                  src: picUrl.value,
-                  style:
-                    "width: 100%; height: 100%;object-fit: inherit;position: relative;z-index: 11;",
-                }),
-            ]
-          ),
-        ]);
-    },
-  };
-
-  // 初始化函数,负责创建和挂载 Vue 应用
-  // window.SS = { dom: {} };
-  /**
-   * 获取当前窗口的父窗口
-   * @returns {Window} 父窗口对象
-   */
-  window.SS.topWin = (function (p, c) {
-    while (p != c) {
-      c = p;
-      p = p.parent;
-    }
-    return c;
-  })(window.parent, window);
-
-  window.SS.createSsDialogInstance = createSsDialogInstance;
-  /**
-   * 创建弹窗
-   * @param {Object} setting
-   * @param {Function} callbackEvent
-   */
-  window.SS.openDialog = function (setting, callbackEvent) {
-    if (setting.params) {
-      const encodedParams = encodeURIComponent(JSON.stringify(setting.params));
-      setting.src +=
-        (setting.src.includes("?") ? "&" : "?") + "params=" + encodedParams;
-    }
-
-    if (window.parent && window.parent !== window) {
-      window.parent.SS.createSsDialogInstance(setting, callbackEvent);
-    } else {
-      createSsDialogInstance(setting, callbackEvent);
-    }
-  };
-  //关闭弹窗
-  window.SS.closeDialog = function () {
-    console.log("关闭弹窗");
-    if (topWindow.dialogInstances.length > 0) {
-      const instance = topWindow.dialogInstances.pop();
-      console.log("instance", instance);
-      console.log("instance.callbackEvent", instance.callbackEvent);
-      console.log(
-        "instance.callbackEvent.end",
-        typeof instance.callbackEvent === "function"
-      );
-      if (instance.callbackEvent) {
-        // 判断是否有end回调并执行
-        if (typeof instance.callbackEvent === "function") {
-          instance.callbackEvent();
-        }
-        if (typeof instance.callbackEvent.end === "function") {
-          instance.callbackEvent.end();
-        }
-      }
-      instance.app.unmount(); // 卸载最后一个实例
-      if (instance.container && instance.container.parentNode) {
-        instance.container.parentNode.removeChild(instance.container); // 移除容器
-      }
-    }
-  };
-
-  /**
-   * 裁剪插件
-   */
-  window.SS.cropper = {
-    init: function (setting) {
-      if (!window.top.SS) window.top.SS = {};
-      // 重要:确保 cropper 对象的完整初始化
-      if (!window.top.SS.cropper) {
-        window.top.SS.cropper = {
-          settings: new Map(),
-          _backupSettings: {},
-          getSetting: this.getSetting,
-          clearSetting: this.clearSetting,
-          debug: this.debug,
-        };
-      } else if (!window.top.SS.cropper.settings) {
-        // 如果 cropper 存在但 settings 不存在,重新初始化 settings
-        window.top.SS.cropper.settings = new Map();
-        window.top.SS.cropper._backupSettings = {};
-      }
-      const uploaderId = `uploader_${Date.now()}_${Math.random()
-        .toString(36)
-        .substr(2, 9)}`;
-
-      window.top.SS.cropper.settings.set(uploaderId, setting);
-      window.top.SS.cropper._backupSettings[uploaderId] = setting;
-
-      setting.box = setting.box || "1";
-      var winSetting = {
-        headerTitle: "图片裁剪",
-        src: "/js/cropper/cropper.jsp", //原来在"/newUI/page/cropper.jsp" Ben(20251205)
-        width: "900",
-        height: "500",
-      };
-
-      $(setting.el).change(function () {
-        if (!window.SS.cropper.verify(setting)) {
-          $(setting.el).val(""); // 清空文件选择
-          return false;
-        }
-        var files = this.files;
-        if (files && files.length) {
-          if (!window.SS.cropper.verifySize($(setting.el)[0], 5)) {
-            $(setting.el).val(""); // 清空文件选择
-            alert("文件大小不能超过5M,请重新选择");
-            return false;
-          }
-          var URL = window.URL || window.webkitURL;
-          var file = files[0];
-          setting.file = file;
-
-          if (
-            /^image\/\w+$/.test(file.type) &&
-            /\.(jpg|jpeg|png|)$/i.test(file.name)
-          ) {
-            var uploadedImageURL = URL.createObjectURL(file);
-            setting.data = uploadedImageURL;
-            setting.fileName = file.name;
-            // console.log()
-            winSetting.params = {
-              ...setting,
-              uploaderId,
-            };
-            console.log("ss-componets中change之后的winSetting", winSetting);
-            SS.openDialog(winSetting, {
-              success: function (win) {
-                console.log("裁剪插件成功");
-                // win.cropperSetting = setting;
-              },
-              end: function () {
-                console.log("裁剪插件结束");
-                $(setting.el).val(""); // 清空文件选择
-              },
-            });
-          } else {
-            alert("请选择图片文件,支持jpg、jpeg、png格式");
-          }
-        }
-      });
-      return uploaderId;
-    },
-    verify: function (setting) {
-      if (!setting) {
-        console.error(" cropper setting is not undefined! ");
-        return false;
-      }
-      if (!setting.el) {
-        console.error(" cropper setting.el is not undefined! ");
-        return false;
-      }
-      if (setting.photoSize) {
-        if (
-          (!setting.photoSize.width && setting.photoSize.height) ||
-          (!setting.photoSize.height && setting.photoSize.width)
-        ) {
-          console.error(
-            " cropper setting.photoSize { width, height } is not undefined! "
-          );
-          return false;
-        }
-      }
-      if (!setting.box) {
-        setting.box = "1";
-      }
-
-      if (!setting.aspectRatio) {
-        setting.aspectRatio = 1 / 1;
-      }
-
-      return true;
-    },
-    verifySize: function (fileEl, maxSize) {
-      // 判断是否为IE浏览器: /msie/i.test(navigator.userAgent) 为一个简单正则
-      var isIE = /msie/i.test(navigator.userAgent) && !window.opera;
-      var fileSize = 0;
-      if (isIE && !fileEl.files) {
-        // IE浏览器
-        var filePath = fileEl.value; // 获得上传文件的绝对路径
-        var fileSystem = new ActiveXObject("Scripting.FileSystemObject");
-        var file = fileSystem.GetFile(filePath);
-        fileSize = file.Size; // 文件大小,单位:b
-      } else {
-        // 非IE浏览器
-        fileSize = fileEl.files[0].size;
-      }
-
-      var size = fileSize / 1024 / 1024;
-      return !(size > maxSize);
-    },
-    // 获取特定上传组件的setting
-    getSetting: function (uploaderId) {
-      if (!window.top.SS?.cropper) {
-        console.warn("顶层窗口中未找到 SS.cropper");
-        return null;
-      }
-
-      // 优先从 Map 中获取
-      let setting = window.top.SS.cropper.settings.get(uploaderId);
-
-      // 如果 Map 中没有,尝试从备份中获取
-      if (!setting && window.top.SS.cropper._backupSettings[uploaderId]) {
-        console.log("从备份中恢复 setting");
-        setting = window.top.SS.cropper._backupSettings[uploaderId];
-        // 恢复到 Map 中
-        window.top.SS.cropper.settings.set(uploaderId, setting);
-      }
-
-      return setting;
-    },
-
-    // 清理特定上传组件的setting
-    clearSetting: function (uploaderId) {
-      if (!window.top.SS?.cropper) return;
-
-      window.top.SS.cropper.settings.delete(uploaderId);
-      delete window.top.SS.cropper._backupSettings[uploaderId];
-      console.log(
-        "清理设置后的 Map size:",
-        window.top.SS.cropper.settings.size
-      );
-    },
-  };
-
-  /**
-   * 获取url中的参数
-   * @returns {Object}
-   */
-  window.SS.getQueryParams = function () {
-    const params = {};
-    const queryString = window.location.search.substring(1);
-    const pairs = queryString.split("&");
-    for (let i = 0; i < pairs.length; i++) {
-      const pair = pairs[i].split("=");
-      params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
-    }
-    if (params.params) {
-      try {
-        params.params = JSON.parse(params.params);
-      } catch (e) {
-        console.error("Failed to parse params:", e);
-      }
-    }
-
-    return params;
-  };
-
-  /**
-   * 创建vue应用
-   * @param {Object} config 配置项
-   * @values {String} config.el 挂载的元素
-   * @values {Boolean} config.isDialogPage 是否是弹窗页面 决定了是否可以使用顶天立地
-   * @values {Object} config.vueOptions vue配置项
-   * @returns {Object} vue实例
-   */
-  window.ss = window.ss || window.SS;
-  window.ss.dom = window.ss.dom || window.SS.dom;
-  window.SS.dom._vueAppSeq =
-    window.SS.dom._vueAppSeq || window.ss.dom._vueAppSeq || 0;
-  window.SS.dom.vueApps = window.SS.dom.vueApps || window.ss.dom.vueApps || [];
-  window.ss.dom._vueAppSeq = window.SS.dom._vueAppSeq;
-  window.ss.dom.vueApps = window.SS.dom.vueApps;
-
-  window.SS.dom._registerVueApp = function ({ vm, el, appKey, scope, href }) {
-    if (!vm) return null;
-    const registry = window.SS.dom.vueApps || (window.SS.dom.vueApps = []);
-    const id = `vue-app-${++window.SS.dom._vueAppSeq}`;
-    const record = {
-      id,
-      el: el || "",
-      appKey: appKey || "",
-      scope: scope || "current",
-      href: href || window.location.href,
-      createdAt: Date.now(),
-      vm,
-      win: window,
-    };
-    registry.push(record);
-    window.SS.dom.currentApp = vm;
-    window.SS.dom.currentAppRecord = record;
-    if (window.ss && window.ss.dom) {
-      window.ss.dom.vueApps = registry;
-      window.ss.dom._vueAppSeq = window.SS.dom._vueAppSeq;
-      window.ss.dom.currentApp = vm;
-      window.ss.dom.currentAppRecord = record;
-    }
-    return record;
-  };
-
-  window.SS.dom._getVmData = function (vm) {
-    if (!vm) return null;
-    return vm.$data || vm;
-  };
-
-  window.SS.dom._hasVmKey = function (vm, key) {
-    if (!vm || !key) return false;
-    const data = window.SS.dom._getVmData(vm);
-    return key in vm || (!!data && key in data);
-  };
-
-  window.SS.dom._hasVmMethod = function (vm, methodName) {
-    return !!(vm && methodName && typeof vm[methodName] === "function");
-  };
-
-  window.SS.dom._normalizeBridgeOptions = function (
-    options = {},
-    defaults = {}
-  ) {
-    return {
-      scope: "chain",
-      ...defaults,
-      ...options,
-    };
-  };
-
-  window.SS.dom._matchVueRecord = function (record, options = {}) {
-    if (!record || !record.vm) return false;
-    if (options.appKey && record.appKey !== options.appKey) return false;
-    if (options.el && record.el !== options.el) return false;
-    if (options.id && record.id !== options.id) return false;
-    if (
-      options.dataKey &&
-      !window.SS.dom._hasVmKey(record.vm, options.dataKey)
-    ) {
-      return false;
-    }
-    if (
-      options.methodName &&
-      !window.SS.dom._hasVmMethod(record.vm, options.methodName)
-    ) {
-      return false;
-    }
-    if (typeof options.predicate === "function") {
-      try {
-        if (!options.predicate(record.vm, record)) {
-          return false;
-        }
-      } catch (e) {
-        return false;
-      }
-    }
-    return true;
-  };
-
-  window.SS.dom._getWindowVueRecord = function (targetWindow, options = {}) {
-    if (!targetWindow || !targetWindow.SS || !targetWindow.SS.dom) return null;
-    const registry = targetWindow.SS.dom.vueApps || [];
-    for (let i = registry.length - 1; i >= 0; i--) {
-      if (targetWindow.SS.dom._matchVueRecord(registry[i], options)) {
-        return registry[i];
-      }
-    }
-    const currentRecord = targetWindow.SS.dom.currentAppRecord;
-    if (targetWindow.SS.dom._matchVueRecord(currentRecord, options)) {
-      return currentRecord;
-    }
-    const currentVm = targetWindow.SS.dom.currentApp;
-    const fallbackRecord = currentVm
-      ? {
-          vm: currentVm,
-          win: targetWindow,
-          el: "",
-          appKey: "",
-          id: "",
-        }
-      : null;
-    if (targetWindow.SS.dom._matchVueRecord(fallbackRecord, options)) {
-      return fallbackRecord;
-    }
-    return null;
-  };
-
-  window.SS.dom.getVueAppRecord = function (options = {}) {
-    const scope = options.scope || "current";
-    if (scope === "current") {
-      return window.SS.dom._getWindowVueRecord(window, options);
-    }
-    if (scope === "top") {
-      try {
-        return window.SS.dom._getWindowVueRecord(window.top, options);
-      } catch (e) {
-        return null;
-      }
-    }
-    if (scope === "parent") {
-      try {
-        if (window.parent && window.parent !== window) {
-          return window.SS.dom._getWindowVueRecord(window.parent, options);
-        }
-      } catch (e) {
-        return null;
-      }
-      return null;
-    }
-    if (scope === "chain") {
-      let currentWindow = window;
-      while (currentWindow) {
-        try {
-          const record = window.SS.dom._getWindowVueRecord(
-            currentWindow,
-            options
-          );
-          if (record) {
-            return record;
-          }
-        } catch (e) {
-          return null;
-        }
-        if (currentWindow === currentWindow.parent) {
-          break;
-        }
-        currentWindow = currentWindow.parent;
-      }
-      return null;
-    }
-    return window.SS.dom._getWindowVueRecord(window, options);
-  };
-
-  window.SS.dom.getVueApp = function (options = {}) {
-    const record = window.SS.dom.getVueAppRecord(options);
-    return record ? record.vm : null;
-  };
-
-  window.SS.dom.getVmValue = function (key, options = {}) {
-    const vm = window.SS.dom.getVueApp(
-      window.SS.dom._normalizeBridgeOptions(options, { dataKey: key })
-    );
-    if (!vm) return undefined;
-    return vm[key];
-  };
-
-  window.SS.dom.setVmValue = function (key, value, options = {}) {
-    const vm = window.SS.dom.getVueApp(
-      window.SS.dom._normalizeBridgeOptions(options, { dataKey: key })
-    );
-    if (!vm) return false;
-    vm[key] = value;
-    return true;
-  };
-
-  window.SS.dom.callVmMethod = function (methodName, args = [], options = {}) {
-    const vm = window.SS.dom.getVueApp(
-      window.SS.dom._normalizeBridgeOptions(options, { methodName })
-    );
-    if (!vm || typeof vm[methodName] !== "function") {
-      return undefined;
-    }
-    return vm[methodName].apply(vm, args);
-  };
-
-  window.SS.dom.get = function (key, options = {}) {
-    return window.SS.dom.getVmValue(key, options);
-  };
-
-  window.SS.dom.set = function (key, value, options = {}) {
-    return window.SS.dom.setVmValue(key, value, options);
-  };
-
-  window.SS.dom.call = function (methodName, args = [], options = {}) {
-    return window.SS.dom.callVmMethod(methodName, args, options);
-  };
-
-  [
-    "_registerVueApp",
-    "_getVmData",
-    "_hasVmKey",
-    "_hasVmMethod",
-    "_normalizeBridgeOptions",
-    "_matchVueRecord",
-    "_getWindowVueRecord",
-    "getVueAppRecord",
-    "getVueApp",
-    "getVmValue",
-    "setVmValue",
-    "callVmMethod",
-    "get",
-    "set",
-    "call",
-  ].forEach((name) => {
-    window.ss.dom[name] = window.SS.dom[name];
-  });
-
-  window.SS.dom.initializeFormApp = function (config) {
-    const {
-      el,
-      isDialogPage = false,
-      appKey = "",
-      scope = "current",
-      ...vueOptions
-    } = config;
-    const app = createApp({
-      ...vueOptions,
-    });
-    if (isDialogPage) {
-      function checkScroll() {
-        const elements = document.querySelectorAll(".fit-height-content");
-        let hasScrollBar = false;
-        elements.forEach((el) => {
-          if (el.scrollHeight > el.clientHeight) {
-            hasScrollBar = true;
-          }
-        });
-        window.parent.postMessage({ hasScrollBar }, "*");
-      }
-
-      function addScrollListeners() {
-        const elements = document.querySelectorAll("div");
-        elements.forEach((el) => {
-          el.addEventListener("scroll", checkScroll);
-        });
-      }
-      const observer = new MutationObserver(() => {
-        addScrollListeners();
-        checkScroll();
-      });
-
-      observer.observe(document.body, {
-        childList: true,
-        subtree: true,
-      });
-
-      window.addEventListener("resize", checkScroll);
-    }
-    app.component("SsLoginIcon", SsLoginIcon);
-    app.component("SsMark", SsMark);
-    app.component("SsFullStyleHeader", SsFullStyleHeader);
-    app.component("SsDialog", SsDialog);
-    app.component("SsInp", SsInput);
-    app.component("SsObjp", SsObjp);
-    app.component("SsHidden", SsHidden);
-    app.component("SsCcp", SsCcp);
-    app.component("SsDatePicker", SsDatePicker);
-    app.component("SsIcon", SsIcon);
-    app.component("SsCommonIcon", SsCommonIcon);
-    app.component("SsBreadcrumb", SsBreadcrumb);
-    app.component("SsEditor", SsEditor);
-    app.component("SsDialogIcon", SsDialogIcon);
-    app.component("SsBottomButton", SsBottomButton);
-    app.component("SsNavIcon", SsNavIcon);
-    app.component("SsHeaderIcon", SsHeaderIcon);
-    app.component("SsGolbalMenuIcon", SsGolbalMenuIcon);
-    app.component("SsCartListIcon", SsCartListIcon);
-    app.component("SsQuickIcon", SsQuickIcon);
-    app.component("SsFormIcon", SsFormIcon);
-    app.component("SsBottomDivIcon", SsBottomDivIcon);
-    app.component("SsEditorIcon", SsEditorIcon);
-    app.component("SsValidate", SsValidate);
-    app.component("SsOnoff", Ssonoff);
-    app.component("SsonoffArray", SsonoffArray);
-    app.component("SsTextarea", SsTextarea);
-    app.component("SsLoginInput", SsLoginInput);
-    app.component("SsLoginButton", SsLoginButton);
-    app.component("SsSearch", SsSearch);
-    app.component("SsCartItem", SsCartItem);
-    app.component("SsCartItem2", SsCartItem2);
-    app.component("SsListCard", SsListCard);
-    app.component("ss-cobj-card-list", SsCObjCardList);
-    app.component("SsFolderCard", SsFolderCard);
-    app.component("ss-sidebar", SsSidebar);
-    app.component("ss-sidebar-buttons", SsSidebarButtons);
-    app.component("ss-sidebar-chart", SsSidebarChart);
-    app.component("ss-sidebar-chart-hover", SsSidebarChartHover);
-    app.component("ss-sidebar-list", SsSidebarList);
-    app.component("ss-sidebar-report-table", SsSidebarReportTable);
-    app.component("SsFolderCartView", SsFolderCartView);
-    app.component("SsPage", SsPage);
-    app.component("SsRightInfo", SSRightInfo);
-    app.component("SsSuccessPopup", SsSuccessPopup);
-    app.component("SsErrorDialog", SsErrorDialog);
-    app.component("SsVerify", SsVerify);
-    app.component("SsVerifyNode", SsVerifyNode);
-    app.component("SsOrcImgBox", SsOrcImgBox);
-    app.component("ss-search-input", SsSearchInput);
-    app.component("ss-search-date-picker", SsSearchDatePicker);
-    app.component("ss-search-button", SsSearchButton);
-    app.component("ss-drop-button", SsDropButton);
-    app.component("ss-sub-tab", SsSubTab);
-    app.component("ss-img", SsImgUpload);
-    app.use(ElementPlus, {
-      locale: ElementPlusLocaleZhCn,
-    });
-    for (const componentName in IndexComponents) {
-      app.component(componentName, IndexComponents[componentName]);
-    }
-    for (const componentName in EchartComponents) {
-      app.component(componentName, EchartComponents[componentName]);
-    }
-    let vm;
-    try {
-      vm = app.mount(el);
-      vm.data = vueOptions.data();
-      window.SS.dom._registerVueApp({
-        vm,
-        el,
-        appKey,
-        scope,
-        href: window.location.href,
-      });
-      console.log("vm:", vm);
-      console.log("vueOptions:", vueOptions);
-    } catch (error) {
-      console.log("Mount failed:" + error);
-    }
-
-    return vm;
-  };
+	const {
+		createApp,
+		ref,
+		reactive,
+		watch,
+		onMounted,
+		onBeforeUnmount,
+		h,
+		computed,
+		resolveComponent,
+		watchEffect,
+		nextTick,
+		onVnodeMounted,
+		Teleport,
+		inject,
+		provide,
+	} = Vue;
+
+	// 弹窗默认遮罩z-index
+	let currentZIndex = 100;
+	//   目前已存在的弹窗
+	const topWindow = window.top;
+	topWindow.dialogInstances = topWindow.dialogInstances || [];
+	// 新建弹窗
+	function createSsDialogInstance(setting, callbackEvent) {
+		currentZIndex += 10; // 动态提升 z-index
+		const container = document.createElement("div");
+		document.body.appendChild(container);
+		const app = Vue.createApp({
+			render() {
+				return h(SsDialog, {
+					...setting,
+					zIndex: currentZIndex,
+					onClose() {
+						document.body.removeChild(container); // 仅移除弹窗容器
+						const index = topWindow.dialogInstances.indexOf(app);
+						if (index > -1) {
+							topWindow.dialogInstances.splice(index, 1); // 移除实例
+						}
+						// 关闭后的回调
+						if (callbackEvent && typeof callbackEvent === "function") {
+							callbackEvent();
+						}
+						app.unmount(); // 仅卸载弹窗实例
+						if (container.parentNode) {
+							container.parentNode.removeChild(container); // 确保移除容器
+						}
+					},
+				});
+			},
+		});
+		topWindow.dialogInstances.push({ app, callbackEvent, container });
+		app.component("ss-mark", SsMark); // 注册 ss-mark 组件
+		app.component("ss-icon", SsIcon);
+		app.component("ss-full-style-header", SsFullStyleHeader); // 注册 ss-full-style-header 组件
+		app.mount(container);
+	}
+	// ss-breadcrumb 一级菜单页面面包屑
+	const SsBreadcrumb = {
+		name: "SsBreadcrumb",
+		props: {
+			level: {
+				type: Object,
+				default: null,
+			},
+		},
+		setup(props) {
+			const currentMenu = ref(null);
+			const folderPath = ref([]);
+			const eventBus = window.parent.sharedEventBus;
+
+			// 监听页面变化
+			onMounted(() => {
+				// 获取初始页面
+				currentMenu.value = eventBus.getState(EVEN_VAR.currentPage);
+				folderPath.value = eventBus.getState("folderPath") || [];
+
+				// 订阅页面变化
+				eventBus.subscribe(EVEN_VAR.currentPage, (page) => {
+					currentMenu.value = page;
+				});
+				eventBus.subscribe("folderPath", (path) => {
+					folderPath.value = path || [];
+				});
+			});
+			// 修改点击处理函数
+			const handlePathClick = (index) => {
+				if (props.level?.onBack) {
+					// 截取到点击的位置,后面的路径会被销毁
+					const newPath = folderPath.value.slice(0, index + 1);
+					eventBus.publish("folderPath", newPath);
+					// 返回到对应层级
+					const targetFolder = newPath[newPath.length - 1]?.folder || null;
+					props.level.onBack(targetFolder);
+				}
+			};
+			const SsCommonIcon = resolveComponent("SsCommonIcon");
+			return () =>
+				h("div", { class: "bread-crumb" }, [
+					currentMenu.value &&
+						h(
+							"div",
+							{
+								onClick: () => {
+									if (props.level?.onBack) {
+										eventBus.publish("folderPath", []);
+										props.level.onBack(null); // 返回到根目录
+									} else {
+										eventBus.publish(EVEN_VAR.currentPage, currentMenu.value);
+									}
+								},
+							},
+							currentMenu.value.label || currentMenu.value.name
+						),
+
+					...(folderPath.value || [])
+						.map((folder, index) => [
+							h(SsCommonIcon, { class: "common-icon-arrow-right" }),
+							h(
+								"div",
+								{
+									class: "bread-crumb-item",
+									onClick: () => handlePathClick(index),
+									style: { cursor: "pointer" },
+								},
+								folder.title
+							),
+						])
+						.flat(),
+				]);
+		},
+	};
+
+	// ss-input form表单的输入
+	const SsInput = {
+		name: "SsInp", //把SsInput改为SsInp Ben(20251225)
+		inheritAttrs: false, // 不直接继承属性到组件根元素
+		props: {
+			name: {
+				type: String,
+				required: true,
+				default: "",
+			},
+			// 接收 v-model 绑定的值
+			errTip: {
+				type: String,
+			},
+			required: {
+				type: Boolean,
+				default: false,
+			},
+			placeholder: {
+				type: String,
+				default: "",	// : "请输入",。再改,去掉 placeholder 默认值 "请输入" 。Lin
+			},
+			defaultValue: [String, Number],
+			modelValue: [String, Number],
+			// 新增:附件配置
+			fj: {
+				type: Object,
+				default: null,
+			},
+			// 新增:param 配置(用于附件功能)
+			param: {
+				type: Object,
+				default: null,
+			},
+			// 新增:高度配置
+			height: {
+				type: String,
+				default: "",
+			},
+			// 功能说明:传 height 时允许回车换行(多行输入);未传 height 默认单行 by xu 20260204
+			// 功能说明:onChange 全局回调 prop,桥接 API 赋值时自动触发 by xu 20260416
+			onchange: {
+				type: String,
+				required: false,
+			},
+		},
+		emits: ["update:modelValue", "input", "blur", "change"], // 允许更新 v-model 绑定的值
+		setup(props, { emit }) {
+			const errMsg = ref("");
+			const inputRef = ref(null);
+			const textareaRef = ref(null);
+			const inputValue = ref(props.modelValue || props.defaultValue || "");
+			const contentFloatingDiv = ref(false); // 控制浮动 DIV 的显示
+			const floatingDivPosition = ref("bottom"); // 'bottom' 或 'top'
+			const isFocused = ref(false); // 跟踪焦点状态
+
+			// 附件相关变量(仅在传入 param 时初始化)
+			let fjid = ref(null);
+			let fjName = null;
+			let mode = null;
+			if (props.param && props.param.button) {
+				fjid = ref(props.param.button.val);
+				fjName = props.param.button.desc;
+				mode = props.param.mode;
+			}
+
+			// 功能说明:只有存在非空校验(notNull)且值为空时,才显示红线 by xu 20260402
+			const hasNotNullRule = () => {
+				const validations = window.ssVm?.validations?.get(props.name);
+				if (!validations || validations.length === 0) return false;
+				return validations.some(v => v.ruleName && v.ruleName.includes('notNull'));
+			};
+
+			const showRequired = computed(() => {
+				const validations = window.ssVm?.validations?.get(props.name);
+				if (!validations || validations.length === 0) return false;
+
+				// 检查是否存在 notNull 规则
+				const hasNotNull = validations.some(v => v.ruleName && v.ruleName.includes('notNull'));
+
+				// 有非空规则且值为空时显示红线
+				if (hasNotNull && !inputValue.value) {
+					return true;
+				}
+				return false;
+			});
+
+			// 计算floatdiv应该向上还是向下展开
+			const calculateFloatingDivPosition = () => {
+				nextTick(() => {
+					const textarea = inputRef.value;
+					if (!textarea) return;
+
+					const rect = textarea.getBoundingClientRect();
+/* 改,改用 <div class='content-div' 的高度 -- 支持 <input height=。Lin
+ * 原,基于录入窗口的高度计算,但弹出的 growh 录入框是在 <table 里的,导致 <table 的顶上被滚走,且 弹出的 growh 录入框 下部被截断 -- 再次进入时,完全被截断
+					const viewportHeight = window.innerHeight;
+*/				const contDivRect = document.querySelector('.content-div').getBoundingClientRect();
+
+					// 预估floatdiv的高度(最多5行 * 20px + 上下padding + border)
+					const estimatedFloatDivHeight = 20 * 5 + 10 + 2; // 5行 + padding + border = 112px
+
+					// 检查下方空间
+/* 改,改用 <div class='content-div' 的高度 -- 支持 <input height=。Lin
+					const spaceBelow = viewportHeight - rect.bottom;
+*/				const spaceBelow = contDivRect.bottom - rect.top -5;	// 底下留 5 个空白。Lin
+/// 增加,如果高度不够 5行,减少 growh 录入框的高度。Lin
+					const spaceAbove = rect.bottom - contDivRect.top -5;	// 顶上留 5 个空白。Lin
+///
+
+					// 如果下方空间不足,且上方空间足够,则向上展开
+/* 改,支持 <input height=。Lin
+ * 高度够时,需要优先向上 growh -- 对于有 <input height=,统一在底下留 5 个空白
+ * 增加 "如果高度不够 5行,减少 growh 录入框的高度" -- 抄自 SsObjp.calculatePopupDirection()
+					if (
+						spaceBelow < estimatedFloatDivHeight &&
+						rect.top > estimatedFloatDivHeight
+					) {
+						floatingDivPosition.value = "top";
+					} else {
+						floatingDivPosition.value = "bottom";
+					}
+*/
+					if (spaceAbove >= estimatedFloatDivHeight) {	// "上方空间足够,向上展开,不限制高度"。Lin
+						floatingDivPosition.value = "top";
+					} else if (spaceBelow >= estimatedFloatDivHeight) {	// "下方空间足够,向下展开,不限制高度"。Lin
+						floatingDivPosition.value = "bottom";
+					} else {	// "上下空间都不足,选择空间大的方向,并限制高度出滚动条"。Lin
+						let growhDivHeight;	// 增加,减少后的高度。Lin
+						if (spaceBelow >= spaceAbove) {
+							floatingDivPosition.value = "bottom";
+							growhDivHeight = spaceBelow;	// popupMaxHeight.value = Math.max(spaceBelow, minPopupHeight) + "px"。Lin
+						} else {
+							floatingDivPosition.value = "top";
+							growhDivHeight = spaceAbove;	// popupMaxHeight.value = Math.max(spaceAbove, minPopupHeight) + "px"。Lin
+						}
+/// 增加,写 增加的全局变量 --growh-textarea-max-height(带px)。Lin
+						document.documentElement.style.setProperty('--growh-textarea-max-height', growhDivHeight +"px");
+///
+					}
+
+				});
+			};
+
+			// 计算floatdiv的top偏移量
+			const getFloatingDivTop = computed(() => {
+				if (props.height) {
+					// 有height时,padding是5px
+					return "5px";
+				} else {
+					// 没有height时是单行居中,需要计算居中位置
+					// 假设input-container高度是32px(或者从CSS读取),单行20px
+					// 居中偏移 = (容器高度 - 行高) / 2 = (32 - 20) / 2 = 6px
+					return "6px";
+				}
+			});
+
+			const validate = () => {
+				if (window.ssVm) {
+					const result = window.ssVm.validateField(props.name);
+					errMsg.value = result.valid ? "" : result.message;
+				}
+			};
+
+			// 功能说明:调用全局 onChange 回调 by xu 20260416
+			const callGlobalOnchg = (value) => {
+				if (props.onchange && typeof props.onchange === "string") {
+					if (
+						typeof window !== "undefined" &&
+						window[props.onchange] &&
+						typeof window[props.onchange] === "function"
+					) {
+						try {
+							window[props.onchange](value);
+						} catch (error) {
+							console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
+						}
+					}
+				}
+			};
+
+			// 使用 watch 监听 props.errTip 和 props.modelValue 的变化
+			watch(
+				() => props.errTip,
+				(newVal) => {
+					errMsg.value = newVal;
+				},
+				{ immediate: true }
+			);
+			watch(
+				() => props.modelValue,
+				(newVal) => {
+					inputValue.value = newVal;
+					// 桥接 API 赋值时触发全局 onChange by xu 20260416
+					callGlobalOnchg(newVal);
+				}
+			);
+
+			// 挂载时的逻辑
+			onMounted(() => {
+				errMsg.value = props.errTip;
+				inputValue.value = props.modelValue || props.defaultValue || "";
+			});
+			// 计算并调整textarea的高度
+			const adjustHeight = () => {
+				nextTick(() => {
+					const textarea = textareaRef.value;
+					if (!textarea) return;
+
+					// floatDiv的textarea始终自动计算高度,不受props.height影响
+					// 重置高度以获得正确的scrollHeight
+					textarea.style.height = "auto";
+					// 计算新高度 - 统一限制为5行
+					const lineHeight = parseInt(
+						getComputedStyle(textarea).lineHeight,
+						10
+					);
+					const maxHeight = lineHeight * 5; // 统一为5行
+/* 改,支持 <input height=。Lin
+ * 原 height= 大于 5 行时,仍弹出 5 行 -- base.css 里的样式 .floating-div textarea 里的属性 max-height: calc(20px * 5 + 10px),写死 5 行
+ * 增加全局变量 --growh-textarea-max-height(带px),并把 max-height: 改为 var(--growh-textarea-max-height)
+					const newHeight = Math.min(textarea.scrollHeight, maxHeight);
+*/
+					let newHeight;
+					if (!props.height || (parseInt(props.height, 10) <= maxHeight))
+						newHeight = Math.min(textarea.scrollHeight, maxHeight);
+					else	// 有 <input height=,且高于 5 行。Lin
+						newHeight = parseInt(props.height, 10);
+					newHeight -= 5;	// 底下留 5 个空白。Lin
+					document.documentElement.style.setProperty('--growh-textarea-max-height', newHeight +"px");
+
+					textarea.style.height = `${newHeight}px`;
+				});
+			};
+
+			// 检查是否应该显示浮动窗口(需要同时满足:有焦点 + 内容超出)
+			// 修复新增页面点击就出现floatdiv的问题 by xu 20251212
+			const checkShouldShowFloatingDiv = () => {
+				const textarea = inputRef.value;
+				if (!textarea) return false;
+
+				// 首先检查是否有内容,没有内容时不显示floatdiv by xu 20251212
+				if (!inputValue.value || inputValue.value.toString().trim() === "") {
+					console.log("[floatdiv] 内容为空,不显示floatdiv");
+					return false;
+				}
+
+				// 判断内容是否超出 by xu 20251212
+				// 同时检查横向和纵向溢出,任一方向溢出都应显示floatdiv
+				// 纵向溢出需要加容差值,避免padding/border导致的误判 by xu 20251212
+				const verticalTolerance = 5; // 容差值5px
+				const isHorizontalOverflow =
+					textarea.scrollWidth > textarea.clientWidth;
+				const isVerticalOverflow =
+					textarea.scrollHeight > textarea.clientHeight + verticalTolerance;
+				const isOverflow = isHorizontalOverflow || isVerticalOverflow;
+
+				console.log(
+					"[floatdiv] 溢出检测 - scrollWidth:",
+					textarea.scrollWidth,
+					"clientWidth:",
+					textarea.clientWidth,
+					"horizontalOverflow:",
+					isHorizontalOverflow
+				);
+				console.log(
+					"[floatdiv] 溢出检测 - scrollHeight:",
+					textarea.scrollHeight,
+					"clientHeight:",
+					textarea.clientHeight,
+					"tolerance:",
+					verticalTolerance,
+					"verticalOverflow:",
+					isVerticalOverflow
+				);
+
+				const shouldShow = isFocused.value && isOverflow;
+				console.log(
+					"[floatdiv] 最终判断 - isFocused:",
+					isFocused.value,
+					"isOverflow:",
+					isOverflow,
+					"shouldShow:",
+					shouldShow
+				);
+
+				// 需要同时满足:有焦点 + 内容超出
+				return shouldShow;
+			};
+
+			// 定义事件处理函数
+			const onInput = (event) => {
+				const newValue = event.target.value;
+				inputValue.value = newValue;
+				emit("update:modelValue", newValue);
+				validate(); // 输入时验证
+
+				nextTick(() => {
+					// 检查是否需要显示浮动div
+					contentFloatingDiv.value = checkShouldShowFloatingDiv();
+
+					// 如果需要显示floatdiv,计算其位置
+					if (contentFloatingDiv.value) {
+						calculateFloatingDivPosition();
+					}
+				});
+				adjustHeight();
+			};
+			const onFocus = (event) => {
+				// 设置焦点状态为true
+				isFocused.value = true;
+				adjustHeight();
+
+				// 检查是否应该显示浮动窗口
+				nextTick(() => {
+					contentFloatingDiv.value = checkShouldShowFloatingDiv();
+					if (contentFloatingDiv.value) {
+						calculateFloatingDivPosition();
+					}
+				});
+			};
+
+			// 失去焦点时进行验证
+			const onBlur = (event) => {
+				emit("blur", event.target);
+				validate(); // 失焦时验证
+
+				nextTick(() => {
+					// 如果焦点不在 textarea 上,则隐藏浮动 div
+					if (!document.activeElement.classList.contains("input-control")) {
+						isFocused.value = false;
+						contentFloatingDiv.value = false;
+					}
+				});
+			};
+			const onChange = (event) => {
+				inputValue.value = event.target.value || "";
+				emit("change", inputValue.value);
+			};
+			const onMouseover = (event) => {
+				nextTick(() => {
+					// setTimeout(contentFloatingDiv.value = true, 500)
+				});
+			};
+			const onMouseleave = (event) => {
+				// contentFloatingDiv.value = false
+			};
+
+			// 功能说明:传了 height 视为多行允许回车;未传 height 拦截回车(单行表现) by xu 20260204
+			const onKeydown = (event) => {
+				const allowMultiline =
+					typeof props.height === "string" && props.height.trim() !== "";
+				if (!allowMultiline && event.key === "Enter") {
+					event.preventDefault();
+				}
+			};
+
+			// 增加 <div class="input" 的 onClick 事件 -- 支持点击 <div 进入录入行。Lin
+			const onInputDivClick = (event) => {
+				if (!event.target.id)	// 点击的是 <textarea 时,没有 .id -- <div class="input" 包含 <textarea。Lin
+					return;
+				console.log("<div class='input' 被点击了");
+				const textArea = document.getElementsByName(event.target.id)[0];
+				if (!textArea)	// 点击 描述 录入框里的 附件按钮时,textArea 为空。Lin
+					return;
+				const rect = textArea.getBoundingClientRect(); // 获取 textarea 的位置和尺寸
+				const x = event.clientX - rect.left; // 计算点击的 x 坐标相对于 textarea 的位置
+/* 去掉,只有一行的 <textarea 才会有 <div class="input" 的空白可点击。Lin
+				var y = event.clientY - rect.top; // 计算点击的 y 坐标相对于 textarea 的位置
+*/
+				// 将坐标转换为 textarea 中的字符位置(基于行和字符索引)
+/* 去掉,只有一行的 <textarea 才会有 <div class="input" 的空白可点击。Lin
+				const lineHeight = parseInt(window.getComputedStyle(textArea).lineHeight); // 获取行高
+*/
+				const charIndex = Math.floor(x / (textArea.offsetWidth / textArea.cols)); // 计算字符索引(简化版,可能需要更复杂的逻辑以处理不同字体和宽度)
+/* 去掉,只有一行的 <textarea 才会有 <div class="input" 的空白可点击。Lin
+				var lineIndex = Math.floor(y / lineHeight); // 计算行索引
+*/
+				// 设置光标位置
+				textArea.setSelectionRange(charIndex, charIndex); // 设置光标位置,可能需要调整以适应实际需求
+				textArea.focus(); // 确保 textarea 获取焦点
+			};
+
+			// 附件按钮点击处理(从 SsEditor 搬运)
+			const onAttachmentClick = (e) => {
+				e.preventDefault();
+
+				if (!props.param || !props.param.button) {
+					console.warn("未配置 param 参数");
+					return;
+				}
+
+				console.log("附件点击了");
+				console.log("param", props.param);
+				console.log("cmsAddUrl", props.param.button.cmsAddUrl);
+
+				// 如果 fjid 为空,先调用 cmsAddUrl 创建
+				if (fjid.value == null || fjid.value == "") {
+					$.ajax({
+						type: "post",
+						url: props.param.button.cmsAddUrl,
+						async: false,
+						data: {
+							name: "fjid",
+							ssNrObjName: "sh",
+							ssNrObjId: "",
+						},
+						success: function (_fjid) {
+							console.log("cmsAddUrl success", _fjid);
+							fjid.value = _fjid;
+						},
+					});
+				}
+
+				// 构建参数字符串
+				var str =
+					"&nrid=T-" +
+					fjid.value +
+					"&objectId=" +
+					fjid.value +
+					"&objectName=" +
+					fjName +
+					"&callback=" +
+					(window["fjidCallbackName"] || "");
+
+				console.log("str", str);
+
+				// 打开附件编辑对话框
+				SS.openDialog({
+					src: props.param.button.cmsUpdUrl + str,
+					headerTitle: "编辑",
+					width: 900,
+					high: 664,
+					zIndex: 51,
+				});
+			};
+
+			return {
+				errMsg,
+				inputValue,
+				showRequired,
+				onInput,
+				onBlur,
+				onChange,
+				onMouseover,
+				onMouseleave,
+				onKeydown, // 新增:键盘事件处理 by xu 20251212
+				contentFloatingDiv,
+				floatingDivPosition,
+				getFloatingDivTop,
+				inputRef,
+				textareaRef,
+				onFocus,
+				onInputDivClick,	// 再增加,增加 <div class="input" 的 onClick 事件 -- 支持点击 <div 进入录入行。Lin
+				onAttachmentClick,
+				fjid, // 附件 ID,用于隐藏字段
+			};
+		},
+		render() {
+			const { resolveComponent, h } = Vue;
+			const SsIcon = resolveComponent("ss-icon");
+			const SsEditorIcon = resolveComponent("SsEditorIcon");
+
+			// 构建主textarea的样式
+			const mainTextareaStyle = {};
+			if (this.height) {
+/* 改,支持 <input height=。Lin
+ * 原,录入框高度固定 -- 不受 <input height= 影响
+				mainTextareaStyle.height = "auto";
+*/			mainTextareaStyle.height = this.height;
+
+				// mainTextareaStyle.paddingTop = '5px'; // 有高度时加上padding-top
+				// mainTextareaStyle.paddingBottom = '5px'; // 有高度时加上padding-bottom
+			} else {
+				// 没有指定height时,固定为单行高度
+				mainTextareaStyle.height = "20px"; // 行高20px
+				mainTextareaStyle.lineHeight = "20px"; // 确保单行垂直居中
+				mainTextareaStyle.display = "flex";
+				mainTextareaStyle.marginBottom = "5px";
+			}
+
+			// 如果有附件按钮,为按钮留出空间
+			if (this.fj || (this.param && this.param.button)) {
+				//加上&&this.param.button条件 Ben(20251221)
+/* 再改,textarea 文本右侧,离 附件 按钮的空白多了。Lin
+				mainTextareaStyle.paddingRight = "75px";
+*/			mainTextareaStyle.paddingRight = "65px";
+			}
+
+			const mainTextareaRows = this.height
+				? Math.floor(parseFloat("80px") / 20)
+				: 1;
+
+			return h("div", { class: "input" }, [
+				h("div", { class: "input-container" }, [
+/* 再改,增加 <div class="input" 的 id 和 onClick 事件 -- 支持点击 <div 进入录入行。Lin
+					h("div", { class: "input", style: "padding:5px 0" }, [
+*/				h("div", { class: "input", style: "padding:5px 0", id: this.name, onClick: this.onInputDivClick }, [
+						h("textarea", {
+							ref: "inputRef",
+							class: "input-control",
+							name: this.name,
+							value: this.inputValue,
+							onInput: this.onInput,
+							onFocus: this.onFocus,
+							onBlur: this.onBlur,
+							onChange: this.onChange,
+							onKeydown: this.onKeydown, // 新增:禁止回车换行 by xu 20251212
+							placeholder: this.placeholder,
+							onMouseover: this.onMouseover, // 监听鼠标悬停
+							onMouseleave: this.onMouseleave, // 监听鼠标离开
+							rows: mainTextareaRows,
+							...this.$attrs,
+							style: mainTextareaStyle,
+							autocomplete: "off",
+						}),
+						// 附件按钮(优先使用 param,兼容旧的 fj)
+						this.fj || (this.param && this.param.button) //加上&&this.param.button条件 Ben(20251221)
+							? h(
+									"button",
+									{
+										type: "button",
+										class: "fj-button",
+										onClick: this.param
+											? this.onAttachmentClick
+											: (e) => {
+													e.preventDefault();
+													console.log("附件配置:", this.fj);
+												},
+									},
+									[
+										h(SsEditorIcon, {
+											class: "editor-icon-link",
+										}),
+										h("span", { class: "fj-button-text" }, "附件"),
+									]
+								)
+							: null,
+					]),
+					this.contentFloatingDiv || ""
+						? h(
+								"div",
+								{
+									class: "floating-div",
+									style:
+										this.floatingDivPosition === "bottom"
+											? {
+													// 向下展开: 覆盖原输入框,top对齐首行
+													top: this.getFloatingDivTop,
+													bottom: "auto",
+												}
+											: {
+													// 向上展开: 同样覆盖原输入框,但从底部开始计算
+													top: "auto",
+													bottom: this.height ? "5px" : "6px", // 对齐到原textarea的底部padding位置
+												},
+								},
+								[
+									h("textarea", {
+										ref: "textareaRef",
+										class: "input-control",
+										value: this.inputValue,
+										onInput: this.onInput,
+										onBlur: this.onBlur,
+										onFocus: this.onFocus,
+										onKeydown: this.onKeydown, // 新增:禁止回车换行 by xu 20251212
+										onMouseover: this.onMouseover, // 监听鼠标悬停
+										onMouseleave: this.onMouseleave, // 监听鼠标离开
+										autocomplete: "off",
+										onVnodeMounted: (vnode) => {
+											vnode.el.focus();
+										},
+									}),
+								]
+							)
+						: null,
+					// this.errMsg ? h(SsValidate, { errMsg: this.errMsg }) : null,
+				]),
+				// 附件相关的隐藏字段(仅在有 param 时才渲染)
+				this.param && [
+					// fjid 隐藏字段(只有当 fjid 有值时才渲染)
+					this.fjid &&
+						this.fjid.value &&
+						h("input", {
+							type: "hidden",
+							name: "fjid",
+							value: this.fjid.value,
+						}),
+					// 其他隐藏字段根据 name 生成
+					/* 去掉。文本框不需要(这是富文本才有的) Ben 20251205
+					h("input", {
+					type: "hidden",
+					name: this.name.replace(/wj$/, "") + "Edit",
+					value: this.inputValue
+					}),
+					*/
+					// h("input", {
+					//   type: "hidden",
+					//   name: this.name.replace(/wj$/, "") + "wj",
+					//   value: this.inputValue
+					// }),
+					/* 去掉。文本框不需要(这是富文本才有的) Ben 20251205
+					h("input", {
+					type: "hidden",
+					name: "ueditorpath",
+					value: this.name
+					}),
+					*/
+				],
+			]);
+		},
+	};
+	// ss-normal-input 登录输入
+	const SsLoginInput = {
+		name: "SsLoginInput",
+		inheritAttrs: false,
+		props: {
+			errTip: {
+				type: String,
+			},
+
+			type: {
+				type: String,
+				default: "text",
+			},
+			required: {
+				type: Boolean,
+				default: false,
+			},
+			placeholder: {
+				type: String,
+				default: "",	// : "请输入",。再改,去掉 placeholder 默认值 "请输入" 。Lin
+			},
+			name: {
+				type: String,
+				default: "",
+			},
+			defaultValue: [String, Number],
+			modelValue: [String, Number],
+		},
+		emits: ["update:modelValue", "input", "blur", "change"], // 允许更新 v-model 绑定的值
+		setup(props, { emit }) {
+			const errMsg = ref("");
+			const inputRef = ref(null);
+			const textareaRef = ref(null);
+			const inputValue = ref(props.modelValue || props.defaultValue || "");
+
+			// 使用 watch 监听 props.errTip 和 props.modelValue 的变化
+			watch(
+				() => props.errTip,
+				(newVal) => {
+					errMsg.value = newVal;
+				},
+				{ immediate: true }
+			);
+			watch(
+				() => props.modelValue,
+				(newVal) => {
+					inputValue.value = newVal;
+				}
+			);
+
+			// 挂载时的逻辑
+			onMounted(() => {
+				errMsg.value = props.errTip;
+				inputValue.value = props.modelValue || props.defaultValue || "";
+			});
+
+			// 定义事件处理函数
+			const onInput = (event) => {
+				const newValue = event.target.value;
+				inputValue.value = newValue;
+				emit("update:modelValue", newValue);
+			};
+			return { inputValue, onInput, inputRef, textareaRef };
+		},
+		render() {
+			return h("div", { class: "input" }, [
+				h("div", { class: "input-container" }, [
+					h("div", { class: "input" }, [
+						h("input", {
+							ref: "inputRef",
+							class: "input-control",
+							name: this.name,
+							value: this.inputValue,
+							onInput: this.onInput,
+							type: this.type,
+							placeholder: this.placeholder,
+							required: this.required,
+							...this.$attrs,
+							autocomplete: "off",
+						}),
+					]),
+				]),
+			]);
+		},
+	};
+	// ss-login-button
+	const SsLoginButton = {
+		name: "SsLoginButton",
+		inheritAttrs: false,
+		props: {
+			class: {
+				type: String,
+				default: "",
+			},
+			text: {
+				type: String,
+				default: "",
+			},
+			type: {
+				type: String,
+				default: "button",
+			},
+		},
+		emits: ["click"],
+		setup(props, { emit }) {
+			// 定义事件处理函数
+			const onClick = (event) => {
+				// 发射一个 'click' 事件,你可以传递所需的参数
+				emit("click", event);
+			};
+
+			return { props, onClick };
+		},
+		render() {
+			const SsIcon = resolveComponent("ss-icon");
+			const SsLoginIcon = resolveComponent("ss-login-icon");
+			return h(
+				"button",
+				{ class: "login-button", type: this.type, onClick: this.onClick },
+				[
+					h("span", [h(SsLoginIcon, { class: this.class })]),
+					h("span", {}, this.text),
+				]
+			);
+		},
+	};
+	// ss-objp 下拉选择
+	const SsObjp = {
+		name: "SsObjp",
+		inheritAttrs: false,
+		props: {
+			onchange: {
+				//在此属性传入onChange的window全局回调函数,函数唯一参数是当前选中值 Ben(20251217)
+				type: String,
+				required: false,
+			},
+			filter: {
+				type: String,
+				required: false,
+			},
+			filterfield: {
+				type: String,
+				required: false,
+			},
+			// filterField: {
+			//   //此属性为页面表单元素的name用逗号分隔,作用为在向后台查询下拉菜单选项时,会带上这些name的表单元素的value值 Ben(20260313)
+			//   type: String,
+			//   required: false,
+			// },
+			cb: {
+				type: String,
+				required: true,
+			},
+			url: {
+				type: String,
+				required: true,
+			},
+			name: {
+				type: String,
+				required: true,
+			},
+			width: {
+				type: String,
+/* 再改,修改 <ss-objp 的默认宽度 -- 原,导致没有指定 <obj 里的 <field width= 时,查询条件里的 <ss-objp 巨宽。Lin
+ *    原 objList.jsp 里写死 width="150px",现改为 可由 <obj 里的 <field width= 控制了
+				default: "100%",
+*/			default: "150px",
+			},
+			placeholder: {
+				type: String,
+				default: "",	// : "请选择",。再改,去掉 placeholder 默认值 "请选择" 。Lin
+			},
+			inp: {
+				type: Boolean,
+				default: false,
+			},
+/// 再增加,增加 <ss-objp :search="true" -- 紧挨录入行的下拉按钮。Lin
+			search: {
+				type: Boolean,
+				default: false,
+			},
+///
+			opt: {
+				type: Array,
+				default: () => [],
+			},
+			errTip: String,
+			defaultValue: [String, Number],
+			modelValue: [String, Number],
+			direction: {
+				type: String,
+				default: "bottom",
+			},
+		},
+		emits: ["update:modelValue", "input", "blur", "change"],
+		setup(props, { emit }) {
+			const canInput = props.inp;
+			const errMsg = Vue.ref(props.errTip);
+			const selectItem = Vue.ref({});
+			let inputText = Vue.ref(""); // 用于存储输入框的文本
+			const popupWinVisible = Vue.ref(false);
+
+			const filteredOptions = Vue.ref(props.opt);
+			const popupDirection = Vue.ref("bottom");
+			const popupMaxHeight = Vue.ref("none"); // popup最大高度,用于空间不足时限制高度并出滚动条 by xu 20251212
+			const popupContentAreaMaxHeight = Vue.computed(() => {
+				if (!popupMaxHeight.value || popupMaxHeight.value === "none")
+					return null;
+				const maxHeightNum = Number.parseFloat(popupMaxHeight.value);
+				if (!Number.isFinite(maxHeightNum)) return null;
+				// 功能说明:滚动条统一落在 .content-area(CSS 默认如此),因此需要扣掉 popup-win padding-top(10) 与 popup-content padding(15*2) by xu 20260126
+				const contentAreaMaxHeight = Math.max(60, maxHeightNum - 40);
+				return `${contentAreaMaxHeight}px`;
+			});
+			// 修复表格内下拉弹层被 overflow 截断:popup 使用 Teleport 到 body + fixed 定位 by xu 20260126
+			const selectContainerRef = Vue.ref(null);
+			const popupRef = Vue.ref(null);
+			const teleportRootStyle = Vue.ref({
+				position: "fixed",
+				left: "0",
+				top: "0",
+				width: "0",
+				height: "0",
+				zIndex: 9999,
+				pointerEvents: "none",
+			});
+			const popupLayerStyle = Vue.ref({
+				position: "fixed",
+				left: "0",
+				top: "0",
+				bottom: "auto", // 功能说明:覆盖 .popup-win.top 的 bottom 定位,避免 fixed 场景被撑高/错位 by xu 20260126
+				minWidth: "0",
+				zIndex: 9999,
+				pointerEvents: "auto",
+			});
+
+			// const showRequired = Vue.computed(() => {
+			//   const hasValidationRule = window.ssVm?.validations?.has(props.name);
+			//   if (!hasValidationRule) return false;
+			//   if (errMsg.value) return true;
+			//   if (!selectItem.value?.value) return true;
+			//   return false;
+			// });
+
+			const validate = () => {
+				if (window.ssVm) {
+					const result = window.ssVm.validateField(props.name);
+					// console.log("validate", window.ssVm.validateField(props.name));
+					errMsg.value = result.valid ? "" : result.message;
+				}
+			};
+
+			//在objPicker界面,选中value对应的项
+			const updateSelectItem = () => {
+				// console.log(props.opt);
+				const item = props.opt.find((it) => it.value === props.modelValue);
+				if (item) {	// 这里不需要加 && props.modelValue !== "0","0" 的话,item 为空 -- 显示必填字段下拉选择框里的 钩(选中)。Lin
+					selectItem.value = item;
+					inputText.value = item.label;
+				} else {
+					selectItem.value = { label: "", value: "" };
+					inputText.value = "";
+				}
+				// validate();
+			};
+
+			Vue.watch(
+				() => props.errTip,
+				(newVal) => {
+					errMsg.value = newVal;
+				}
+			);
+
+			// 功能说明:调用全局 onChange 回调,必须在 handleModelValueChange 之前定义 by xu 20260416
+			const callGlobalOnchg = (value, desc) => {
+				if (props.onchange && typeof props.onchange === "string") {
+					if (
+						typeof window !== "undefined" &&
+						window[props.onchange] &&
+						typeof window[props.onchange] === "function"
+					) {
+						try {
+							window[props.onchange](value, desc);
+						} catch (error) {
+							console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
+						}
+					}
+				}
+			};
+
+			// 功能说明:封装 modelValue 变化后的联动逻辑,兼容用户点击和桥接 API 赋值 by xu 20260416
+			const handleModelValueChange = (newValue) => {
+				updateSelectItem();
+/* 改,增加 && newValue !== "0",显示必填字段下拉选择框里的 钩(选中) -- 必填字段为 int/long,其默认值为 0。Lin
+ * 被下面的 Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true }) 调用,并传入 props.modelValue 到 newValue
+				if (newValue) {
+*/			if (newValue && newValue !== "0") {
+					// 如果当前 options 里没有对应项,去服务端请求回显
+					const exists = props.opt.some((it) => it.value === newValue);
+					if (!exists && props.url && props.cb) {
+						let url = props.url;
+						if (props.filter) {
+							const filterObj = props.filter;
+							for (let k in filterObj) {
+								url += "&" + k + "=" + filterObj[k];
+							}
+						}
+						const params = new URLSearchParams();
+						params.append("objectpickerparam", JSON.stringify({ input: props.inp, codebook: props.cb }));
+						params.append("objectpickertype", "2");
+						params.append("objectpickervalue", newValue);
+						axios.post(url, params, {
+							headers: { "Content-Type": "application/x-www-form-urlencoded" }
+						}).then((response) => {
+							if ("timeout" == response.data.statusText) {
+								alert("网络超时!");
+								return;
+							}
+							if (response.data.result) {
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+								const keys = Object.keys(response.data.result);
+								if (keys.length === 1) {
+									let code = keys[0];
+									let desc = response.data.result[keys[0]];
+*/
+								if (response.data.result.length === 1) {
+									var m = Object.entries(response.data.result[0])[0];
+									let code = m[0];
+									let desc = m[1];
+
+									props.opt.length = 0;
+									props.opt.push({ label: desc, value: code });
+									updateSelectItem();
+									callGlobalOnchg(code, desc);
+								}
+							}
+						});
+					} else if (selectItem.value && selectItem.value.value) {
+						// options 里有对应项,触发 onChange
+						callGlobalOnchg(selectItem.value.value, selectItem.value.label);
+					}
+				} else {
+					// 值为空时清空选中
+					callGlobalOnchg("", "");
+				}
+			};
+
+			Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true });
+			Vue.watch(
+				() => props.opt,
+				(newVal) => {
+					updateSelectItem();
+					filteredOptions.value = [...newVal];
+					// console.log("filteredOptions", filteredOptions.value);
+				}
+			);
+
+			//初始化objPicker在页面刚打开时的默认值
+			async function initDefaultValue() {
+				try {
+/* 改,增加 && props.modelValue !== "0",显示必填字段下拉选择框里的 钩(选中) -- 必填字段为 int/long,其默认值为 0。Lin
+					if (props.url && props.cb && props.modelValue) {
+*/				if (props.url && props.cb && props.modelValue && props.modelValue !== "0") {
+						let objectPickerParam;
+						let url = props.url;
+
+						//如果有定义过滤器
+						if (props.filter) {
+							//包含HTML实体的JSON字符串转为JSON对象,如原字符串是{&quot;dwid&quot;:&quot;88&quot;},注意key也必需用单引号包着
+							// const decodedString = props.filter.replace(/&quot;/g, '"'); // 转换为: {"dwid":"88"}
+							// objectPickerParam = JSON.parse(decodedString); // 转为json对象
+
+							const filterObj = props.filter; // 转为json对象
+							for (let k in filterObj) {
+								let v = filterObj[k];
+								url += "&" + k + "=" + v;
+							}
+
+							objectPickerParam = props.filter; // 转为json对象
+							objectPickerParam["input"] = props.inp;
+							objectPickerParam["codebook"] = props.cb;
+
+							// alert(url);
+						} else {
+							objectPickerParam = { input: props.inp, codebook: props.cb };
+						}
+
+						const objectPickerParamStr = JSON.stringify(objectPickerParam);
+
+						const params = new URLSearchParams();
+						params.append("objectpickerparam", objectPickerParamStr);
+						params.append("objectpickertype", "2");
+						params.append("objectpickervalue", props.modelValue); //需回显的值
+
+						// alert("1params:"+JSON.stringify(params));
+
+						axios
+							.post(props.url, params, {
+								headers: {
+									"Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
+								},
+							})
+							.then((response) => {
+								// alert(JSON.stringify(response.data));
+
+								if ("timeout" == response.data.statusText) {
+									alert("网络超时!");
+									return;
+								}
+
+								if (response.data.result) {
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+									const keys = Object.keys(response.data.result);
+									if (keys.length === 1) {
+										let code = keys[0];
+										let desc = response.data.result[keys[0]];
+*/
+									if (response.data.result.length === 1) {
+										var m = Object.entries(response.data.result[0])[0];
+										let code = m[0];
+										let desc = m[1];
+
+										if (props.opt)
+											props.opt.length = 0; //通过修改数组的length属性,直接清空数组元素,内存会被自动释放。这是性能最优的方式
+										else {
+											props.opt = [];
+										}
+										props.opt.push({ label: desc, value: code });
+										updateSelectItem();
+
+										// alert('props.opt:'+JSON.stringify(props.opt));
+									}
+								}
+							});
+					}
+				} catch (error) {
+					// callback(null, error.message); // 失败回调,传递错误
+				}
+			}
+
+			// Vue.onMounted(updateSelectItem);
+
+			const doSelectItem = (item) => {
+				emit("update:modelValue", item.value);
+				selectItem.value = item;
+				inputText.value = item.label;
+				hidePopup();
+				nextTick(() => {
+					console.log(item.value + "@@@props.modelValue:" + props.modelValue);
+					validate();
+					if (window.ssVm) {
+						// 遍历所有验证规则,找到依赖当前字段的规则
+						for (const [field, rules] of window.ssVm.validations.entries()) {
+							for (const rule of rules) {
+								if (rule.opt?.relField === props.name) {
+									// console.log("Found dependent field:", field); // 调试日志
+									window.ssVm.validateField(field);
+								}
+							}
+						}
+					}
+				});
+
+				// callGlobalOnchg 已移到 handleModelValueChange 统一处理,避免用户点击和桥接 API 赋值行为不一致 by xu 20260416
+			};
+
+			//可录入的objPicker,更新下拉菜单选项
+			async function updateOptionBYInputText(inpTxt) {
+				try {
+					let objectPickerParam;
+					let url = props.url;
+
+					if (props.url && props.cb) {
+						//如果有定义过滤器
+						if (props.filter || props.filterfield) {
+							let filterObj = props.filter;
+							if (!props.filter) filterObj = {};
+
+							if (props.filter) {
+								const filterObj = props.filter; // 转为json对象
+								for (let k in filterObj) {
+									let v = filterObj[k];
+									url += "&" + k + "=" + v;
+								}
+							}
+
+							if (props.filterfield) {
+								//加上filterfield的值过滤
+								let filterfieldArr = props.filterfield.split(",");
+								for (var i = 0; i < filterfieldArr.length; i++) {
+									let fieldName = filterfieldArr[i];
+									let fields = document.getElementsByName(fieldName);
+									if (!fields || fields.length < 1) {
+										alert("下拉菜单配置的过滤条件" + fieldName + "不存在!");
+										continue;
+									}
+
+									let v = null;
+									for (let j = 0; j < fields.length; j++) {
+										if (fields[j].value) {
+											v = fields[j].value;
+											break;
+										}
+									}
+
+									// let field = document.getElementsByName(fieldName)[0];
+									// let v = field.value;
+									if (v) {
+										url += "&" + fieldName + "=" + v;
+										filterObj[fieldName] = v;
+									}
+								}
+
+								console.log("filterfield url:" + url);
+							}
+
+							//包含HTML实体的JSON字符串转为JSON对象,如原字符串是{&quot;dwid&quot;:&quot;88&quot;},注意key也必需用单引号包着
+							// const decodedString = props.filter.replace(/&quot;/g, '"'); // 转换为: {"dwid":"88"}
+							// objectPickerParam = JSON.parse(decodedString); // 转为json对象
+							objectPickerParam = filterObj;
+							objectPickerParam["input"] = props.inp;
+							objectPickerParam["codebook"] = props.cb;
+
+							// alert(url);
+						} else {
+							objectPickerParam = { input: props.inp, codebook: props.cb };
+						}
+
+						const objectPickerParamStr = JSON.stringify(objectPickerParam);
+						const params = new URLSearchParams();
+						params.append("objectpickerparam", objectPickerParamStr);
+						params.append("objectpickertype", "1");
+						if (props.inp && props.inp === true) {
+							//把"true"改为true Ben(20251209)
+							params.append("objectpickersearchAll", 0); //只查录入的值
+							params.append("objectpickerinput", inpTxt); //录入的值
+							// 功能说明:将输入值也加到 URL 参数,避免后端只读 URL 不读 body by xu 20250408
+							if (inpTxt) {
+								url += "&objectpickerinput=" + encodeURIComponent(inpTxt);
+							}
+						} else {
+							params.append("objectpickersearchAll", 1);
+						}
+
+						axios
+							.post(url, params, {
+								headers: {
+									"Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
+								},
+							})
+							.then((response) => {
+								if ("timeout" == response.data.statusText) {
+									alert("网络超时!");
+									return;
+								}
+
+								// 先清空选项 by xu 20251212
+								if (props.opt) {
+									props.opt.length = 0;
+								} else {
+									props.opt = [];
+								}
+
+								if (response.data.result) {
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+									const keys = Object.keys(response.data.result);
+									// console.log("params:"+params+"@@response.data:"+JSON.stringify(response.data));
+									if (keys.length > 0) {
+										for (let k in response.data.result) {
+											props.opt.push({
+												label: response.data.result[k],
+												value: k,
+*/
+									if (response.data.result.length > 0) {
+										for (let i=0; i<response.data.result.length; i++) {
+											var m = Object.entries(response.data.result[i])[0];
+											props.opt.push({
+												label: m[1],
+												value: m[0],
+
+											});
+										}
+
+										// console.log('###inpTxt:'+inpTxt+';');
+										if (
+											props.inp &&
+											props.inp === true && //把"true"改为true Ben(20251209)
+											inpTxt.length > 0
+										) {
+											//对于可录入的,用已录入的值作过滤
+
+											filteredOptions.value = props.opt.filter((option) =>
+												option.label
+													.toLowerCase()
+													.includes(inputText.value.toLowerCase())
+											);
+
+											// 可录入的objPicker,当搜索结果只有一项时,自动选中这一项 by xu 20251212
+											if (filteredOptions.value.length === 1) {
+												const autoSelectItem = filteredOptions.value[0];
+												console.log(
+													"[objp] 搜索结果只有一项,自动选中:",
+													autoSelectItem
+												);
+												doSelectItem(autoSelectItem);
+												return; // 自动选中后直接返回,不需要显示popup
+											}
+
+											filteredOptions.value.unshift({ label: "", value: "" });
+
+											// console.log('###做了过滤:'+inputText.value.toLowerCase()+';');
+										} else {
+											filteredOptions.value = props.opt;
+											filteredOptions.value.unshift({ label: "", value: "" });
+										}
+
+										console.log("props.opt11:" + JSON.stringify(props.opt));
+									} else {
+										// 没有数据时,清空过滤选项 by xu 20251212
+										filteredOptions.value = [];
+										console.log("[objp] 接口返回空数据");
+									}
+								} else {
+									// result不存在时,清空过滤选项 by xu 20251212
+									filteredOptions.value = [];
+									console.log("[objp] 接口返回无result");
+								}
+
+								// 无论是否有数据,都显示popup by xu 20251212
+								openPopup(); // Teleport 场景下统一打开并重定位 by xu 20260126
+							});
+					}
+				} catch (error) {
+					// callback(null, error.message); // 失败回调,传递错误
+				}
+			}
+
+			// 计算弹出方向和最大高度的方法 by xu 20251212
+			// 当空间不足时限制popup高度并显示滚动条
+			const calculatePopupDirection = () => {
+				const triggerEl =
+					selectContainerRef.value?.querySelector(".input") ||
+					selectContainerRef.value;
+				if (!triggerEl) return;
+
+				const selectRect = triggerEl.getBoundingClientRect();
+				const viewportHeight = window.innerHeight;
+
+				// 3. 计算上下可用空间
+				const spaceBelow = viewportHeight - selectRect.bottom - 10; // 减10px留边距
+				const spaceAbove = selectRect.top - 10; // 减10px留边距
+
+				// 4. popup预估高度(假设每项36px,最多显示8项 + padding)
+				const estimatedPopupHeight = 300;
+				const minPopupHeight = 100; // 最小高度
+
+				console.log(
+					"[popup] 空间计算 - spaceAbove:",
+					spaceAbove,
+					"spaceBelow:",
+					spaceBelow,
+					"estimatedHeight:",
+					estimatedPopupHeight
+				);
+
+				// 5. 判断方向和最大高度 by xu 20251212
+				if (spaceBelow >= estimatedPopupHeight) {
+					// 下方空间足够,向下展开,不限制高度
+					popupDirection.value = "bottom";
+					popupMaxHeight.value = "none";
+					console.log("[popup] 向下展开,空间充足");
+				} else if (spaceAbove >= estimatedPopupHeight) {
+					// 上方空间足够,向上展开,不限制高度
+					popupDirection.value = "top";
+					popupMaxHeight.value = "none";
+					console.log("[popup] 向上展开,空间充足");
+				} else {
+					// 上下空间都不足,选择空间大的方向,并限制高度出滚动条
+					if (spaceBelow >= spaceAbove) {
+						popupDirection.value = "bottom";
+						popupMaxHeight.value = Math.max(spaceBelow, minPopupHeight) + "px";
+						console.log(
+							"[popup] 向下展开,空间不足,限制高度:",
+							popupMaxHeight.value
+						);
+					} else {
+						popupDirection.value = "top";
+						popupMaxHeight.value = Math.max(spaceAbove, minPopupHeight) + "px";
+						console.log(
+							"[popup] 向上展开,空间不足,限制高度:",
+							popupMaxHeight.value
+						);
+					}
+				}
+			};
+
+			// Teleport popup 的定位(fixed) by xu 20260126
+			const updatePopupPosition = () => {
+				const triggerEl =
+					selectContainerRef.value?.querySelector(".input") ||
+					selectContainerRef.value;
+
+				if (!triggerEl) return;
+
+				const triggerRect = triggerEl.getBoundingClientRect();
+				const margin = 10;
+				const viewportWidth = window.innerWidth;
+				const viewportHeight = window.innerHeight;
+/* 改,改为紧挨录入行的下拉按钮。Lin
+				const popupGap = 0; // 功能说明:定位不再做 -10 重叠,让 padding-top 自然形成间距 by xu 20260126
+*/
+				let popupGap;
+				if (props.search)
+					popupGap = -8;
+				else
+					popupGap = -18;
+
+				// 先给一个初始位置,确保下一帧可以测量弹层尺寸 by xu 20260126
+				popupLayerStyle.value = {
+					position: "fixed",
+					left: `${Math.max(margin, triggerRect.left)}px`,
+					top: `${Math.max(margin, triggerRect.bottom + popupGap)}px`, // 功能说明:与输入框底部对齐 by xu 20260126
+					bottom: "auto", // 功能说明:fixed 场景显式取消 bottom,避免与 top 同时生效 by xu 20260126
+					minWidth: `${Math.max(0, triggerRect.width)}px`,
+					zIndex: 9999,
+					pointerEvents: "auto",
+				};
+
+				Vue.nextTick(() => {
+					const popupEl = popupRef.value;
+					if (!popupEl) return;
+
+					const popupRect = popupEl.getBoundingClientRect();
+					const maxLeft = viewportWidth - popupRect.width - margin;
+					const left = Math.min(
+						Math.max(margin, triggerRect.left),
+						Math.max(margin, maxLeft)
+					);
+
+					let top;
+					if (popupDirection.value === "top") {
+/* 改,上拉时,紧挨录入行的下拉按钮。Lin
+						top = triggerRect.top - popupRect.height - popupGap; // 功能说明:向上展开时与输入框顶部对齐 by xu 20260126
+*/					top = triggerRect.top - popupRect.height - popupGap -10; // 功能说明:向上展开时与输入框顶部对齐 by xu 20260126
+						top = Math.max(margin, top);
+					} else {
+						top = triggerRect.bottom + popupGap; // 功能说明:向下展开时与输入框底部对齐 by xu 20260126
+						if (top + popupRect.height > viewportHeight - margin) {
+							top = Math.max(
+								margin,
+								viewportHeight - popupRect.height - margin
+							);
+						}
+					}
+
+					popupLayerStyle.value = {
+						...popupLayerStyle.value,
+						left: `${left}px`,
+						top: `${top}px`,
+						bottom: "auto", // 功能说明:无论 top/bottom 展开都用 top 定位,禁用 bottom by xu 20260126
+					};
+				});
+			};
+
+			const openPopup = () => {
+				if (!popupWinVisible.value) popupWinVisible.value = true;
+				Vue.nextTick(() => {
+					calculatePopupDirection();
+					updatePopupPosition();
+				});
+			};
+
+			// Teleport 场景下:滚动/缩放重定位 by xu 20260126
+			const handleViewportChange = () => {
+				if (!popupWinVisible.value) return;
+				calculatePopupDirection();
+				updatePopupPosition();
+			};
+
+			// Teleport 场景下:点击外部关闭 by xu 20260126
+			const onDocPointerDown = (event) => {
+				if (!popupWinVisible.value) return;
+				const target = event.target;
+				if (selectContainerRef.value?.contains(target)) return;
+				if (popupRef.value?.contains(target)) return;
+				hidePopup();
+			};
+
+			//点击下拉菜单的文本区域时,会触发的方法
+			function togglePopup() {
+				// 可录入的 objPicker,更新下拉菜单选项
+				updateOptionBYInputText(inputText.value);
+				// popupWinVisible.value = !popupWinVisible.value;
+				Vue.nextTick(() => {
+					calculatePopupDirection();
+					updatePopupPosition(); // Teleport 场景下同步定位 by xu 20260126
+				});
+			}
+
+			const hidePopup = () => {
+				popupWinVisible.value = false;
+			};
+
+			//点击下拉菜单的三角形时,会触发的方法
+			// 添加toggle逻辑,点击时切换显示/隐藏 by xu 20251212
+			const suffixClick = () => {
+				// 如果popup已显示,则关闭 by xu 20251212
+				if (popupWinVisible.value) {
+					hidePopup();
+					console.log("[objp] 点三角关闭popup");
+					return;
+				}
+
+				//可录入的objPicker,更新下拉菜单选项
+				updateOptionBYInputText("");
+				Vue.nextTick(() => {
+					calculatePopupDirection();
+					updatePopupPosition(); // Teleport 场景下同步定位 by xu 20260126
+				});
+				console.log("[objp] 点三角打开popup");
+			};
+
+			//可录入的objPicker,录入项变化时,会触发
+			async function handleInputChange(event) {
+				inputText.value = event.target.value;
+				if (!inputText.value) {
+					inputText.value = "";
+				}
+
+				//可录入的objPicker,更新下拉菜单选项
+				updateOptionBYInputText(inputText.value);
+
+				// filteredOptions.value = props.opt.filter((option) =>
+				//     option.label.toLowerCase().includes(inputText.value.toLowerCase())
+				// );
+				// if (!popupWinVisible.value) {
+				//   popupWinVisible.value = true; // 确保下拉框在输入时打开
+				// }
+			}
+
+/// 增加,改为鼠标离开自动关闭,抄自新的 SsCcp。Lin
+			// 增加 leaveInput、enterInput、leavePopup、enterPopup,以实现录入行和下拉选择框互相离开、进入时不关闭下拉选择框
+			// 增加延时 hidePopupTimer 和 clearTimerByHidePopup(),等待鼠标从录入行进入下拉选择框(mouseenter事件) -- 鼠标一旦进入下拉选择框,清除延时,阻止关闭下拉选择框
+			let hidePopupTimer = null;	// 等待鼠标从录入行进入下拉选择框 -- 延时到才关闭。Lin
+			// 鼠标离开录入行(mouseleave事件) -- 保持下拉选择框。Lin
+			const leaveInput = () => {
+				hidePopupTimer = setTimeout(() => {
+					popupWinVisible.value = false;
+				}, 200);	// 200ms延迟,给鼠标移动到下拉选择框的时间
+			};
+			// 鼠标进入下拉选择框(mouseenter事件) -- 保持下拉选择框。Lin
+			const enterPopup = () => {
+				clearTimeout(hidePopupTimer); // 清除等待关闭的定时器
+				popupWinVisible.value = true;
+			};
+			let keepPopupTimer = null;	// 等待鼠标从下拉选择框进入录入行 -- 延时到才关闭。Lin
+			// 鼠标离开下拉选择框(mouseleave事件) -- 保持下拉选择框。Lin
+			const leavePopup = () => {
+				keepPopupTimer = setTimeout(() => {
+					popupWinVisible.value = false;
+				}, 200);	// 200ms延迟,给鼠标移动到下拉选择框的时间
+			};
+			// 鼠标进入录入行(mouseenter事件) -- 保持下拉选择框。Lin
+			const enterInput = () => {
+				if (popupWinVisible.value) {
+					clearTimeout(keepPopupTimer); // 清除等待关闭的定时器
+					popupWinVisible.value = true;
+				}
+			};
+///
+
+			Vue.onMounted(() => {
+				initDefaultValue();
+				// Teleport 场景下:滚动/缩放需要重定位(scroll 用 capture 捕获容器滚动) by xu 20260126
+				window.addEventListener("resize", handleViewportChange);
+				window.addEventListener("scroll", handleViewportChange, true);
+
+				// 点击外部关闭(原本依赖 mouseleave,Teleport 后会误关) by xu 20260126
+				document.addEventListener("pointerdown", onDocPointerDown, true);
+			});
+			Vue.onUnmounted(() => {
+				window.removeEventListener("resize", handleViewportChange);
+				window.removeEventListener("scroll", handleViewportChange, true);
+				document.removeEventListener("pointerdown", onDocPointerDown, true);
+			});
+
+			return {
+				errMsg,
+				selectItem,
+				inputText,
+				canInput,
+				filteredOptions,
+				popupWinVisible,
+				popupDirection,
+				popupMaxHeight, // 添加popup最大高度 by xu 20251212
+				popupContentAreaMaxHeight,
+				selectContainerRef,
+				popupRef,
+				teleportRootStyle,
+				popupLayerStyle,
+				suffixClick,
+				togglePopup,
+				hidePopup,
+				doSelectItem,
+				handleInputChange,
+/// 增加,改为鼠标离开自动关闭,抄自新的 SsCcp。Lin
+				leaveInput,
+				enterInput,
+				leavePopup,
+				enterPopup,
+///
+			};
+		},
+
+		template: `
+			<div class="input" style="position: relative" :style="{width: width}">
+<!-- 改,增加 leaveInput、enterInput -- 改为鼠标离开自动关闭,抄自新的 SsCcp。Lin
+				<div class="select-container" ref="selectContainerRef">
+-->			<div class="select-container" ref="selectContainerRef" @mouseleave="leaveInput" @mouseenter="enterInput">
+					<div class="input" @click="togglePopup">
+<!-- 再改,去掉 .value=,属于语法错误。去掉后,好像没问题。Lin
+						<input 
+							type="hidden"
+							:name="name"
+							:value="selectItem.value"
+							.value="selectItem.value"
+						/>
+-->
+						<input 
+							type="hidden"
+							:name="name"
+							:value="selectItem.value"
+						/>
+
+						<input
+							v-model="inputText"
+							@input="handleInputChange"
+							v-if="canInput"
+							:placeholder="placeholder"
+						/>
+						<input
+							v-else
+							:placeholder="placeholder"
+							:value="selectItem.label"
+							disabled
+							style="pointer-events: none;"
+						/>
+						<div class="suffix" @click.stop="suffixClick">
+							<ss-form-icon :class="popupWinVisible ? 'form-icon-transform-select select' : 'form-icon-select'" />
+						</div>
+					</div>
+				 
+					<!-- 修复表格内弹层被截断:popup Teleport 到 body by xu 20260126 -->
+					<teleport to="body">
+<!-- 改,增加 leaveInput、enterInput -- 改为鼠标离开自动关闭,抄自新的 SsCcp。Lin
+						<div v-show="popupWinVisible" class="select-container ss-objp-teleport-root" :style="teleportRootStyle">
+-->					<div v-show="popupWinVisible" class="select-container ss-objp-teleport-root" :style="teleportRootStyle"
+								@mouseleave="leavePopup" @mouseenter="enterPopup"> 
+							<!-- popup弹出层,添加maxHeight和overflowY支持空间不足时滚动 by xu 20251212 -->
+<!-- 改,去掉 :class="popupDirection",去掉下拉列表框的尖角。Lin
+							<div ref="popupRef" class="popup-win" :class="popupDirection" :style="[popupLayerStyle, { maxHeight: popupMaxHeight !== 'none' ? popupMaxHeight : 'none', overflowY: 'visible' }]">
+-->						<div ref="popupRef" class="popup-win" :style="[popupLayerStyle, { maxHeight: popupMaxHeight !== 'none' ? popupMaxHeight : 'none', overflowY: 'visible' }]">
+								<div v-if="opt && opt.length && filteredOptions.length > 0" class="popup-content">
+									<div class="content-area" :style="popupContentAreaMaxHeight ? { maxHeight: popupContentAreaMaxHeight, overflowY: 'auto' } : null">
+										<div
+											v-for="(item, index) in filteredOptions"
+											:key="index"
+											@click="doSelectItem(item)"
+											:class="{ active: item.value === selectItem.value }"
+										>
+											<span class="check-icon">
+												<ss-form-icon class="form-icon-select-checked" />
+											</span>
+											<span>{{ item.label }}</span>
+										</div>
+									</div>
+								</div>
+								<div v-else class="popup-content">
+									<div class="content-area">
+										<div class="content-area">
+											<span>无选项</span>
+										</div>
+									</div>
+								</div>
+							</div>
+						</div>
+					</teleport>
+				</div>
+			</div>
+		`,
+	};
+	// ss-hidden 隐藏字段组件
+	const SsHidden = {
+		name: "SsHidden",
+		props: {
+			modelValue: String,
+			name: {
+				type: String,
+				required: true,
+			},
+			rule: {
+				type: String,
+				required: false,//因为要单独发布非级联用的隐藏字段,改为非必需
+			},
+
+			param: {
+				type: String,
+				required: false,//因为要单独发布非级联用的隐藏字段,改为非必需
+			},
+			url: {
+				type: String,
+				required: false,//因为要单独发布非级联用的隐藏字段,改为非必需
+			},
+		},
+		emits: ["update:modelValue"],
+
+		setup(props, { emit }) {
+			const errMsg = Vue.ref("");
+			const validate = () => {
+				if (window.ssVm) {
+					const result = window.ssVm.validateField(props.name);
+					console.log("validate", window.ssVm.validateField(props.name));
+					errMsg.value = result.valid ? "" : result.message;
+				}
+			};
+			Vue.onMounted(() => {
+				/**
+				 * 初始化级联菜单值初始值思路:
+				 * 1. 带隐藏字段(即带编码规则)的级联菜单
+				 *  在隐藏字段这,可以取到要回显的值和编码规则,从而计算出各级下拉菜单要回显的值。
+				 *  然后通过ajax取各级级联菜单的值回显。
+				 *  2. 不带隐藏字段的级联,只能在各个下拉菜单的setup事件中通过ajax取回显值回显
+				 */
+
+				// 当同组级联下拉菜单选中值变化时,会调用本隐藏字段下面这方法设置隐藏字段值
+				window.addEventListener(
+					"cascader-setHiddenVal-" + props.name,
+					(event) => {
+						const { value } = event.detail;
+						emit("update:modelValue", value);
+						console.log(value);
+						setTimeout(() => {
+							validate();
+						}, 50);
+					}
+				);
+
+				// 如果有初始值,触发回显过程
+				if (props.modelValue&&props.param) {//增加props.param非空判断,非级联的hidden没props.param Ben(20260414)
+					console.log("级联隐藏字段,开始回显,初始值:", props.modelValue);
+					triggerCascaderEcho(props.modelValue);
+					validate();
+				}
+			});
+
+			// 触发级联回显
+			const triggerCascaderEcho = (code) => {
+				/**
+				 * 开始回显,初始值: 440304
+				 * 解析后的所有值: Array(3)0: "440000"1: "440300"2: "440304"length: 3[[Prototype]]: Array(0)
+				 */
+				const values = parseHiddenCodeForAll(code, props.rule);
+				console.log("解析后的所有值:", values);
+
+				// 转换为 JSON 对象
+				// const paramObj = JSON.parse(props.param);
+				const paramObj = props.param;
+				let selectArr = paramObj.fieldOrd; //保存本组级联菜单项的数组,如:['hksheng','hkshi','hkxian']
+				if (selectArr.length != values.length) {
+					// alert('属性'+props.name+'的值'+code+'与级联菜单中下拉菜单的数目不匹配!');
+					return;
+				}
+
+				// 按顺序触发回显,并增加延迟确保数据加载
+				/**
+				 * 通过隐藏字段的setup事件,
+				 * 循环遍历各级下拉菜单,并触发定义在下拉菜单中的'cascader-echo'事件,
+				 * 在此事件中完成每个下拉菜单回显值操作(只取当前要回显的键值对显示,
+				 * 下拉菜单所有的值,在点击下拉菜单时,才通过ajax取)。
+				 */
+				values.forEach((value, index) => {
+					if (value) {
+						setTimeout(() => {
+							let upperVal = undefined;
+							if (index != 0) {
+								upperVal = values[index - 1];
+							}
+
+							const echoEvent = new CustomEvent(
+								"cascader-echo-" + selectArr[index],
+								{
+									detail: {
+										name: props.name,
+										value: value,
+										// level: index + 1,
+										isAuto: true, // 标记为自动回显
+										upperVal: upperVal,
+									},
+								}
+							);
+
+							console.log(props.name + "--upperValue:" + upperVal);
+
+							window.dispatchEvent(echoEvent);
+						}, index * 500); // 每级增加500ms延迟
+					}
+				});
+			};
+
+			// 解析所有级别的代码
+			const parseHiddenCodeForAll = (code, rule) => {
+				if (!code || !rule) return [];
+
+				// 获取规则中每段的长度
+				const segments = [];
+				let currentChar = rule[0];
+				let currentLength = 1;
+
+				for (let i = 1; i < rule.length; i++) {
+					if (rule[i] === currentChar) {
+						currentLength++;
+					} else {
+						segments.push(currentLength);
+						currentChar = rule[i];
+						currentLength = 1;
+					}
+				}
+				segments.push(currentLength);
+
+				// 解析每一级的值
+				const values = [];
+				let position = 0;
+
+				segments.forEach((length, index) => {
+					const value = code
+						.substring(0, position + length)
+						.padEnd(rule.length, "0");
+					values.push(value);
+					position += length;
+				});
+
+				return values;
+			};
+			watchEffect(() => {});
+			return {};
+		},
+		template: `<input type="hidden" :name="name" :value="modelValue">`,
+	};
+	// ss-cascader 级联选择器
+	const SsCcp = {
+		name: "SsCcp",
+		inheritAttrs: false,
+		props: {
+			modelValue: String,
+
+			name: {
+				type: String,
+				required: true,
+			},
+			level: {
+				type: [Number, String],
+				default: 1,
+			},
+			opt: {
+				type: Array,
+				default: () => [],
+			},
+			placeholder: {
+				type: String,
+				default: "",	// : "请选择",。再改,去掉 placeholder 默认值 "请选择" 。Lin
+			},
+			width: {
+				type: String,
+				default: "150px",
+			},
+			direction: {
+				type: String,
+				default: "bottom",
+			},
+			mode: {
+				type: String,
+				default: "1",
+			},
+
+			//级联菜单配置参数,如果是数组,则代表本下拉菜单是多套级联菜单共用的第一级菜单。如果是对象,则只有一套级联菜单用此下拉菜单。
+			param: {
+				type: [String, Object, Array],
+				default: () => ({}),
+			},
+			//向后台拿数据的url
+			url: {
+				type: String,
+				required: true,
+			},
+/// 再增加,增加 <ss-ccp :search="true" -- 紧挨录入行的下拉按钮。Lin
+			search: {
+				type: Boolean,
+				default: false,
+			},
+///
+/// 再增加,增加 <ss-ccp :inp= -- SsCcp 支持 inp="true"。Lin
+			inp: {
+				type: Boolean,
+				default: false,
+			},
+///
+		},
+		emits: ["update:modelValue", "change"],
+
+		setup(props, { emit }) {
+			const rawProps = props;
+			const normalizeParamValue = (param) => {
+				if (Array.isArray(param)) {
+					return param
+						.map((item) => normalizeParamValue(item))
+						.filter((item) => {
+							if (Array.isArray(item)) {
+								return item.length > 0;
+							}
+							return item && Object.keys(item).length > 0;
+						});
+				}
+				if (!param) {
+					return {};
+				}
+				if (typeof param === "string") {
+					const decoded = param
+						.trim()
+						.replace(/&quot;/g, "\"")
+						.replace(/&#39;/g, "'")
+						.replace(/&amp;/g, "&");
+					if (!decoded) {
+						return {};
+					}
+					try {
+						return JSON.parse(decoded);
+					} catch (jsonError) {
+						try {
+							return Function(`"use strict"; return (${decoded});`)();
+						} catch (evalError) {
+							console.warn("[SsCcp] param parse failed:", rawProps.name, decoded, evalError);
+							return {};
+						}
+					}
+				}
+				if (typeof param === "object") {
+					return param;
+				}
+				return {};
+			};
+			const normalizedLevel = Vue.computed(() => {
+				const levelNum = Number(rawProps.level);
+				return Number.isFinite(levelNum) && levelNum > 0 ? levelNum : 1;
+			});
+			const normalizedParam = Vue.computed(() => normalizeParamValue(rawProps.param));
+			props = new Proxy(rawProps, {
+				get(target, key, receiver) {
+					if (key === "level") {
+						return normalizedLevel.value;
+					}
+					if (key === "param") {
+						return normalizedParam.value;
+					}
+					return Reflect.get(target, key, receiver);
+				},
+			});
+/// 增加,增加 <ss-ccp :inp= -- SsCcp 支持 inp="true"。Lin
+			const canInput = props.inp;
+			let inputText = Vue.ref(""); // 用于存储输入框的文本
+			const filteredOptions = Vue.ref(props.opt);
+///
+
+			// alert('级联菜单初始化:'+props.name+':--:'+props.modelValue);
+			const selectItem = Vue.ref({ label: props.placeholder, value: "" });
+			const popupWinVisible = Vue.ref(false);
+			const isAutoEcho = Vue.ref(false); // 用于标记是否是自动回显
+			const upperValue = Vue.ref(""); //上级下拉菜单当前值,在初始化下拉菜单默认值时,和上级下拉菜单的值变化时,修改此upperValue变量
+			const popupDirection = Vue.ref("bottom");
+			const popupMaxHeight = Vue.ref("none"); // popup最大高度,用于空间不足时限制高度并出滚动条 by xu 20251212
+
+/// 增加,"修复表格内弹层被截断:popup Teleport 到 body"。Lin
+ // 抄自 SsObjp.setup( 里的 "修复表格内下拉弹层被 overflow 截断:popup 使用 Teleport 到 body + fixed 定位"
+			const popupRef = Vue.ref(null);
+			const teleportRootStyle = Vue.ref({
+				position: "fixed",
+				left: "0",
+				top: "0",
+				width: "0",
+				height: "0",
+				zIndex: 9999,
+				pointerEvents: "none",
+			});
+			const popupLayerStyle = Vue.ref({
+				position: "fixed",
+				left: "0",
+				top: "0",
+				bottom: "auto", // 功能说明:覆盖 .popup-win.top 的 bottom 定位,避免 fixed 场景被撑高/错位 by xu 20260126
+				minWidth: "0",
+				zIndex: 9999,
+				pointerEvents: "auto",
+			});
+///
+
+			//有隐藏字段的下拉菜单,加载菜单项并展开事件
+			// 被上级下拉菜单选中值后,触发本下拉菜单刷新菜单项并弹出显示
+			window.addEventListener("cascader-open-" + props.name, async (event) => {
+				const { upperVal } = event.detail;
+				upperValue.value = upperVal;
+				console.log(
+					"22props.name:" +
+						props.name +
+						",22props.upperValue:" +
+						upperValue.value
+				);
+
+				selectItem.value = ""; //清除本下拉菜单当前选中的值
+				emit("update:modelValue", ""); //通知父级
+
+				//清空下拉菜单,并设置第一项的值为placeholder
+				clearAndInit1stOpt();
+
+				//下个下拉菜单名
+				let nextSelName = getNextSel(props.name, props.param.fieldOrd);
+				if (nextSelName) {
+					//清下个下拉菜单选中值和选项
+					event = new CustomEvent("cascader-cleanOpt-" + nextSelName, {
+						detail: {},
+					});
+					window.dispatchEvent(event);
+				}
+
+/* 再改。Lin
+ * 解决父级选中 空,子级弹出 空白下拉选择框
+ * 解决选中父级后,子级不出现 钩 的问题
+				showPopup();
+*/
+				if (upperValue.value) {
+					updateSelectItem();	// 再增加,解决选中父级后,子级不出现 钩 的问题。Lin
+					showPopup();
+				} else {
+					hidePopup();
+				}
+			});
+
+			//设置mode2的下级下拉菜单的上级菜单当前值
+			function setNextSelectUpperValue() {
+				//设置下级菜单的上级菜单当前值upperValue
+				let paramArr = undefined;
+				if (Array.isArray(props.param)) {
+					paramArr = props.param;
+				} else {
+					paramArr = [];
+					paramArr.push(props.param);
+				}
+
+				for (const oneParam of paramArr) {
+					//下个下拉菜单名
+					const nextSelName = getNextSel(props.name, oneParam.fieldOrd);
+					if (nextSelName) {
+						setTimeout(() => {
+							const openNextEvent = new CustomEvent(
+								"cascade-setUpperVal-" + nextSelName,
+								{
+									detail: {
+										upperVal: props.modelValue,
+									},
+								}
+							);
+							window.dispatchEvent(openNextEvent);
+						}, 100);
+					}
+				} // end for
+			}
+
+			// 把上级 级联下拉菜单的值,设置进本组件的事件
+			window.addEventListener("cascade-setUpperVal-" + props.name, (event) => {
+				// alert('props.name:'+props.name+',props.upperValue:'+event.detail.upperVal);
+				const { upperVal } = event.detail;
+				upperValue.value = upperVal;
+
+				// console.log('props.name:'+props.name+',props.upperValue:'+upperValue.value);
+			});
+
+			//清空下拉菜单,并设置第一项的值为空
+			function clearAndInit1stOpt() {
+				if (props.opt)
+					props.opt.length = 0; //通过修改数组的length属性,直接清空数组元素,内存会被自动释放。这是性能最优的方式
+				else {
+					props.opt = [];
+				}
+				props.opt.push({ label: "", value: "" });
+			}
+
+			//获取下一级下拉菜单,如果下一级下拉菜单不存在,则返回undefined
+			function getNextSel(selName, selNameArr) {
+				// 检查参数有效性
+				if (!Array.isArray(selNameArr) || selNameArr.length === 0) {
+					return undefined;
+				}
+
+				// 查找当前元素的索引
+				const currentIndex = selNameArr.indexOf(selName);
+
+				// 如果元素不存在或已经是最后一个元素,返回undefined
+				if (currentIndex === -1 || currentIndex === selNameArr.length - 1) {
+					return undefined;
+				}
+
+				// 返回下一个元素
+				return selNameArr[currentIndex + 1];
+			}
+
+			const validate = () => {
+				if (window.ssVm) {
+					return window.ssVm.validateField(props.name);
+				}
+				return { valid: true };
+			};
+
+/// 再增加,抄自 SsObjp.updateSelectItem() -- SsCcp 支持 inp="true"。Lin
+			//在objPicker界面,选中value对应的项
+			const updateSelectItem = () => {
+				// console.log(props.opt);
+				const item = props.opt.find((it) => it.value === props.modelValue);
+				if (item) {	// 这里不需要加 && props.modelValue !== "0","0" 的话,item 为空 -- 显示必填字段下拉选择框里的 钩(选中)。Lin
+					selectItem.value = item;
+					inputText.value = item.label;
+				} else {
+					selectItem.value = { label: "", value: "" };
+					inputText.value = "";
+				}
+				// validate();
+			};
+///
+
+			// 处理选择事件
+			const doSelectItem = (item) => {
+				selectItem.value = item;
+				inputText.value = item.label;	// 再增加,增加 inputText -- SsCcp 支持 inp="true"。Lin
+				emit("update:modelValue", item.value); //修改本下拉菜单在vue中保存的值
+
+				// alert('item.value:'+item.value);
+				if (props.mode === "1") {
+					// mode 1 模式:修改隐藏字段值
+
+					let event = new CustomEvent(
+						"cascader-setHiddenVal-" + props.param.combField,
+						{
+							detail: {
+								value: item.value,
+							},
+						}
+					);
+					window.dispatchEvent(event);
+				}
+				emit("change", item.value); //触发配置的change方法
+
+				nextTick(() => {
+					validate();
+					if (window.ssVm) {
+						for (const [field, rules] of window.ssVm.validations.entries()) {
+							for (const rule of rules) {
+								if (rule.options?.relField) {
+									const relFields = String(rule.options.relField)
+										.split(",")
+										.map((name) => name.trim())
+										.filter(Boolean);
+									if (relFields.includes(props.name)) {
+										window.ssVm.validateField(field);
+									}
+								}
+							}
+						}
+					}
+				});
+
+				//设置下级菜单的上级菜单当前值upperValue
+				let paramArr = undefined;
+				if (Array.isArray(props.param)) {
+					paramArr = props.param;
+				} else {
+					paramArr = [];
+					paramArr.push(props.param);
+				}
+
+				for (const oneParam of paramArr) {
+					//下个下拉菜单名
+					const nextSelName = getNextSel(props.name, oneParam.fieldOrd);
+					if (nextSelName) {
+						setTimeout(() => {
+							const openNextEvent = new CustomEvent(
+								"cascader-open-" + nextSelName,
+								{
+									detail: {
+										upperVal: item.value,
+									},
+								}
+							);
+							window.dispatchEvent(openNextEvent);
+						}, 100);
+					}
+				} // end for
+
+				hidePopup();
+
+				//下个下拉菜单名
+				// let nextSelName = getNextSel(props.name, props.param.fieldOrd);
+				// if(nextSelName){
+				//   // //设置下一级下拉菜单中保存的本下拉菜单值(upperValue)
+				//   // event = new CustomEvent('cascade-setUpperVal-'+nextSelName, {
+				//   //   detail: {
+				//   //     value: item.value
+				//   //   }
+				//   // });
+				//   // window.dispatchEvent(event);
+				//
+				//   //触发下一级下拉菜单,重新初始化下拉菜单项并弹出显示
+				//   event = new CustomEvent('cascader-open-' +nextSelName, {
+				//     detail: {
+				//       upperVal: item.value
+				//     }
+				//   });
+				//   window.dispatchEvent(event);
+				// }
+
+				// 只在手动选择时自动展开下一级
+				// if (!isAutoEcho.value) {
+				//   const nextLevel = props.level + 1;
+				//   setTimeout(() => {
+				//     const openNextEvent = new CustomEvent('open-next-cascader', {
+				//       detail: {
+				//         name: props.name,
+				//         level: nextLevel
+				//       }
+				//     });
+				//     window.dispatchEvent(openNextEvent);
+				//   }, 100);
+				// }
+			};
+
+			// 监听下一级展开事件 (仅 mode 2)
+			window.addEventListener("cascade-open", (event) => {
+				if (props.mode === "2") {
+					const { level } = event.detail;
+					if (level === props.level) {
+						popupWinVisible.value = true;
+					}
+				}
+			});
+
+			if (props.mode === "1") {
+				//如果是有隐藏字段的下拉菜单
+				// 监听回显事件
+				window.addEventListener(
+					"cascader-echo-" + props.name,
+					async (event) => {
+						const { name, value, isAuto, upperVal } = event.detail;
+						// level,
+						if (upperVal) {
+							upperValue.value = upperVal;
+							console.log(
+								"value:" +
+									value +
+									",upperValue:" +
+									upperValue +
+									",初始化级联组件时props.name:" +
+									props.name
+							);
+						}
+
+						// if (name === props.name && level === props.level) {
+						// 设置自动回显标记
+						isAutoEcho.value = true;
+
+						// if (props.opt.length === 0) {
+						// const loadDataEvent = new CustomEvent('cascader-load-data', {
+						//   detail: {
+						//     name: props.name,
+						//     level: props.level,
+						//     value: value
+						//   }
+						// });
+						// window.dispatchEvent(loadDataEvent);
+
+						//下面的代码只用于页面刚打开时,初始化级联菜单的回显值。
+
+						//Vue.watch用于监听数据的变化,并在数据变化时执行特定的回调函数。
+						//这段代码使用了 Vue.js 的 watch API 来监听 props.opt 的变化,如果props.opt有变化,则自动
+
+						//   const unwatch = Vue.watch(
+						//       () => props.opt,                // 监听的数据源(props.opt)
+						//       (newOptions) => {              // 回调函数
+						//         if (newOptions.length > 0) { // 条件判断
+						//           matchAndSelect(value);     // 执行逻辑
+						//           unwatch();                 // 停止监听
+						//         }
+						//       },
+						//       { immediate: true }            // 配置:立即触发一次
+						//   );
+						// } else {
+						//   matchAndSelect(value);
+						// }
+
+						// 初始化级联菜单在页面刚打开时的默认值
+						async function initDefaultValue(value) {
+							try {
+								// alert(1);
+								if (
+									props.url &&
+									props.param
+									// && props.modelValue 对于有rule编码规则的级联菜单(即mode=1),modelValue一定是空的,所以注释掉,修复mode=1的级联菜单无法回显问题。Ben(20251124)
+								) {
+									// alert(2);
+									/**
+									 *         let objectPickerParam=
+									 *             {"objectpickerparam":"{\"input\":\"false\",\"cascadingLevel\":\"hksheng,hkshi,hkxian\"," +
+									 *                     "\"name\":\"hksheng\"," +
+									 *                     "\"cascadingName\":\"dq\",\"cascadingInputsName\":\"hkdqm\"," +
+									 *                     "\"codebook\":\"sheng\"}",
+									 *                 "objectpickertype":2,
+									 *                 "objectpickervalue":"440000"
+									 *             };
+									 */
+
+									const objectPickerParam = {
+										input: "false",
+										cascadingLevel: props.param.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
+										name: props.name, //本下拉菜单名
+										cascadingName: props.param.name, //级联菜单名
+										cascadingInputsName: props.param.combField, //对象属性,即隐藏字段名,如:hkdqm
+										codebook: props.param.codebook,
+									};
+
+									const objectPickerParamStr =
+										JSON.stringify(objectPickerParam);
+
+									const params = new URLSearchParams();
+									params.append("objectpickerparam", objectPickerParamStr);
+									params.append("objectpickertype", "2");
+									params.append("objectpickervalue", value); //需回显的值
+
+									axios
+										.post(props.url, params, {
+											headers: {
+												"Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
+											},
+										})
+										.then((response) => {
+											// alert(JSON.stringify(response.data));
+
+											if ("timeout" == response.data.statusText) {
+												alert("网络超时!");
+												return;
+											}
+
+											if (response.data.result) {
+												const keys = Object.keys(response.data.result);
+												if (keys.length === 1) {
+													let code = keys[0];
+													let desc = response.data.result[keys[0]];
+													clearAndInit1stOpt();
+													props.opt.push({ label: desc, value: code });
+
+													if (value) matchAndSelect(value);
+													// updateSelectItem();
+
+													// alert('props.opt:'+JSON.stringify(props.opt));
+												}
+											}
+										});
+								}
+							} catch (error) {
+								alert(error);
+								// callback(null, error.message); // 失败回调,传递错误
+							}
+						}
+
+						//下面的代码只用于页面刚打开时,初始化级联菜单的回显值。
+						initDefaultValue(value);
+
+						// 延迟重置自动回显标记
+						setTimeout(() => {
+							isAutoEcho.value = false;
+						}, 500);
+					}
+				);
+
+				// 被上级下拉菜单触发的,清除选中值和下拉菜单选项
+				window.addEventListener(
+					"cascader-cleanOpt-" + props.name,
+					async (event) => {
+						upperValue.value = "";
+
+						selectItem.value = ""; //清除本下拉菜单当前选中的值
+						emit("update:modelValue", ""); //通知父级
+
+						//清空所有下拉菜单项
+						if (props.opt) {
+							props.opt.length = 0;
+						} else {
+							props.opt = [];
+						}
+
+						//下个下拉菜单名
+						let nextSelName = getNextSel(props.name, props.param.fieldOrd);
+						// alert('nextSelName:'+nextSelName+'--,props.name:'+props.name);
+						if (nextSelName) {
+							//清下个下拉菜单选中值和选项
+							event = new CustomEvent("cascader-cleanOpt-" + nextSelName, {
+								detail: {},
+							});
+							window.dispatchEvent(event);
+						}
+					}
+				);
+			} else if (props.mode === "2") {
+				//没隐藏字段的下拉菜单,在这初始化默认值
+
+				let needInitParam = undefined;
+				if (Array.isArray(props.param)) {
+					needInitParam = props.param[props.param.length - 1]; //只初始化数组最后一项
+					console.log("needInitParam最后一项:" + JSON.stringify(needInitParam));
+				} else {
+					needInitParam = props.param;
+				}
+
+				// 初始化级联菜单在页面刚打开时的默认值
+				async function initDefaultValue(value, param) {
+					try {
+						// alert(1);
+/* 改,增加 && props.modelValue !== "0",显示必填字段下拉选择框里的 钩(选中) -- 必填字段为 int/long,其默认值为 0。Lin
+						if (props.url && param && props.modelValue) {
+*/					if (props.url && param && props.modelValue && props.modelValue !== "0") {
+							// alert(2);
+							/**
+							 *        let param=
+							 *             {"objectpickerparam":"{\"input\":\"false\",\"cascadingLevel\":\"rylbm,gwid\"," +
+							 *                     "\"name\":\"gwid\",\"cascadingName\":\"rylb_gw\"," +
+							 *                     "\"codebook\":\"gwByRylb\"}",
+							 *                 "objectpickertype":2,
+							 *                 "objectpickervalue":"102121"};
+							 */
+
+							// alert('props.name:'+props.name+',props.param.fieldOrd:'+props.param.fieldOrd);
+
+							const objectPickerParam = {
+								input: "false",
+								cascadingLevel: param.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
+								name: props.name, //本下拉菜单名
+								cascadingName: param.name, //级联菜单名
+								codebook: param.codebook,
+							};
+
+							const objectPickerParamStr = JSON.stringify(objectPickerParam);
+
+							const sendParams = new URLSearchParams();
+							sendParams.append("objectpickerparam", objectPickerParamStr);
+							sendParams.append("objectpickertype", "2");
+							sendParams.append("objectpickervalue", value); //需回显的值
+
+							axios
+								.post(props.url, sendParams, {
+									headers: {
+										"Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
+									},
+								})
+								.then((response) => {
+									// alert(JSON.stringify(response.data));
+
+									if ("timeout" == response.data.statusText) {
+										alert("网络超时!");
+										return;
+									}
+
+									if (response.data.result) {
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+										const keys = Object.keys(response.data.result);
+
+										console.log(
+											"name:" +
+												props.name +
+												",@@级联初始化默认值value:" +
+												value +
+												"--param:" +
+												JSON.stringify(param) +
+												"--objectPickerParamStr:" +
+												objectPickerParamStr +
+												"--response.data:" +
+												JSON.stringify(response.data)
+										);
+
+										if (keys.length === 1) {
+											let code = keys[0];
+											let desc = response.data.result[keys[0]];
+*/
+										if (response.data.result.length === 1) {
+											var m = Object.entries(response.data.result[0])[0];
+											let code = m[0];
+											let desc = m[1];
+
+											if (props.opt)
+												props.opt.length = 0; //通过修改数组的length属性,直接清空数组元素,内存会被自动释放。这是性能最优的方式
+											else {
+												props.opt = [];
+											}
+											props.opt.push({ label: desc, value: code });
+											updateSelectItem();	// 再增加,来自 SsObjp.initDefaultValue() -- SsCcp 支持 inp="true"。Lin
+
+											if (value) matchAndSelect(value);
+
+											console.log(
+												"GOOD mode2回显的默认值:" +
+													JSON.stringify({ label: desc, value: code }) +
+													"--props.param:" +
+													JSON.stringify(param)
+											);
+
+											// updateSelectItem();
+
+											// alert('props.opt:'+JSON.stringify(props.opt));
+										}
+									}
+								});
+						}
+					} catch (error) {
+						alert(error);
+						// callback(null, error.message); // 失败回调,传递错误
+					}
+
+					// 重置自动回显标记
+					isAutoEcho.value = false;
+				}
+
+				// 初始化级联菜单在页面刚打开时的默认值
+				initDefaultValue(props.modelValue, needInitParam);
+
+				//设置mode2的下级下拉菜单的上级菜单当前值
+				setNextSelectUpperValue();
+			}
+
+			//选中要回显的默认值
+			const matchAndSelect = (value) => {
+				const matchedOption = props.opt.find((opt) => opt.value === value);
+				if (matchedOption) {
+					selectItem.value = matchedOption;
+					emit("update:modelValue", value);
+					emit("change", value);
+				}
+			};
+
+/// 再增加,抄自 SsObjp.updateOptionBYInputText(inpTxt) -- SsCcp 支持 inp="true"。Lin
+ // 增加处理同时带多个级联 -- 单位 > 部门 + 单位 > 上级人员
+			//可录入的objPicker,更新下拉菜单选项
+			async function updateOptionBYInputText(inpTxt) {
+				try {
+					let objectPickerParam;
+					let url = props.url;
+
+/// 再增加,增加 parm,只处理最后一个级联 -- 增加处理同时带多个级联:单位 > 部门 + 单位 > 上级人员。Lin
+ // 下面的程序里,相应地改动:
+ //    props.cb 改为 parm.codebook -- <ss-ccp 在 param= 里写 codebook:'jzw'
+ //    props.filter 改为 parm.filter -- <ss-ccp 在 param= 里写 filter:
+ //    props.filterfield 改为 parm.filterfield -- <ss-ccp 在 param= 里写 filterfield:
+ //    props.param.fieldOrd 改为 parm.fieldOrd -- <ss-ccp 在 param= 里写 fieldOrd:
+					let parm;
+					if (Array.isArray(props.param))
+						parm = props.param[props.param.length -1]; //只初始化数组最后一项
+					else
+						parm = props.param;
+///
+
+					if (props.url && parm.codebook) {	// && props.cb)。<ss-ccp 在 param= 里写 codebook:'jzw'。Lin
+						//如果有定义过滤器
+						if (parm.filter ||	// (props.filter ||。<ss-ccp 在 param= 里写 filter:。Lin
+								parm.filterfield) {	// props.filterfield)。<ss-ccp 在 param= 里写 filterfield:。Lin
+							let filterObj = parm.filter;	// = props.filter。<ss-ccp 在 param= 里写 filter:。Lin
+							if (!parm.filter)	// (!props.filter)。<ss-ccp 在 param= 里写 filter:。Lin
+								filterObj = {};
+
+							if (parm.filter) {	// (props.filter)。<ss-ccp 在 param= 里写 filter:。Lin
+								const filterObj = parm.filter; // "转为json对象"。= props.filter。<ss-ccp 在 param= 里写 filter:。Lin
+								for (let k in filterObj) {
+									let v = filterObj[k];
+									url += "&" + k + "=" + v;
+								}
+							}
+
+							if (parm.filterfield) {	// (props.filterfield)。<ss-ccp 在 param= 里写 filterfield:。Lin
+								//加上filterfield的值过滤
+								let filterfieldArr = parm.filterfield.split(",");	// = props.filterfield.。<ss-ccp 在 param= 里写 filterfield:。Lin
+								for (var i = 0; i < filterfieldArr.length; i++) {
+									let fieldName = filterfieldArr[i];
+									let fields = document.getElementsByName(fieldName);
+									if (!fields || fields.length < 1) {
+										alert("下拉菜单配置的过滤条件" + fieldName + "不存在!");
+										continue;
+									}
+
+									let v = null;
+									for (let j = 0; j < fields.length; j++) {
+										if (fields[j].value) {
+											v = fields[j].value;
+											break;
+										}
+									}
+
+									// let field = document.getElementsByName(fieldName)[0];
+									// let v = field.value;
+									if (v) {
+										url += "&" + fieldName + "=" + v;
+										filterObj[fieldName] = v;
+									}
+								}
+
+								console.log("filterfield url:" + url);
+							}
+
+							//包含HTML实体的JSON字符串转为JSON对象,如原字符串是{&quot;dwid&quot;:&quot;88&quot;},注意key也必需用单引号包着
+							// const decodedString = props.filter.replace(/&quot;/g, '"'); // 转换为: {"dwid":"88"}
+							// objectPickerParam = JSON.parse(decodedString); // 转为json对象
+							objectPickerParam = filterObj;
+							objectPickerParam["input"] = props.inp;
+							objectPickerParam["codebook"] = parm.codebook;	// = props.cb。<ss-ccp 在 param=里写 codebook:'jzw'。Lin
+
+							// alert(url);
+						} else {
+							objectPickerParam = { input: props.inp, codebook: parm.codebook };		// : props.cb }。<ss-ccp 在 param=里写 codebook:'jzw'。Lin
+						}
+/// 再增加,设置 request."objectpickerparam" 里的 cascadingLevel: 值 -- SsCcp 支持 inp="true"。Lin
+						objectPickerParam["cascadingLevel"] = parm.fieldOrd.join(","); //如:"hksheng,hkshi,hkxian"
+///
+						const objectPickerParamStr = JSON.stringify(objectPickerParam);
+						const params = new URLSearchParams();
+						params.append("objectpickerparam", objectPickerParamStr);
+						params.append("objectpickertype", "1");
+/// 再增加,设置上级选择的值 -- SsCcp 支持 inp="true"。Lin
+						if (upperValue.value)
+							params.append("upperValue", upperValue.value);
+///
+						if (props.inp && props.inp === true) {
+							//把"true"改为true Ben(20251209)
+							params.append("objectpickersearchAll", 0); //只查录入的值
+							params.append("objectpickerinput", inpTxt); //录入的值
+							// 功能说明:将输入值也加到 URL 参数,避免后端只读 URL 不读 body by xu 20250408
+							if (inpTxt) {
+								url += "&objectpickerinput=" + encodeURIComponent(inpTxt);
+							}
+						} else {
+							params.append("objectpickersearchAll", 1);
+						}
+
+						axios
+								.post(url, params, {
+									headers: {
+										"Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
+									},
+								})
+								.then((response) => {
+									if ("timeout" == response.data.statusText) {
+										alert("网络超时!");
+										return;
+									}
+
+									// 先清空选项 by xu 20251212
+									if (props.opt) {
+										props.opt.length = 0;
+									} else {
+										props.opt = [];
+									}
+
+									if (response.data.result) {
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+										const keys = Object.keys(response.data.result);
+										// console.log("params:"+params+"@@response.data:"+JSON.stringify(response.data));
+										if (keys.length > 0) {
+											for (let k in response.data.result) {
+												props.opt.push({
+													label: response.data.result[k],
+													value: k,
+*/
+										if (response.data.result.length > 0) {
+											for (let i=0; i<response.data.result.length; i++) {
+												var m = Object.entries(response.data.result[i])[0];
+												props.opt.push({
+													label: m[1],
+													value: m[0],
+
+												});
+											}
+
+											// console.log('###inpTxt:'+inpTxt+';');
+											if (
+													props.inp &&
+													props.inp === true && //把"true"改为true Ben(20251209)
+													inpTxt.length > 0
+											) {
+												//对于可录入的,用已录入的值作过滤
+
+												filteredOptions.value = props.opt.filter((option) =>
+														option.label
+																.toLowerCase()
+																.includes(inputText.value.toLowerCase())
+												);
+
+												// 可录入的objPicker,当搜索结果只有一项时,自动选中这一项 by xu 20251212
+												if (filteredOptions.value.length === 1) {
+													const autoSelectItem = filteredOptions.value[0];
+													console.log(
+															"[objp] 搜索结果只有一项,自动选中:",
+															autoSelectItem
+													);
+													doSelectItem(autoSelectItem);
+													return; // 自动选中后直接返回,不需要显示popup
+												}
+
+												filteredOptions.value.unshift({ label: "", value: "" });
+
+												// console.log('###做了过滤:'+inputText.value.toLowerCase()+';');
+											} else {
+												filteredOptions.value = props.opt;
+												filteredOptions.value.unshift({ label: "", value: "" });
+											}
+
+											console.log("props.opt11:" + JSON.stringify(props.opt));
+										} else {
+											// 没有数据时,清空过滤选项 by xu 20251212
+											filteredOptions.value = [];
+											console.log("[objp] 接口返回空数据");
+										}
+									} else {
+										// result不存在时,清空过滤选项 by xu 20251212
+										filteredOptions.value = [];
+										console.log("[objp] 接口返回无result");
+									}
+
+									// 无论是否有数据,都显示popup by xu 20251212
+									openPopup(); // Teleport 场景下统一打开并重定位 by xu 20260126
+								});
+					}
+				} catch (error) {
+					// callback(null, error.message); // 失败回调,传递错误
+				}
+			}
+///
+
+			// 计算弹出方向和最大高度的方法 by xu 20251212
+			// 当空间不足时限制popup高度并显示滚动条
+			const calculatePopupDirection = () => {
+				// 1. 获取select容器元素
+				const selectEl = document.querySelector(
+					`[name="${props.name}"]`
+				)?.nextElementSibling;
+				console.log("selectEl:" + selectEl, props.name);
+				if (!selectEl) return;
+
+				// 2. 获取位置信息
+				const selectRect = selectEl.getBoundingClientRect();
+				const viewportHeight = window.innerHeight;
+
+				// 3. 计算上下可用空间 by xu 20251212
+				const spaceBelow = viewportHeight - selectRect.bottom - 10; // 减10px留边距
+				const spaceAbove = selectRect.top - 10; // 减10px留边距
+
+				// 4. popup预估高度(假设每项36px,最多显示8项 + padding)
+				const estimatedPopupHeight = 300;
+				const minPopupHeight = 100; // 最小高度
+
+				console.log(
+					"[popup] 空间计算 - spaceAbove:",
+					spaceAbove,
+					"spaceBelow:",
+					spaceBelow,
+					"estimatedHeight:",
+					estimatedPopupHeight
+				);
+
+				// 5. 判断方向和最大高度 by xu 20251212
+				if (spaceBelow >= estimatedPopupHeight) {
+					// 下方空间足够,向下展开,不限制高度
+					popupDirection.value = "bottom";
+					popupMaxHeight.value = "none";
+					console.log("[popup] 向下展开,空间充足");
+				} else if (spaceAbove >= estimatedPopupHeight) {
+					// 上方空间足够,向上展开,不限制高度
+					popupDirection.value = "top";
+					popupMaxHeight.value = "none";
+					console.log("[popup] 向上展开,空间充足");
+				} else {
+					// 上下空间都不足,选择空间大的方向,并限制高度出滚动条
+					if (spaceBelow >= spaceAbove) {
+						popupDirection.value = "bottom";
+						popupMaxHeight.value = Math.max(spaceBelow, minPopupHeight) + "px";
+						console.log(
+							"[popup] 向下展开,空间不足,限制高度:",
+							popupMaxHeight.value
+						);
+					} else {
+						popupDirection.value = "top";
+						popupMaxHeight.value = Math.max(spaceAbove, minPopupHeight) + "px";
+						console.log(
+							"[popup] 向上展开,空间不足,限制高度:",
+							popupMaxHeight.value
+						);
+					}
+				}
+			};
+			//级联菜单点击事件
+			const togglePopup = () => {
+/// 再增加,来自 SsObjp.togglePopup() -- SsCcp 支持 inp="true"。Lin
+				// 可录入的 objPicker,更新下拉菜单选项
+/* 再去掉,把 updateOptionBYInputText( 融入 showPopup() 里。Lin
+ * 导致读取了两次码本:updateOptionBYInputText( 带过滤,showPopup() 不带过滤
+				updateOptionBYInputText(inputText.value);
+*/
+///
+				if (!popupWinVisible.value) {
+					//如果当前下拉菜单是隐藏的,先ajax重新加载下拉菜单项,再显示。
+
+					showPopup();
+				} else {
+					hidePopup();
+				}
+			};
+
+			//显示下拉菜单,在此之前先清除下拉菜单项
+			const showPopup = () => {
+				//清空下拉菜单,并设置第一项的值为空
+				clearAndInit1stOpt();
+				Vue.nextTick(() => {
+					calculatePopupDirection();
+				});
+				let url = props.url;
+				let filterObj = props.param.filter;
+
+				if (filterObj) {
+					for (let k in filterObj) {
+						let v = filterObj[k];
+						url += "&" + k + "=" + v;
+					}
+				}
+
+				if (props.mode === "1") {
+					//如果是有隐藏字段的下拉菜单
+
+					console.log("666url:" + url);
+
+					// alert('url:'+url);
+
+					// 获取级联菜单所有下拉菜单项
+					async function getSelectItems(value) {
+						try {
+							// alert(1);
+							if (props.url && props.param) {
+								// alert(2);
+								/**
+								 *            param={"objectpickerparam":"{\"input\":\"false\",\"cascadingLevel\":\"hksheng,hkshi,hkxian\"," +
+								 *                     "\"name\":\"hksheng\",\"cascadingName\":\"dq\"," +
+								 *                     "\"cascadingInputsName\":\"hkdqm\",\"codebook\":\"sheng\"}",
+								 *                 "objectpickertype":1,//2表示获取要回显的一项,1表示获取所有下拉菜单项
+								 *                 "upperValue":"440000"
+								 *             };
+								 */
+
+								const objectPickerParam = {
+									input: "false",
+									cascadingLevel: props.param.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
+									name: props.name, //本下拉菜单名
+									cascadingName: props.param.name, //级联菜单名
+									cascadingInputsName: props.param.combField, //对象属性,即隐藏字段名,如:hkdqm
+									codebook: props.param.codebook,
+								};
+
+								console.log("mode1 upperValue.value:" + upperValue.value);
+
+								const objectPickerParamStr = JSON.stringify(objectPickerParam);
+
+								const params = new URLSearchParams();
+								params.append("objectpickerparam", objectPickerParamStr);
+								params.append("objectpickertype", "1");
+								if (upperValue.value) {
+									params.append("upperValue", upperValue.value);
+								}
+								// params.append('objectpickervalue', value); //需回显的值
+
+								axios
+									.post(url, params, {
+										headers: {
+											"Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
+										},
+									})
+									.then((response) => {
+										if ("timeout" == response.data.statusText) {
+											alert("网络超时!");
+											return;
+										}
+
+										if (response.data.result) {
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+											const keys = Object.keys(response.data.result);
+											console.log(
+												"params:" +
+													params +
+													"@@response.data:" +
+													JSON.stringify(response.data)
+											);
+
+											if (keys.length > 0) {
+												for (let k in response.data.result) {
+													props.opt.push({
+														label: response.data.result[k],
+														value: k,
+*/
+											if (response.data.result.length > 0) {
+												for (let i=0; i<response.data.result.length; i++) {
+													var m = Object.entries(response.data.result[i])[0];
+													props.opt.push({
+														label: m[1],
+														value: m[0],
+
+													});
+												}
+
+												console.log("props.opt11:" + JSON.stringify(props.opt));
+											} else {
+												// 没有数据时打印日志 by xu 20251212
+												console.log("[ccp mode1] 接口返回空数据");
+											}
+										} else {
+											// result不存在时打印日志 by xu 20251212
+											console.log("[ccp mode1] 接口返回无result");
+										}
+
+										// 无论是否有数据,都显示popup by xu 20251212
+										if (!popupWinVisible.value) {
+											popupWinVisible.value = true;
+										}
+
+/// 增加,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.template。Lin
+										// 无论是否有数据,都显示popup by xu 20251212
+										openPopup(); // Teleport 场景下统一打开并重定位 by xu 20260126
+///
+									});
+							}
+						} catch (error) {
+							alert(error);
+							// callback(null, error.message); // 失败回调,传递错误
+						}
+					}
+
+					getSelectItems(props.modelValue);
+				} else if (props.mode === "2") {
+					//没隐藏字段的下拉菜单
+
+					let needInitParam = undefined;
+					if (Array.isArray(props.param)) {
+						needInitParam = props.param[props.param.length - 1]; //只初始化数组最后一项
+						console.log(
+							"needInitParam最后一项:" + JSON.stringify(needInitParam)
+						);
+					} else {
+						needInitParam = props.param;
+					}
+
+					// 获取级联菜单所有下拉菜单项
+					async function getSelectItems(value, sendParam) {
+						try {
+							// alert(1);
+							if (props.url && sendParam) {
+								// alert(2);
+								/**
+								 *            param="{\"input\":\"false\",\"cascadingLevel\":\"dwid,sjryid\",
+								 *            \"ryid\":\"111121\",\"name\":\"sjryid\",
+								 *            \"cascadingName\":\"dw_sjry\",\"codebook\":\"sjryByDw\"}"
+								 */
+
+								const objectPickerParam = {
+									input: "false",
+									cascadingLevel: sendParam.fieldOrd.join(","), //如:"hksheng,hkshi,hkxian"
+									name: props.name, //本下拉菜单名
+									cascadingName: sendParam.name, //级联菜单名
+									codebook: sendParam.codebook,
+								};
+
+								console.log("mode2 upperValue.value:" + upperValue.value);
+
+								const objectPickerParamStr = JSON.stringify(objectPickerParam);
+
+								const params = new URLSearchParams();
+								params.append("objectpickerparam", objectPickerParamStr);
+								params.append("objectpickertype", "1");
+/// 再增加,增加 objectpickerinput: inputText.value -- SsCcp 支持 inp="true"。Lin
+								params.append("objectpickerinput", inputText.value);
+///
+								if (upperValue.value) {
+									params.append("upperValue", upperValue.value);
+								}
+								// params.append('objectpickervalue', value); //需回显的值
+
+								axios
+									.post(url, params, {
+										headers: {
+											"Content-Type": "application/x-www-form-urlencoded", // 必须手动设置!
+										},
+									})
+									.then((response) => {
+										if ("timeout" == response.data.statusText) {
+											alert("网络超时!");
+											return;
+										}
+
+										if (response.data.result) {
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+											const keys = Object.keys(response.data.result);
+											console.log(
+												"params:" +
+													params +
+													"@@response.data:" +
+													JSON.stringify(response.data)
+											);
+
+											if (keys.length > 0) {
+												for (let k in response.data.result) {
+													props.opt.push({
+														label: response.data.result[k],
+														value: k,
+*/
+											if (response.data.result.length > 0) {
+												for (let i=0; i<response.data.result.length; i++) {
+													var m = Object.entries(response.data.result[i])[0];
+													props.opt.push({
+														label: m[1],
+														value: m[0],
+
+													});
+												}
+
+												console.log("props.opt11:" + JSON.stringify(props.opt));
+											} else {
+												// 没有数据时打印日志 by xu 20251212
+												console.log("[ccp mode2] 接口返回空数据");
+											}
+										} else {
+											// result不存在时打印日志 by xu 20251212
+											console.log("[ccp mode2] 接口返回无result");
+										}
+
+										// 无论是否有数据,都显示popup by xu 20251212
+										if (!popupWinVisible.value) {
+											popupWinVisible.value = true;
+										}
+
+/// 增加,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.template。Lin
+										// 无论是否有数据,都显示popup by xu 20251212
+										openPopup(); // Teleport 场景下统一打开并重定位 by xu 20260126
+///
+									});
+							}
+						} catch (error) {
+							alert(error);
+							// callback(null, error.message); // 失败回调,传递错误
+						}
+					}
+
+					getSelectItems(props.modelValue, needInitParam);
+
+					// popupWinVisible.value = !popupWinVisible.value;
+				}
+			};
+
+			const hidePopup = () => {
+				popupWinVisible.value = false;
+			};
+
+/// 再增加,增加下拉按钮的 suffixClick 事件 -- SsCcp 支持 inp="true"。Lin
+ // 之前,无论点击 录入框 还是 下拉按钮,都只列出选中的那个 "测试_A宿舍楼"
+			//点击下拉菜单的三角形时,会触发的方法
+			// 添加toggle逻辑,点击时切换显示/隐藏 by xu 20251212
+			const suffixClick = () => {
+				// 如果popup已显示,则关闭 by xu 20251212
+				if (popupWinVisible.value) {
+					hidePopup();
+					console.log("[ccp] 点三角关闭popup");
+					return;
+				}
+
+				//可录入的objPicker,更新下拉菜单选项
+				updateOptionBYInputText("");
+				Vue.nextTick(() => {
+					calculatePopupDirection();
+					updatePopupPosition(); // Teleport 场景下同步定位 by xu 20260126
+				});
+				console.log("[ccp] 点三角打开popup");
+			};
+///
+
+/// 增加,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.template。Lin
+ // 增加 leaveInput、enterInput、leavePopup、enterPopup,以实现录入行和下拉选择框互相离开、进入时不关闭下拉选择框
+ // 增加延时 hidePopupTimer 和 clearTimerByHidePopup(),等待鼠标从录入行进入下拉选择框(mouseenter事件) -- 鼠标一旦进入下拉选择框,清除延时,阻止关闭下拉选择框
+			let hidePopupTimer = null;	// 等待鼠标从录入行进入下拉选择框 -- 延时到才关闭。Lin
+			// 鼠标离开录入行(mouseleave事件) -- 保持下拉选择框。Lin
+			const leaveInput = () => {
+				hidePopupTimer = setTimeout(() => {
+					popupWinVisible.value = false;
+				}, 200);	// 200ms延迟,给鼠标移动到下拉选择框的时间
+			};
+			// 鼠标进入下拉选择框(mouseenter事件) -- 保持下拉选择框。Lin
+			const enterPopup = () => {
+				clearTimeout(hidePopupTimer); // 清除等待关闭的定时器
+				popupWinVisible.value = true;
+			};
+			let keepPopupTimer = null;	// 等待鼠标从下拉选择框进入录入行 -- 延时到才关闭。Lin
+			// 鼠标离开下拉选择框(mouseleave事件) -- 保持下拉选择框。Lin
+			const leavePopup = () => {
+				keepPopupTimer = setTimeout(() => {
+					popupWinVisible.value = false;
+				}, 200);	// 200ms延迟,给鼠标移动到下拉选择框的时间
+			};
+			// 鼠标进入录入行(mouseenter事件) -- 保持下拉选择框。Lin
+			const enterInput = () => {
+				if (popupWinVisible.value) {
+					clearTimeout(keepPopupTimer); // 清除等待关闭的定时器
+					popupWinVisible.value = true;
+				}
+			};
+///
+
+/// 再增加,抄自 Objp.handleInputChange(event) -- SsCcp 支持 inp="true"。Lin
+			//可录入的objPicker,录入项变化时,会触发
+			async function handleInputChange(event) {
+				inputText.value = event.target.value;
+				if (!inputText.value) {
+					inputText.value = "";
+				}
+
+				//可录入的objPicker,更新下拉菜单选项
+				updateOptionBYInputText(inputText.value);
+
+				// filteredOptions.value = props.opt.filter((option) =>
+				//     option.label.toLowerCase().includes(inputText.value.toLowerCase())
+				// );
+				// if (!popupWinVisible.value) {
+				//   popupWinVisible.value = true; // 确保下拉框在输入时打开
+				// }
+			}
+///
+
+			// 合并所有的 onMounted 逻辑
+			Vue.onMounted(() => {
+				window.addEventListener("resize", calculatePopupDirection);
+
+				// 1. 监听展开下一级事件
+				window.addEventListener("open-next-cascader", (event) => {
+					const { name, level } = event.detail;
+					if (name === props.name && level === props.level) {
+						popupWinVisible.value = true;
+					}
+				});
+
+				// 2. 监听级联事件
+				window.addEventListener("cascader-change", (event) => {
+					const { name, level, value } = event.detail;
+					if (name === props.name && level < props.level) {
+						selectItem.value = { label: "", value: "" };
+						emit("update:modelValue", "");
+						if (ssHidden) {
+							ssHidden.updateValue(value);
+						}
+					}
+				});
+			});
+			Vue.onUnmounted(() => {
+				window.removeEventListener("resize", calculatePopupDirection);
+			});
+			// 监听值变化,处理回显 (mode 2)
+			Vue.watch(
+				() => props.modelValue,
+				(newVal) => {
+					if (props.mode === "2" && newVal) {
+						// 使用 watchEffect 替代嵌套的 watch
+						Vue.watchEffect(() => {
+							if (props.opt.length > 0) {
+								const matchedOption = props.opt.find(
+									(opt) => opt.value === newVal
+								);
+								if (matchedOption) {
+									selectItem.value = matchedOption;
+								}
+							}
+						});
+					} else {
+						// 原有的值变化处理
+						const item = props.opt.find((it) => it.value === newVal);
+						if (item) {
+							selectItem.value = item;
+						} else {
+							selectItem.value = { label: "", value: "" };
+						}
+					}
+				},
+				{ immediate: true }
+			);
+
+			// 监听选项变化,当数据加载完成时进行匹配
+			Vue.watch(
+				() => props.opt,
+				(newOptions) => {
+/// 再增加,来自 SsObjp.Vue.watch(() => props.opt, (newOptions) => { -- SsCcp 支持 inp="true"。Lin
+					updateSelectItem();
+					filteredOptions.value = [...newOptions];
+///
+					if (newOptions.length > 0) {
+						const matchedOption = newOptions.find(
+							(opt) => opt.value === selectItem.value.value
+						);
+						if (matchedOption) {
+							selectItem.value = matchedOption;
+							emit("update:modelValue", matchedOption.value);
+							emit("change", matchedOption.value);
+						}
+					}
+				}
+			);
+
+/// 再增加,抄自 SsObjp.Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true })。Lin
+			// 功能说明:调用全局 onChange 回调,必须在 handleModelValueChange 之前定义 by xu 20260416
+			const callGlobalOnchg = (value, desc) => {
+				if (props.onchange && typeof props.onchange === "string") {
+					if (
+							typeof window !== "undefined" &&
+							window[props.onchange] &&
+							typeof window[props.onchange] === "function"
+					) {
+						try {
+							window[props.onchange](value, desc);
+						} catch (error) {
+							console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
+						}
+					}
+				}
+			};
+
+			// 功能说明:封装 modelValue 变化后的联动逻辑,兼容用户点击和桥接 API 赋值 by xu 20260416
+			const handleModelValueChange = (newValue) => {
+				updateSelectItem();
+/* 改,增加 && newValue !== "0",显示必填字段下拉选择框里的 钩(选中) -- 必填字段为 int/long,其默认值为 0。Lin
+ * 被下面的 Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true }) 调用,并传入 props.modelValue 到 newValue
+				if (newValue) {
+*/			if (newValue && newValue !== "0") {
+					// 如果当前 options 里没有对应项,去服务端请求回显
+					const exists = props.opt.some((it) => it.value === newValue);
+					if (!exists && props.url && props.cb) {
+						let url = props.url;
+						if (props.filter) {
+							const filterObj = props.filter;
+							for (let k in filterObj) {
+								url += "&" + k + "=" + filterObj[k];
+							}
+						}
+						const params = new URLSearchParams();
+						params.append("objectpickerparam", JSON.stringify({ input: props.inp, codebook: props.cb }));
+						params.append("objectpickertype", "2");
+						params.append("objectpickervalue", newValue);
+						axios.post(url, params, {
+							headers: { "Content-Type": "application/x-www-form-urlencoded" }
+						}).then((response) => {
+							if ("timeout" == response.data.statusText) {
+								alert("网络超时!");
+								return;
+							}
+							if (response.data.result) {
+								/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的顺序显示下拉列表。Lin
+																const keys = Object.keys(response.data.result);
+																if (keys.length === 1) {
+																	let code = keys[0];
+																	let desc = response.data.result[keys[0]];
+								*/
+								if (response.data.result.length === 1) {
+									var m = Object.entries(response.data.result[0])[0];
+									let code = m[0];
+									let desc = m[1];
+
+									props.opt.length = 0;
+									props.opt.push({ label: desc, value: code });
+									updateSelectItem();
+									callGlobalOnchg(code, desc);
+								}
+							}
+						});
+					} else if (selectItem.value && selectItem.value.value) {
+						// options 里有对应项,触发 onChange
+						callGlobalOnchg(selectItem.value.value, selectItem.value.label);
+					}
+				} else {
+					// 值为空时清空选中
+					callGlobalOnchg("", "");
+				}
+			};
+
+			Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true });
+///
+
+///// 增加,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.setup(。Lin
+			// Teleport popup 的定位(fixed) by xu 20260126
+			const updatePopupPosition = () => {
+/* 改,抄自 SsCcp.calculatePopupDirection()。Lin
+ * 在 SsObjp.updatePopupPosition() 里,能通过 selectContainerRef 获取到 triggerEl
+ *    在 SsObjp.template: 里的 <div class="select-container",有 ref="selectContainerRef"
+				const triggerEl =
+						selectContainerRef.value?.querySelector(".input") ||
+						selectContainerRef.value;
+*/			const triggerEl = document.querySelector(
+						`[name="${props.name}"]`
+				)?.nextElementSibling;
+
+				if (!triggerEl) return;
+
+				const triggerRect = triggerEl.getBoundingClientRect();
+				const margin = 10;
+				const viewportWidth = window.innerWidth;
+				const viewportHeight = window.innerHeight;
+/* 改,改为紧挨录入行的下拉按钮。Lin
+				const popupGap = 0; // 功能说明:定位不再做 -10 重叠,让 padding-top 自然形成间距 by xu 20260126
+*/
+				let popupGap;
+				if (props.search)
+					popupGap = -8;
+				else
+					popupGap = -18;
+
+				// 先给一个初始位置,确保下一帧可以测量弹层尺寸 by xu 20260126
+				popupLayerStyle.value = {
+					position: "fixed",
+					left: `${Math.max(margin, triggerRect.left)}px`,
+					top: `${Math.max(margin, triggerRect.bottom + popupGap)}px`, // 功能说明:与输入框底部对齐 by xu 20260126
+					bottom: "auto", // 功能说明:fixed 场景显式取消 bottom,避免与 top 同时生效 by xu 20260126
+					minWidth: `${Math.max(0, triggerRect.width)}px`,
+					zIndex: 9999,
+					pointerEvents: "auto",
+				};
+
+				Vue.nextTick(() => {
+					const popupEl = popupRef.value;
+					if (!popupEl) return;
+
+					const popupRect = popupEl.getBoundingClientRect();
+					const maxLeft = viewportWidth - popupRect.width - margin;
+					const left = Math.min(
+							Math.max(margin, triggerRect.left),
+							Math.max(margin, maxLeft)
+					);
+
+					let top;
+					if (popupDirection.value === "top") {
+/* 改,上拉时,紧挨录入行的下拉按钮。Lin
+						top = triggerRect.top - popupRect.height - popupGap; // 功能说明:向上展开时与输入框顶部对齐 by xu 20260126
+*/					top = triggerRect.top - popupRect.height - popupGap -10; // 功能说明:向上展开时与输入框顶部对齐 by xu 20260126
+						top = Math.max(margin, top);
+					} else {
+						top = triggerRect.bottom + popupGap; // 功能说明:向下展开时与输入框底部对齐 by xu 20260126
+						if (top + popupRect.height > viewportHeight - margin) {
+							top = Math.max(
+									margin,
+									viewportHeight - popupRect.height - margin
+							);
+						}
+					}
+
+					popupLayerStyle.value = {
+						...popupLayerStyle.value,
+						left: `${left}px`,
+						top: `${top}px`,
+						bottom: "auto", // 功能说明:无论 top/bottom 展开都用 top 定位,禁用 bottom by xu 20260126
+					};
+				});
+			};
+
+/// 再增加,增加 cascader-hidePopup-xxx 事件,以关闭所有下级下拉列表。Lin
+			// 被上级下拉菜单触发的,清除选中值和下拉菜单选项
+			window.addEventListener("cascader-hidePopup-"+ props.name,
+					async (event) => {
+						hidePopup();
+
+						//下个下拉菜单名
+						const nextSelName = getNextSel(props.name, props.param.fieldOrd);
+						// alert('nextSelName:'+nextSelName+'--,props.name:'+props.name);
+						if (nextSelName) {
+							//清下个下拉菜单选中值和选项
+							const customEvent = new CustomEvent("cascader-hidePopup-"+ nextSelName);
+							window.dispatchEvent(customEvent);
+						}
+					});
+///
+			const openPopup = () => {
+				if (!popupWinVisible.value) popupWinVisible.value = true;
+///// 再增加,增加打开本级下拉列表时关闭所有下级下拉列表。Lin
+/// 抄自 SsCcp.doSelectItem(item)。Lin
+				//设置下级菜单的上级菜单当前值upperValue
+				let paramArr;
+				if (Array.isArray(props.param)) {
+					paramArr = props.param;
+				} else {
+					paramArr = [];
+					paramArr.push(props.param);
+				}
+				for (const oneParam of paramArr) {
+					//下个下拉菜单名
+					const nextSelName = getNextSel(props.name, oneParam.fieldOrd);
+					if (nextSelName) {
+///
+/// 抄自 SsCcp.window.addEventListener("cascader-open-" + props.name。Lin
+					//清下个下拉菜单选中值和选项
+					const customEvent = new CustomEvent("cascader-hidePopup-"+ nextSelName);
+					window.dispatchEvent(customEvent);
+///
+					}
+				}
+/////
+				Vue.nextTick(() => {
+					calculatePopupDirection();
+					updatePopupPosition();
+				});
+			};
+/////
+
+			return {
+				selectItem,
+				popupWinVisible,
+				popupDirection,
+				popupMaxHeight, // 添加popup最大高度 by xu 20251212
+				togglePopup,
+				hidePopup,
+				doSelectItem,
+/// 增加,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.setup(。Lin
+				leaveInput,
+				enterInput,
+				leavePopup,
+				enterPopup,
+				popupRef,
+				teleportRootStyle,
+				popupLayerStyle,
+///
+/// 增加,增加 <ss-ccp :inp= -- SsCcp 支持 inp="true"。Lin
+				canInput,
+				inputText,
+				handleInputChange,
+				suffixClick,
+				filteredOptions,
+///
+			};
+		},
+
+		template: `
+			<div class="input ss-ccp-container" style="position: relative" :style="{width: width}">
+				<input type="hidden" :name="name" :value="modelValue">
+<!-- 改,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.template。Lin
+		 把 @mouseleave="hidePopup" 拆分为 leaveInput、enterInput、leavePopup、enterPopup,以实现录入行和下拉选择框互相离开、进入时不关闭下拉选择框
+				<div class="select-container" @mouseleave="hidePopup">
+-->			<div class="select-container" @mouseleave="leaveInput" @mouseenter="enterInput">
+					<div class="input" @click="togglePopup">
+						<input 
+							type="hidden"
+							:name="name"
+							:value="selectItem.value"
+						/>
+<!-- 再改,使其能录入 -- 抄自 SsObjp.template: 里的 <input v-if="canInput" -- SsCcp 支持 inp="true"。Lin
+						<input
+							:placeholder="placeholder"
+							:value="selectItem.label"
+							disabled
+							style="pointer-events: none;"
+						/>
+-->
+						<input
+							v-model="inputText"
+							@input="handleInputChange"
+							v-if="canInput"
+							:placeholder="placeholder"
+						/>
+						<input
+							v-else
+							:placeholder="placeholder"
+							:value="selectItem.label"
+							disabled
+							style="pointer-events: none;"
+						/>
+
+<!-- 再改,增加 @click.stop="suffixClick" -- 增加下拉按钮的 suffixClick 事件 -- SsCcp 支持 inp="true"。Lin
+		 之前,无论点击 录入框 还是 下拉按钮,都只列出选中的那个 "测试_A宿舍楼"
+						<div class="suffix">
+-->					<div class="suffix" @click.stop="suffixClick">
+							<ss-form-icon :class="popupWinVisible ? 'form-icon-transform-select select' : 'form-icon-select'" />
+						</div>
+					</div>
+
+<!-- 增加,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.template。Lin
+		 增加 @mouseleave="leavePopup",鼠标离开下拉选择框时关闭
+		 增加 @mouseenter="enterPopup",清除 leaveInput 的延时,阻止下拉选择框的关闭 -->
+					<teleport to="body">
+					<div v-show="popupWinVisible" class="select-container ss-ccp-teleport-root" :style="teleportRootStyle"
+						@mouseleave="leavePopup" @mouseenter="enterPopup">
+<!-- -->
+					<!-- popup弹出层,添加maxHeight和overflowY支持空间不足时滚动 by xu 20251212 -->
+<!-- 改,"修复表格内弹层被截断:popup Teleport 到 body"。仿自 SsObjp.template。Lin
+		 去掉 :class="popupDirection",不要尖角
+					<div v-show="popupWinVisible" class="popup-win " :class="popupDirection" :style="{ maxHeight: popupMaxHeight, overflowY: popupMaxHeight !== 'none' ? 'auto' : 'visible' }">
+						<div v-if="opt && opt.length > 0" class="popup-content">
+-->
+					<div ref="popupRef" class="popup-win " :style="[popupLayerStyle, { maxHeight: popupMaxHeight !== 'none' ? popupMaxHeight : 'none', overflowY: 'visible' }]">
+<!-- 再改,增加 filteredOptions -- SsCcp 支持 inp="true"。Lin
+						<div v-if="opt && opt.length > 0" class="popup-content">
+-->					<div v-if="opt && opt.length && filteredOptions.length > 0" class="popup-content">
+
+							<div class="content-area">
+<!-- 再改,增加 filteredOptions -- SsCcp 支持 inp="true"。Lin
+								<div 
+									v-for="(item, index) in opt" 
+									:key="index" 
+									@click="doSelectItem(item)" 
+									:class="{ active: item.value === selectItem.value }"
+								>
+-->
+								<div 
+									v-for="(item, index) in filteredOptions" 
+									:key="index" 
+									@click="doSelectItem(item)" 
+									:class="{ active: item.value === selectItem.value }"
+								>
+
+									<span class="check-icon">
+										<ss-form-icon class="form-icon-select-checked" />
+									</span>
+									<span>{{ item.label }}</span>
+								</div>
+							</div>
+						</div>
+						<div v-else class="popup-content">
+							<div class="content-area">
+								<div class="content-area">
+									<span>无选项</span>
+								</div>
+							</div>
+						</div>
+					</div>
+<!-- 增加,"修复表格内弹层被截断:popup Teleport 到 body"。抄自 SsObjp.template。Lin -->
+					</div>
+					</teleport>
+<!-- -->
+				</div>
+			</div>
+		`,
+	};
+	// ss-date-picker 日期时间选择器组件
+	const SsDatePicker = {
+		name: "SsDatePicker",
+		props: {
+			modelValue: {
+				type: [String, Number, Date],
+				default: "",
+			},
+			name: {
+				type: String,
+				required: true,
+			},
+			type: {
+				type: String,
+				default: "date",
+				validator: (value) => ["date", "datetime", "time"].includes(value),
+			},
+			fmt: {
+				type: String,
+				default: null,
+			},
+			placeholder: {
+				type: String,
+				default: "",
+			},
+			width: {
+				type: String,
+				default: "100%",
+			},
+		},
+
+		emits: ["update:modelValue"],
+
+		setup(props, { emit }) {
+			const errMsg = ref("");
+			const validate = () => {
+				if (window.ssVm) {
+					const result = window.ssVm.validateField(props.name);
+					console.log("validate", window.ssVm.validateField(props.name));
+					errMsg.value = result.valid ? "" : result.message;
+				}
+			};
+			// 根据type确定默认格式
+			const defaultFormat = computed(() => {
+				switch (props.type) {
+					case "datetime":
+						return "YYYY-MM-DD HH:mm:ss";
+					case "date":
+						return "YYYY-MM-DD";
+					case "time":
+						return "HH:mm:ss";
+				}
+			});
+			const convertJavaFormatToElement = (javaFormat) => {
+				if (!javaFormat) return null;
+				return javaFormat
+					.replace("yyyy", "YYYY")
+					.replace("MM", "MM")
+					.replace("dd", "DD")
+					.replace("HH", "HH")
+					.replace("mm", "mm")
+					.replace("ss", "ss");
+			};
+
+			const finalFormat = computed(() => {
+				if (props.fmt) {
+					return convertJavaFormatToElement(props.fmt);
+				}
+				return defaultFormat.value;
+			});
+
+			// 使用 resolveComponent 获取组件
+			const ElDatePicker = resolveComponent("ElDatePicker");
+			const ElTimePicker = resolveComponent("ElTimePicker");
+			const SsFormIcon = resolveComponent("SsFormIcon");
+			const ElIcon = resolveComponent("ElIcon");
+
+			const handleValueUpdate = (val) => {
+				emit("update:modelValue", val);
+				emit("change", val); // 同时触发 change 事件
+				setTimeout(() => {
+					validate();
+				}, 50);
+			};
+			const dateType = computed(() => {
+				const fmt = props.fmt || "";
+				if (fmt.includes("HH:mm:ss")) {
+					return "datetime";
+				} else if (fmt.includes("HH:mm")) {
+					return "datetime";
+				} else if (fmt.includes("mm:ss")) {
+					return "time";
+				}
+				return "date";
+			});
+
+			let useTimePicker = true;
+			//"yyyy-MM-dd HH:mm:ss";  "日期字符串格式在java的写法",传到本组件fmt属性也是按这个格式
+			if (props.fmt) {
+				//有fmt属性,则以fmt属性优先判断类型
+				if (/[dMy]/.test(props.fmt)) {
+					//如果有传入日期格式,且含年月日
+					useTimePicker = false;
+				} else {
+					useTimePicker = true;
+				}
+			} else if (props.type !== "time") {
+				useTimePicker = false;
+			}
+
+			return () =>
+				h("div", { class: "ss-date-picker", style: { width: props.width } }, [
+					h("input", {
+						type: "hidden",
+						name: props.name,
+						value: props.modelValue,
+					}),
+					// 选择组件
+					h(useTimePicker ? ElTimePicker : ElDatePicker, {
+						modelValue: props.modelValue,
+						"onUpdate:modelValue": handleValueUpdate,
+						type: dateType.value,
+						format: finalFormat.value,
+						"value-format": finalFormat.value,
+						clearable: true,
+						placeholder: props.placeholder,
+						class: "custom-date-picker", // 用于自定义样式
+						"time-arrow-control": props.type === "datetime", // 修改这里
+						size: "large", // 添加这一行,改为 large 尺寸
+						style: { width: "100%" },
+						"prefix-icon": h(SsFormIcon, { class: "form-icon-time" }),
+					}),
+				]);
+		},
+	};
+	// ss-icon 图标
+	// v3.0 增加 class 属性分支:有 class 走新逻辑,否则走 v1.0 逻辑 by xu 20251212
+	// v3.0 用法: <ss-icon class="icon-obj-ry menu-icon" />
+	// v1.0 用法: <ss-icon name="setting" size="20px" />
+	const SsIcon = {
+		name: "SsIcon",
+		// v3.0 禁用 class 透传,手动处理 by xu 20251215
+		inheritAttrs: false,
+		props: {
+			// v1.0: 以下为旧属性
+			name: { type: String },
+			size: { type: [Number, String], default: 16 },
+			unit: { type: String, default: "px" },
+			color: String,
+			type: {
+				type: String,
+				default: ssIcon.name,
+				validator: function (value) {
+					return [ssIcon, commonIcon].some((icon) => icon.name === value);
+				},
+			},
+		},
+		emits: ["update:modelValue", "input", "blur", "change"],
+		setup(props, { emit, attrs }) {
+			// v3.0 分支:有 class 属性时直接渲染(从 attrs 获取) by xu 20251215
+			if (attrs.class) {
+				return () =>
+					h("i", { ...attrs, class: attrs.class + " icon-container" });
+			}
+
+			// v1.0 分支:原有逻辑
+			const useIconType = computed(() => {
+				return [ssIcon, commonIcon].find(
+					(iconConfig) => iconConfig.name === props.type
+				);
+			});
+			const iconName = computed(() => {
+				const iconConfig = useIconType.value; // 注意:使用 .value 来访问响应式引用的值
+				if (!iconConfig) {
+					console.error(`Icon type "${props.type}" not found.`);
+					return "";
+				}
+				const iconType = iconConfig.types[props.name];
+				if (!iconType) {
+					console.error(
+						`Icon name "${props.name}" not found in type "${props.type}".`
+					);
+					return "";
+				}
+				return `${iconConfig.prefix}${iconType}`;
+			});
+
+			// 类似地,你可以计算 fontFamily 和 style
+			const fontFamily = computed(() => {
+				return useIconType.value ? useIconType.value.family : "";
+			});
+			// console.log(iconName.value,fontFamily.value)
+			const style = computed(() => {
+				const sizeStyle = isNum(props.size)
+					? `${props.size}${props.unit}`
+					: props.size;
+				const styleObj = {
+					fontSize: sizeStyle,
+					color: props.color || "",
+				};
+				return toStyleStr(styleObj);
+			});
+
+			// 使用渲染函数定义模板逻辑
+			return () =>
+				h("i", {
+					class: ["icon-container", iconName.value, fontFamily.value],
+					style: style.value,
+				});
+		},
+	};
+	// 通用icon
+	const SsCommonIcon = {
+		name: "SsCommonIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("i", {
+					class: props.class + " common-icon",
+				});
+		},
+	};
+	// 登录页icon
+	const SsLoginIcon = {
+		name: "SsLoginIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " login-icon",
+				});
+		},
+	};
+	// 弹窗icon
+	const SsDialogIcon = {
+		name: "SsDialogIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("i", {
+					class: props.class + " dialog-icon",
+				});
+		},
+	};
+	// 全局左侧导航图标组件
+	const SsNavIcon = {
+		name: "SsNavIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " nav-icon",
+				});
+		},
+	};
+	// 顶部工具栏图标组件
+	const SsHeaderIcon = {
+		name: "SsHeaderIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " header-icon",
+				});
+		},
+	};
+
+	// 全局菜单图标组件
+	const SsGolbalMenuIcon = {
+		name: "SsGolbalMenuIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " global-menu-icon",
+				});
+		},
+	};
+	// 全局查询列表卡片图标
+	const SsCartListIcon = {
+		name: "SsCartListIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " cart-list-icon",
+				});
+		},
+	};
+	// 全局底部工具栏图标组件
+	const SsQuickIcon = {
+		name: "SsQuickIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " quick-icon",
+				});
+		},
+	};
+	// 表单组件icon
+	const SsFormIcon = {
+		name: "SsFormIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " form-icon",
+				});
+		},
+	};
+	// 弹窗底部按钮icon
+	const SsBottomDivIcon = {
+		name: "SsBottomDivIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("div", {
+					class: props.class + " bottom-div-icon",
+				});
+		},
+	};
+	// editor组件icon
+	const SsEditorIcon = {
+		name: "SsEditorIcon",
+		props: {
+			class: {
+				type: String,
+				required: true,
+			},
+		},
+		setup(props) {
+			return () =>
+				h("i", {
+					class: props.class + " editor-icon",
+				});
+		},
+	};
+	// ss-validate校验器
+	const SsValidate = {
+		name: "SsValidate",
+		props: {
+			errMsg: { type: String },
+			textAlign: { type: String, default: "left" },
+			style: { type: Object, default: () => ({}) },
+		},
+		template: `<div class="validate-vline"></div>
+		<div class="validate-tip" :style="style">
+			<div class="tip" :style="{ textAlign: textAlign }">{{ errMsg }}</div>
+			<div class="tip-more" :style="{ textAlign: textAlign }">{{ errMsg }}</div>
+		</div>`,
+	};
+	// ss-onoff-array 多选按钮 数组形式
+	const SsonoffArray = {
+		name: "SsonoffArray",
+		props: {
+			name: {
+				type: String,
+				required: true,
+			},
+			opt: {
+				type: Array,
+				default: () => [],
+			},
+			defaultValue: [String, Number, Array],
+			modelValue: [String, Number, Array],
+			multiple: {
+				// 新增多选模式属性
+				type: Boolean,
+				default: false,
+			},
+			// 是否允许一项都不选,默认true允许 by xu 20251212
+			null: {
+				type: Boolean,
+				default: true,
+			},
+		},
+		emits: ["update:modelValue"], // 允许更新 v-model 绑定的值
+		setup(props, { emit }) {
+			console.log("多选按钮", props.opt);
+			// 使用数组来存储选中值
+			const checkedValue = ref(
+				props.multiple
+					? Array.isArray(props.defaultValue)
+						? props.defaultValue
+						: []
+					: props.defaultValue
+			);
+			const errMsg = ref(props.errTip);
+
+			// 生成icon名字
+			const genIconName = (itemValue) => {
+				if (props.multiple) {
+					return checkedValue.value.includes(itemValue)
+						? "form-icon-onoff-checked"
+						: "form-icon-onoff-unchecked";
+				}
+				return checkedValue.value === itemValue
+					? "form-icon-onoff-checked"
+					: "form-icon-onoff-unchecked";
+			};
+			// 选中项
+			const selectItem = (value) => {
+				if (props.multiple) {
+					// 多选模式
+					const index = checkedValue.value.indexOf(value);
+					if (index === -1) {
+						checkedValue.value = [...checkedValue.value, value];
+					} else {
+						// 取消选中当前项
+						const newValue = checkedValue.value.filter((v) => v !== value);
+						// 如果不允许为空且取消后为空,则阻止取消操作 by xu 20251212
+						if (!props.null && newValue.length === 0) {
+							return; // 阻止取消最后一项
+						}
+						checkedValue.value = newValue;
+					}
+				} else {
+					// 单选模式
+					// 如果点击的是当前已选中的项,判断是否允许取消 by xu 20251212
+					if (checkedValue.value === value) {
+						if (!props.null) {
+							return; // 不允许为空时,阻止取消
+						}
+						checkedValue.value = ""; // 允许为空时,取消选中
+					} else {
+						checkedValue.value = value;
+					}
+				}
+
+				emit("update:modelValue", checkedValue.value);
+				nextTick(() => {
+					// 触发验证
+					if (window.ssVm) {
+						window.ssVm.validateField(props.name);
+					}
+				});
+			};
+
+			return { checkedValue, genIconName, selectItem };
+		},
+		// 使用渲染函数定义模板逻辑
+		render() {
+			const SsFormIcon = resolveComponent("ss-form-icon");
+			return h("div", { class: "radio-container" }, [
+				// 根据情况创建 input
+				this.multiple
+					? this.checkedValue.length
+						? // 多选且有选中值:为选中项创建 input
+							this.checkedValue.map((value) =>
+								h("input", {
+									type: "checkbox",
+									name: this.name,
+									value: value,
+									checked: true,
+									style: { display: "none" },
+								})
+							)
+						: // 多选但没有选中值:创建一个空值 input
+							h("input", {
+								type: "hidden",
+								name: this.name,
+								value: "",
+							})
+					: // 单选模式:创建一个 input
+						h("input", {
+							type: "hidden",
+							name: this.name,
+							value: this.checkedValue || "",
+						}),
+
+				this.opt.map((item, i) =>
+					h(
+						"div",
+						{
+							key: i,
+							class: {
+								checked: this.multiple
+									? this.checkedValue.includes(item.value)
+									: this.checkedValue === item.value,
+							},
+							style: { width: item.width },
+							onClick: () => this.selectItem(item.value),
+						},
+						[
+							h("span", null, item.label),
+							h("div", { class: "mark" }, [
+								h(SsFormIcon, {
+									class: this.genIconName(item.value),
+								}),
+							]),
+						]
+					)
+				),
+			]);
+		},
+	};
+
+	// ss-onoff 一个按钮
+	const Ssonoff = {
+		name: "Ssonoff",
+		props: {
+			name: {
+				type: String,
+				required: true,
+			},
+			label: {
+				type: String,
+				required: true,
+			},
+			value: {
+				type: [String, Number],
+				required: true,
+			},
+			width: {
+				type: String,
+				default: "",
+			},
+			onchange: {
+				// 在此属性传入 onChange 的 window 全局回调函数,第一参数是当前整组值 by Ben/xu(20260320)
+				type: String,
+				required: false,
+			},
+			modelValue: [String, Number, Array],
+			multiple: {
+				type: Boolean,
+				default: false,
+			},
+			null: {
+				type: Boolean,
+				default: true,
+			},
+		},
+		emits: ["update:modelValue", "change"],
+
+		setup(props, { emit }) {
+			const parseModelValue = (val) => {
+				if (Array.isArray(val)) {
+					return val
+						.map((item) => (item == null ? "" : item.toString()))
+						.filter(Boolean);
+				}
+				if (val == null || val === "") return [];
+				// 如果以逗号开头,去掉开头的逗号
+				const cleanValue = val.toString().replace(/^,+/, "");
+				if (!cleanValue) return [];
+				if (cleanValue.includes("|")) {
+					return cleanValue.split("|").filter(Boolean);
+				}
+				if (cleanValue.includes(",")) {
+					return cleanValue.split(",").filter(Boolean);
+				}
+				return [cleanValue];
+			};
+
+			const callGlobalOnchg = (groupValue) => {
+				if (props.onchange && typeof props.onchange === "string") {
+					if (
+						typeof window !== "undefined" &&
+						window[props.onchange] &&
+						typeof window[props.onchange] === "function"
+					) {
+						try {
+							window[props.onchange](groupValue, props.value, props.label);
+						} catch (error) {
+							console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
+						}
+					} else {
+						console.warn(`全局函数 ${props.onchange} 未定义或不是一个函数。`);
+					}
+				}
+			};
+
+			// 判断当前按钮是否选中
+			const isChecked = computed(() => {
+				if (props.multiple) {
+					const currentValue = parseModelValue(props.modelValue);
+					return currentValue.includes(props.value.toString());
+				}
+				return props.modelValue + "" === props.value + ""; //强转为字符串类型再比较(改之前是数字类型和字符串类型作比较,永远为false) Ben 20251206
+			});
+
+			// 功能说明:watch modelValue 变化,兼容桥接 API 赋值触发 onChange by xu 20260416
+			let isToggleTriggering = false; // 避免 toggleSelect 内部 emit 重复触发
+			Vue.watch(
+				() => props.modelValue,
+				(newVal) => {
+					if (isToggleTriggering) return;
+					callGlobalOnchg(newVal);
+				}
+			);
+
+			// 切换选中状态
+			const toggleSelect = () => {
+				let newModelValue;
+
+				if (props.multiple) {
+					const currentValue = parseModelValue(props.modelValue);
+					const currentButtonValue = props.value.toString();
+					const index = currentValue.indexOf(currentButtonValue);
+					let newValue;
+
+					if (index === -1) {
+						// 选中当前项
+						newValue = [...currentValue, currentButtonValue];
+					} else {
+						// 取消选中当前项
+						const filteredValue = currentValue.filter(
+							(value) => value !== currentButtonValue
+						);
+
+						// 如果不允许为空且取消后为空,则阻止取消操作
+						if (!props.null && filteredValue.length === 0) {
+							return; // 阻止取消最后一项
+						}
+
+						newValue = filteredValue;
+					}
+					newModelValue = newValue.join(",");
+				} else {
+					// 单选模式
+					const currentValue = parseModelValue(props.modelValue);
+					const isCurrentlySelected = currentValue.includes(
+						props.value.toString()
+					);
+
+					if (!isCurrentlySelected) {
+						// 选中当前项
+						newModelValue = props.value;
+					} else {
+						// 取消选中当前项
+						// 如果不允许为空且当前只有这一项被选中,则阻止取消操作
+						if (!props.null && currentValue.length === 1) {
+							return; // 阻止取消唯一选中项
+						}
+						newModelValue = "";
+					}
+				}
+
+				isToggleTriggering = true; // emit 前设置,避免 watch 重复触发 onChange by xu 20260416
+				emit("update:modelValue", newModelValue);
+				emit("change", newModelValue, props.value, props.label);
+
+				nextTick(() => {
+					isToggleTriggering = false; // 重置标志,允许后续桥接 API 赋值触发 onChange by xu 20260416
+					// 触发验证
+					if (window.ssVm) {
+						window.ssVm.validateField(props.name);
+					}
+				});
+			};
+
+			return { isChecked, toggleSelect };
+		},
+
+		render() {
+			const SsFormIcon = resolveComponent("ss-form-icon");
+			return h("div", { class: "radio-container2" }, [
+				// 隐藏的表单元素
+				this.multiple
+					? h("input", {
+							type: "hidden",
+							name: `${this.name}`, // 多选模式下使用数组形式的 name
+							value: this.isChecked ? this.value : "",
+						})
+					: this.isChecked &&
+						h("input", {
+							// 只有当前按钮被选中时才创建 input
+							type: "hidden",
+							name: this.name,
+							value: this.value,
+						}),
+
+				// 按钮显示
+				h(
+					"div",
+					{
+						class: { checked: this.isChecked },
+						style: { width: this.width },
+						onClick: this.toggleSelect,
+					},
+					[
+						h("span", null, this.label),
+						h("div", { class: "mark" }, [
+							h(SsFormIcon, {
+								class: this.isChecked
+									? "form-icon-onoff-checked"
+									: "form-icon-onoff-unchecked",
+							}),
+						]),
+					]
+				),
+			]);
+		},
+	};
+
+	// ss-textarea
+	// ss-textarea
+	const SsTextarea = {
+		name: "SsTextarea",
+		props: {
+			name: {
+				type: String,
+				required: true,
+			},
+			placeholder: {
+				type: String,
+				default: "",	// : "请输入",。再改,去掉 placeholder 默认值 "请输入" 。Lin
+			},
+			defaultValue: [String, Number],
+			modelValue: [String, Number],
+			// 功能说明:onChange 全局回调 prop,桥接 API 赋值时自动触发 by xu 20260416
+			onchange: {
+				type: String,
+				required: false,
+			},
+		},
+		emits: ["update:modelValue"],
+		setup(props, { emit }) {
+			const inputValue = ref(props.modelValue || props.defaultValue || "");
+
+			// 功能说明:调用全局 onChange 回调 by xu 20260416
+			const callGlobalOnchg = (value) => {
+				if (props.onchange && typeof props.onchange === "string") {
+					if (
+						typeof window !== "undefined" &&
+						window[props.onchange] &&
+						typeof window[props.onchange] === "function"
+					) {
+						try {
+							window[props.onchange](value);
+						} catch (error) {
+							console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
+						}
+					}
+				}
+			};
+
+			// 监听 modelValue 变化
+			watch(
+				() => props.modelValue,
+				(newVal) => {
+					inputValue.value = newVal;
+					callGlobalOnchg(newVal);
+				}
+			);
+
+			// 输入事件处理
+			const onInput = (event) => {
+				const newValue = event.target.value;
+				inputValue.value = newValue;
+				emit("update:modelValue", newValue);
+				// 触发验证
+				if (window.ssVm) {
+					window.ssVm.validateField(props.name);
+				}
+			};
+
+			// 失焦时验证
+			const onBlur = () => {
+				if (window.ssVm) {
+					window.ssVm.validateField(props.name);
+				}
+			};
+
+			return { inputValue, onInput, onBlur };
+		},
+		render() {
+			return h("div", { class: "textarea-container" }, [
+				h("div", { class: "textarea" }, [
+					h("input", {
+						type: "hidden",
+						name: this.name,
+						value: this.inputValue || "",
+					}),
+					h("textarea", {
+						placeholder: this.placeholder,
+						value: this.inputValue,
+						onInput: this.onInput,
+						onBlur: this.onBlur,
+					}),
+				]),
+			]);
+		},
+	};
+
+	// ss-editor 富文本编辑器 基于Jodit
+	const SsEditor = {
+		name: "SsEditor",
+		props: {
+			modelValue: {
+				type: String,
+				default: "",
+			},
+			html: {
+				type: String,
+				default: "",
+			},
+			name: {
+				type: String,
+				default: "",
+			},
+			url: {
+				type: String,
+				default: "",
+			},
+			height: {
+				type: [Number, String],
+				default: 400,
+			},
+			placeholder: {
+				type: String,
+				default: "",	// : "请输入内容",。再改,去掉 placeholder 默认值 "请输入内容" 。Lin
+			},
+			mode: {
+				type: String,
+				default: "edit", // 'edit' | 'play'
+			},
+			uploadUrl: {
+				type: String,
+				default: "/ulByHttp", //原值为“upload” Ben(20251205)
+			},
+			param: {
+				type: Object,
+				default: () => ({}),
+			},
+		},
+
+		emits: ["update:modelValue", "ready", "change"],
+
+		setup(props, { emit }) {
+			const editorRef = ref(null);
+			const editorContent = ref("");
+			const currentModelValue = ref(props.modelValue || "");
+			const uniqueId = "editor-" + Date.now();
+			const errMsg = Vue.ref("");
+
+			// button 支持对象(旧格式,单个附件按钮)或数组(新格式,多个按钮)by xu 20250331
+			const buttonConfigRaw = props.param && props.param.button ? props.param.button : null;
+			const buttonArray = Array.isArray(buttonConfigRaw)
+				? buttonConfigRaw
+				: buttonConfigRaw
+					? [buttonConfigRaw]
+					: [];
+
+			// 找到附件按钮配置(有 cmsAddUrl 的)
+			const fjButton = buttonArray.find(btn => btn.cmsAddUrl && btn.cmsUpdUrl) || {};
+			const fjid = ref(fjButton.val || null);
+			const fjName = fjButton.desc || "附件";
+
+			// 筛选出自定义按钮(有 func 的)
+			const customButtonsFromParam = buttonArray.filter(btn => btn.func).map(btn => ({
+				name: btn.name,
+				text: btn.desc || btn.text,
+				tooltip: btn.desc || btn.tooltip,
+				icon: btn.icon || 'editor-icon-file',
+				onClick: btn.func  // 函数名字符串
+			}));
+
+			const mode = props.param ? props.param.mode : null;
+
+			const normalizeHtml = (rawHtml) => {
+				if (rawHtml == null) {
+					return "";
+				}
+				const html = String(rawHtml).trim();
+				if (!html) {
+					return "";
+				}
+				if (
+					/<html[\s>]/i.test(html) ||
+					/<body[\s>]/i.test(html) ||
+					/<!doctype/i.test(html)
+				) {
+					try {
+						const doc = new DOMParser().parseFromString(html, "text/html");
+						if (doc && doc.body) {
+							return doc.body.innerHTML || "";
+						}
+					} catch (e) {
+						console.warn("ss-editor 解析完整HTML失败,回退原始内容:", e);
+					}
+				}
+				return html;
+			};
+
+			const syncHiddenContentInput = (html) => {
+				const contentElements = document.getElementsByName(
+					props.name.replace(/wj$/, "") + "Edit"
+				);
+				if (contentElements.length > 0) {
+					contentElements[0].value = html;
+				}
+			};
+
+			const setEditorHtml = (html) => {
+				const normalizedHtml = normalizeHtml(html);
+				editorContent.value = normalizedHtml;
+				syncHiddenContentInput(normalizedHtml);
+				if (editorRef.value && editorRef.value.value !== normalizedHtml) {
+					editorRef.value.value = normalizedHtml;
+				}
+			};
+
+			const resolveWindowFunction = (handlerName) => {
+				if (!handlerName || typeof handlerName !== "string") {
+					return null;
+				}
+				return handlerName.split(".").reduce((current, key) => {
+					return current && current[key] != null ? current[key] : null;
+				}, window);
+			};
+
+			const getCustomButtonKey = (button, index) => {
+				const baseName =
+					(button &&
+						(button.key || button.name || button.text || button.tooltip)) ||
+					`button${index + 1}`;
+				return `ssCustomButton_${String(baseName).replace(
+					/[^a-zA-Z0-9_-]/g,
+					"_"
+				)}_${index}`;
+			};
+
+			const normalizeCustomButtons = (buttons = []) => {
+				return Array.isArray(buttons)
+					? buttons.filter(Boolean).map((button, index) => ({
+							...button,
+							_buttonKey: getCustomButtonKey(button, index),
+						}))
+					: [];
+			};
+
+			const renderButtonIcon = (icon) => {
+				if (!icon) {
+					return null;
+				}
+				if (typeof icon === "string" && icon.trim().startsWith("<")) {
+					return icon;
+				}
+				return `<span class="editor-icon ${icon}"></span>`;
+			};
+
+			const buildCustomButtonRegistry = (buttons = []) => {
+				const controls = {};
+				const buttonNames = [];
+				const iconMap = {};
+				normalizeCustomButtons(buttons).forEach((button) => {
+					const buttonKey = button._buttonKey;
+					const handler =
+						button.onClick ||
+						button.click ||
+						button.handler ||
+						button.exec ||
+						null;
+					const tooltip =
+						button.tooltip ||
+						button.text ||
+						button.label ||
+						button.name ||
+						"自定义按钮";
+					buttonNames.push(buttonKey);
+					if (button.icon) {
+						iconMap[buttonKey] = button.icon;
+					}
+					controls[buttonKey] = {
+						name: button.name || buttonKey,
+						tooltip,
+						exec: function (editor) {
+							const context = {
+								editor,
+								button,
+								props,
+								value:
+									editor && typeof editor.value !== "undefined"
+										? editor.value
+										: "",
+								setValue: (value) => setEditorHtml(value),
+								getValue: () =>
+									editor && typeof editor.value !== "undefined"
+										? editor.value
+										: "",
+								emit,
+								currentModelValue: currentModelValue.value,
+								fjid: fjid.value,
+							};
+							if (typeof handler === "function") {
+								return handler(context);
+							}
+							if (typeof handler === "string") {
+								const windowHandler = resolveWindowFunction(handler);
+								if (typeof windowHandler === "function") {
+									return windowHandler(context);
+								}
+								console.warn("ss-editor 自定义按钮未找到点击事件:", handler);
+								return undefined;
+							}
+							console.warn("ss-editor 自定义按钮缺少点击事件配置:", button);
+							return undefined;
+						},
+					};
+				});
+				return {
+					controls,
+					buttonNames,
+					iconMap,
+				};
+			};
+
+			const validate = () => {
+				if (window.ssVm) {
+					const result = window.ssVm.validateField(props.name);
+					console.log("validate", window.ssVm.validateField(props.name));
+					errMsg.value = result.valid ? "" : result.message;
+				}
+			};
+
+			onMounted(() => {
+				validate();
+
+				// 只读模式下不初始化 Jodit,直接设置内容 by xu 20250402
+				if (props.mode === "play") {
+					if (props.html) {
+						setEditorHtml(props.html);
+					} else if (props.url) {
+						const params = new URLSearchParams();
+						if (mode) params.append("mode", mode);
+						if (props.modelValue) params.append("path", props.modelValue);
+
+						axios
+							.post(props.url, params, {
+								headers: {
+									"Content-Type": "application/x-www-form-urlencoded",
+								},
+							})
+							.then((response) => {
+								if ("timeout" == response.data.statusText) {
+									alert("网络超时!");
+									return;
+								}
+
+								const content = response.data.content;
+								if (content != null) {
+									setEditorHtml(content);
+								}
+
+								const filePath = response.data.path;
+								if (filePath) {
+									currentModelValue.value = filePath;
+									emit("update:modelValue", filePath);
+								}
+							});
+					} else {
+						setEditorHtml(props.html);
+					}
+					return;
+				}
+
+				// 读取按钮配置 by xu 20250408(移除废弃的 props.customButtons)
+				let buttonsToUse = [];
+				// 1. 优先从 param.button 数组中筛选(新格式)by xu 20250331
+				if (customButtonsFromParam && customButtonsFromParam.length > 0) {
+					buttonsToUse = customButtonsFromParam;
+				}
+				// 2. 尝试从 param.customButtons 读取(旧格式,兼容)
+				if (!buttonsToUse || buttonsToUse.length === 0) {
+					if (props.param && props.param.customButtons && props.param.customButtons.length > 0) {
+						buttonsToUse = props.param.customButtons;
+					}
+				}
+				// 3. 尝试通过桥接 API 读取
+				if (!buttonsToUse || buttonsToUse.length === 0) {
+					const vm = window.SS.dom.getVueApp({ scope: "chain" });
+					if (vm && vm.zwwjCustomButtons) {
+						buttonsToUse = vm.zwwjCustomButtons;
+					}
+				}
+				// 4. 从 formElemConfig 读取(兜底)
+				if (!buttonsToUse || buttonsToUse.length === 0) {
+					const zwwjConfig = window.SS.dom.formElemConfig?.zwwj;
+					if (zwwjConfig?.customButtons) {
+						buttonsToUse = zwwjConfig.customButtons;
+					} else {
+						buttonsToUse = window.SS.dom.formElemConfig?.zwwjCustomButtons;
+					}
+				}
+
+				const {
+					controls: customButtonControls,
+					buttonNames: customButtonNames,
+					iconMap: customButtonIconMap,
+				} = buildCustomButtonRegistry(buttonsToUse);
+				console.log(
+					"[SsEditor] 解析后的按钮:",
+					customButtonNames,
+					customButtonControls
+				);
+
+				const appendCustomButtons = (buttons = []) => {
+					if (!customButtonNames.length) {
+						return buttons;
+					}
+					const toolbarButtons = [...buttons];
+					const insertIndex = toolbarButtons.includes("dots")
+						? toolbarButtons.indexOf("dots")
+						: toolbarButtons.includes("print")
+						? toolbarButtons.indexOf("print")
+						: -1;
+					if (insertIndex >= 0) {
+						toolbarButtons.splice(insertIndex, 0, ...customButtonNames);
+						return toolbarButtons;
+					}
+					return [...toolbarButtons, ...customButtonNames];
+				};
+
+				const editor = Jodit.make(`#${uniqueId}`, {
+					height: props.height,
+					placeholder: props.placeholder,
+					readonly: props.mode === "play",
+					language: "zh_cn",
+					i18n: {
+						zh_cn: {
+							Link: "链接",
+							URL: "链接",
+							"No follow": "无跟踪",
+							"Class name": "类名",
+							Image: "图片",
+							File: "文件",
+							"Line height": "行高",
+							Alternative: "描述",
+							"Alternative text": "描述",
+							"Lower Alpha": "小写字母",
+							"Upper Alpha": "大写字母",
+							"Upper Roman": "大写罗马数字",
+							"Lower Roman": "小写罗马数字",
+							"Lower Greek": "小写希腊字母",
+							"Lower Letter": "小写字母",
+							"Upper Letter": "大写字母",
+						},
+					},
+					showXPathInStatusbar: false,
+					showCharsCounter: false,
+					showWordsCounter: false,
+					allowResizeY: false,
+					toolbarSticky: false,
+					statusbar: false,
+					uploader: {
+						url: props.uploadUrl,
+						format: "json",
+						method: "POST",
+						filesVariableName: function (i) {
+							return "imgs[" + i + "]";
+						},
+						headers: {
+							Accept: "application/json",
+						},
+						prepareData: function (formData) {
+							return formData;
+						},
+						isSuccess: function (resp) {
+							console.log("isSuccess resp:", resp);
+							return resp.code === 0;
+						},
+						getMessage: function (resp) {
+							console.log("getMessage resp:", resp);
+							return resp.msg || "上传失败";
+						},
+						process: function (resp) {
+							console.log("process resp:", resp);
+							return resp.data.url;
+						},
+						error: function (e) {
+							console.error("上传失败:", e.message);
+						},
+						defaultHandlerSuccess: function (resp) {
+							console.log("上传成功:", resp);
+						},
+						defaultHandlerError: function (err) {
+							console.error("上传错误:", err);
+						},
+						contentType: function () {
+							return false;
+						},
+					},
+					controls: {
+						font: {
+							list: {
+								Arial: "Arial",
+								SimSun: "宋体",
+								SimHei: "黑体",
+								"Microsoft YaHei": "微软雅黑",
+								KaiTi: "楷体",
+								FangSong: "仿宋",
+								"Times New Roman": "Times New Roman",
+								"Courier New": "Courier New",
+							},
+						},
+						customLinkButton: {
+							name: "link",
+							tooltip: "附件",
+							exec: function () {
+								if (!fjButton.cmsAddUrl || !fjButton.cmsUpdUrl) {
+									console.warn("ss-editor 未配置附件按钮地址,忽略附件操作");
+									return;
+								}
+
+								if (fjid.value == null || fjid.value === "") {
+									$.ajax({
+										type: "post",
+										url: fjButton.cmsAddUrl,
+										async: false,
+										data: {
+											name: "fjid",
+											ssNrObjName: "sh",
+											ssNrObjId: "",
+										},
+										success: function (_fjid) {
+											console.log("cmsAddUrl success", _fjid);
+											fjid.value = _fjid;
+										},
+									});
+								}
+								var str =
+									"&nrid=T-" +
+									fjid.value +
+									"&objectId=" +
+									fjid.value +
+									"&objectName=" +
+									fjName +
+									"&callback=" +
+									(window["fjidCallbackName"] || "");
+								console.log("str", str);
+								SS.openDialog({
+/* 再改,改为 fjButton.,应该是没改彻底 -- 修正 附件 按钮。Lin
+									src: buttonConfig.cmsUpdUrl + str,
+*/								src: fjButton.cmsUpdUrl + str,
+									headerTitle: "编辑",
+									width: 900,
+									high: 664,
+									zIndex: 51,
+								});
+							},
+						},
+						...customButtonControls,
+					},
+					toolbarAdaptive: true,
+					// 调试:记录最终按钮配置
+					buttons: (() => {
+						const finalButtons = appendCustomButtons([
+							"fullsize",
+							"bold",
+							"italic",
+							"underline",
+							"strikethrough",
+							"eraser",
+							"|",
+							"font",
+							"fontsize",
+							"brush",
+							"paragraph",
+							"|",
+							"left",
+							"center",
+							"right",
+							"justify",
+							"|",
+							"ul",
+							"ol",
+							"indent",
+							"outdent",
+							"|",
+							"image",
+							"table",
+							"customLinkButton",
+							"print",
+							"|",
+							"undo",
+							"redo",
+							"find",
+						]);
+						console.log("[SsEditor] 最终 buttons 配置:", finalButtons);
+						return finalButtons;
+					})(),
+					buttonsMD: appendCustomButtons([
+						"fullsize",
+						"bold",
+						"italic",
+						"underline",
+						"strikethrough",
+						"eraser",
+						"|",
+						"font",
+						"fontsize",
+						"brush",
+						"paragraph",
+						"|",
+						"font",
+						"fontsize",
+						"|",
+						"left",
+						"center",
+						"right",
+						"justify",
+						"|",
+						"image",
+						"customLinkButton",
+						"|",
+						"dots",
+					]),
+					buttonsSM: appendCustomButtons([
+						"fullsize",
+						"bold",
+						"italic",
+						"|",
+						"image",
+						"customLinkButton",
+						"|",
+						"dots",
+					]),
+					buttonsXS: appendCustomButtons(["fullsize", "bold", "|", "dots"]),
+					sizeLG: 1024,
+					sizeMD: 768,
+					sizeSM: 576,
+					getIcon: function (name, clearName) {
+						const iconMap = {
+							bold: "editor-icon-bold",
+							italic: "editor-icon-italic",
+							underline: "editor-icon-underline",
+							strikethrough: "editor-icon-strikethrough",
+							eraser: "editor-icon-eraser",
+							copyformat: "editor-icon-copyformat",
+							font: "editor-icon-font",
+							fontsize: "editor-icon-fontsize",
+							brush: "editor-icon-brush",
+							paragraph: "editor-icon-paragraph",
+							left: "editor-icon-align-left",
+							center: "editor-icon-align-center",
+							right: "editor-icon-align-right",
+							justify: "editor-icon-align-justify",
+							ul: "editor-icon-ul",
+							ol: "editor-icon-ol",
+							indent: "editor-icon-indent",
+							outdent: "editor-icon-outdent",
+							image: "editor-icon-image",
+							file: "editor-icon-file",
+							video: "editor-icon-video",
+							table: "editor-icon-table",
+							link: "editor-icon-link",
+							source: "editor-icon-source",
+							eye: "editor-icon-preview",
+							fullsize: "editor-icon-fullsize",
+							shrink: "editor-icon-fullsize-exit",
+							print: "editor-icon-print",
+							undo: "editor-icon-undo",
+							redo: "editor-icon-redo",
+							search: "editor-icon-find",
+							selectall: "editor-icon-selectall",
+						};
+						const customIcon =
+							customButtonIconMap[clearName] || customButtonIconMap[name];
+						if (customIcon) {
+							return renderButtonIcon(customIcon);
+						}
+						const iconClass = iconMap[clearName] || iconMap[name];
+						if (iconClass) {
+							return renderButtonIcon(iconClass);
+						}
+						return null;
+					},
+				});
+
+				editorRef.value = editor;
+
+				editor.events.on("change", () => {
+					const html = editor.value || "";
+					editorContent.value = html;
+					syncHiddenContentInput(html);
+					emit("change", html);
+					setTimeout(() => {
+						validate();
+					}, 50);
+				});
+
+				emit("ready", editor);
+
+				if (props.html) {
+					setEditorHtml(props.html);
+				} else if (props.url) {
+					const params = new URLSearchParams();
+					if (mode) params.append("mode", mode);
+					if (props.modelValue) params.append("path", props.modelValue);
+
+					axios
+						.post(props.url, params, {
+							headers: {
+								"Content-Type": "application/x-www-form-urlencoded",
+							},
+						})
+						.then((response) => {
+							if ("timeout" == response.data.statusText) {
+								alert("网络超时!");
+								return;
+							}
+
+							const content = response.data.content;
+							if (content != null) {
+								setEditorHtml(content);
+							}
+
+							const filePath = response.data.path;
+							if (filePath) {
+								currentModelValue.value = filePath;
+								emit("update:modelValue", filePath);
+							}
+						});
+				} else {
+					setEditorHtml(props.html);
+				}
+			});
+
+			watch(
+				() => props.html,
+				(newValue) => {
+					setEditorHtml(newValue);
+				}
+			);
+
+			watch(
+				() => props.modelValue,
+				(newValue) => {
+					currentModelValue.value = newValue || "";
+				}
+			);
+
+			watch(
+				() => props.mode,
+				(newMode) => {
+					if (editorRef.value) {
+						editorRef.value.setReadOnly(newMode === "play");
+					}
+				}
+			);
+
+			onBeforeUnmount(() => {
+				if (editorRef.value) {
+					editorRef.value.destruct();
+				}
+			});
+
+			// 只读模式:打开附件弹窗 by xu 20250402
+			const openAttachmentDialog = () => {
+				if (!fjButton.cmsAddUrl || !fjButton.cmsUpdUrl) {
+					console.warn("ss-editor 未配置附件按钮地址,忽略附件操作");
+					return;
+				}
+				if (fjid.value == null || fjid.value === "") {
+					$.ajax({
+						type: "post",
+						url: fjButton.cmsAddUrl,
+						async: false,
+						data: {
+							name: "fjid",
+							ssNrObjName: "sh",
+							ssNrObjId: "",
+						},
+						success: function (_fjid) {
+							console.log("cmsAddUrl success", _fjid);
+							fjid.value = _fjid;
+						},
+					});
+				}
+				var str =
+					"&nrid=T-" +
+					fjid.value +
+					"&objectId=" +
+					fjid.value +
+					"&objectName=" +
+					fjName +
+					"&callback=" +
+					(window["fjidCallbackName"] || "");
+				console.log("str", str);
+				SS.openDialog({
+					src: fjButton.cmsUpdUrl + str,
+					headerTitle: "编辑",
+					width: 900,
+					high: 664,
+					zIndex: 51,
+				});
+			};
+
+			return () => {
+				// 只读模式:不初始化 Jodit,直接渲染 HTML + 附件按钮 by xu 20250402
+				if (props.mode === "play") {
+					return h("div", { class: "ss-editor-container ss-editor-readonly" }, [
+						fjid.value &&
+							h("input", {
+								type: "hidden",
+								name: "fjid",
+								value: fjid.value,
+							}),
+						h("input", {
+							type: "hidden",
+							name: props.name.replace(/wj$/, "") + "Edit",
+							value: editorContent.value,
+						}),
+						h("input", {
+							type: "hidden",
+							name: props.name.replace(/wj$/, "") + "wj",
+							value: currentModelValue.value,
+						}),
+						h("input", {
+							type: "hidden",
+							name: "ueditorpath",
+							value: "mswj",
+						}),
+						// 附件按钮(只读模式下仍显示)
+						fjButton.cmsAddUrl && fjButton.cmsUpdUrl &&
+							h("div", {
+								class: "ss-editor-attach-btn",
+								onClick: openAttachmentDialog,
+							}, [
+								h("span", { class: "editor-icon editor-icon-link" }),
+								h("span", { class: "ss-editor-attach-text" }, "附件")
+							]),
+						// HTML 内容展示
+						h("div", {
+							class: "ss-editor-readonly-content",
+							innerHTML: editorContent.value,
+						}),
+					]);
+				}
+
+				// 正常编辑模式:渲染 textarea 供 Jodit 初始化
+				return h("div", { class: "ss-editor-container" }, [
+					fjid.value &&
+						h("input", {
+							type: "hidden",
+							name: "fjid",
+							value: fjid.value,
+						}),
+					h("input", {
+						type: "hidden",
+						name: props.name.replace(/wj$/, "") + "Edit",
+						value: editorContent.value,
+					}),
+					h("input", {
+						type: "hidden",
+						name: props.name.replace(/wj$/, "") + "wj",
+						value: currentModelValue.value,
+					}),
+					h("input", {
+						type: "hidden",
+						name: "ueditorpath",
+						value:  props.name.replace(/wj$/, "") + "wj",
+					}),
+/// 再增加,把 附件 按钮独立到 jodit 外。Lin
+ // 抄自上面的 SsEditor 只读模式部分
+					// 附件按钮(只读模式下仍显示)
+					fjButton.cmsAddUrl && fjButton.cmsUpdUrl &&
+					h("div", {
+						class: "ss-editor-attach-btn",
+						onClick: openAttachmentDialog,
+					}, [
+						h("span", { class: "editor-icon editor-icon-link" }),
+						h("span", { class: "ss-editor-attach-text" }, "附件")
+					]),
+///
+					h("textarea", { id: uniqueId }),
+				]);
+			};
+		},
+	};
+	// 弹窗右边图标
+	const SsFullStyleHeader = {
+		name: "SsFullStyleHeader",
+		props: {
+			title: {
+				type: String,
+				default: "标题",
+			},
+		},
+		emits: ["close"],
+		setup(props, { emit }) {
+			// console.log(props.title)
+			const onClose = () => {
+				emit("close");
+			};
+			const SsIcon = resolveComponent("ss-icon");
+			return () =>
+				h("div", { class: "header-container" }, [
+					h("div", { class: "title" }, props.title),
+					h("div", { class: "handle-bar" }, [
+						h("div", { class: "left-bar" }, [
+							h(SsDialogIcon, { class: "dialog-icon-download" }),
+							h(SsDialogIcon, { class: "dialog-icon-print" }),
+							h(SsDialogIcon, { class: "dialog-icon-setting" }),
+							h(SsDialogIcon, { class: "dialog-icon-collect" }),
+							h(SsDialogIcon, { class: "dialog-icon-help" }),
+							h(SsDialogIcon, { class: "dialog-icon-full-screen" }),
+							h(SsDialogIcon, { class: "dialog-icon-lock" }),
+						]),
+						h("div", { class: "close-bar", onClick: onClose }, [
+							h(SsDialogIcon, { class: "dialog-icon-close" }),
+						]),
+					]),
+				]);
+		},
+	};
+	// ss-dialog弹窗
+	const SsDialog = {
+		name: "SsDialog",
+		props: {
+			src: {
+				type: String,
+			},
+			headerTitle: {
+				type: String,
+				// required: true,
+				default: "弹窗",
+			},
+			width: {
+				type: String,
+				default: "1400",
+			},
+			height: {
+				type: String,
+				default: "600",
+			},
+			params: {
+				type: Object,
+				default: () => ({}),
+			},
+			zIndex: {
+				type: Number,
+				default: 1000,
+			},
+		},
+		emits: ["close"],
+		setup(props, { slots, emit }) {
+			// 关闭窗口方法
+			const onClose = () => {
+				emit("close");
+			};
+			const showHeader = ref(true);
+			const headerVisible = ref(false);
+			const popupHieght = ref(props.height);
+			// 状态:存储位置信息
+			const position = reactive({
+				// 页面居中
+				x: (window.innerWidth - props.width) / 2,
+				y: (window.innerHeight - popupHieght.value) / 2,
+				isDragging: false,
+				offsetX: 0,
+				offsetY: 0,
+			});
+			// 鼠标按下时设置起始坐标并开始拖拽
+			const startDrag = (event) => {
+				position.isDragging = true;
+				position.offsetX = event.clientX - position.x;
+				position.offsetY = event.clientY - position.y;
+			};
+			// 鼠标移动时更新位置
+			const onDrag = (event) => {
+				if (position.isDragging) {
+					position.x = event.clientX - position.offsetX;
+					position.y = event.clientY - position.offsetY;
+				}
+			};
+			// 鼠标放开时结束拖拽
+			const endDrag = () => {
+				position.isDragging = false;
+			};
+			// 监听来自 iframe 的消息
+			const handleMessage = (event) => {
+				//  顶天立地
+				if (event.data && typeof event.data.hasScrollBar !== "undefined") {
+					if (event.data.hasScrollBar) {
+						//   console.log(event);
+						position.y = 10;
+						showHeader.value = false;
+						headerVisible.value = true;
+						popupHieght.value = window.innerHeight - 20;
+						//   console.log(popupHieght.value);
+						document.querySelector(".body").style.height = "100%";
+						document.querySelector(".body").style.paddingTop = "30px";
+						document.querySelector(".header-container ").style.position =
+							"absolute";
+						document.querySelector(".header-container ").style.zIndex = "10";
+					}
+				}
+			};
+			// 鼠标移入关闭按钮区域时显示头部
+			const onMouseEnterCloseButton = () => {
+				headerVisible.value = false;
+			};
+			// 鼠标移出关闭按钮区域时隐藏头部
+			const onMouseLeaveCloseButton = () => {
+				headerVisible.value = true;
+			};
+			// 在组件挂载时添加全局事件监听器
+			Vue.onMounted(() => {
+				// 如果传过来的高度大于窗口高度,则设置为窗口高度减去20 否则保持传过来的高度
+				popupHieght.value =
+					popupHieght.value > window.innerHeight
+						? window.innerHeight - 20
+						: popupHieght.value;
+				const container = document.querySelector(".header-container");
+				if (container) {
+					container.addEventListener("mousedown", startDrag);
+				}
+				document.addEventListener("mousemove", onDrag);
+				document.addEventListener("mouseup", endDrag);
+				window.addEventListener("message", handleMessage);
+			});
+
+			// 在组件卸载时移除全局事件监听器
+			Vue.onUnmounted(() => {
+				document.removeEventListener("mousemove", onDrag);
+				document.removeEventListener("mouseup", endDrag);
+				window.removeEventListener("message", handleMessage);
+			});
+			const SsMark = resolveComponent("ss-mark");
+			const SsFullStyleHeader = resolveComponent("ss-full-style-header");
+			// render函数定义组件结构
+			return () =>
+				h(
+					Teleport,
+					{ to: "body" }, // 使用 Teleport 将弹窗内容挂载到 body
+					h(SsMark, {}, [
+						h(
+							"div",
+							{
+								class: "popup-container",
+								style: {
+									position: "absolute",
+									left: `${position.x}px`,
+									top: `${position.y}px`,
+									width: props.width + "px",
+									height: popupHieght.value + "px",
+									zIndex: props.zIndex, // 确保弹窗在最上层
+								},
+							},
+							[
+								h(SsFullStyleHeader, {
+									class: "header",
+									title: props.headerTitle,
+									onClose: onClose,
+									onMousedown: startDrag, // 绑定拖动事件
+									onMouseUp: endDrag,
+									...(!showHeader.value && {
+										onMouseenter: onMouseEnterCloseButton,
+										onMouseleave: onMouseLeaveCloseButton,
+									}),
+									style: {
+										cursor: position.isDragging ? "grabbing" : "grab",
+										visibility: headerVisible.value ? "hidden" : "visible",
+									},
+								}),
+								h(
+									"div",
+									{
+										class: "body",
+										style: {},
+									},
+									[
+										h("iframe", {
+											src: props.src,
+											frameborder: 0,
+											style: { width: "100%", height: "100%" },
+										}),
+									]
+								),
+								headerVisible.value &&
+									h("div", {
+										class: "close-button",
+
+										onMouseenter: onMouseEnterCloseButton,
+										onMouseleave: onMouseLeaveCloseButton,
+										style: {
+											position: "absolute",
+											top: "0",
+											right: "0",
+											// background: 'black',
+											width: "60px",
+											height: "60px",
+											cursor: "pointer",
+										},
+									}),
+							]
+						),
+					])
+				);
+		},
+	};
+	// ss-mark遮罩层
+	const SsMark = {
+		name: "SsMark",
+
+		setup(props, { slots, emit }) {
+			return () =>
+				h("div", { class: "dialog-container" }, [
+					h("div", { class: "mark-content" }, [
+						h("div", { class: "dialog-contianer" }, [
+							slots.default ? slots.default() : "",
+						]),
+					]),
+				]);
+		},
+	};
+	// ss-bottom-button 底部按钮
+	// 修改支持更多按钮 by xu 20251211
+	const SsBottomButton = {
+		name: "SsBottomButton",
+		props: {
+			text: {
+				type: String,
+				required: false,
+			},
+			type: {
+				type: String,
+				default: "button",
+			},
+			iconClass: {
+				type: String,
+			},
+/* 再去掉,没用到,生成 <button class type="button" 里的空 class。Lin
+			class: {
+				type: String,
+				default: "",
+			},
+*/
+/// 再增加,增加支持 id=。Lin
+			id: {
+				//add by Ben(20251225)
+				type: String,
+				required: false,
+			},
+///
+			onclick: {
+				type: [Function, String],
+				default: null,
+			},
+			// 修改支持更多按钮 by xu 20251211
+			more: {
+				type: [Boolean, String],
+				default: false,
+			},
+		},
+		setup(props, { emit }) {
+			const SsBottomDivIcon = Vue.resolveComponent("ss-bottom-div-icon");
+			const showDropdown = Vue.ref(false);
+			// 修改支持更多按钮 by xu 20251211
+			const moreKey = Vue.computed(() => {
+				const val = props.more;
+				if (val === false || val === null || typeof val === "undefined") {
+					return null;
+				}
+				if (val === true || val === "" || val === "true") {
+					return "moreChg";
+				}
+				return val;
+			});
+
+			// 从配置中读取按钮信息和下拉选项
+			const config = Vue.computed(() => {
+				if (
+					moreKey.value &&
+					window.ss &&
+					window.ss.dom &&
+					window.ss.dom.btnElemConfig
+				) {
+					return window.ss.dom.btnElemConfig[moreKey.value] || {};
+				}
+				return {};
+			});
+
+			const buttonText = Vue.computed(() => {
+				return props.text || config.value.desc || "";
+			});
+
+			const dropOptions = Vue.computed(() => {
+				return config.value.dropOptions || [];
+			});
+
+			const hasDropdown = Vue.computed(() => {
+				return dropOptions.value.length > 0;
+			});
+
+			const handleMouseEnter = () => {
+				if (hasDropdown.value) {
+					showDropdown.value = true;
+				}
+			};
+
+			const handleMouseLeave = () => {
+				showDropdown.value = false;
+			};
+
+			const handleDropItemClick = (option) => {
+				if (option.callback && typeof option.callback === "function") {
+					option.callback();
+				}
+				showDropdown.value = false;
+			};
+
+			return () =>
+				h(
+					"div",
+					{
+						class: "ss-bottom-button-wrapper",
+						onMouseenter: handleMouseEnter,
+						onMouseleave: handleMouseLeave,
+					},
+					[
+						h(
+							"button",
+							{
+//							class: props.class,	// 再去掉,没用到,生成 <button class type="button" 里的空 class。Lin
+								id: props.id,	// 再增加,增加支持 id=。Lin
+								onClick: (e) => {
+									e.stopPropagation();
+									emit("click", e);
+									if (props.onclick) {
+										// 如果是函数直接调用
+										if (typeof props.onclick === "function") {
+											props.onclick(e);
+										} else if (typeof props.onclick === "string") {
+											// 如果是字符串,使用直接的方法执行
+											// 临时存储按钮元素到全局变量
+											window.__ss_current_button = e.currentTarget;
+
+											// 直接执行代码,使用eval以保留原始上下文
+											try {
+												eval(props.onclick);
+											} finally {
+												// 清理全局变量
+												delete window.__ss_current_button;
+											}
+										}
+									}
+								},
+								type: props.type,
+							},
+							[
+								h("span", null, [
+									h(SsBottomDivIcon, {
+										class: props.iconClass,
+									}),
+								]),
+								h("span", null, buttonText.value),
+							]
+						),
+						// 渲染下拉菜单
+						hasDropdown.value && showDropdown.value
+							? h(
+									"div",
+									{
+										class: "ss-bottom-button-dropdown",
+									},
+									dropOptions.value.map((option) =>
+										h(
+											"div",
+											{
+												class: "ss-bottom-button-dropdown-item",
+												onClick: (e) => {
+													e.stopPropagation();
+													handleDropItemClick(option);
+												},
+											},
+											option.desc
+										)
+									)
+								)
+							: null,
+					]
+				);
+		},
+	};
+	// ss-search搜索框
+	const SsSearch = {
+		name: "SsSearch",
+		props: {
+			theme: {
+				type: String,
+				default: "light",
+				validator: function (value) {
+					return ["dark", "light"].includes(value);
+				},
+			},
+			placeholder: {
+				type: String,
+				default: "",	// : "请输入搜索条件",。再改,去掉 placeholder 默认值 "请输入搜索条件" 。Lin
+			},
+		},
+		setup(props, { emit }) {
+			const onClick = () => {
+				console.log("Search clicked");
+				emit("click");
+			};
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			return () =>
+				Vue.h(
+					"div",
+					{
+						class: ["search-container", props.theme],
+						onClick: onClick,
+					},
+					[
+						Vue.h("input", {
+							placeholder: props.placeholder,
+							disabled: true,
+						}),
+						Vue.h(SsIcon, {
+							name: "search-result",
+							size: "20px",
+						}),
+					]
+				);
+		},
+	};
+	// ss-cart-item 菜单页面的卡片 左右结构
+	const SsCartItem = {
+		name: "SsCartItem",
+		props: {
+			active: Boolean,
+			item: {
+				type: Object,
+				default: () => ({
+					thumb: "images/example/project-img.png",
+					title: "广州(国际)科技成果转化天河基地专",
+					description: "佳能中国广州分公司",
+					all: 50,
+					finish: 5,
+				}),
+			},
+		},
+		setup(props, { emit }) {
+			const item = props.item;
+
+			const itemWidth = Vue.computed(() => {
+				const containerWidth =
+					document.body.clientWidth || document.body.scrollWidth - 520;
+				const halfWidth = containerWidth / 2;
+				if (halfWidth < 480) {
+					return Math.min(containerWidth, 702) + "px";
+				} else {
+					return Math.min(halfWidth, 702) + "px";
+				}
+			});
+
+			const onItemClick = (e) => {
+				emit("click", e);
+			};
+
+			return {
+				item,
+				itemWidth,
+				onItemClick,
+			};
+		},
+		render() {
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			return Vue.h(
+				"div",
+				{
+					class: { "item-container": true, active: this.active },
+					onClick: this.onItemClick,
+					style: { width: this.itemWidth },
+				},
+				[
+					Vue.h("div", { class: "header" }, [
+						Vue.h(SsIcon, { name: "setting", size: "20px" }),
+					]),
+					Vue.h("div", { class: "body" }, [
+						Vue.h("div", { class: "left" }, [
+							Vue.h("img", {
+								src: this.item.thumb,
+								alt: "Thumbnail",
+								class: "imgUnHandle",
+								style: { "object-fit": "cover", width: "100%", height: "100%" },
+							}),
+						]),
+						Vue.h("div", { class: "right" }, [
+							Vue.h("div", { class: "title" }, this.item.title),
+							Vue.h("div", { class: "desc" }, this.item.description),
+							Vue.h("div", { class: "progress" }, [
+								Vue.h(
+									"div",
+									{
+										style: {
+											width: `${(this.item.finish / this.item.all) * 100}%`,
+										},
+									},
+									[Vue.h("div", `${this.item.finish}/${this.item.all}`)]
+								),
+							]),
+						]),
+					]),
+				]
+			);
+		},
+	};
+	// ss-cart-item2 菜单页面的卡片 上下结构
+	const SsCartItem2 = {
+		name: "SsCartItem2",
+		props: {
+			active: Boolean,
+			item: {
+				type: Object,
+				default: () => ({
+					thumb: "images/example/project-img.png",
+					title: "广州(国际)科技成果转化天河基地专",
+					description: "佳能中国广州分公司",
+					all: 50,
+					finish: 5,
+				}),
+			},
+		},
+		setup(props, { emit }) {
+			const item = props.item;
+			const itemWidth = Vue.computed(() => {
+				const containerWidth =
+					document.body.clientWidth || document.body.scrollWidth - 520;
+				const halfWidth = containerWidth / 2;
+				if (halfWidth < 480) {
+					return Math.min(containerWidth, 702) + "px";
+				} else {
+					return Math.min(halfWidth, 702) + "px";
+				}
+			});
+
+			const onItemClick = (e) => {
+				emit("click", e);
+			};
+
+			return {
+				item,
+				itemWidth,
+				onItemClick,
+			};
+		},
+
+		render() {
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			return Vue.h(
+				"div",
+				{
+					class: { "item-container2": true, active: this.active },
+					onClick: this.onItemClick,
+					style: { width: this.itemWidth },
+				},
+				[
+					Vue.h("div", { class: "action-bar" }, [
+						Vue.h(SsIcon, { name: "setting", size: "20px" }),
+					]),
+					Vue.h("div", { class: "header" }, [
+						Vue.h("div", { class: "title" }, `${this.item.title}`),
+					]),
+					Vue.h("div", { class: "body" }, [
+						Vue.h("div", { class: "left" }, [
+							Vue.h("img", {
+								src: this.item.thumb,
+								alt: "Thumbnail",
+								class: "imgUnHandle",
+								style: { "object-fit": "cover", width: "100%", height: "100%" },
+							}),
+						]),
+						Vue.h("div", { class: "right" }, [
+							Vue.h("div", { class: "content" }, this.item.description),
+							Vue.h("div", { class: "tip" }, [
+								Vue.h("div", { class: "progress" }, [
+									Vue.h(
+										"div",
+										{
+											style: {
+												width: `${(this.item.finish / this.item.all) * 100}%`,
+											},
+										},
+										[Vue.h("div", `${this.item.finish}/${this.item.all}`)]
+									),
+								]),
+							]),
+						]),
+					]),
+				]
+			);
+		},
+	};
+
+	/**
+	 * SsListCard - 列表卡片组件
+	 *
+	 * @description 用于显示列表项的卡片组件,支持缩略图、标签、状态、操作按钮和选择功能
+	 *
+	 * @prop {Object} item - 卡片数据对象
+	 * @prop {String} item.title - 卡片标题
+	 * @prop {String} [item.thumb] - 缩略图 URL(可选)
+	 * @prop {String} [item.thumbType] - 缩略图类型:'thumbnail'(缩略图)或默认(证件照)
+	 * @prop {String} [item.status] - 卡片状态:'available'(可用-绿色)、'unavailable'(不可用-黄色)、'disabled'(禁用-红色)
+	 * @prop {Array} item.tags - 标签数组,格式:[{键: 值}, ...]
+	 * @prop {Function} item.onclick - 点击卡片的回调函数
+	 * @prop {Array} [item.buttons] - 操作按钮数组(可选),显示在右上角齿轮
+	 * @prop {Array} [item.statusIcons] - 状态图标数组(可选),显示在右上角,格式:[{class: '图标类名', title: '提示文字'}, ...]
+	 *
+	 * @example
+	 * // 基础用法
+	 * const item = {
+	 *   title: "卡片标题",
+	 *   tags: [
+	 *     { 类型: '文档' },
+	 *     { 状态: '进行中' }
+	 *   ],
+	 *   onclick: () => console.log('点击了卡片')
+	 * };
+	 *
+	 * @example
+	 * // 带缩略图和状态
+	 * const item = {
+	 *   title: "场地预定",
+	 *   thumbType: 'thumbnail',
+	 *   thumb: "https://example.com/image.jpg",
+	 *   status: "available",  // 绿色背景
+	 *   tags: [{ 容量: '50人' }],
+	 *   onclick: () => {}
+	 * };
+	 *
+	 * @example
+	 * // 带操作按钮和状态图标
+	 * const item = {
+	 *   title: "会议室A",
+	 *   tags: [{ 楼层: '3F' }],
+	 *   onclick: () => {},
+	 *   // 右上角操作按钮(齿轮)
+	 *   buttons: [{
+	 *     class: 'cart-list-setting',
+	 *     title: '编辑',
+	 *     onclick: () => console.log('编辑')
+	 *   }],
+	 *   // 右上角状态图标(在齿轮右边)
+	 *   statusIcons: [{
+	 *     class: 'icon-emoji',
+	 *     title: '清洁中'
+	 *   }]
+	 * };
+	 *
+	 * @features
+	 * - 卡片选择:鼠标悬停右下角显示选择角标,点击切换选中状态,选中后显示底部深灰色线条
+	 * - 状态颜色:根据 status 字段显示不同背景色(可用/不可用/禁用)
+	 * - 图片类型:支持证件照(73×100px)和缩略图(180×100px)两种尺寸
+	 * - 操作按钮:右上角齿轮,hover 显示,支持多个按钮下拉菜单
+	 * - 状态图标:右上角显示状态图标,齿轮会根据图标数量自动左移
+	 *
+	 * @author xu
+	 * @date 20260105
+	 */
+	// 组件文档补全(JSDoc) by xu 20260108
+	/**
+	 * SsListCard(左侧对象卡片)
+	 *
+	 * 用途:
+	 * - 渲染左侧卡片(标题 + tags)
+	 * - 右下角“角标”用于选中/取消选中(不会触发卡片 click)
+	 *
+	 * 调用示例:
+	 * ```html
+	 * <ss-list-card :item="item" @toggle-select="handleToggleSelect" @click="openDetail"></ss-list-card>
+	 * ```
+	 *
+	 * Props:
+	 * - `item`:卡片数据对象(建议含 `id/title/tags[]`;内部会读写 `item._ssSelected` 作为选中态)
+	 *
+	 * Emits:
+	 * - `toggle-select`:点击角标触发,参数 `{ item, selected }`
+	 * - `click`:点击卡片主体触发(用于打开详情等)
+	 */
+	const SsListCard = {
+		name: "SsListCard",
+		props: {
+			ssObjName: { type: String, default: "" }, // 功能:业务对象名(用于默认缩略图 icon) by xu 20260109
+			cardClickAction: { type: String, default: "view" }, // 功能:卡片主体点击动作(view=查看;single=单选互斥) by xu 20260109
+			item: {
+				type: Object,
+				required: true,
+			},
+		},
+		emits: ["click", "change", "toggle-select"],
+		setup(props, { emit }) {
+			const item = props.item;
+			// 移除 itemWidth 计算属性,不再需要 by xu 20260105
+			// 判断卡片类型 by xu 20260105
+			const cardType = Vue.computed(() => {
+				// 支持“无图但保留缩略图占位”(同一业务列表图片形态一致) by xu 20260109
+				if (!item.thumb && !item.thumbType) return ""; // 业务列表“无图”形态
+				// 根据 thumbType 字段判断,如果没有则默认为证件照
+				return item.thumbType === "thumbnail" ? "card-thumbnail" : "card-photo";
+			});
+			// 判断状态类型 - 场地预定状态 by xu 20260105
+			const statusClass = Vue.computed(() => {
+				if (!item.status) return ""; // 无状态,默认白色
+				// 映射状态值到 CSS 类名
+				const statusMap = {
+					available: "status-available",
+					unavailable: "status-unavailable",
+					disabled: "status-disabled",
+				};
+				return statusMap[item.status] || "";
+			});
+			const onItemClick = (e) => {
+				// 清除所有类型卡片的 active 状态(卡片主体点击仅做 active 高亮) by xu 20260109
+				const allListCards = document.querySelectorAll(
+					".knowledge-item-container"
+				);
+				const allFolderCards = document.querySelectorAll(".ss-folder-list");
+
+				allListCards.forEach((card) => card.classList.remove("active"));
+				allFolderCards.forEach((card) => card.classList.remove("active"));
+
+				// 设置当前项的 active 状态
+				e.currentTarget.classList.add("active");
+				// 卡片主体点击动作由页面级配置控制 by xu 20260109
+				if (props.cardClickAction === "view") {
+					props.item.onclick?.();
+					// 通知父级:卡片点击(查看) by xu 20260109
+					emit("click", props.item);
+				}
+			};
+			const onItemChange = (e, icon, index) => {
+				e.stopPropagation(); // 阻止事件冒泡到卡片
+				props.item.buttons[0].onclick();
+				// emit("change", { item: props.item, icon, index });
+			};
+			return {
+				item,
+				cardType,
+				statusClass,
+				onItemClick,
+				onItemChange,
+			};
+		},
+
+		data() {
+			return {
+				showButtons: false,
+				selected: false, // 选择状态 by xu 20260105
+				showTextPopover: false, // 功能:右侧文字区 hover 展示全量 by xu 20260108
+				textPopoverType: "", // second-summary / second-tags / third / third-full by xu 20260108
+				textPopoverBottom: 0, // 功能:popover 从当前省略行位置向上展开 by xu 20260108
+				hideTextPopoverTimer: null, // 功能:鼠标从省略行移到浮层的缓冲 by xu 20260108
+				textPopoverPayload: null, // { kind, text?, lines? } by xu 20260108
+				ellipsisVisible: {
+					// 功能:只在真实出现 ... 时才显示命中区/允许 goheight by xu 20260109
+					secondSummary: false,
+					secondTags: false,
+					third: false,
+					thirdFull: false,
+				},
+			};
+		},
+
+		methods: {
+			__allowSelect() {
+				// 功能说明:无 rbarObj 时禁用选中能力(隐藏右下角勾选并禁止 toggle) by xu 20260122
+				try {
+					if (this?.$root && this.$root.hasObjPanel === false) return false;
+					if (
+						typeof window !== "undefined" &&
+						window.__objListVm &&
+						window.__objListVm.hasObjPanel === false
+					)
+						return false;
+				} catch (_) {}
+				return true;
+			},
+			// 切换选择状态(对外 emit,支持方案A父级 state 中转) by xu 20260106
+			toggleSelect(e) {
+				e.stopPropagation();
+				if (!this.__allowSelect()) return; // 功能说明:无 rbarObj 时禁止选中 by xu 20260122
+				// 使用 item 上的状态,便于父级/右侧边栏反向同步 by xu 20260106
+				this.item._ssSelected = !this.item?._ssSelected;
+				this.$emit("toggle-select", {
+					item: this.item,
+					selected: !!this.item?._ssSelected,
+				});
+			},
+			// 卡片主体点击=单选互斥:只有“本次切到选中”才清理其他选中 by xu 20260109
+			toggleSelectExclusive(e) {
+				e?.stopPropagation?.();
+				if (!this.__allowSelect()) return; // 功能说明:无 rbarObj 时禁止选中 by xu 20260122
+				this.item._ssSelected = !this.item?._ssSelected;
+				const selected = !!this.item?._ssSelected;
+				this.$emit("toggle-select", {
+					item: this.item,
+					selected,
+					exclusive: true,
+				});
+			},
+			// 功能:无缩略图时,用业务对象 icon 做默认图(ss-icon + icon-obj-xx) by xu 20260109
+			getBizThumbIconClass() {
+				const name = String(
+					this.ssObjName ||
+						this.item?.ssObjName ||
+						this.$root?.ssObjName ||
+						window?.ss?.dom?.ssObjName ||
+						""
+				).trim();
+				if (!name) return "";
+				return `icon-obj-${name}`;
+			},
+			// 功能:构造右侧文字区 4 行(摘要/类目或标签/对象号) by xu 20260108
+			buildRightTextLines() {
+				const item = this.item || {};
+				const summary = String(item?.desc ?? "").trim(); // 后端字段后续映射 by xu 20260108
+				const objNum = String(item?.objNum ?? "").trim(); // 后端字段后续映射 by xu 20260108
+				const categoryArr = Array.isArray(item?.category) ? item.category : [];
+				const tagsArr = Array.isArray(item?.tags) ? item.tags : [];
+				const hasTags = tagsArr.length > 0;
+				const hasCategory = categoryArr.length > 0;
+
+				// 第二部分(L1-L3):摘要优先,其次物品参数 by xu 20260108
+				const secondKind = summary ? "summary" : hasTags ? "tags" : "";
+				const hasSecond = !!secondKind;
+
+				// 第三部分(L4):对象号优先,其次类目 by xu 20260108
+				const thirdKind = objNum ? "objNum" : hasCategory ? "category" : "";
+				const hasThird = !!thirdKind;
+				const thirdFull = !hasSecond && hasThird; // 第二部分为空则第三部分占满 4 行 by xu 20260108
+				const secondFull = hasSecond && !hasThird && secondKind === "tags"; // 仅标签时占满 4 行(不留空行) by xu 20260109
+
+				const toValueText = (obj) => {
+					// 功能说明:类目/物品参数回显展示 key: value(否则只显示值看不懂) by xu 20260114
+					const [k, v] = Object.entries(obj || {})[0] || ["", ""];
+					const key = k !== undefined && k !== null ? String(k).trim() : "";
+					const val = v !== undefined && v !== null ? String(v).trim() : "";
+					if (key && val) return `${key}:${val}`;
+					if (val) return val;
+					if (key) return key;
+					return "";
+				};
+
+				const toLineList = (arr) =>
+					(arr || [])
+						.map(toValueText)
+						.map((s) => String(s ?? "").trim())
+						.filter(Boolean);
+
+				const flat = (arr) => toLineList(arr).join(" ");
+
+				// 第二部分 tags:默认 3 行;仅标签时占满 4 行(避免底部空一行) by xu 20260109
+				const secondTagsMaxLines = secondFull ? 4 : 3;
+				const secondTagsLinesFull = toLineList(tagsArr);
+				const secondTagsHead = secondTagsLinesFull.slice(
+					0,
+					Math.max(0, secondTagsMaxLines - 1)
+				);
+				const secondTagsTail = secondTagsLinesFull.slice(
+					Math.max(0, secondTagsMaxLines - 1)
+				);
+				const secondTagsLast =
+					secondTagsTail.length <= 1
+						? secondTagsTail[0] || ""
+						: secondTagsTail.join(" "); // 功能:最后一行平铺剩余 by xu 20260108
+
+				// 第三部分类目:卡片上串成一行;goheight 展开时一条一行 by xu 20260109
+				const categoryLinesFull = toLineList(categoryArr);
+				const categoryLine = categoryLinesFull.join(" ");
+
+				const thirdText =
+					thirdKind === "objNum"
+						? objNum
+						: thirdKind === "category"
+						? categoryLine
+						: "";
+
+				return {
+					secondKind,
+					thirdKind,
+					hasSecond,
+					hasThird,
+					thirdFull,
+					secondFull,
+					summary,
+					secondTagsMaxLines,
+					secondTagsHead,
+					secondTagsLast,
+					secondTagsLinesFull,
+					objNum,
+					categoryLine,
+					categoryLinesFull,
+					thirdText,
+				};
+			},
+			measureTextOverflowByLines(text, maxLines, width) {
+				const w = Number(width) || 0;
+				if (!w || !text) return false;
+				const probe = document.createElement("div");
+				probe.style.position = "fixed";
+				probe.style.left = "-99999px";
+				probe.style.top = "0";
+				probe.style.width = w + "px";
+				probe.style.fontSize = "18px";
+				probe.style.lineHeight = "24px";
+				probe.style.whiteSpace = "normal";
+				probe.style.wordBreak = "break-word";
+				probe.style.visibility = "hidden";
+				probe.textContent = text;
+				document.body.appendChild(probe);
+				const h = probe.getBoundingClientRect().height || 0;
+				document.body.removeChild(probe);
+				return h > maxLines * 24 + 1;
+			},
+			measureSingleLineOverflow(text, width) {
+				const w = Number(width) || 0;
+				if (!w || !text) return false;
+				const probe = document.createElement("span");
+				probe.style.position = "fixed";
+				probe.style.left = "-99999px";
+				probe.style.top = "0";
+				probe.style.display = "inline-block";
+				probe.style.maxWidth = w + "px";
+				probe.style.fontSize = "18px";
+				probe.style.lineHeight = "24px";
+				probe.style.whiteSpace = "nowrap";
+				probe.style.visibility = "hidden";
+				probe.textContent = text;
+				document.body.appendChild(probe);
+				const overflow =
+					(probe.scrollWidth || 0) > (probe.clientWidth || w) + 1;
+				document.body.removeChild(probe);
+				return overflow;
+			},
+			// 功能:根据当前卡片宽度刷新「是否出现 ...」状态(用于控制命中区显示) by xu 20260109
+			refreshEllipsisVisible() {
+				try {
+					const right = this.$el?.querySelector?.(".right");
+					const rawWidth =
+						right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
+					const width = Math.max(0, Math.round(rawWidth)); // 修复:内容区不再使用 padding-right 预留,测量按真实宽度 by xu 20260109
+					const model = this.buildRightTextLines();
+
+					const next = {
+						secondSummary: false,
+						secondTags: false,
+						third: false,
+						thirdFull: false,
+					};
+
+					if (model.secondKind === "summary" && model.summary) {
+						next.secondSummary = this.measureTextOverflowByLines(
+							model.summary,
+							3,
+							width
+						);
+					}
+					if (model.secondKind === "tags") {
+						// 功能说明:tags 采用「最后一行平铺剩余」策略,是否出现 ... 仅取决于最后一行是否溢出(数量多但平铺放得下不算溢出) by xu 20260114
+						next.secondTags = this.measureSingleLineOverflow(
+							model.secondTagsLast,
+							width
+						);
+					}
+					if (model.hasThird && !model.thirdFull) {
+						next.third = this.measureSingleLineOverflow(model.thirdText, width);
+					}
+					if (model.hasThird && model.thirdFull) {
+						next.thirdFull = this.measureTextOverflowByLines(
+							model.thirdText,
+							4,
+							width
+						);
+					}
+
+					const prev = this.ellipsisVisible || {};
+					const changed =
+						prev.secondSummary !== next.secondSummary ||
+						prev.secondTags !== next.secondTags ||
+						prev.third !== next.third ||
+						prev.thirdFull !== next.thirdFull;
+					if (changed) this.ellipsisVisible = next;
+				} catch (e) {
+					// ignore by xu 20260109
+				}
+			},
+			showTextPopoverFor(el, kind) {
+				// 调试开关:window.__SS_LISTCARD_DEBUG__ = true 时打印 hover/溢出判断日志 by xu 20260108
+				const debug =
+					typeof window !== "undefined" && !!window.__SS_LISTCARD_DEBUG__;
+				if (debug) {
+					console.log("[SsListCard] ellipsis hover", {
+						kind,
+						el: el?.className,
+					});
+				}
+				const model = this.buildRightTextLines();
+				const lineEl = el?.closest?.(".ss-card-text__line") || el;
+				const right = lineEl?.closest?.(".right") || el?.closest?.(".right");
+				const rawWidth =
+					right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
+				const width = Math.max(0, Math.round(rawWidth)); // 修复:内容区不再预留 padding-right,测量按真实宽度 by xu 20260109
+
+				const textEl =
+					kind === "second-summary"
+						? lineEl?.querySelector?.(".ss-card-text__secondSummary")
+						: kind === "second-tags"
+						? lineEl?.querySelector?.(".ss-card-text__tagLineLast")
+						: kind === "third"
+						? lineEl?.querySelector?.(".ss-card-text__thirdLine")
+						: lineEl?.querySelector?.(".ss-card-text__thirdFull");
+
+				let payload = null;
+				// 仅当真实会出现 ... 时才允许 goheight(避免“没超出也能出 goheight”) by xu 20260109
+				const overflowed =
+					kind === "second-summary"
+						? this.measureTextOverflowByLines(model.summary, 3, width)
+						: kind === "second-tags"
+						? this.measureSingleLineOverflow(model.secondTagsLast, width) // 功能说明:同 refreshEllipsisVisible,tags 仅看最后一行是否溢出 by xu 20260114
+						: kind === "third"
+						? this.measureSingleLineOverflow(model.thirdText, width)
+						: this.measureTextOverflowByLines(model.thirdText, 4, width);
+				if (!overflowed) return;
+
+				if (kind === "second-summary") {
+					if (model.summary) payload = { kind, text: model.summary };
+				} else if (kind === "second-tags") {
+					if (
+						Array.isArray(model.secondTagsLinesFull) &&
+						model.secondTagsLinesFull.length
+					) {
+						payload = { kind, lines: model.secondTagsLinesFull };
+					}
+				} else if (kind === "third") {
+					if (
+						model.thirdKind === "category" &&
+						Array.isArray(model.categoryLinesFull) &&
+						model.categoryLinesFull.length
+					) {
+						payload = { kind, lines: model.categoryLinesFull }; // 功能:类目展开一条一行 by xu 20260109
+					} else if (model.thirdText) {
+						payload = { kind, text: model.thirdText };
+					}
+				} else if (kind === "third-full") {
+					if (
+						model.thirdKind === "category" &&
+						Array.isArray(model.categoryLinesFull) &&
+						model.categoryLinesFull.length
+					) {
+						payload = { kind, lines: model.categoryLinesFull }; // 功能:类目占满模式展开一条一行 by xu 20260109
+					} else if (model.thirdText) {
+						payload = { kind, text: model.thirdText };
+					}
+				}
+				if (debug) {
+					console.log("[SsListCard] ellipsis decide", {
+						kind,
+						rawWidth: Math.round(rawWidth),
+						width,
+						hasPayload: !!payload,
+						textEl: textEl?.className,
+						textClient: textEl
+							? {
+									cw: textEl.clientWidth,
+									ch: textEl.clientHeight,
+									sw: textEl.scrollWidth,
+									sh: textEl.scrollHeight,
+								}
+							: null,
+					});
+				}
+				if (!payload) return;
+
+				this.clearHideTextPopoverTimer();
+				const container = lineEl?.closest?.(".right");
+				const containerRect = container?.getBoundingClientRect?.();
+				const lineRect = lineEl?.getBoundingClientRect?.();
+				if (containerRect && lineRect) {
+					const bottom = Math.max(
+						0,
+						Math.round(containerRect.bottom - lineRect.bottom)
+					);
+					this.textPopoverBottom = bottom;
+				} else {
+					this.textPopoverBottom = 0;
+				}
+				this.textPopoverPayload = payload;
+				this.textPopoverType = kind;
+				this.showTextPopover = true;
+				if (debug) console.log("[SsListCard] goheight show", payload);
+			},
+			isOverflowing(el) {
+				if (!el) return false;
+				// 单行/多行省略统一判断:scroll 尺寸大于 client 尺寸即认为有 ... by xu 20260108
+				return (
+					(el.scrollWidth &&
+						el.clientWidth &&
+						el.scrollWidth > el.clientWidth + 1) ||
+					(el.scrollHeight &&
+						el.clientHeight &&
+						el.scrollHeight > el.clientHeight + 1)
+				);
+			},
+			isSummaryOverflowing(el) {
+				if (!el) return false;
+				// -webkit-line-clamp 场景下 scrollHeight 不稳定,改用“无 clamp 的离屏测量”判断是否超过 2 行 by xu 20260108
+				const text = String(this.item?.desc ?? "").trim();
+				if (!text) return false;
+				const rect = el.getBoundingClientRect?.();
+				const width = rect?.width || el.clientWidth || 0;
+				if (!width) return false;
+				const probe = document.createElement("div");
+				probe.style.position = "fixed";
+				probe.style.left = "-99999px";
+				probe.style.top = "0";
+				probe.style.width = width + "px";
+				probe.style.fontSize = "18px";
+				probe.style.lineHeight = "24px";
+				probe.style.whiteSpace = "normal";
+				probe.style.wordBreak = "break-word";
+				probe.style.visibility = "hidden";
+				probe.textContent = text;
+				document.body.appendChild(probe);
+				const h = probe.getBoundingClientRect().height || 0;
+				document.body.removeChild(probe);
+				return h > 48 + 1;
+			},
+			clearHideTextPopoverTimer() {
+				if (this.hideTextPopoverTimer) {
+					clearTimeout(this.hideTextPopoverTimer);
+					this.hideTextPopoverTimer = null;
+				}
+			},
+			// 修复 goheight hover 无响应:移除重复方法覆盖,统一使用上面的 showTextPopoverFor(el, kind) by xu 20260109
+			hideTextPopoverLater() {
+				this.clearHideTextPopoverTimer();
+				this.hideTextPopoverTimer = setTimeout(() => {
+					this.showTextPopover = false;
+					this.textPopoverType = "";
+					this.textPopoverPayload = null;
+				}, 120);
+			},
+			hideTextPopover() {
+				this.clearHideTextPopoverTimer();
+				this.showTextPopover = false;
+				this.textPopoverType = "";
+				this.textPopoverPayload = null;
+			},
+			// 功能:新需求下不在 updated 内做测量,避免死循环 by xu 20260108
+		},
+
+		mounted() {
+			// 无需在 mounted/updated 里做 overflow 测量(避免死循环),只在 hover 触发时判断 by xu 20260108
+			// 仅用于控制“...命中区是否显示”,不会触发循环更新 by xu 20260109
+			this.$nextTick?.(() => {
+				requestAnimationFrame(() => this.refreshEllipsisVisible?.());
+			});
+			this.__ssListCardResizeHandler = () => this.refreshEllipsisVisible?.(); // 功能:窗口变化时刷新 ... 显示 by xu 20260109
+			window.addEventListener?.("resize", this.__ssListCardResizeHandler);
+		},
+		updated() {
+			// 卡片数据更新后刷新一次 ... 显示状态(避免“宽度/内容变了但命中区不变”) by xu 20260109
+			this.$nextTick?.(() => {
+				requestAnimationFrame(() => this.refreshEllipsisVisible?.());
+			});
+		},
+		beforeUnmount() {
+			// 清理 timer,避免残留导致异常 by xu 20260108
+			this.clearHideTextPopoverTimer?.();
+			if (this.__ssListCardResizeHandler) {
+				window.removeEventListener?.("resize", this.__ssListCardResizeHandler);
+				this.__ssListCardResizeHandler = null;
+			}
+		},
+
+		render() {
+			const SsCartListIcon = Vue.resolveComponent("ss-cart-list-icon");
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			const hasThumbArea = !!(this.item?.thumb || this.item?.thumbType); // 功能:无图但有 thumbType 时仍保留占位 by xu 20260109
+			const thumbSrc = (() => {
+				// 功能说明:兼容 thumb 为 raw path 或 {val}/{value},组件内统一转为 dlByHttp URL by xu 20260122
+				const t = this.item?.thumb;
+				if (!t) return "";
+				if (typeof t === "string") {
+					const s = t.trim();
+					if (!s) return "";
+					// 已经是 URL/绝对路径则直接使用;否则按 path 构建 dlByHttp by xu 20260122
+					if (
+						/^https?:\/\//i.test(s) ||
+						s.startsWith("/service?") ||
+						s.startsWith("/")
+					)
+						return s;
+					return buildThumbUrl(s);
+				}
+				return buildThumbUrl(t);
+			})();
+			return Vue.h(
+				"div",
+				{
+					class: {
+						"knowledge-item-container": true,
+						active: this.item.active,
+						[this.cardType]: !!this.cardType, // 动态添加卡片类型类名 by xu 20260105
+						[this.statusClass]: !!this.statusClass,
+					},
+					onClick: (e) => {
+						this.onItemClick?.(e);
+						if (this.__allowSelect() && this.cardClickAction === "single") {
+							// 功能说明:无 rbarObj 时不允许单选互斥 by xu 20260122
+							this.toggleSelectExclusive?.(e);
+						}
+					}, // 功能:卡片主体点击动作(view/single) by xu 20260109
+					// 移除固定宽度,由 CSS min-width 控制 by xu 20260105
+				},
+				[
+					// 右上角状态图标区域 by xu 20260105
+					this.item?.statusIcons?.length > 0 &&
+						Vue.h(
+							"div",
+							{ class: "card-status-icons" },
+							this.item.statusIcons.map((icon) =>
+								Vue.h(SsIcon, {
+									class: `status-icon ${icon.class}`,
+									title: icon.title,
+								})
+							)
+						),
+
+					this.item?.buttons?.length > 0 &&
+						Vue.h(
+							"div",
+							{
+								class: "header",
+								style:
+									this.item?.statusIcons?.length > 0
+										? {
+												right: `${this.item.statusIcons.length * 48}px`,
+												borderTopRightRadius: "0",
+											}
+										: {},
+								onMouseenter: () => (this.showButtons = true),
+								onMouseleave: () => (this.showButtons = false),
+								onClick: (e) => this.onItemChange(e, this.item.buttons[0], 0),
+							},
+							[
+								// 只在有按钮时渲染设置图标
+								// this.item?.buttons?.length > 0 &&
+								Vue.h("div", {
+									class: "cart-list-setting cart-list-icon",
+									title: this.item?.buttons?.[0]?.title,
+								}),
+
+								// 鼠标移入时显示按钮列表,与图标同级
+								// this.item?.buttons?.length > 0 &&
+								this.showButtons &&
+									this.item?.buttons?.length > 1 &&
+									Vue.h(
+										"div",
+										{
+											class: "cart-list-button-popup",
+										},
+										this.item.buttons.map((btn) =>
+											Vue.h(
+												"div",
+												{
+													onClick: (e) => {
+														e.stopPropagation();
+														btn.onclick?.();
+													},
+												},
+												[
+													// 如果有 class,显示对应的图标
+													btn.class &&
+														Vue.h(SsCartListIcon, {
+															class: [btn.class],
+														}),
+													// 显示按钮文本
+													Vue.h("span", null, btn.title),
+												]
+											)
+										)
+									),
+							]
+						),
+
+					Vue.h("div", { class: "body" }, [
+						Vue.h("div", { class: "box-header" }, [
+							Vue.h("div", `${this.item.title}`),
+						]),
+						Vue.h(
+							"div",
+							{
+								class: !hasThumbArea ? "no-thumb box-body" : "box-body",
+							},
+							[
+								hasThumbArea
+									? thumbSrc
+										? Vue.h("div", { class: "left" }, [
+												Vue.h("img", {
+													src: thumbSrc,
+													alt: "Thumbnail",
+													class: "imgUnHandle",
+													style: {
+														"object-fit": "cover",
+														width: "100%",
+														height: "100%",
+													},
+												}),
+											])
+										: Vue.h(
+												// 功能:无图占位(ss-icon + biz icon,居中) by xu 20260109
+												"div",
+												{ class: "left ss-objlist-thumbPlaceholder" },
+												[
+													Vue.h(SsIcon, {
+														class: `${this.getBizThumbIconClass()} ss-objlist-thumbIcon`,
+													}),
+												]
+											)
+									: null,
+								Vue.h(
+									"div",
+									{
+										class: "right",
+									},
+									(() => {
+										const model = this.buildRightTextLines(); // 功能:右侧文字区新规则(第二部分/第三部分优先级) by xu 20260108
+										const hasAny = !!(model?.hasSecond || model?.hasThird);
+
+										if (!hasAny) return [];
+
+										const children = [];
+
+										// 第二部分:L1-L3(摘要优先,其次 tags;不足留空;超出 L3 ...) by xu 20260108
+										if (model.hasSecond) {
+											if (model.secondKind === "summary") {
+												children.push(
+													Vue.h(
+														"div",
+														{
+															class:
+																"ss-card-text__line ss-card-text__secondBlock",
+														},
+														[
+															Vue.h(
+																"div",
+																{
+																	class: "ss-card-text__secondSummary",
+																	title: model.summary,
+																},
+																model.summary
+															),
+															Vue.h("span", {
+																class: [
+																	"ss-card-text__ellipsisHit",
+																	"ss-card-text__ellipsisHit--second",
+																	this.ellipsisVisible?.secondSummary
+																		? "is-on"
+																		: "",
+																],
+																title: "查看完整摘要",
+																onMouseenter: (e) =>
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"second-summary"
+																	),
+																onClick: (e) => {
+																	e?.stopPropagation?.();
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"second-summary"
+																	);
+																}, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
+																onMouseleave: () => this.hideTextPopoverLater(),
+															}),
+														]
+													)
+												);
+											} else if (model.secondKind === "tags") {
+												children.push(
+													Vue.h(
+														"div",
+														{
+															class: [
+																"ss-card-text__line",
+																model.secondFull
+																	? "ss-card-text__secondFullBlock"
+																	: "ss-card-text__secondBlock",
+															],
+														},
+														[
+															// 功能:仅标签时占满 4 行 by xu 20260109
+															Vue.h(
+																"div",
+																{ class: "ss-card-text__secondTags" },
+																[
+																	...model.secondTagsHead.map((t) =>
+																		Vue.h(
+																			"div",
+																			{
+																				class: "ss-card-text__tagLine",
+																				title: t,
+																			},
+																			t
+																		)
+																	),
+																	// 第三行:平铺剩余(可能为空) by xu 20260108
+																	Vue.h(
+																		"div",
+																		{
+																			class:
+																				"ss-card-text__tagLine is-last ss-card-text__tagLineLast",
+																			title: model.secondTagsLast,
+																		},
+																		model.secondTagsLast
+																	),
+																].filter(Boolean)
+															),
+															// 只在最后一行出现 ... 时才触发 goheight by xu 20260108
+															Vue.h("span", {
+																class: [
+																	"ss-card-text__ellipsisHit",
+																	"ss-card-text__ellipsisHit--second",
+																	this.ellipsisVisible?.secondTags
+																		? "is-on"
+																		: "",
+																],
+																title: "查看完整物品参数",
+																onMouseenter: (e) =>
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"second-tags"
+																	),
+																onClick: (e) => {
+																	e?.stopPropagation?.();
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"second-tags"
+																	);
+																}, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
+																onMouseleave: () => this.hideTextPopoverLater(),
+															}),
+														]
+													)
+												);
+											}
+										}
+
+										// 第三部分:默认 L4;第二部分为空则占满 L1-L4 by xu 20260108
+										if (model.hasThird) {
+											if (model.thirdFull) {
+												children.push(
+													Vue.h(
+														"div",
+														{
+															class:
+																"ss-card-text__line ss-card-text__thirdFullBlock",
+														},
+														[
+															Vue.h(
+																"div",
+																{
+																	class: "ss-card-text__thirdFull",
+																	title: model.thirdText,
+																},
+																model.thirdText
+															),
+															Vue.h("span", {
+																class: [
+																	"ss-card-text__ellipsisHit",
+																	"ss-card-text__ellipsisHit--third",
+																	this.ellipsisVisible?.thirdFull
+																		? "is-on"
+																		: "",
+																],
+																title: "查看完整信息",
+																onMouseenter: (e) =>
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third-full"
+																	),
+																onClick: (e) => {
+																	e?.stopPropagation?.();
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third-full"
+																	);
+																}, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
+																onMouseleave: () => this.hideTextPopoverLater(),
+															}),
+														]
+													)
+												);
+											} else {
+												children.push(
+													Vue.h(
+														"div",
+														{
+															class:
+																"ss-card-text__line ss-card-text__thirdLineWrap",
+														},
+														[
+															Vue.h(
+																"div",
+																{
+																	class: "ss-card-text__thirdLine",
+																	title: model.thirdText,
+																},
+																model.thirdText
+															),
+															Vue.h("span", {
+																class: [
+																	"ss-card-text__ellipsisHit",
+																	"ss-card-text__ellipsisHit--third",
+																	this.ellipsisVisible?.third ? "is-on" : "",
+																],
+																title: "查看完整信息",
+																onMouseenter: (e) =>
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third"
+																	),
+																onClick: (e) => {
+																	e?.stopPropagation?.();
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third"
+																	);
+																}, // 功能:点击 ... 也可展开(避免 hover 受遮挡) by xu 20260109
+																onMouseleave: () => this.hideTextPopoverLater(),
+															}),
+														]
+													)
+												);
+											}
+										}
+
+										// hover 展开浮层:宽度=右侧文字区,底对齐向上展开,带阴影 by xu 20260108
+										// popover 作为 `.right` 的 sibling 渲染,避免被 `.ss-card-text{overflow:hidden}` 裁剪 by xu 20260108
+										const popover =
+											this.showTextPopover &&
+											Vue.h(
+												"div",
+												{
+													class: "ss-card-text-popover",
+													style: { bottom: this.textPopoverBottom + "px" },
+													onMouseenter: () => {
+														this.clearHideTextPopoverTimer();
+														this.showTextPopover = true;
+													},
+													onMouseleave: () => this.hideTextPopoverLater(),
+												},
+												(() => {
+													const p = this.textPopoverPayload || {};
+													if (p.kind === "second-summary" && p.text) {
+														return [
+															Vue.h(
+																"div",
+																{ class: "ss-card-text-popover__summary" },
+																p.text
+															),
+														];
+													}
+													if (Array.isArray(p.lines)) {
+														return [
+															Vue.h(
+																"div",
+																{ class: "ss-card-text-popover__kvlist" },
+																p.lines.map((t) =>
+																	Vue.h(
+																		"div",
+																		{ class: "ss-card-text-popover__kv" },
+																		t
+																	)
+																)
+															),
+														];
+													}
+													if (
+														(p.kind === "third" || p.kind === "third-full") &&
+														p.text
+													) {
+														return [
+															Vue.h(
+																"div",
+																{ class: "ss-card-text-popover__objno" },
+																p.text
+															),
+														];
+													}
+													return [];
+												})()
+											);
+
+										return [
+											Vue.h("div", { class: "ss-card-text" }, children),
+											popover,
+										];
+									})()
+								),
+							]
+						),
+					]),
+
+					// 右下角卡片选择图标 by xu 20260105
+					this.__allowSelect()
+						? Vue.h(SsIcon, {
+								class: this.item?._ssSelected
+									? "card-icon icon-cardChk-on"
+									: "card-icon icon-cardChk",
+								onClick: this.toggleSelect,
+							})
+						: null,
+
+					// 选中后底部线条 by xu 20260105
+					this.__allowSelect() &&
+						this.item?._ssSelected &&
+						Vue.h("div", { class: "select-bottom-line" }),
+				]
+			);
+		},
+	};
+
+	// 二级对象卡片:复用一级对象新卡片布局/省略浮层,但去掉勾选与 single 选中,仅支持点击查看 by xu 20260115
+	const SsCObjCardList = {
+		name: "SsCObjCardList",
+		props: {
+			ssObjName: { type: String, default: "" }, // 功能说明:业务对象名(用于默认缩略图 icon) by xu 20260115
+			dataType: { type: String, default: "" }, // 功能说明:页面类型(play=查看模式不显示右上角按钮) by xu 20250408
+			item: {
+				type: Object,
+				required: true,
+			},
+		},
+		emits: ["click", "change"],
+		setup(props, { emit }) {
+			const item = props.item;
+			const dataType = props.dataType; // 功能说明:页面类型 by xu 20250408
+			const cardType = Vue.computed(() => {
+				if (!item.thumb && !item.thumbType) return "";
+				return item.thumbType === "thumbnail" ? "card-thumbnail" : "card-photo";
+			});
+			const statusClass = Vue.computed(() => {
+				if (!item.status) return "";
+				const statusMap = {
+					available: "status-available",
+					unavailable: "status-unavailable",
+					disabled: "status-disabled",
+				};
+				return statusMap[item.status] || "";
+			});
+			const onItemClick = (e) => {
+				// 清除所有类型卡片的 active 状态(保持与一级对象一致) by xu 20260115
+				const allListCards = document.querySelectorAll(
+					".knowledge-item-container"
+				);
+				const allFolderCards = document.querySelectorAll(".ss-folder-list");
+				allListCards.forEach((card) => card.classList.remove("active"));
+				allFolderCards.forEach((card) => card.classList.remove("active"));
+				e.currentTarget.classList.add("active");
+				// 二级对象卡片:点击仅查看(调用 item.onclick) by xu 20260115
+				props.item.onclick?.();
+				emit("click", props.item);
+			};
+			const onItemChange = (e) => {
+				e.stopPropagation();
+				props.item.buttons?.[0]?.onclick?.();
+			};
+			return { item, dataType, cardType, statusClass, onItemClick, onItemChange };
+		},
+		data() {
+			return {
+				showButtons: false,
+				showTextPopover: false, // 功能:右侧文字区 hover 展示全量 by xu 20260115
+				textPopoverType: "", // second-summary / second-tags / third / third-full by xu 20260115
+				textPopoverBottom: 0, // 功能:popover 从当前省略行位置向上展开 by xu 20260115
+				hideTextPopoverTimer: null, // 功能:鼠标从省略行移到浮层的缓冲 by xu 20260115
+				textPopoverPayload: null, // { kind, text?, lines? } by xu 20260115
+				ellipsisVisible: {
+					secondSummary: false,
+					secondTags: false,
+					third: false,
+					thirdFull: false,
+				}, // 功能:只在真实出现 ... 时才显示命中区/允许 goheight by xu 20260115
+			};
+		},
+		methods: {
+			getBizThumbIconClass() {
+				// 功能:无缩略图时,用业务对象 icon 做默认图(ss-icon + icon-obj-xx) by xu 20260115
+				const name = String(
+					this.ssObjName ||
+						this.item?.ssObjName ||
+						this.$root?.ssObjName ||
+						window?.ss?.dom?.ssObjName ||
+						""
+				).trim();
+				if (!name) return "";
+				return "icon-obj-" + name;
+			},
+			buildRightTextLines() {
+				// 功能:沿用一级对象卡片右侧文字区规则 by xu 20260115
+				const item = this.item || {};
+				const summary = String(item?.desc ?? "").trim();
+				const objNum = String(item?.objNum ?? "").trim();
+				const categoryArr = Array.isArray(item?.category) ? item.category : [];
+				const tagsArr = Array.isArray(item?.tags) ? item.tags : [];
+				const hasTags = tagsArr.length > 0;
+				const hasCategory = categoryArr.length > 0;
+				const secondKind = summary ? "summary" : hasTags ? "tags" : "";
+				const hasSecond = !!secondKind;
+				const thirdKind = objNum ? "objNum" : hasCategory ? "category" : "";
+				const hasThird = !!thirdKind;
+				const thirdFull = !hasSecond && hasThird;
+				const secondFull = hasSecond && !hasThird && secondKind === "tags";
+				const toValueText = (obj) => {
+					// 功能说明:类目/物品参数回显展示 key: value(否则只显示值看不懂) by xu 20260115
+					const [k, v] = Object.entries(obj || {})[0] || ["", ""];
+					const key = k !== undefined && k !== null ? String(k).trim() : "";
+					const val = v !== undefined && v !== null ? String(v).trim() : "";
+					if (key && val) return key + ":" + val;
+					if (val) return val;
+					if (key) return key;
+					return "";
+				};
+				const toLineList = (arr) =>
+					(arr || [])
+						.map(toValueText)
+						.map((s) => String(s ?? "").trim())
+						.filter(Boolean);
+				const secondTagsMaxLines = secondFull ? 4 : 3;
+				const secondTagsLinesFull = toLineList(tagsArr);
+				const secondTagsHead = secondTagsLinesFull.slice(
+					0,
+					Math.max(0, secondTagsMaxLines - 1)
+				);
+				const secondTagsTail = secondTagsLinesFull.slice(
+					Math.max(0, secondTagsMaxLines - 1)
+				);
+				const secondTagsLast =
+					secondTagsTail.length <= 1
+						? secondTagsTail[0] || ""
+						: secondTagsTail.join(" ");
+				const categoryLinesFull = toLineList(categoryArr);
+				const categoryLine = categoryLinesFull.join(" ");
+				const thirdText =
+					thirdKind === "objNum"
+						? objNum
+						: thirdKind === "category"
+						? categoryLine
+						: "";
+				return {
+					secondKind,
+					thirdKind,
+					hasSecond,
+					hasThird,
+					thirdFull,
+					secondFull,
+					summary,
+					secondTagsMaxLines,
+					secondTagsHead,
+					secondTagsLast,
+					secondTagsLinesFull,
+					objNum,
+					categoryLine,
+					categoryLinesFull,
+					thirdText,
+				};
+			},
+			measureTextOverflowByLines(text, maxLines, width) {
+				const w = Number(width) || 0;
+				if (!w || !text) return false;
+				const probe = document.createElement("div");
+				probe.style.position = "fixed";
+				probe.style.left = "-99999px";
+				probe.style.top = "0";
+				probe.style.width = w + "px";
+				probe.style.fontSize = "18px";
+				probe.style.lineHeight = "24px";
+				probe.style.whiteSpace = "normal";
+				probe.style.wordBreak = "break-word";
+				probe.style.visibility = "hidden";
+				probe.textContent = text;
+				document.body.appendChild(probe);
+				const h = probe.getBoundingClientRect().height || 0;
+				document.body.removeChild(probe);
+				return h > maxLines * 24 + 1;
+			},
+			measureSingleLineOverflow(text, width) {
+				const w = Number(width) || 0;
+				if (!w || !text) return false;
+				const probe = document.createElement("span");
+				probe.style.position = "fixed";
+				probe.style.left = "-99999px";
+				probe.style.top = "0";
+				probe.style.display = "inline-block";
+				probe.style.maxWidth = w + "px";
+				probe.style.fontSize = "18px";
+				probe.style.lineHeight = "24px";
+				probe.style.whiteSpace = "nowrap";
+				probe.style.visibility = "hidden";
+				probe.textContent = text;
+				document.body.appendChild(probe);
+				const overflow =
+					(probe.scrollWidth || 0) > (probe.clientWidth || w) + 1;
+				document.body.removeChild(probe);
+				return overflow;
+			},
+			refreshEllipsisVisible() {
+				// 功能:刷新「是否出现 ...」状态(用于控制命中区显示) by xu 20260115
+				try {
+					const right = this.$el?.querySelector?.(".right");
+					const rawWidth =
+						right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
+					const width = Math.max(0, Math.round(rawWidth));
+					const model = this.buildRightTextLines();
+					const next = {
+						secondSummary: false,
+						secondTags: false,
+						third: false,
+						thirdFull: false,
+					};
+					if (model.secondKind === "summary" && model.summary) {
+						next.secondSummary = this.measureTextOverflowByLines(
+							model.summary,
+							3,
+							width
+						);
+					}
+					if (model.secondKind === "tags") {
+						next.secondTags = this.measureSingleLineOverflow(
+							model.secondTagsLast,
+							width
+						); // 功能说明:tags 仅看最后一行是否溢出 by xu 20260115
+					}
+					if (model.hasThird && !model.thirdFull) {
+						next.third = this.measureSingleLineOverflow(model.thirdText, width);
+					}
+					if (model.hasThird && model.thirdFull) {
+						next.thirdFull = this.measureTextOverflowByLines(
+							model.thirdText,
+							4,
+							width
+						);
+					}
+					const prev = this.ellipsisVisible || {};
+					const changed =
+						prev.secondSummary !== next.secondSummary ||
+						prev.secondTags !== next.secondTags ||
+						prev.third !== next.third ||
+						prev.thirdFull !== next.thirdFull;
+					if (changed) this.ellipsisVisible = next;
+				} catch (e) {
+					// ignore by xu 20260115
+				}
+			},
+			clearHideTextPopoverTimer() {
+				if (this.hideTextPopoverTimer) {
+					clearTimeout(this.hideTextPopoverTimer);
+					this.hideTextPopoverTimer = null;
+				}
+			},
+			hideTextPopoverLater() {
+				this.clearHideTextPopoverTimer();
+				this.hideTextPopoverTimer = setTimeout(() => {
+					this.showTextPopover = false;
+					this.textPopoverType = "";
+					this.textPopoverPayload = null;
+				}, 120);
+			},
+			showTextPopoverFor(el, kind) {
+				const model = this.buildRightTextLines();
+				const lineEl = el?.closest?.(".ss-card-text__line") || el;
+				const right = lineEl?.closest?.(".right") || el?.closest?.(".right");
+				const rawWidth =
+					right?.getBoundingClientRect?.().width || right?.clientWidth || 0;
+				const width = Math.max(0, Math.round(rawWidth));
+				const overflowed =
+					kind === "second-summary"
+						? this.measureTextOverflowByLines(model.summary, 3, width)
+						: kind === "second-tags"
+						? this.measureSingleLineOverflow(model.secondTagsLast, width)
+						: kind === "third"
+						? this.measureSingleLineOverflow(model.thirdText, width)
+						: this.measureTextOverflowByLines(model.thirdText, 4, width);
+				if (!overflowed) return;
+				let payload = null;
+				if (kind === "second-summary") {
+					if (model.summary) payload = { kind, text: model.summary };
+				} else if (kind === "second-tags") {
+					if (
+						Array.isArray(model.secondTagsLinesFull) &&
+						model.secondTagsLinesFull.length
+					) {
+						payload = { kind, lines: model.secondTagsLinesFull };
+					}
+				} else if (kind === "third") {
+					if (
+						model.thirdKind === "category" &&
+						Array.isArray(model.categoryLinesFull) &&
+						model.categoryLinesFull.length
+					) {
+						payload = { kind, lines: model.categoryLinesFull };
+					} else if (model.thirdText) {
+						payload = { kind, text: model.thirdText };
+					}
+				} else if (kind === "third-full") {
+					if (
+						model.thirdKind === "category" &&
+						Array.isArray(model.categoryLinesFull) &&
+						model.categoryLinesFull.length
+					) {
+						payload = { kind, lines: model.categoryLinesFull };
+					} else if (model.thirdText) {
+						payload = { kind, text: model.thirdText };
+					}
+				}
+				if (!payload) return;
+				this.clearHideTextPopoverTimer();
+				const container = lineEl?.closest?.(".right");
+				const containerRect = container?.getBoundingClientRect?.();
+				const lineRect = lineEl?.getBoundingClientRect?.();
+				if (containerRect && lineRect) {
+					const bottom = Math.max(
+						0,
+						Math.round(containerRect.bottom - lineRect.bottom)
+					);
+					this.textPopoverBottom = bottom;
+				} else {
+					this.textPopoverBottom = 0;
+				}
+				this.textPopoverPayload = payload;
+				this.textPopoverType = kind;
+				this.showTextPopover = true;
+			},
+		},
+		mounted() {
+			this.$nextTick?.(() => {
+				requestAnimationFrame(() => this.refreshEllipsisVisible?.());
+			});
+			this.__ssCObjCardResizeHandler = () => this.refreshEllipsisVisible?.(); // 功能说明:窗口变化时刷新 ... 显示 by xu 20260115
+			window.addEventListener?.("resize", this.__ssCObjCardResizeHandler);
+		},
+		updated() {
+			this.$nextTick?.(() => {
+				requestAnimationFrame(() => this.refreshEllipsisVisible?.());
+			});
+		},
+		beforeUnmount() {
+			this.clearHideTextPopoverTimer?.();
+			if (this.__ssCObjCardResizeHandler) {
+				window.removeEventListener?.("resize", this.__ssCObjCardResizeHandler);
+				this.__ssCObjCardResizeHandler = null;
+			}
+		},
+		render() {
+			const SsCartListIcon = Vue.resolveComponent("ss-cart-list-icon");
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			const hasThumbArea = !!(this.item?.thumb || this.item?.thumbType);
+			const thumbSrc = (() => {
+				// 功能说明:兼容 thumb 为 raw path 或 {val}/{value},组件内统一转为 dlByHttp URL by xu 20260122
+				const t = this.item?.thumb;
+				if (!t) return "";
+				if (typeof t === "string") {
+					const s = t.trim();
+					if (!s) return "";
+					if (
+						/^https?:\/\//i.test(s) ||
+						s.startsWith("/service?") ||
+						s.startsWith("/")
+					)
+						return s;
+					return buildThumbUrl(s);
+				}
+				return buildThumbUrl(t);
+			})();
+			return Vue.h(
+				"div",
+				{
+					class: {
+						"knowledge-item-container": true,
+						active: this.item.active,
+						[this.cardType]: !!this.cardType,
+						[this.statusClass]: !!this.statusClass,
+					},
+					onClick: (e) => this.onItemClick?.(e), // 功能说明:二级对象卡片点击仅查看 by xu 20260115
+				},
+				[
+					this.item?.statusIcons?.length > 0 &&
+						Vue.h(
+							"div",
+							{ class: "card-status-icons" },
+							this.item.statusIcons.map((icon) =>
+								Vue.h(SsIcon, {
+									class: "status-icon " + icon.class,
+									title: icon.title,
+								})
+							)
+						),
+					this.item?.buttons?.length > 0 && this.dataType !== "play" &&
+						Vue.h(
+							"div",
+							{
+								class: "header",
+								style:
+									this.item?.statusIcons?.length > 0
+										? {
+												right: String(this.item.statusIcons.length * 48) + "px",
+												borderTopRightRadius: "0",
+											}
+										: {},
+								onMouseenter: () => (this.showButtons = true),
+								onMouseleave: () => (this.showButtons = false),
+								onClick: (e) => this.onItemChange(e),
+							},
+							[
+								Vue.h("div", {
+									class: "cart-list-setting cart-list-icon",
+									title: this.item?.buttons?.[0]?.title,
+								}),
+								this.showButtons &&
+									this.item?.buttons?.length > 1 &&
+									Vue.h(
+										"div",
+										{ class: "cart-list-button-popup" },
+										this.item.buttons.map((btn) =>
+											Vue.h(
+												"div",
+												{
+													onClick: (e) => {
+														e.stopPropagation();
+														btn.onclick?.();
+													},
+												},
+												[
+													btn.class &&
+														Vue.h(SsCartListIcon, { class: [btn.class] }),
+													Vue.h("span", null, btn.title),
+												]
+											)
+										)
+									),
+							]
+						),
+					Vue.h("div", { class: "body" }, [
+						Vue.h("div", { class: "box-header" }, [
+							Vue.h("div", String(this.item.title || "")),
+						]),
+						Vue.h(
+							"div",
+							{ class: !hasThumbArea ? "no-thumb box-body" : "box-body" },
+							[
+								hasThumbArea
+									? thumbSrc
+										? Vue.h("div", { class: "left" }, [
+												Vue.h("img", {
+													src: thumbSrc,
+													alt: "Thumbnail",
+													class: "imgUnHandle",
+													style: {
+														"object-fit": "cover",
+														width: "100%",
+														height: "100%",
+													},
+												}),
+											])
+										: Vue.h(
+												"div",
+												{ class: "left ss-objlist-thumbPlaceholder" },
+												[
+													Vue.h(SsIcon, {
+														class:
+															this.getBizThumbIconClass() +
+															" ss-objlist-thumbIcon",
+													}),
+												]
+											)
+									: null,
+								Vue.h(
+									"div",
+									{ class: "right" },
+									(() => {
+										const model = this.buildRightTextLines();
+										const hasAny = !!(model?.hasSecond || model?.hasThird);
+										if (!hasAny) return [];
+										const children = [];
+										if (model.hasSecond && model.secondKind === "summary") {
+											children.push(
+												Vue.h(
+													"div",
+													{
+														class:
+															"ss-card-text__line ss-card-text__secondBlock",
+													},
+													[
+														Vue.h(
+															"div",
+															{
+																class: "ss-card-text__secondSummary",
+																title: model.summary,
+															},
+															model.summary
+														),
+														Vue.h("span", {
+															class: [
+																"ss-card-text__ellipsisHit",
+																"ss-card-text__ellipsisHit--second",
+																this.ellipsisVisible?.secondSummary
+																	? "is-on"
+																	: "",
+															],
+															title: "查看完整信息",
+															onMouseenter: (e) =>
+																this.showTextPopoverFor(
+																	e?.currentTarget,
+																	"second-summary"
+																),
+															onClick: (e) => {
+																e?.stopPropagation?.();
+																this.showTextPopoverFor(
+																	e?.currentTarget,
+																	"second-summary"
+																);
+															},
+															onMouseleave: () => this.hideTextPopoverLater(),
+														}),
+													]
+												)
+											);
+										}
+										if (model.hasSecond && model.secondKind === "tags") {
+											children.push(
+												Vue.h(
+													"div",
+													{
+														class: [
+															"ss-card-text__line",
+															model.secondFull
+																? "ss-card-text__secondFullBlock"
+																: "ss-card-text__secondBlock",
+														],
+													},
+													[
+														Vue.h(
+															"div",
+															{ class: "ss-card-text__secondTags" },
+															[
+																...model.secondTagsHead.map((t) =>
+																	Vue.h(
+																		"div",
+																		{
+																			class: "ss-card-text__tagLine",
+																			title: t,
+																		},
+																		t
+																	)
+																),
+																Vue.h(
+																	"div",
+																	{
+																		class:
+																			"ss-card-text__tagLine is-last ss-card-text__tagLineLast",
+																		title: model.secondTagsLast,
+																	},
+																	model.secondTagsLast
+																),
+															]
+														),
+														Vue.h("span", {
+															class: [
+																"ss-card-text__ellipsisHit",
+																"ss-card-text__ellipsisHit--second",
+																this.ellipsisVisible?.secondTags ? "is-on" : "",
+															],
+															title: "查看完整信息",
+															onMouseenter: (e) =>
+																this.showTextPopoverFor(
+																	e?.currentTarget,
+																	"second-tags"
+																),
+															onClick: (e) => {
+																e?.stopPropagation?.();
+																this.showTextPopoverFor(
+																	e?.currentTarget,
+																	"second-tags"
+																);
+															},
+															onMouseleave: () => this.hideTextPopoverLater(),
+														}),
+													]
+												)
+											);
+										}
+										if (model.hasThird) {
+											if (model.thirdFull) {
+												children.push(
+													Vue.h(
+														"div",
+														{
+															class:
+																"ss-card-text__line ss-card-text__thirdFullBlock",
+														},
+														[
+															Vue.h(
+																"div",
+																{
+																	class: "ss-card-text__thirdFull",
+																	title: model.thirdText,
+																},
+																model.thirdText
+															),
+															Vue.h("span", {
+																class: [
+																	"ss-card-text__ellipsisHit",
+																	"ss-card-text__ellipsisHit--third",
+																	this.ellipsisVisible?.thirdFull
+																		? "is-on"
+																		: "",
+																],
+																title: "查看完整信息",
+																onMouseenter: (e) =>
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third-full"
+																	),
+																onClick: (e) => {
+																	e?.stopPropagation?.();
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third-full"
+																	);
+																},
+																onMouseleave: () => this.hideTextPopoverLater(),
+															}),
+														]
+													)
+												);
+											} else {
+												children.push(
+													Vue.h(
+														"div",
+														{
+															class:
+																"ss-card-text__line ss-card-text__thirdLineWrap",
+														},
+														[
+															Vue.h(
+																"div",
+																{
+																	class: "ss-card-text__thirdLine",
+																	title: model.thirdText,
+																},
+																model.thirdText
+															),
+															Vue.h("span", {
+																class: [
+																	"ss-card-text__ellipsisHit",
+																	"ss-card-text__ellipsisHit--third",
+																	this.ellipsisVisible?.third ? "is-on" : "",
+																],
+																title: "查看完整信息",
+																onMouseenter: (e) =>
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third"
+																	),
+																onClick: (e) => {
+																	e?.stopPropagation?.();
+																	this.showTextPopoverFor(
+																		e?.currentTarget,
+																		"third"
+																	);
+																},
+																onMouseleave: () => this.hideTextPopoverLater(),
+															}),
+														]
+													)
+												);
+											}
+										}
+										const popover =
+											this.showTextPopover &&
+											Vue.h(
+												"div",
+												{
+													class: "ss-card-text-popover",
+													style: { bottom: this.textPopoverBottom + "px" },
+													onMouseenter: () => {
+														this.clearHideTextPopoverTimer();
+														this.showTextPopover = true;
+													},
+													onMouseleave: () => this.hideTextPopoverLater(),
+												},
+												(() => {
+													const p = this.textPopoverPayload || {};
+													if (p.kind === "second-summary" && p.text) {
+														return [
+															Vue.h(
+																"div",
+																{ class: "ss-card-text-popover__summary" },
+																p.text
+															),
+														];
+													}
+													if (Array.isArray(p.lines)) {
+														return [
+															Vue.h(
+																"div",
+																{ class: "ss-card-text-popover__kvlist" },
+																p.lines.map((t) =>
+																	Vue.h(
+																		"div",
+																		{ class: "ss-card-text-popover__kv" },
+																		t
+																	)
+																)
+															),
+														];
+													}
+													if (
+														(p.kind === "third" || p.kind === "third-full") &&
+														p.text
+													) {
+														return [
+															Vue.h(
+																"div",
+																{ class: "ss-card-text-popover__objno" },
+																p.text
+															),
+														];
+													}
+													return [];
+												})()
+											);
+										return [
+											Vue.h("div", { class: "ss-card-text" }, children),
+											popover,
+										];
+									})()
+								),
+							]
+						),
+					]),
+				]
+			);
+		},
+	};
+
+	// ss-sidebar 右侧边栏(容器 + 子组件),用于 objList 右侧区域 by xu 20260106
+	// 组件文档补全(JSDoc) by xu 20260108
+	/**
+	 * SsSidebarButtons(右侧边栏顶部按钮栏)
+	 *
+	 * 用途:
+	 * - 渲染 objList 右侧顶部快捷操作(预定/入住/退房/清洁...)
+	 * - 内部复用 `ss-search-button`(项目现有按钮样式/交互)
+	 *
+	 * 调用示例:
+	 * ```html
+	 * <ss-sidebar-buttons :items="sidebarButtons" />
+	 * ```
+	 *
+	 * Props:
+	 * - `items`: 按钮配置数组
+	 *   - `{ id, text, icon?, onClick? }`
+	 *
+	 * Emits:
+	 * - `click`:点击按钮时触发,参数为按钮对象
+	 */
+	const SsSidebarButtons = {
+		name: "SsSidebarButtons",
+		props: {
+			items: { type: Array, default: () => [] },
+		},
+		emits: ["click"],
+		render() {
+			const SsSearchButton = Vue.resolveComponent("ss-search-button");
+			const items = this.items || [];
+			if (!items.length) return null;
+			return Vue.h(
+				"div",
+				{ class: "ss-sidebar-actions" },
+				items.map((btn) =>
+					// 顶部操作按钮复用 ss-search-button(先 mock 固定按钮) by xu 20260106
+					Vue.h(SsSearchButton, {
+						text: btn?.text ?? "",
+						iconClass: btn?.iconClass ?? "",
+						opt: btn?.opt ?? [],
+						checkId: btn?.checkId ?? "0",
+						width: btn?.width,
+						id: btn?.id,
+						onClick: (e) => {
+							e?.stopPropagation?.();
+							btn?.onClick?.(btn);
+							this.$emit("click", btn);
+						},
+					})
+				)
+			);
+		},
+	};
+
+	// 组件文档补全(JSDoc) by xu 20260108
+	/**
+	 * SsSidebarChart(ECharts 容器渲染)
+	 *
+	 * 用途:
+	 * - 仅负责 echarts init / setOption / resize / dispose
+	 * - 被 `ss-sidebar-chart-hover` 与图表面板复用
+	 *
+	 * 调用示例:
+	 * ```html
+	 * <ss-sidebar-chart :options="option" height="220px" />
+	 * ```
+	 *
+	 * Props:
+	 * - `options`:ECharts option(Object)
+	 * - `height`:容器高度(String)
+	 */
+	const SsSidebarChart = {
+		name: "SsSidebarChart",
+		props: {
+			options: { type: Object, default: () => ({}) },
+			height: { type: String, default: "200px" },
+		},
+		setup(props) {
+			const elRef = Vue.ref(null);
+			let chart = null;
+
+			const renderChart = () => {
+				if (!elRef.value || !window.echarts) return;
+				if (!chart) {
+					chart = window.echarts.init(elRef.value);
+				}
+				chart.setOption(props.options || {}, true);
+			};
+
+			const resizeChart = () => {
+				chart?.resize?.();
+			};
+
+			Vue.onMounted(() => {
+				renderChart();
+				window.addEventListener("resize", resizeChart);
+			});
+
+			Vue.onBeforeUnmount(() => {
+				window.removeEventListener("resize", resizeChart);
+				chart?.dispose?.();
+				chart = null;
+			});
+
+			Vue.watch(
+				() => props.options,
+				() => {
+					renderChart();
+				},
+				{ deep: true }
+			);
+
+			return { elRef };
+		},
+		render() {
+			return Vue.h("div", {
+				ref: "elRef",
+				style: {
+					width: "100%",
+					height: this.height,
+					// 图表容器不加 padding/border,由外层布局控制 by xu 20260106
+					background: "transparent",
+					border: "none",
+					"border-radius": "0",
+				},
+			});
+		},
+	};
+
+	// ss-sidebar-chart-hover:hover 弹出左侧大图(支持图钉/全屏) by xu 20260106
+	// 组件文档补全(JSDoc) by xu 20260108
+	/**
+	 * SsSidebarChartHover(小图 + hover 左侧大图预览 + 图钉固定 + 全屏)
+	 *
+	 * 用途:
+	 * - 右侧统计图小卡片:hover 时在左侧弹出大图预览
+	 * - 预览头部:左侧图标+标题;右侧固定/全屏按钮(icon-base)
+	 * - 全屏:方案A(浏览器 Fullscreen API)
+	 *
+	 * 调用示例(由 ss-sidebar chart panel 内部调用):
+	 * ```html
+	 * <ss-sidebar-chart-hover
+	 *   title="校舍建筑面积和总体分布"
+	 *   icon-class="menu-icon icon-obj-jzw"
+	 *   :options="option"
+	 *   height="220px"
+	 * />
+	 * ```
+	 *
+	 * Props:
+	 * - `title/iconClass/icon`:用于预览/全屏 header 显示(与面板 header 一致)
+	 * - `options`:ECharts option
+	 * - `height`:小图高度
+	 * - `previewWidth/previewHeight`:预览建议尺寸(会按视口自适应)
+	 */
+	const SsSidebarChartHover = {
+		name: "SsSidebarChartHover",
+		props: {
+			// hover 大图标题/图标(与小图面板 header 一致) by xu 20260108
+			title: { type: String, default: "" },
+			iconClass: { type: String, default: "" },
+			icon: { type: String, default: "" },
+			options: { type: Object, default: () => ({}) },
+			height: { type: String, default: "220px" },
+			// hover 弹窗建议尺寸:默认 1000x650(比例由逻辑统一管控),实际渲染会按比例自适应视口 by xu 20260115
+			previewWidth: { type: Number, default: 1000 },
+			previewHeight: { type: Number, default: 650 },
+		},
+		setup(props) {
+			const triggerRef = Vue.ref(null);
+			const fullscreenRef = Vue.ref(null);
+			const open = Vue.ref(false);
+			const pinned = Vue.ref(false);
+			const fullscreen = Vue.ref(false);
+			const hoveringTrigger = Vue.ref(false);
+			const hoveringPreview = Vue.ref(false);
+			const previewStyle = Vue.ref({});
+			let closeTimer = null;
+
+			const updatePreviewPosition = () => {
+				const el = triggerRef.value;
+				if (!el) return;
+				const rect = el.getBoundingClientRect();
+				// 功能说明:优先使用 visualViewport(避免浏览器 UI/缩放导致可视区与 innerHeight 偏差,出现预览被遮挡约 70px) by xu 20260116
+				const docEl = document.documentElement;
+				const vv = window.visualViewport;
+				let viewportLeft = Number(vv?.offsetLeft ?? 0) || 0;
+				let viewportTop = Number(vv?.offsetTop ?? 0) || 0;
+				let vw =
+					Number(vv?.width ?? 0) ||
+					Number(docEl?.clientWidth || 0) ||
+					window.innerWidth;
+				let vh =
+					Number(vv?.height ?? 0) ||
+					Number(docEl?.clientHeight || 0) ||
+					window.innerHeight;
+				// 功能说明:若页面在 iframe 内,父页面可能裁切 iframe 可见区域(overflow/弹窗容器),需要用“iframe可见区域”做二次约束 by xu 20260116
+				try {
+					const inIframe = window.top && window.top !== window;
+					const frameEl = window.frameElement;
+					if (inIframe && frameEl && window.top?.document) {
+						const topVv = window.top.visualViewport;
+						const topDocEl = window.top.document.documentElement;
+						const topVw =
+							Number(topVv?.width ?? 0) ||
+							Number(topDocEl?.clientWidth || 0) ||
+							window.top.innerWidth;
+						const topVh =
+							Number(topVv?.height ?? 0) ||
+							Number(topDocEl?.clientHeight || 0) ||
+							window.top.innerHeight;
+						const fr = frameEl.getBoundingClientRect?.();
+						if (fr && fr.width > 0 && fr.height > 0) {
+							const visibleW = Math.max(
+								0,
+								Math.min(fr.right, topVw) - Math.max(fr.left, 0)
+							);
+							const visibleH = Math.max(
+								0,
+								Math.min(fr.bottom, topVh) - Math.max(fr.top, 0)
+							);
+							if (visibleW > 0) {
+								vw = Math.min(vw, visibleW);
+								viewportLeft = Math.max(0, -fr.left); // iframe内坐标系偏移(左侧被裁切时) by xu 20260116
+							}
+							if (visibleH > 0) {
+								vh = Math.min(vh, visibleH);
+								viewportTop = Math.max(0, -fr.top); // iframe内坐标系偏移(顶部被裁切时) by xu 20260116
+							}
+						}
+					}
+				} catch (_) {}
+
+				// 预览窗尺寸:优先保证“完整可见”,其次再尽量对齐右侧 header 顶部 by xu 20260116
+				const viewportPaddingX = 40;
+				const viewportPaddingTop = 20;
+				const viewportPaddingBottom = 10;
+				// 功能说明:hover 预览框不要覆盖右侧栏,优先放在 ss-sidebar 左侧;必要时动态缩小宽度 by xu 20260115
+				const sidebarEl = el.closest ? el.closest(".ss-sidebar") : null;
+				const sidebarRect = sidebarEl?.getBoundingClientRect?.();
+				const maxWidthByViewport = Math.max(240, vw - viewportPaddingX);
+				const maxWidthByLeftSpace = sidebarRect
+					? Math.max(
+							240,
+							sidebarRect.left - viewportPaddingX - 14 /* gapFromSidebar */
+						)
+					: maxWidthByViewport;
+				// 功能说明:预览框尺寸按比例(默认 5:3)缩放,并提供最大/最小值约束 by xu 20260115
+				const ratio = 3 / 5;
+				const minWidth = 320;
+				const minHeight = 240;
+				const maxHeightByViewport = Math.max(
+					minHeight,
+					vh - viewportPaddingTop - viewportPaddingBottom
+				);
+				const maxWidthByProp = Number(props.previewWidth) || 1000;
+				const maxHeightByProp = Number(props.previewHeight) || 650;
+
+				// 优先按高度撑满可视区(保证预览完整可见),再根据左侧可用宽度回退 by xu 20260116
+				const maxHeight = Math.min(maxHeightByProp, maxHeightByViewport);
+				let height = Math.max(minHeight, maxHeight);
+				let width = Math.round(height / ratio);
+				width = Math.min(
+					width,
+					maxWidthByProp,
+					maxWidthByViewport,
+					maxWidthByLeftSpace
+				);
+				width = Math.max(minWidth, width);
+				height = Math.round(width * ratio);
+				if (height > maxHeight) {
+					height = maxHeight;
+					width = Math.round(height / ratio);
+				}
+
+				// 默认贴着小图左侧弹出,右边缘与小图左边缘轻微重叠,避免 1px 缝隙导致 hover 闪断 by xu 20260108
+				const overlap = 2;
+				const gapFromSidebar = 14; // 功能说明:弹窗与右侧边栏留出距离(更不贴近) by xu 20260108
+				// 优先:贴在 sidebar 左侧(不压住右侧栏内容) by xu 20260115
+				let left = sidebarRect
+					? sidebarRect.left - gapFromSidebar - width + overlap
+					: rect.left - width - gapFromSidebar + overlap;
+				// 如果左侧空间不足,则贴右侧(兜底,同样重叠) by xu 20260108
+				if (left < 0) left = rect.right + gapFromSidebar - overlap;
+				left = Math.max(
+					viewportLeft,
+					Math.min(left, viewportLeft + vw - width)
+				);
+
+				// top:优先保证完整可见,然后才贴近 header 顶部 by xu 20260116
+				let headerEl = el;
+				while (headerEl && !headerEl.classList?.contains("ss-sidebar-panel")) {
+					headerEl = headerEl.parentElement;
+				}
+				let headerRect = headerEl
+					?.querySelector(".ss-sidebar-panel__header")
+					?.getBoundingClientRect();
+				let top = headerRect?.top ?? rect.top;
+				top = Math.max(
+					viewportTop + viewportPaddingTop,
+					Math.min(top, viewportTop + vh - height - viewportPaddingBottom)
+				);
+
+				previewStyle.value = {
+					position: "fixed",
+					left: `${Math.round(left)}px`,
+					top: `${Math.round(top)}px`,
+					width: `${width}px`,
+					height: `${height}px`,
+					zIndex: 2147483647, // 功能说明:提高层级到接近浏览器上限,避免仍被页面固定栏/弹窗遮挡 by xu 20260116
+				};
+			};
+
+			const clearCloseTimer = () => {
+				if (closeTimer) {
+					clearTimeout(closeTimer);
+					closeTimer = null;
+				}
+			};
+
+			const scheduleClose = () => {
+				clearCloseTimer();
+				if (pinned.value || fullscreen.value) return;
+				if (hoveringTrigger.value || hoveringPreview.value) return; // 功能:鼠标在小图/大图之间移动不关闭 by xu 20260108
+				closeTimer = setTimeout(() => {
+					open.value = false;
+				}, 100);
+			};
+
+			const openPreview = () => {
+				clearCloseTimer();
+				updatePreviewPosition();
+				open.value = true;
+			};
+
+			const togglePin = () => {
+				pinned.value = !pinned.value;
+				if (pinned.value) {
+					open.value = true;
+					updatePreviewPosition();
+				}
+			};
+
+			const toggleFullscreen = () => {
+				// 全屏:采用浏览器 Fullscreen API(方案A),不使用遮罩弹窗 by xu 20260108
+				if (!fullscreen.value) {
+					open.value = false; // 避免同时渲染预览与全屏 by xu 20260108
+					fullscreen.value = true;
+					Vue.nextTick(() => {
+						const el = fullscreenRef.value;
+						if (el?.requestFullscreen) {
+							el.requestFullscreen().catch(() => {
+								// requestFullscreen 失败则回退为非全屏状态 by xu 20260108
+								fullscreen.value = false;
+							});
+						} else {
+							fullscreen.value = false;
+						}
+					});
+				} else {
+					if (document?.exitFullscreen) {
+						document.exitFullscreen().catch(() => {});
+					}
+				}
+			};
+
+			const handleFullscreenChange = () => {
+				const isFs = !!document.fullscreenElement;
+				fullscreen.value = isFs; // 功能说明:同步 ESC/系统退出全屏状态 by xu 20260108
+				if (isFs) {
+					open.value = false;
+					clearCloseTimer();
+					return;
+				}
+				// 退出全屏后:若固定或仍 hover,则恢复预览,否则关闭 by xu 20260108
+				if (pinned.value || hoveringTrigger.value || hoveringPreview.value) {
+					open.value = true;
+					updatePreviewPosition();
+				} else {
+					open.value = false;
+				}
+			};
+
+			Vue.onMounted(() => {
+				window.addEventListener("resize", updatePreviewPosition);
+				window.addEventListener("scroll", updatePreviewPosition, true);
+				document.addEventListener("fullscreenchange", handleFullscreenChange); // 功能说明:监听全屏状态变化 by xu 20260108
+			});
+
+			Vue.onBeforeUnmount(() => {
+				clearCloseTimer();
+				window.removeEventListener("resize", updatePreviewPosition);
+				window.removeEventListener("scroll", updatePreviewPosition, true);
+				document.removeEventListener(
+					"fullscreenchange",
+					handleFullscreenChange
+				);
+			});
+
+			return {
+				triggerRef,
+				fullscreenRef,
+				open,
+				pinned,
+				fullscreen,
+				hoveringTrigger,
+				hoveringPreview,
+				previewStyle,
+				openPreview,
+				scheduleClose,
+				clearCloseTimer,
+				togglePin,
+				toggleFullscreen,
+			};
+		},
+		render() {
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			const Chart = Vue.resolveComponent("ss-sidebar-chart");
+			const hasHeader = !!(this.title || this.iconClass || this.icon); // 功能:hover 大图显示左侧图标+标题 by xu 20260108
+
+			const previewContent = Vue.h(
+				"div",
+				{
+					class: { "ss-sidebar-chart-preview": true, "is-pinned": this.pinned },
+					style: this.previewStyle,
+					onMouseenter: () => {
+						this.hoveringPreview = true;
+						this.clearCloseTimer();
+					},
+					onMouseleave: () => {
+						this.hoveringPreview = false;
+						this.scheduleClose();
+					},
+				},
+				[
+					hasHeader
+						? Vue.h(
+								"div",
+								{
+									class:
+										"ss-sidebar-panel__header ss-sidebar-chart-preview__header",
+								},
+								[
+									Vue.h("div", { class: "ss-sidebar-panel__title" }, [
+										this.iconClass
+											? Vue.h(SsIcon, {
+													class: this.iconClass + " ss-sidebar-panel__icon",
+												})
+											: this.icon
+											? Vue.h(SsIcon, {
+													name: this.icon,
+													size: "16px",
+													class: "ss-sidebar-panel__icon",
+												})
+											: null,
+										Vue.h("span", null, this.title || "统计图"),
+									]),
+									Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
+										Vue.h(
+											"button",
+											{
+												type: "button",
+												class: {
+													"ss-sidebar-chart-tool": true,
+													"is-active": this.pinned,
+												},
+												title: this.pinned ? "取消固定" : "固定",
+												onClick: (e) => {
+													e.stopPropagation();
+													this.togglePin();
+												},
+											},
+											// 功能说明:右侧栏 hover 工具图标使用 ss-sidebar-base-icon(不复用左侧 menu-base-icon) by xu 20260123
+											[
+												Vue.h(SsIcon, {
+													class: this.pinned
+														? "ss-sidebar-base-icon icon-fix-bold"
+														: "ss-sidebar-base-icon icon-fix",
+												}),
+											]
+										),
+										Vue.h(
+											"button",
+											{
+												type: "button",
+												class: "ss-sidebar-chart-tool",
+												title: "全屏",
+												onClick: (e) => {
+													e.stopPropagation();
+													this.toggleFullscreen();
+												},
+											},
+											[
+												Vue.h(SsIcon, {
+													class: this.fullscreen
+														? "ss-sidebar-base-icon icon-fs-exit"
+														: "ss-sidebar-base-icon icon-fs",
+												}),
+											]
+										),
+									]),
+								]
+							)
+						: Vue.h(
+								"div",
+								{
+									class:
+										"ss-sidebar-chart-preview__header ss-sidebar-chart-preview__header--simple",
+								},
+								[
+									Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
+										Vue.h(
+											"button",
+											{
+												type: "button",
+												class: {
+													"ss-sidebar-chart-tool": true,
+													"is-active": this.pinned,
+												},
+												title: this.pinned ? "取消固定" : "固定",
+												onClick: (e) => {
+													e.stopPropagation();
+													this.togglePin();
+												},
+											},
+											[
+												Vue.h(SsIcon, {
+													class: this.pinned
+														? "ss-sidebar-base-icon icon-fix-bold"
+														: "ss-sidebar-base-icon icon-fix",
+												}),
+											]
+										),
+										Vue.h(
+											"button",
+											{
+												type: "button",
+												class: "ss-sidebar-chart-tool",
+												title: "全屏",
+												onClick: (e) => {
+													e.stopPropagation();
+													this.toggleFullscreen();
+												},
+											},
+											[
+												Vue.h(SsIcon, {
+													class: this.fullscreen
+														? "ss-sidebar-base-icon icon-chk-on"
+														: "ss-sidebar-base-icon icon-chk",
+												}),
+											]
+										),
+									]),
+								]
+							),
+					Vue.h("div", { class: "ss-sidebar-chart-preview__body" }, [
+						Vue.h(Chart, { options: this.options, height: "100%" }),
+					]),
+				]
+			);
+
+			const fullscreenContent =
+				this.fullscreen &&
+				Vue.h(
+					"div",
+					{
+						ref: "fullscreenRef",
+						class: "ss-sidebar-chart-fullscreen",
+					},
+					[
+						Vue.h(
+							"div",
+							{
+								class:
+									"ss-sidebar-panel__header ss-sidebar-chart-fullscreen__header",
+							},
+							[
+								Vue.h("div", { class: "ss-sidebar-panel__title" }, [
+									this.iconClass
+										? Vue.h(SsIcon, {
+												class: this.iconClass + " ss-sidebar-panel__icon",
+											})
+										: this.icon
+										? Vue.h(SsIcon, {
+												name: this.icon,
+												size: "16px",
+												class: "ss-sidebar-panel__icon",
+											})
+										: null,
+									Vue.h("span", null, this.title || "统计图"),
+								]),
+								Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
+									Vue.h(
+										"button",
+										{
+											type: "button",
+											class: {
+												"ss-sidebar-chart-tool": true,
+												"is-active": this.pinned,
+											},
+											title: this.pinned ? "取消固定" : "固定",
+											onClick: (e) => {
+												e.stopPropagation();
+												this.togglePin();
+											},
+										},
+										[
+											Vue.h(SsIcon, {
+												class: this.pinned
+													? "ss-sidebar-base-icon icon-fix-bold"
+													: "ss-sidebar-base-icon icon-fix",
+											}),
+										]
+									),
+									Vue.h(
+										"button",
+										{
+											type: "button",
+											class: "ss-sidebar-chart-tool",
+											title: "退出全屏",
+											onClick: (e) => {
+												e.stopPropagation();
+												this.toggleFullscreen();
+											},
+										},
+										[
+											Vue.h(SsIcon, {
+												class: "ss-sidebar-base-icon icon-fs-exit",
+											}),
+										]
+									),
+								]),
+							]
+						),
+						Vue.h("div", { class: "ss-sidebar-chart-fullscreen__body" }, [
+							Vue.h(Chart, { options: this.options, height: "100%" }),
+						]),
+					]
+				);
+
+			return Vue.h("div", { class: "ss-sidebar-chart-hover" }, [
+				Vue.h(
+					"div",
+					{
+						ref: "triggerRef",
+						class: "ss-sidebar-chart-hover__trigger",
+						onMouseenter: () => {
+							this.hoveringTrigger = true;
+							this.openPreview();
+						},
+						onMouseleave: () => {
+							this.hoveringTrigger = false;
+							this.scheduleClose();
+						},
+					},
+					[Vue.h(Chart, { options: this.options, height: this.height })]
+				),
+				(this.open || this.fullscreen) &&
+					Vue.h(Vue.Teleport, { to: "body" }, [
+						this.open ? previewContent : null,
+						fullscreenContent || null,
+					]),
+			]);
+		},
+	};
+
+	// 组件文档补全(JSDoc) by xu 20260108
+	/**
+	 * SsSidebarList(右侧业务面板:人员/已选/服务/预定...)
+	 *
+	 * 用途:
+	 * - 统一渲染面板 header(图标/标题/数量/右侧按钮)
+	 * - 统一渲染 list(固定行高、hover、右侧移除按钮等)
+	 *
+	 * 调用示例(由 ss-sidebar 通过 panels 配置驱动):
+	 * ```js
+	 * { type:'list', title:'已选', iconClass:'menu-icon icon-obj-xcd', mode:'selected', items:selectedItems, closable:true }
+	 * ```
+	 *
+	 * Props(核心):
+	 * - `title`:header 标题
+	 * - `iconClass/icon`:header 图标(优先 iconClass)
+	 * - `count`:数量回显(图表面板可不传)
+	 * - `closable`:是否显示“清空”按钮(触发 emit clear)
+	 * - `headerFilters`:header 条件数组(组件名 + props),用于联调接口搜索
+	 * - `headerSearchButton`:是否显示搜索按钮(触发 emit search)
+	 * - `items`:列表数据
+	 * - `mode`:`selected` 时右侧按钮语义为“移除”
+	 * - `itemLayout`:`simple` / `person`(人员号槽位)
+	 * - `itemAction`:是否显示 item 右侧操作按钮(hover 才出现)
+	 *
+	 * Emits:
+	 * - `remove(item)`:点击 item 右侧移除
+	 * - `clear()`:点击 header 清空
+	 * - `search({keyword, filters})`:点击 header 搜索
+	 */
+	const SsSidebarList = {
+		name: "SsSidebarList",
+		props: {
+			title: { type: String, default: "" },
+			// header 图标:优先使用 iconClass(走 ss-icon v3.0 class 分支) by xu 20260106
+			iconClass: { type: String, default: "" },
+			icon: { type: String, default: "" }, // 兼容旧写法(ss-icon name)
+			count: { type: [Number, String], default: "" },
+			// 选中类分区:右侧关闭按钮=清空分区数据 by xu 20260106
+			closable: { type: Boolean, default: false },
+			searchable: { type: Boolean, default: false },
+			// 搜索框是否放在 header 内(人员块需要该布局) by xu 20260106
+			searchInHeader: { type: Boolean, default: false },
+			// header 搜索:下拉条件 + 搜索按钮(适合“人员”块) by xu 20260106
+			headerFilters: { type: Array, default: () => [] },
+			headerSearchButton: { type: Boolean, default: false },
+			searchPlaceholder: { type: String, default: "搜索" },
+			// 列表项布局:simple(仅标题) / person(标题+人员号槽位) by xu 20260106
+			itemLayout: { type: String, default: "simple" },
+			itemAction: { type: Boolean, default: true },
+			collapsible: { type: Boolean, default: true }, // 功能说明:是否允许双击 header 折叠/展开 by xu 20260116
+			collapsed: { type: Boolean, default: false }, // 功能说明:折叠态仅展示 header by xu 20260116
+			items: { type: Array, default: () => [] },
+			mode: { type: String, default: "search" }, // search / selected
+		},
+		emits: ["select", "remove", "clear", "search", "toggle-collapse"],
+		data() {
+			return {
+				keyword: "",
+				filterValues: {},
+			}; // 功能说明:折叠状态完全由 props.collapsed 驱动,避免多面板复用导致状态不同步 by xu 20260116
+		},
+		created() {
+			// header 下拉条件默认值初始化 by xu 20260106
+			(this.headerFilters || []).forEach((f) => {
+				if (!f || !f.key) return;
+				if (this.filterValues[f.key] !== undefined) return;
+				const first = f?.options?.[0]?.value ?? "";
+				this.filterValues[f.key] = f.value !== undefined ? f.value : first;
+			});
+		},
+		methods: {
+			__shouldIgnoreHeaderToggle(e) {
+				// 功能说明:忽略工具区/输入区触发折叠,避免误触 by xu 20260116
+				const t = e?.target;
+				if (!t || !t.closest) return false;
+				if (t.closest(".ss-sidebar-panel__tools")) return true;
+				if (t.closest(".ss-sidebar-panel__filters")) return true;
+				if (t.closest("input,textarea,select,button")) return true;
+				return false;
+			},
+			__toggleCollapseInternal(e, source) {
+				if (!this.collapsible) return;
+				if (this.__shouldIgnoreHeaderToggle(e)) return;
+
+				const nextCollapsed = !this.collapsed;
+				console.log("[SsSidebarList] toggle emit", {
+					title: this.title,
+					source,
+					to: nextCollapsed,
+				}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				// 功能说明:由父组件(SsSidebar.toggleSectionCollapse)统一控制 section 高度与折叠数组 by xu 20260116
+				this.$emit("toggle-collapse");
+			},
+		},
+		render() {
+			const items = this.items || [];
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			const isSelectedMode = this.mode === "selected";
+			const activeKeyword = this.filterValues?.keyword ?? this.keyword; // 功能:keyword 优先取 headerFilters.keyword by xu 20260106
+			const hasHeaderKeyword = (this.headerFilters || []).some(
+				(f) => f?.key === "keyword"
+			); // 功能:header 内 keyword 过滤 by xu 20260106
+			const renderHeaderFilter = (f) => {
+				if (!f) return null;
+				const key = f.key;
+				const componentName = f.component;
+				if (!key || !componentName) return null;
+				const Comp = Vue.resolveComponent(componentName);
+				if (!Comp) return null;
+				const modelValue = this.filterValues[key];
+				const props = f.props || {};
+				return Vue.h(Comp, {
+					...props,
+					modelValue,
+					"onUpdate:modelValue": (v) => {
+						this.filterValues[key] = v;
+					},
+				});
+			};
+			const filteredItems =
+				this.searchable && activeKeyword
+					? items.filter((it) =>
+							String(it?.title ?? "")
+								.toLowerCase()
+								.includes(String(activeKeyword).toLowerCase())
+						)
+					: items;
+
+			if (!filteredItems.length && !this.title) return null;
+
+			if (this.collapsed) {
+				return Vue.h("div", { class: "ss-sidebar-panel" }, [
+					this.title
+						? Vue.h(
+								"div",
+								{
+									class: "ss-sidebar-panel__header",
+									// 功能说明:折叠触发绑定到整个 header(dblclick + click.detail==2 兜底) by xu 20260116
+									onDblclick: (e) => {
+										e?.preventDefault?.();
+										e?.stopPropagation?.();
+										console.log("[SsSidebarList] header dblclick", {
+											title: this.title,
+											collapsed: true,
+										}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+										this.__toggleCollapseInternal(e, "dblclick");
+									},
+									// 功能说明:移除 click.detail==2 兜底,避免双击同时触发 click+dblclick 导致“折叠又立刻展开” by xu 20260116
+								},
+								[
+									Vue.h("div", { class: "ss-sidebar-panel__title" }, [
+										this.iconClass
+											? Vue.h(SsIcon, {
+													class: this.iconClass + " ss-sidebar-panel__icon",
+												})
+											: this.icon
+											? Vue.h(SsIcon, {
+													name: this.icon,
+													size: "16px",
+													class: "ss-sidebar-panel__icon",
+												})
+											: null,
+										Vue.h("span", null, this.title),
+										this.count !== ""
+											? Vue.h(
+													"span",
+													{ class: "ss-sidebar-panel__count" },
+													`(${this.count})`
+												)
+											: null,
+									]),
+									Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
+										this.closable
+											? Vue.h(
+													"button",
+													{
+														type: "button",
+														class: "ss-sidebar-icon-btn ss-sidebar-header-btn",
+														title: "清空",
+														onClick: (e) => {
+															e.stopPropagation();
+															this.$emit("clear");
+														},
+													},
+													[
+														Vue.h(SsIcon, {
+															class: "ss-sidebar-base-icon icon-cl",
+														}),
+													] // 功能说明:右侧栏“已选”清空按钮图标使用 ss-sidebar-base-icon by xu 20260123
+												)
+											: null,
+									]),
+								]
+							)
+						: null,
+				]);
+			}
+
+			return Vue.h("div", { class: "ss-sidebar-panel" }, [
+				this.title
+					? Vue.h(
+							"div",
+							{
+								class: "ss-sidebar-panel__header",
+								// 功能说明:折叠触发绑定到整个 header(dblclick + click.detail==2 兜底) by xu 20260116
+								onDblclick: (e) => {
+									e?.preventDefault?.();
+									e?.stopPropagation?.();
+									console.log("[SsSidebarList] header dblclick", {
+										title: this.title,
+										collapsed: false,
+									}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+									this.__toggleCollapseInternal(e, "dblclick");
+								},
+								// 功能说明:移除 click.detail==2 兜底,避免双击同时触发 click+dblclick 导致“折叠又立刻展开” by xu 20260116
+							},
+							[
+								Vue.h("div", { class: "ss-sidebar-panel__title" }, [
+									// 图标 + 标题(每个分区都有) by xu 20260106
+									this.iconClass
+										? Vue.h(SsIcon, {
+												class: this.iconClass + " ss-sidebar-panel__icon",
+											})
+										: this.icon
+										? Vue.h(SsIcon, {
+												name: this.icon,
+												size: "16px",
+												class: "ss-sidebar-panel__icon",
+											})
+										: null,
+									Vue.h("span", null, this.title),
+									// 数量回显:图表分区可不传 count by xu 20260106
+									this.count !== ""
+										? Vue.h(
+												"span",
+												{ class: "ss-sidebar-panel__count" },
+												`(${this.count})`
+											)
+										: null,
+								]),
+								Vue.h("div", { class: "ss-sidebar-panel__tools" }, [
+									// header 条件(例如下拉框)+ 右侧搜索按钮 by xu 20260106
+									this.headerFilters?.length
+										? Vue.h(
+												"div",
+												{ class: "ss-sidebar-panel__filters" },
+												this.headerFilters
+													.map(renderHeaderFilter)
+													.filter(Boolean)
+											)
+										: null,
+									this.headerSearchButton
+										? Vue.h(
+												"button",
+												{
+													type: "button",
+													class: "ss-sidebar-icon-btn",
+													title: "搜索",
+													onClick: (e) => {
+														e.stopPropagation();
+														this.$emit("search", {
+															// headerFilters 内也可能包含 keyword by xu 20260106
+															keyword: activeKeyword,
+															filters: { ...(this.filterValues || {}) },
+														});
+													},
+												},
+												[Vue.h(SsIcon, { name: "search", size: "14px" })]
+											)
+										: null,
+									// 人员块:搜索框在 header 内 by xu 20260106
+									this.searchable &&
+									this.searchInHeader &&
+									!this.headerSearchButton
+										? Vue.h(
+												"div",
+												{ class: "ss-sidebar-panel__searchInline" },
+												[
+													Vue.h(
+														"div",
+														{ class: "ss-sidebar-search is-inline" },
+														[
+															Vue.h(SsIcon, {
+																name: "search",
+																size: "14px",
+																class: "ss-sidebar-search__prefix",
+															}),
+															Vue.h("input", {
+																class: "ss-sidebar-search__input",
+																value: this.keyword,
+																placeholder: this.searchPlaceholder,
+																onInput: (e) => {
+																	this.keyword = e?.target?.value ?? "";
+																},
+															}),
+														]
+													),
+												]
+											)
+										: null,
+									this.closable
+										? Vue.h(
+												"button",
+												{
+													type: "button",
+													class: "ss-sidebar-icon-btn ss-sidebar-header-btn",
+													title: "清空",
+													onClick: (e) => {
+														e.stopPropagation();
+														this.$emit("clear");
+													},
+												},
+												// 清空按钮使用 icon-base 的 icon-cl by xu 20260106
+												[
+													Vue.h(SsIcon, {
+														class: "ss-sidebar-base-icon icon-cl",
+													}),
+												] // 功能说明:右侧栏清空按钮图标使用 ss-sidebar-base-icon by xu 20260123
+											)
+										: null,
+								]),
+							]
+						)
+					: null,
+				// 非 header 内搜索:独立一行 by xu 20260106
+				// headerSearchButton/headerFilters 已覆盖搜索能力时,不再额外渲染独立搜索行 by xu 20260106
+				this.searchable &&
+				!this.searchInHeader &&
+				!this.headerSearchButton &&
+				!hasHeaderKeyword
+					? Vue.h("div", { class: "ss-sidebar-panel__search" }, [
+							Vue.h("div", { class: "ss-sidebar-search" }, [
+								Vue.h(SsIcon, {
+									name: "search",
+									size: "14px",
+									class: "ss-sidebar-search__prefix",
+								}),
+								Vue.h("input", {
+									class: "ss-sidebar-search__input",
+									value: this.keyword,
+									placeholder: this.searchPlaceholder,
+									onInput: (e) => {
+										this.keyword = e?.target?.value ?? "";
+									},
+								}),
+							]),
+						])
+					: null,
+				Vue.h(
+					"div",
+					{ class: "ss-sidebar-list" },
+					filteredItems.map((item, idx) => {
+						const title = item?.title ?? "";
+						const tags = item?.tags || [];
+						const isPersonLayout = this.itemLayout === "person";
+						const hasTags = !isPersonLayout && tags?.length > 0; // 列表项垂直对齐:有 tags 顶对齐 by xu 20260106
+
+						return Vue.h(
+							"div",
+							{
+								class: {
+									"ss-sidebar-list-item": true,
+									"is-first": idx === 0,
+									"is-person": isPersonLayout,
+									"has-tags": hasTags,
+								},
+							},
+							[
+								Vue.h("div", { class: "ss-sidebar-list-item__main" }, [
+									Vue.h(
+										"div",
+										{ class: "ss-sidebar-list-item__title" },
+										Vue.h(
+											"span",
+											{
+												style: {
+													"white-space": "nowrap",
+													overflow: "hidden",
+													"text-overflow": "ellipsis",
+												},
+											},
+											title
+										)
+									),
+									// 非人员布局才显示 tags by xu 20260106
+									!isPersonLayout && tags?.length
+										? Vue.h(
+												"div",
+												{ class: "ss-sidebar-list-item__tags" },
+												tags.map((tag) => {
+													const [k, v] = Object.entries(tag)[0] || ["", ""];
+													return Vue.h(
+														"span",
+														{ class: "ss-sidebar-tag", title: `${k}: ${v}` },
+														`${k}: ${v}`
+													);
+												})
+											)
+										: null,
+								]),
+								// 人员布局:中间保留“人员号”槽位 by xu 20260106
+								isPersonLayout
+									? Vue.h(
+											"div",
+											{
+												class: "ss-sidebar-list-item__meta",
+												title: String(item?.meta ?? ""),
+											},
+											item?.meta ?? ""
+										)
+									: null,
+								this.itemAction
+									? Vue.h(
+											"button",
+											{
+												type: "button",
+												class: {
+													// item 操作按钮:默认无背景/无边框,hover 才高亮 by xu 20260106
+													"ss-sidebar-item-btn": true,
+												},
+												title: isSelectedMode ? "移除" : "选择",
+												onClick: (e) => {
+													e.stopPropagation();
+													if (isSelectedMode) this.$emit("remove", item);
+													else this.$emit("select", item);
+												},
+											},
+											[
+												// item 移除图标使用 icon-base 的 icon-cl by xu 20260106
+												isSelectedMode
+													? Vue.h(SsIcon, {
+															class: "ss-sidebar-base-icon icon-cl",
+														}) // 功能说明:右侧栏 item 移除图标使用 ss-sidebar-base-icon by xu 20260123
+													: Vue.h(SsIcon, { name: "check", size: "14px" }),
+											]
+										)
+									: null,
+							]
+						);
+					})
+				),
+			]);
+		},
+	};
+
+	// ss-sidebar-report-table:右侧“统计表/报表”面板(pstatList grtjlbm=51 聚拢渲染) by xu 20260115
+	const SsSidebarReportTable = {
+		name: "SsSidebarReportTable",
+		props: {
+			title: { type: String, default: "" },
+			iconClass: { type: String, default: "" },
+			icon: { type: String, default: "" },
+			items: { type: Array, default: () => [] }, // pstatList(grtjlbm=51) 数组
+			onOpen: { type: Function, default: null }, // (srv, ctx) => void
+			collapsible: { type: Boolean, default: true }, // 功能说明:是否允许双击 header 折叠/展开 by xu 20260116
+			collapsed: { type: Boolean, default: false }, // 功能说明:折叠态仅展示 header by xu 20260116
+		},
+		emits: ["open", "toggle-collapse"],
+		data() {
+			return {}; // 功能说明:折叠状态完全由 props.collapsed 驱动 by xu 20260116
+		},
+		methods: {
+			__toggleCollapseInternal(e, source) {
+				if (!this.collapsible) return;
+				const next = !this.collapsed;
+				console.log("[SsSidebarReportTable] toggle emit", {
+					title: this.title,
+					source,
+					to: next,
+				}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				this.$emit("toggle-collapse");
+			},
+		},
+		render() {
+			const SsIcon = Vue.resolveComponent("ss-icon");
+			const list = this.items || [];
+			if (!this.title && !list.length) return null;
+
+			const header = this.title
+				? Vue.h(
+						"div",
+						{
+							class: "ss-sidebar-panel__header",
+							// 功能说明:折叠触发绑定到整个 header(dblclick + click.detail==2 兜底) by xu 20260116
+							onDblclick: (e) => {
+								e?.preventDefault?.();
+								e?.stopPropagation?.();
+								console.log("[SsSidebarReportTable] header dblclick", {
+									title: this.title,
+									collapsed: this.collapsed,
+								}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+								this.__toggleCollapseInternal(e, "dblclick");
+							},
+							// 功能说明:移除 click.detail==2 兜底,避免双击同时触发 click+dblclick 导致“折叠又立刻展开” by xu 20260116
+						},
+						[
+							Vue.h("div", { class: "ss-sidebar-panel__title" }, [
+								this.iconClass
+									? Vue.h(SsIcon, {
+											class: this.iconClass + " ss-sidebar-panel__icon",
+										})
+									: this.icon
+									? Vue.h(SsIcon, {
+											name: this.icon,
+											size: "16px",
+											class: "ss-sidebar-panel__icon",
+										})
+									: null,
+								Vue.h("span", null, this.title),
+							]),
+							Vue.h("div", { class: "ss-sidebar-panel__tools" }),
+						]
+					)
+				: null;
+
+			const renderReport = (report) => {
+				const title = String(report?.mc ?? "");
+				const mx = Array.isArray(report?.grtjmxList) ? report.grtjmxList : [];
+				if (!title && !mx.length) return null;
+
+				// 功能说明:每个报表对象渲染为一个 table(有边框、无圆角、表间距10px;样式由 base.css 统一控制) by xu 20260115
+				const cols = Math.max(1, mx.length);
+				// 功能说明:table 外层包一层 wrap,子项过多时支持横向滚动 by xu 20260115
+				return Vue.h("div", { class: "ss-sidebar-report-table-wrap" }, [
+					Vue.h("table", { class: "ss-sidebar-report-table" }, [
+						Vue.h("thead", null, [
+							Vue.h("tr", null, [
+								Vue.h(
+									"th",
+									{ class: "ss-sidebar-report-table__title", colspan: cols },
+									Vue.h(
+										"div",
+										{ class: "ss-sidebar-report-table__title-content" },
+										[
+											Vue.h("span", { class: "ss-sidebar-report-table__dot" }),
+											Vue.h(
+												"span",
+												{ class: "ss-sidebar-report-table__title-text", title },
+												title
+											),
+										]
+									)
+								),
+							]),
+						]),
+						Vue.h("tbody", null, [
+							Vue.h(
+								"tr",
+								null,
+								mx.map((cell) => {
+									const text = String(cell?.mc ?? "");
+									const srv = {
+										servName: cell?.fwm ?? "",
+										dest: cell?.bjm ?? "",
+										title: text,
+										width: cell?.width,
+										height: cell?.height,
+										minHeight: cell?.height,
+										maxHeight: cell?.height,
+										showTitle: text,
+									};
+
+									return Vue.h(
+										"td",
+										{
+											class: "ss-sidebar-report-table__cell",
+											title: text,
+											onClick: (e) => {
+												e?.stopPropagation?.();
+												try {
+													this.onOpen?.(srv, { report, cell });
+												} catch (_) {}
+												this.$emit("open", { report, cell, srv });
+											},
+										},
+										text
+									);
+								})
+							),
+						]),
+					]),
+				]);
+			};
+
+			// 功能说明:报表面板增加独立 class,便于 base.css 统一控制 padding/间距 by xu 20260115
+			return Vue.h(
+				"div",
+				{ class: "ss-sidebar-panel ss-sidebar-report-panel" },
+				[
+					header,
+					this.collapsed
+						? null
+						: Vue.h(
+								"div",
+								// 功能说明:报表列表滚动/高度样式下沉到 base.css,避免写在 DOM 上 by xu 20260115
+								{ class: "ss-sidebar-report__list" },
+								list.map(renderReport).filter(Boolean)
+							),
+				]
+			);
+		},
+	};
+
+	// 组件文档补全(JSDoc) by xu 20260108
+	/**
+	 * SsSidebar(objList 右侧边栏容器)
+	 *
+	 * 用途:
+	 * - 统一渲染顶部按钮栏(buttons)
+	 * - 统一渲染中间业务面板(list panels,可拖拽调高度)
+	 * - 统一渲染底部图表(chart panels,内部用 ss-sidebar-chart-hover)
+	 *
+	 * 调用示例:
+	 * ```html
+	 * <ss-sidebar :buttons="sidebarButtons" :panels="sidebarPanels" @remove="handleSidebarRemove" />
+	 * ```
+	 *
+	 * Props:
+	 * - `buttons`:顶部按钮配置数组
+	 * - `panels`:分区配置数组(`type: 'list' | 'chart'`)
+	 *
+	 * Events(向外透传):
+	 * - `remove(item)`:来自 list 面板移除
+	 * - `select(item)`:来自 list 面板选择(如后续需要)
+	 */
+	const SsSidebar = {
+		name: "SsSidebar",
+		props: {
+			buttons: { type: Array, default: () => [] },
+			charts: { type: Array, default: () => [] },
+			list: { type: Array, default: () => [] }, // legacy
+			listMode: { type: String, default: "search" }, // legacy
+			panels: { type: Array, default: () => [] },
+		},
+		emits: ["select", "remove"],
+		data() {
+			return {
+				// 业务面板高度(索引 -> px) by xu 20260106
+				sectionHeights: [],
+				sectionCollapsed: [], // 功能说明:面板折叠状态(sectionPanels 索引) by xu 20260116
+				sectionHeightsExpanded: [], // 功能说明:面板展开高度缓存(用于折叠后恢复) by xu 20260116
+				sectionLastItemCounts: [], // 功能说明:记录栏目数据量,供“无数据默认关闭/已选自动展开”规则复用 by xu 20260313
+				chartCollapsed: [], // 功能说明:图表面板折叠状态(chartPanels 索引) by xu 20260116
+				chartHeaderTitleDownAt: [], // 功能说明:双击检测绑定到 chart 标题区 by xu 20260116
+				reportCollapsed: [], // 功能说明:报表面板折叠状态(reportPanels 索引) by xu 20260116
+				resizeTimer: null,
+				resizing: false,
+				resizeIndex: -1,
+				resizeStartY: 0,
+				resizeStartPrev: 0,
+				resizeStartNext: 0,
+				__resizeMoveHandler: null, // 功能说明:显式绑定 this 的 pointermove handler,避免 addEventListener 场景 this 丢失导致拖拽无效 by xu 20260122
+				__resizeEndHandler: null, // 功能说明:显式绑定 this 的 pointerup handler,确保能正确结束拖拽 by xu 20260122
+				__resizeCancelHandler: null, // 功能说明:显式绑定 this 的 pointercancel handler,触控取消也能收尾 by xu 20260122
+				__resizePrevSectionEl: null, // 功能说明:拖拽时直接写 DOM 高度(修复响应式更新不生效) by xu 20260122
+				__resizeNextSectionEl: null, // 功能说明:拖拽时直接写 DOM 高度(修复响应式更新不生效) by xu 20260122
+			};
+		},
+		methods: {
+			// 初始化默认高度(只在第一次/面板数量变化时补齐) by xu 20260106
+			ensureSectionHeights(sectionCount) {
+				if (!Array.isArray(this.sectionHeights)) this.sectionHeights = [];
+				if (this.sectionHeights.length === sectionCount) return;
+				const next = [];
+				for (let i = 0; i < sectionCount; i++) {
+					next[i] = this.sectionHeights[i] ?? 190; // 默认高度 by xu 20260106
+				}
+				this.sectionHeights = next;
+				// 功能说明:面板数量变化时补齐折叠/缓存数组长度 by xu 20260116
+				this.sectionCollapsed = Array.from(
+					{ length: sectionCount },
+					(_, i) => !!this.sectionCollapsed?.[i]
+				);
+				this.sectionHeightsExpanded = Array.from(
+					{ length: sectionCount },
+					(_, i) => this.sectionHeightsExpanded?.[i] ?? null
+				);
+				this.sectionLastItemCounts = Array.from(
+					{ length: sectionCount },
+					(_, i) => Number(this.sectionLastItemCounts?.[i] ?? 0) || 0
+				);
+			},
+			__getPanelsForSectionState(panelsInput) {
+				return (panelsInput || []).length
+					? panelsInput
+					: this.list?.length
+					? [
+							{
+								type: "list",
+								title: "已选",
+								icon: "",
+								mode: this.listMode,
+								items: this.list,
+							},
+						]
+					: [];
+			},
+			__getSectionPanelsForState(panelsInput) {
+				return this.__getPanelsForSectionState(panelsInput)
+					.filter((p) => {
+						const k = String(p?._tabKey ?? "")
+							.trim()
+							.toLowerCase();
+						const t = String(p?.title ?? "").trim();
+						if (k === "rbarobj") return false;
+						if (t === "对象") return false;
+						return true;
+					})
+					.filter((p) => p?.type !== "chart" && p?.type !== "report-table");
+			},
+			__getSectionPanelCount(panel) {
+				const explicitCount = Number(panel?.count);
+				if (Number.isFinite(explicitCount)) return explicitCount;
+				return Array.isArray(panel?.items) ? panel.items.length : 0;
+			},
+			__setSectionCollapsedState(index, collapsed) {
+				const i = Number(index);
+				if (isNaN(i) || i < 0) return;
+				const nextCollapsed = !!collapsed;
+				const collapsedHeight = 37;
+				const cur = !!this.sectionCollapsed?.[i];
+				const currentHeight = Number(this.sectionHeights?.[i] ?? 190) || 190;
+				if (nextCollapsed === cur) {
+					if (nextCollapsed && currentHeight !== collapsedHeight) {
+						this.sectionHeights.splice(i, 1, collapsedHeight);
+					}
+					return;
+				}
+				if (nextCollapsed) {
+					this.sectionHeightsExpanded[i] =
+						currentHeight > collapsedHeight
+							? currentHeight
+							: Number(this.sectionHeightsExpanded?.[i] ?? 190) || 190;
+					this.sectionHeights.splice(i, 1, collapsedHeight);
+				} else {
+					const restore =
+						Number(this.sectionHeightsExpanded?.[i] ?? 190) || 190;
+					this.sectionHeights.splice(i, 1, restore);
+				}
+				this.sectionCollapsed.splice(i, 1, nextCollapsed);
+			},
+			__syncSectionAutoCollapse(panelsInput) {
+				const sectionPanels = this.__getSectionPanelsForState(panelsInput);
+				const sectionCount = sectionPanels.length;
+				this.ensureSectionHeights(sectionCount);
+				const prevCounts = Array.isArray(this.sectionLastItemCounts)
+					? this.sectionLastItemCounts.slice()
+					: [];
+				const nextCounts = Array.from({ length: sectionCount }, (_, i) =>
+					this.__getSectionPanelCount(sectionPanels[i])
+				);
+				this.sectionLastItemCounts = nextCounts;
+				sectionPanels.forEach((panel, index) => {
+					const count = Number(nextCounts[index] ?? 0) || 0;
+					const prevCount = Number(prevCounts[index] ?? 0) || 0;
+					const title = String(panel?.title ?? "").trim();
+					if (count <= 0) {
+						this.__setSectionCollapsedState(index, true);
+						return;
+					}
+					if (title === "已选" && count > prevCount) {
+						this.__setSectionCollapsedState(index, false);
+					}
+				});
+			},
+			toggleSectionCollapse(index) {
+				// 功能说明:双击 header 折叠/展开 section 面板(仅控制高度与内容渲染) by xu 20260116
+				const i = Number(index);
+				if (isNaN(i) || i < 0) return;
+				// 功能说明:加更细粒度日志,定位“多面板折叠无视觉效果”的根因(高度是否真的变、DOM 是否更新) by xu 20260116
+				const collapsedHeight = 37; // 功能说明:header(35) + panel 边框(2),避免 flex shrink 导致 header 变 25px by xu 20260116
+				const cur = !!this.sectionCollapsed?.[i];
+				console.log("[SsSidebar] toggleSectionCollapse", {
+					index: i,
+					to: !cur,
+					prevHeight: this.sectionHeights?.[i],
+				}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				if (!cur) {
+					this.sectionHeightsExpanded[i] = this.sectionHeights[i] ?? 190;
+					this.sectionHeights.splice(i, 1, collapsedHeight);
+				} else {
+					const restore =
+						Number(this.sectionHeightsExpanded?.[i] ?? 190) || 190;
+					this.sectionHeights.splice(i, 1, restore);
+				}
+				this.sectionCollapsed.splice(i, 1, !cur);
+				console.log("[SsSidebar] section state(after)", {
+					index: i,
+					height: this.sectionHeights?.[i],
+					collapsed: this.sectionCollapsed?.[i],
+					allHeights: Array.from(this.sectionHeights || []),
+					allCollapsed: Array.from(this.sectionCollapsed || []),
+				}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				Vue.nextTick(() => {
+					try {
+						const root = this.$el;
+						const sections = root?.querySelectorAll?.(".ss-sidebar-section");
+						const el = sections?.[i];
+						const rectH = el?.getBoundingClientRect?.().height;
+						console.log("[SsSidebar] section dom(beforeFix)", {
+							index: i,
+							styleHeight: el?.style?.height,
+							rectH,
+						}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+
+						// 功能说明:若渲染未把 height patch 到 DOM,则在 nextTick 强制同步一次(并打印) by xu 20260116
+						const targetH =
+							(Number(this.sectionHeights?.[i] ?? 190) || 190) + "px";
+						if (el && el.style && el.style.height !== targetH) {
+							el.style.height = targetH;
+						}
+						if (el?.classList) {
+							el.classList.toggle("is-collapsed", !!this.sectionCollapsed?.[i]);
+						}
+						const rectAfter = el?.getBoundingClientRect?.().height;
+						console.log("[SsSidebar] section dom(afterFix)", {
+							index: i,
+							styleHeight: el?.style?.height,
+							rectH: rectAfter,
+							targetH,
+						}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+					} catch (err) {
+						console.log("[SsSidebar] section dom(afterTick) error", err); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+					}
+				});
+			},
+			toggleChartCollapse(index) {
+				// 功能说明:双击 header 折叠/展开底部 chart 面板(隐藏/显示 chart-hover) by xu 20260116
+				const i = Number(index);
+				if (isNaN(i) || i < 0) return;
+				const cur = !!this.chartCollapsed?.[i];
+				console.log("[SsSidebar] toggleChartCollapse", { index: i, to: !cur }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				this.chartCollapsed.splice(i, 1, !cur);
+				console.log("[SsSidebar] chart state(after)", {
+					index: i,
+					collapsed: this.chartCollapsed?.[i],
+					allCollapsed: Array.from(this.chartCollapsed || []),
+				}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				Vue.nextTick(() => {
+					try {
+						const root = this.$el;
+						const el = root?.querySelector?.(
+							`.ss-sidebar-chart-panel[data-chart-idx="${i}"]`
+						);
+						console.log("[SsSidebar] chart dom(beforeFix)", {
+							index: i,
+							found: !!el,
+						}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+						if (el?.classList)
+							el.classList.toggle("is-collapsed", !!this.chartCollapsed?.[i]);
+						console.log("[SsSidebar] chart dom(afterFix)", {
+							index: i,
+							collapsed: !!this.chartCollapsed?.[i],
+						}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+					} catch (err) {
+						console.log("[SsSidebar] chart dom(afterTick) error", err); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+					}
+				});
+			},
+			toggleReportCollapse(index) {
+				// 功能说明:双击 header 折叠/展开底部 report-table 面板(隐藏/显示表格) by xu 20260116
+				const i = Number(index);
+				if (isNaN(i) || i < 0) return;
+				const cur = !!this.reportCollapsed?.[i];
+				console.log("[SsSidebar] toggleReportCollapse", { index: i, to: !cur }); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				this.reportCollapsed.splice(i, 1, !cur);
+				console.log("[SsSidebar] report state(after)", {
+					index: i,
+					collapsed: this.reportCollapsed?.[i],
+					allCollapsed: Array.from(this.reportCollapsed || []),
+				}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+				Vue.nextTick(() => {
+					try {
+						const root = this.$el;
+						const el = root?.querySelector?.(
+							`.ss-sidebar-report-panel[data-report-idx="${i}"]`
+						);
+						console.log("[SsSidebar] report dom(beforeFix)", {
+							index: i,
+							found: !!el,
+						}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+						if (el?.classList)
+							el.classList.toggle("is-collapsed", !!this.reportCollapsed?.[i]);
+						console.log("[SsSidebar] report dom(afterFix)", {
+							index: i,
+							collapsed: !!this.reportCollapsed?.[i],
+						}); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+					} catch (err) {
+						console.log("[SsSidebar] report dom(afterTick) error", err); // 功能说明:直接打印用于排查多面板不生效 by xu 20260116
+					}
+				});
+			},
+			startResize(index, e) {
+				if (e?.preventDefault) e.preventDefault();
+				if (e?.stopPropagation) e.stopPropagation();
+				if (this.resizing) return;
+
+				// 长按 0.5s 后才进入拖拽调高度 by xu 20260106
+				clearTimeout(this.resizeTimer);
+				// 功能说明:修复“长按拖拽偶发失效/卡死”——pointerup 早于 500ms 时必须取消 timer,否则 timer 触发后进入 resizing=true 且再也收不到 pointerup,导致后续都无法拖拽 by xu 20260122
+				const pointerId = e?.pointerId;
+				const cancelPendingResize = (ev) => {
+					try {
+						if (
+							pointerId != null &&
+							ev?.pointerId != null &&
+							ev.pointerId !== pointerId
+						)
+							return;
+					} catch (_) {}
+					clearTimeout(this.resizeTimer);
+					this.resizeTimer = null;
+					document.removeEventListener("pointerup", cancelPendingResize, true);
+					document.removeEventListener(
+						"pointercancel",
+						cancelPendingResize,
+						true
+					);
+				};
+				// 功能说明:用 document+capture 监听,避免 window 监听在部分容器/iframe 场景丢事件导致拖拽无响应 by xu 20260122
+				document.addEventListener("pointerup", cancelPendingResize, {
+					passive: false,
+					once: true,
+					capture: true,
+				});
+				document.addEventListener("pointercancel", cancelPendingResize, {
+					passive: false,
+					once: true,
+					capture: true,
+				});
+
+				const startY = e?.clientY ?? 0;
+				const gapEl = e?.currentTarget;
+				// 功能说明:记录 gap 前后 section 节点,拖拽过程中直接写入 style.height,避免某些环境下 Vue render 不刷新导致“拖拽无视觉变化” by xu 20260122
+				this.__resizePrevSectionEl = gapEl?.previousElementSibling || null;
+				this.__resizeNextSectionEl = gapEl?.nextElementSibling || null;
+				this.resizeTimer = setTimeout(() => {
+					// 定时器触发后进入拖拽态,移除“取消等待”监听,避免误取消 by xu 20260122
+					document.removeEventListener("pointerup", cancelPendingResize, true);
+					document.removeEventListener(
+						"pointercancel",
+						cancelPendingResize,
+						true
+					);
+					this.resizing = true;
+					this.resizeIndex = index;
+					this.resizeStartY = startY;
+					this.resizeStartPrev = this.sectionHeights[index] ?? 190;
+					this.resizeStartNext = this.sectionHeights[index + 1] ?? 190;
+
+					gapEl?.classList?.add("is-active");
+					try {
+						if (gapEl?.setPointerCapture && pointerId != null)
+							gapEl.setPointerCapture(pointerId);
+					} catch (_) {} // 功能说明:捕获 pointer,避免拖拽过程中移出窗口导致 pointermove 丢失 by xu 20260122
+
+					// 功能说明:用 document+capture,确保拖拽时 pointermove/up 不会被中途 stopPropagation 影响 by xu 20260122
+					document.addEventListener(
+						"pointermove",
+						this.__resizeMoveHandler || this.onResizeMove,
+						{ passive: false, capture: true }
+					);
+					document.addEventListener(
+						"pointerup",
+						this.__resizeEndHandler || this.endResize,
+						{ passive: false, once: true, capture: true }
+					);
+					document.addEventListener(
+						"pointercancel",
+						this.__resizeCancelHandler || this.endResize,
+						{ passive: false, once: true, capture: true }
+					); // 功能说明:触控/手势取消时也要结束拖拽 by xu 20260122
+				}, 500);
+			},
+			onResizeMove(e) {
+				if (!this.resizing) return;
+				if (e?.preventDefault) e.preventDefault();
+				const dy = (e?.clientY ?? 0) - this.resizeStartY;
+
+				const minPanelHeight = 83; // header(35) + listMin(48) by xu 20260106
+				const prev = Math.max(minPanelHeight, this.resizeStartPrev + dy);
+				const next = Math.max(minPanelHeight, this.resizeStartNext - dy);
+
+				// 若其中一个达到最小值,则停止继续挤压 by xu 20260106
+				const adjustedDy = prev - this.resizeStartPrev;
+				const nextAdjusted = this.resizeStartNext - adjustedDy;
+				const appliedPrev = prev;
+				const appliedNext = Math.max(minPanelHeight, nextAdjusted);
+				this.sectionHeights.splice(this.resizeIndex, 1, appliedPrev);
+				this.sectionHeights.splice(this.resizeIndex + 1, 1, appliedNext);
+				// 功能说明:强制触发一次 sectionHeights 引用变化,避免某些运行时环境下 splice 未触发视图更新导致“拖拽没反应” by xu 20260122
+				this.sectionHeights = (this.sectionHeights || []).slice();
+				// 功能说明:兜底——直接写 DOM 的 height,确保视觉立即响应(用于排查/修复某些环境下 render 不更新) by xu 20260122
+				try {
+					if (this.__resizePrevSectionEl?.style)
+						this.__resizePrevSectionEl.style.height = appliedPrev + "px";
+					if (this.__resizeNextSectionEl?.style)
+						this.__resizeNextSectionEl.style.height = appliedNext + "px";
+				} catch (_) {}
+			},
+			endResize(e) {
+				clearTimeout(this.resizeTimer);
+				this.resizeTimer = null;
+				if (!this.resizing) return;
+				if (e?.preventDefault) e.preventDefault();
+
+				const activeGaps = document.querySelectorAll(
+					".ss-sidebar-gap.is-active"
+				);
+				activeGaps.forEach((g) => g.classList.remove("is-active"));
+
+				this.resizing = false;
+				this.resizeIndex = -1;
+				this.__resizePrevSectionEl = null; // 功能说明:释放 DOM 引用,避免内存泄漏 by xu 20260122
+				this.__resizeNextSectionEl = null; // 功能说明:释放 DOM 引用,避免内存泄漏 by xu 20260122
+				document.removeEventListener(
+					"pointermove",
+					this.__resizeMoveHandler || this.onResizeMove,
+					true
+				);
+				document.removeEventListener(
+					"pointercancel",
+					this.__resizeCancelHandler || this.endResize,
+					true
+				); // 功能说明:清理 cancel 监听,避免残留 by xu 20260122
+			},
+		},
+		watch: {
+			panels: {
+				handler(nextPanels) {
+					this.__syncSectionAutoCollapse(nextPanels);
+				},
+				deep: true,
+				immediate: true,
+			},
+			list: {
+				handler(nextList) {
+					if ((this.panels || []).length) return;
+					this.__syncSectionAutoCollapse(nextList);
+				},
+				deep: true,
+				immediate: true,
+			},
+		},
+		mounted() {
+			clearTimeout(this.resizeTimer);
+			this.resizeTimer = null;
+			// 功能说明:绑定拖拽事件 handler(用于 add/removeEventListener) by xu 20260122
+			if (!this.__resizeMoveHandler)
+				this.__resizeMoveHandler = (e) => this.onResizeMove?.(e);
+			if (!this.__resizeEndHandler)
+				this.__resizeEndHandler = (e) => this.endResize?.(e);
+			if (!this.__resizeCancelHandler)
+				this.__resizeCancelHandler = (e) => this.endResize?.(e);
+			// 功能说明:暂时回退为固定底部留白方案(CSS 控制),后续再定位遮挡根因 by xu 20260115
+		},
+		beforeUnmount() {
+			clearTimeout(this.resizeTimer);
+			this.resizeTimer = null;
+			document.removeEventListener(
+				"pointermove",
+				this.__resizeMoveHandler || this.onResizeMove,
+				true
+			);
+			document.removeEventListener(
+				"pointerup",
+				this.__resizeEndHandler || this.endResize,
+				true
+			);
+			document.removeEventListener(
+				"pointercancel",
+				this.__resizeCancelHandler || this.endResize,
+				true
+			);
+		},
+		render() {
+			const SsSidebarButtonsComp = Vue.resolveComponent("ss-sidebar-buttons");
+			const SsSidebarChartComp = Vue.resolveComponent("ss-sidebar-chart");
+			const SsSidebarListComp = Vue.resolveComponent("ss-sidebar-list");
+			const SsSidebarReportTableComp = Vue.resolveComponent(
+				"ss-sidebar-report-table"
+			);
+			const SsIcon = Vue.resolveComponent("ss-icon");
+
+			// 支持 panels(多分区),list/listMode 作为 legacy 兜底 by xu 20260106
+			const panels = (this.panels || []).length
+				? this.panels
+				: this.list?.length
+				? [
+						{
+							type: "list",
+							title: "已选",
+							icon: "",
+							mode: this.listMode,
+							items: this.list,
+						},
+					]
+				: [];
+			// 功能说明:右侧栏强制移除“对象”tab(兼容后端返回 rbarObj/rbarobj 或直接返回中文“对象”标题) by xu 20260116
+			const panelsNoObj = (panels || []).filter((p) => {
+				const k = String(p?._tabKey ?? "")
+					.trim()
+					.toLowerCase();
+				const t = String(p?.title ?? "").trim();
+				if (k === "rbarobj") return false;
+				if (t === "对象") return false;
+				return true;
+			});
+			// 功能说明:report-table 作为底部报表区(放在统计图下面),不参与可拖拽 section 面板 by xu 20260115
+			const sectionPanels = panelsNoObj.filter(
+				(p) => p?.type !== "chart" && p?.type !== "report-table"
+			);
+			const chartPanels = panelsNoObj.filter((p) => p?.type === "chart");
+			const reportPanels = panelsNoObj.filter(
+				(p) => p?.type === "report-table"
+			);
+			this.ensureSectionHeights(sectionPanels.length);
+			// 功能说明:补齐 chart/report 折叠数组长度 by xu 20260116
+			this.chartCollapsed = Array.from(
+				{ length: chartPanels.length },
+				(_, i) => !!this.chartCollapsed?.[i]
+			);
+			this.chartHeaderTitleDownAt = Array.from(
+				{ length: chartPanels.length },
+				(_, i) => this.chartHeaderTitleDownAt?.[i] ?? 0
+			);
+			this.reportCollapsed = Array.from(
+				{ length: reportPanels.length },
+				(_, i) => !!this.reportCollapsed?.[i]
+			);
+
+			return Vue.h("div", { class: "ss-sidebar" }, [
+				this.buttons?.length
+					? Vue.h(SsSidebarButtonsComp, { items: this.buttons })
+					: null,
+				Vue.h(
+					"div",
+					{ class: "ss-sidebar__inner" },
+					[
+						...(this.charts || []).map((c) =>
+							Vue.h(SsSidebarChartComp, {
+								options: c?.options || {},
+								height: c?.height || "200px",
+							})
+						),
+						// 可拖拽的业务面板容器 by xu 20260106
+						Vue.h(
+							"div",
+							{ class: "ss-sidebar-sections", style: { flex: "0 0 auto" } },
+							sectionPanels.flatMap((p, idx) => {
+								const panelContent =
+									p?.type === "report-table"
+										? Vue.h(SsSidebarReportTableComp, {
+												key: `ss-sidebar-report-in-section-${idx}-${
+													p?.title ?? ""
+												}`,
+												title: p?.title ?? "",
+												icon: p?.icon ?? "",
+												iconClass: p?.iconClass ?? "",
+												items: p?.items || [],
+												onOpen: (srv, ctx) => p?.onOpen?.(srv, ctx),
+											})
+										: Vue.h(SsSidebarListComp, {
+												key: `ss-sidebar-list-${idx}-${p?.title ?? ""}`,
+												title: p?.title ?? "",
+												icon: p?.icon ?? "",
+												count: p?.count ?? p?.items?.length ?? "",
+												closable: !!p?.closable,
+												searchable: !!p?.searchable,
+												searchInHeader: !!p?.searchInHeader,
+												headerFilters: p?.headerFilters || [],
+												headerSearchButton: !!p?.headerSearchButton,
+												searchPlaceholder: p?.searchPlaceholder ?? "搜索",
+												itemLayout: p?.itemLayout ?? "simple",
+												itemAction: p?.itemAction ?? true,
+												collapsible: true,
+												collapsed: !!this.sectionCollapsed?.[idx],
+												onToggleCollapse: () =>
+													this.toggleSectionCollapse?.(idx),
+												iconClass: p?.iconClass ?? "",
+												items: p?.items || [],
+												mode: p?.mode || "search",
+												onSelect: (item) => this.$emit("select", item),
+												onRemove: (item) => this.$emit("remove", item),
+												onClear: () => p?.onClear?.(),
+												onSearch: (payload) => p?.onSearch?.(payload),
+											});
+
+								const section = Vue.h(
+									"div",
+									{
+										class: {
+											"ss-sidebar-section": true,
+											"is-collapsed": !!this.sectionCollapsed?.[idx],
+										},
+										key: `ss-sidebar-section-${idx}-${p?.type ?? "list"}-${
+											p?.title ?? ""
+										}`,
+										style: {
+											height: (this.sectionHeights[idx] ?? 190) + "px",
+											flex: "0 0 auto",
+										},
+									},
+									[
+										Vue.h("div", { class: "ss-sidebar-section__content" }, [
+											panelContent,
+										]),
+									]
+								);
+
+								const gap =
+									idx < sectionPanels.length - 1
+										? Vue.h("div", {
+												class: "ss-sidebar-gap",
+												onPointerdown: (e) => this.startResize(idx, e),
+											})
+										: null;
+
+								return gap ? [section, gap] : [section];
+							})
+						),
+						// 图表区固定在底部(hover 弹出大图) by xu 20260106
+						...chartPanels.map((p, chartIdx) =>
+							Vue.h(
+								"div",
+								{
+									class: {
+										"ss-sidebar-panel": true,
+										"ss-sidebar-chart-panel": true,
+										"is-collapsed": !!this.chartCollapsed?.[chartIdx],
+									},
+									style: { flex: "0 0 auto", minHeight: "37px" },
+									"data-chart-idx": chartIdx,
+									key: `ss-sidebar-chart-${chartIdx}-${p?.title ?? ""}`,
+								},
+								[
+									p?.title
+										? Vue.h(
+												"div",
+												{
+													class: "ss-sidebar-panel__header",
+													onDblclick: (e) => {
+														e?.preventDefault?.();
+														e?.stopPropagation?.();
+														console.log("[SsSidebar] chart header dblclick", {
+															idx: chartIdx,
+															title: p?.title,
+														});
+														this.toggleChartCollapse?.(chartIdx);
+													},
+												},
+												[
+													Vue.h("div", { class: "ss-sidebar-panel__title" }, [
+														p?.iconClass
+															? Vue.h(SsIcon, {
+																	class:
+																		p.iconClass + " ss-sidebar-panel__icon",
+																})
+															: p?.icon
+															? Vue.h(SsIcon, {
+																	name: p.icon,
+																	size: "16px",
+																	class: "ss-sidebar-panel__icon",
+																})
+															: null,
+														Vue.h("span", null, p.title),
+													]),
+													Vue.h("div", { class: "ss-sidebar-panel__tools" }),
+												]
+											)
+										: null,
+									this.chartCollapsed?.[chartIdx]
+										? null
+										: Vue.h(Vue.resolveComponent("ss-sidebar-chart-hover"), {
+												title: p?.title ?? "",
+												iconClass: p?.iconClass ?? "",
+												icon: p?.icon ?? "",
+												options: p?.options || {},
+												height: p?.height || "240px",
+											}),
+								]
+							)
+						),
+						...reportPanels.map((p, reportIdx) =>
+							Vue.h(
+								"div",
+								{
+									class: {
+										"ss-sidebar-report-panel-wrap": true,
+										"ss-sidebar-report-panel": true,
+										"is-collapsed": !!this.reportCollapsed?.[reportIdx],
+									},
+									style: { flex: "0 0 auto", minHeight: "37px" },
+									"data-report-idx": reportIdx,
+									key: `ss-sidebar-report-wrap-${reportIdx}-${p?.title ?? ""}`,
+								},
+								[
+									Vue.h(SsSidebarReportTableComp, {
+										key: `ss-sidebar-report-${reportIdx}-${p?.title ?? ""}`,
+										title: p?.title ?? "",
+										icon: p?.icon ?? "",
+										iconClass: p?.iconClass ?? "",
+										items: p?.items || [],
+										collapsible: true,
+										collapsed: !!this.reportCollapsed?.[reportIdx],
+										onToggleCollapse: () =>
+											this.toggleReportCollapse?.(reportIdx),
+										onOpen: (srv, ctx) => p?.onOpen?.(srv, ctx),
+									}),
+								]
+							)
+						),
+					].filter(Boolean)
+				),
+			]);
+		},
+	};
+
+	// ss-folder-card 文件夹卡片
+	const SsFolderCard = {
+		name: "SsFolderCard",
+		props: {
+			item: {
+				type: Object,
+				required: true,
+			},
+		},
+		data() {
+			return {
+				showButtons: false,
+			};
+		},
+		emits: ["click", "change"],
+		setup(props, { emit }) {
+			const item = props.item;
+			const showChildren = ref(false);
+			const eventBus = window.parent.sharedEventBus;
+
+			const itemWidth = Vue.computed(() => {
+				// 功能说明:页面改为 grid 等分布局后,卡片宽度交给容器控制,这里固定 100% by xu 20260116
+				return "100%";
+			});
+			onMounted(() => {
+				eventBus.subscribe("folderPath", (path) => {
+					const currentPath = path || [];
+					// 如果当前文件夹不在路径中,则销毁视图
+					if (
+						!currentPath.some((item) => item.folder.title === props.item.title)
+					) {
+						showChildren.value = false;
+					}
+				});
+			});
+			const onItemClick = (e) => {
+				if (e && e.stopPropagation) {
+					e.stopPropagation();
+				}
+				// 单击只处理 active 状态
+				if (e && e.currentTarget) {
+					const allListCards = document.querySelectorAll(
+						".knowledge-item-container"
+					);
+					const allFolderCards = document.querySelectorAll(".ss-folder-list");
+
+					allListCards.forEach((card) => card.classList.remove("active"));
+					allFolderCards.forEach((card) => card.classList.remove("active"));
+
+					e.currentTarget.classList.add("active");
+				} else {
+					// 如果是数据对象,需要找到对应的 DOM 元素
+					const allListCards = document.querySelectorAll(
+						".knowledge-item-container"
+					);
+					const allFolderCards = document.querySelectorAll(".ss-folder-list");
+					allListCards.forEach((card) => card.classList.remove("active"));
+					allFolderCards.forEach((card) => card.classList.remove("active"));
+					// 找到标题匹配的文件夹元素
+					const targetFolder = Array.from(allFolderCards).find((card) =>
+						card.textContent.includes(e.title)
+					);
+
+					if (targetFolder) {
+						targetFolder.classList.add("active");
+					}
+				}
+				emit("click", item);
+			};
+			// 修改双击处理函数
+			const handleFolderDblClick = (folder, e) => {
+				if (e) e.stopPropagation();
+				if (folder.children?.length) {
+					showChildren.value = true;
+					const pathInfo = {
+						title: folder.title,
+						folder: folder,
+					};
+					const currentPath = eventBus.getState("folderPath") || [];
+					if (!currentPath.some((item) => item.title === folder.title)) {
+						eventBus.publish("folderPath", [...currentPath, pathInfo]);
+					}
+				}
+			};
+			const onItemChange = (e, icon, index) => {
+				e.stopPropagation();
+				props.item.buttons[0].onclick();
+				// emit("change", { item: props.item, icon, index });
+			};
+			return {
+				item,
+				itemWidth,
+				showChildren,
+				onItemClick,
+				onItemChange,
+				handleFolderDblClick,
+			};
+		},
+		render() {
+			const SsCartListIcon = Vue.resolveComponent("ss-cart-list-icon");
+			if (this.showChildren) {
+				return h(SsFolderCartView, {
+					folder: this.item,
+				});
+			}
+			return Vue.h(
+				"div",
+				{
+					class: { "ss-folder-list": true, active: this.item.active },
+					onClick: (e) => {
+						e.stopPropagation();
+						this.onItemClick(e);
+					},
+					onDblclick: (e) => this.handleFolderDblClick(this.item, e),
+					style: { width: this.itemWidth },
+				},
+				[
+					// 文件夹特有的装饰元素
+					Vue.h("div", { class: "ss-folder-list-trapezoid" }),
+					Vue.h("div", { class: "ss-folder-list-top-transparent" }),
+					Vue.h("div", { class: "ss-folder-list-top" }),
+					Vue.h("div", { class: "ss-folder-list-right" }),
+
+					// header 部分(按钮)
+					this.item?.buttons?.length > 0 &&
+						Vue.h(
+							"div",
+							{
+								class: "header",
+								onMouseenter: () => (this.showButtons = true),
+								onMouseleave: () => (this.showButtons = false),
+								onClick: (e) => this.onItemChange(e, this.item.buttons[0], 0),
+							},
+							[
+								// this.item?.buttons?.length > 0 &&
+								Vue.h("div", {
+									class: "cart-list-setting cart-list-icon",
+									title: this.item?.buttons?.[0]?.title,
+								}),
+
+								// this.item?.buttons?.length > 0 &&
+								this.showButtons &&
+									this.item?.buttons?.length > 1 &&
+									Vue.h(
+										"div",
+										{
+											class: "cart-list-button-popup",
+										},
+										this.item.buttons.map((btn) =>
+											Vue.h(
+												"div",
+												{
+													onClick: (e) => {
+														e.stopPropagation();
+														btn.onclick?.();
+													},
+												},
+												[
+													btn.class &&
+														Vue.h(SsCartListIcon, {
+															class: [btn.class],
+														}),
+													Vue.h("span", null, btn.title),
+												]
+											)
+										)
+									),
+							]
+						),
+					// body 部分
+					Vue.h("div", { class: "body" }, [
+						Vue.h("div", { class: "box-header" }, [
+							Vue.h("div", null, this.item.title),
+						]),
+						Vue.h(
+							"div",
+							{
+								class: !this.item.thumb ? "no-thumb box-body" : "box-body",
+							},
+							[
+								this.item.thumb
+									? Vue.h("div", { class: "left" }, [
+											Vue.h("img", {
+												src: this.item.thumb,
+												alt: "Thumbnail",
+												class: "imgUnHandle",
+												style: {
+													"object-fit": "cover",
+													width: "100%",
+													height: "100%",
+												},
+											}),
+										])
+									: null,
+								Vue.h("div", { class: "right" }, [
+									...this.item.tags.map((tag) => {
+										const [key, value] = Object.entries(tag)[0];
+										return Vue.h(
+											"div",
+											{
+												class: "title",
+												title: `${key}: ${value}`,
+											},
+											`${key}: ${value}`
+										);
+									}),
+								]),
+							]
+						),
+					]),
+				]
+			);
+		},
+	};
+	// SsFolderCartView 组件 - 用于显示文件夹内容
+	const SsFolderCartView = {
+		name: "SsFolderCartView",
+		props: {
+			folder: {
+				type: Object,
+				required: true,
+			},
+		},
+		emits: ["click"],
+		setup(props, { emit }) {
+			const eventBus = window.parent.sharedEventBus;
+			const currentFolder = ref(props.folder);
+			const showChildren = ref(false);
+
+			const onItemClick = (e) => {
+				if (e && e.stopPropagation) {
+					e.stopPropagation();
+				}
+				// 单击只处理 active 状态
+				if (e && e.currentTarget) {
+					const allListCards = document.querySelectorAll(
+						".knowledge-item-container"
+					);
+					const allFolderCards = document.querySelectorAll(".ss-folder-list");
+
+					allListCards.forEach((card) => card.classList.remove("active"));
+					allFolderCards.forEach((card) => card.classList.remove("active"));
+
+					e.currentTarget.classList.add("active");
+				} else {
+					// 如果是数据对象,需要找到对应的 DOM 元素
+					const allListCards = document.querySelectorAll(
+						".knowledge-item-container"
+					);
+					const allFolderCards = document.querySelectorAll(".ss-folder-list");
+
+					allListCards.forEach((card) => card.classList.remove("active"));
+					allFolderCards.forEach((card) => card.classList.remove("active"));
+
+					// 找到标题匹配的文件夹元素
+					const targetFolder = Array.from(allFolderCards).find((card) =>
+						card.textContent.includes(e.title)
+					);
+
+					if (targetFolder) {
+						targetFolder.classList.add("active");
+					}
+				}
+				emit("click", props.folder);
+			};
+			const handleFolderDblClick = (folder, e) => {
+				if (e) e.stopPropagation();
+				if (folder.children?.length) {
+					showChildren.value = true;
+					const pathInfo = {
+						title: folder.title,
+						folder: folder,
+					};
+					const currentPath = eventBus.getState("folderPath") || [];
+					if (!currentPath.some((item) => item.title === folder.title)) {
+						eventBus.publish("folderPath", [...currentPath, pathInfo]);
+						currentFolder.value = folder;
+					}
+				}
+			};
+
+			const goBack = (targetFolder) => {
+				if (targetFolder === null) {
+					// 返回根目录
+					eventBus.publish("folderPath", []);
+				} else {
+					currentFolder.value = targetFolder;
+				}
+			};
+
+			return {
+				currentFolder,
+				showChildren,
+				onItemClick,
+				handleFolderDblClick,
+				goBack,
+			};
+		},
+
+		render() {
+			return h(
+				"div",
+				{
+					class: "page-container",
+					style: {
+						position: "fixed",
+						top: 0,
+						left: 0,
+						width: "100%",
+						height: "100%",
+						background: "var(--lightgray)",
+						padding: "20px 0",
+						zIndex: 1000,
+					},
+				},
+				[
+					// 搜索栏
+					h("div", { class: "search-bar" }, [
+						h("div", { class: "search-bar-contaienr" }, [
+							h(SsBreadcrumb, {
+								level: {
+									onBack: this.goBack,
+								},
+							}),
+						]),
+					]),
+
+					// 内容区域
+					h(
+						"div",
+						{
+							class: "content-area item-content-area",
+							style: { gap: "20px" },
+						},
+						[
+							...(this.currentFolder.children || []).map((child, index) =>
+								h(child.children ? SsFolderCard : SsListCard, {
+									key: index,
+									item: child,
+									onClick: (e) => this.onItemClick(e),
+									onDblclick: (e) => this.handleFolderDblClick(child, e),
+								})
+							),
+						]
+					),
+				]
+			);
+		},
+	};
+
+	// ss-page分页
+	const SsPage = {
+		name: "SsPage",
+		props: {
+			total: {
+				type: Number,
+				required: true,
+			},
+
+			size: {
+				type: Number,
+				default: 10,
+			},
+			page: {
+				type: Number,
+				default: 1,
+			},
+			onChange: {
+				type: Function,
+				default: () => {},
+			},
+		},
+		setup(props) {
+			const totalItems = ref(props.total); // 总条目数
+			const totalPages = ref(Math.ceil(props.total / props.size));
+			const currentPage = ref(props.page); // 当前页码
+
+			// 计算显示的信息
+			const pageInfo = ref(
+				`共${totalItems.value}条,第 ${currentPage.value}/${totalPages.value} 页`
+			);
+
+			// 上一页的逻辑
+			const goToPreviousPage = (e) => {
+				e.preventDefault(); // 阻止默认行为
+				if (currentPage.value > 1) {
+					currentPage.value -= 1;
+					updatePageInfo();
+					props.onChange?.({
+						pageNo: currentPage.value, // 当前页码
+						rowNumPer: props.size, // 每页条数
+						rowNum: props.total, // 总记录数
+					});
+				}
+			};
+
+			// 下一页的逻辑
+			const goToNextPage = (e) => {
+				e.preventDefault(); // 阻止默认行为
+				if (currentPage.value < totalPages.value) {
+					currentPage.value += 1;
+					updatePageInfo();
+					props.onChange?.({
+						pageNo: currentPage.value, // 当前页码
+						rowNumPer: props.size, // 每页条数
+						rowNum: props.total, // 总记录数
+					});
+				}
+			};
+
+			// 更新页码信息的函数
+			const updatePageInfo = () => {
+				pageInfo.value = `共${totalItems.value}条,第 ${currentPage.value}/${totalPages.value} 页`;
+			};
+
+			return {
+				pageInfo,
+				totalPages,
+				goToPreviousPage,
+				goToNextPage,
+			};
+		},
+
+		render(props, { slots, emit }) {
+			return Vue.h("div", { class: "pager-container" }, [
+				Vue.h("input", { type: "hidden", name: "rowNum", value: props.total }),
+				Vue.h("input", {
+					type: "hidden",
+					name: "rowNumPer",
+					value: props.size,
+				}),
+				Vue.h("input", {
+					type: "hidden",
+					name: "pageCount",
+					value: this.totalPages,
+				}),
+				Vue.h("input", { type: "hidden", name: "pageNo", value: props.page }),
+				Vue.h("div", { class: "pager-content" }, [
+					Vue.h("div", { class: "info" }, this.pageInfo),
+					Vue.h(
+						"div",
+						{ class: "btn" },
+						Vue.h(
+							"button",
+							{ onClick: (e) => this.goToPreviousPage(e) },
+							"上一页"
+						)
+					),
+					Vue.h(
+						"div",
+						{ class: "btn" },
+						Vue.h("button", { onClick: (e) => this.goToNextPage(e) }, "下一页")
+					),
+				]),
+			]);
+		},
+	};
+	// ss-right-info 一级页面右边栏
+	const SSRightInfo = {
+		name: "SSRightInfo",
+		setup() {
+			// 初始化响应式数据
+			const item = ref({
+				thumb: "images/example/project-img.png", // 更换为适合你项目的实际路径
+				title: "工业和信息化产业高质量发展资金",
+			});
+
+			return {
+				item,
+			};
+		},
+		render() {
+			return Vue.h("div", { class: "info-container" }, [
+				Vue.h("div", { class: "header" }, [
+					Vue.h("div", [
+						Vue.h("img", {
+							src: this.item.thumb,
+							class: "imgUnHandle",
+							style: { "object-fit": "cover", width: "100%", height: "100%" },
+						}), // 将 ImageViewer 替换为 img 标签
+					]),
+					Vue.h("div", [Vue.h("div", this.item.title)]),
+				]),
+				Vue.h("div", { class: "section-container" }, [
+					Vue.h("div", { class: "section" }, [
+						Vue.h("div", { class: "title" }, "合同"),
+						Vue.h("div", { class: "text" }, "合同总金额:42,399,320"),
+						Vue.h(
+							"div",
+							{ class: "a" },
+							"《工业和信息化产业高质量发展资金补助合同》"
+						),
+					]),
+					Vue.h("div", { class: "section" }, [
+						Vue.h("div", { class: "title" }, "发票"),
+						Vue.h("div", { class: "text" }, "应开发票总额:42,399,320"),
+						Vue.h("div", { class: "text" }, "已开发票金额:17,235,345"),
+						Vue.h("div", { class: "text" }, "未开发票金额:25,163,975"),
+					]),
+					Vue.h("div", { class: "section" }, [
+						Vue.h("div", { class: "title" }, "项目组成员"),
+						Vue.h("div", { class: "text" }, "我司:3人"),
+						Vue.h("div", { class: "text" }, "对方:2人"),
+						Vue.h("div", { class: "text" }, "项目负责人:张三"),
+					]),
+					Vue.h("div", { class: "section" }, [
+						Vue.h("div", { class: "title" }, "采购"),
+						Vue.h("div", { class: "text" }, "总额:999,320"),
+						Vue.h("div", { class: "text" }, "已付金额:335,345"),
+						Vue.h("div", { class: "text" }, "未付金额:663,975"),
+					]),
+				]),
+			]);
+		},
+	};
+	//
+	const SsSuccessPopup = {
+		name: "SsSuccessPopup",
+		props: {
+			right: {
+				type: String,
+				default: "20px",
+			},
+			bottom: {
+				type: String,
+				default: "calc(100% + 5px)",
+			},
+		},
+		setup(props, { expose }) {
+			// 响应式状态:是否可见
+			const visible = ref(false);
+
+			// 计算样式
+			const style = computed(() => {
+				return {
+					"--message-dialog-right": props.right,
+					"--message-dialog-bottom": props.bottom,
+				};
+			});
+
+			// 显示对话框的方法
+			const show = () => {
+				visible.value = true;
+			};
+
+			// 隐藏对话框的方法
+			const hide = () => {
+				visible.value = false;
+			};
+
+			// 将方法暴露给外部使用
+			expose({ show, hide });
+
+			// 返回渲染函数
+			return () => {
+				if (!visible.value) return null;
+				const SsIcon = resolveComponent("ss-icon");
+				return h(
+					"div",
+					{
+						class: "success-popup",
+						style: style.value,
+						onClick: (e) => e.stopPropagation(),
+					},
+					[
+						h("div", { class: "left" }, [
+							h("div", { class: "icon" }, [
+								h(SsIcon, { name: "check", size: "36px" }),
+							]),
+						]),
+						h("div", { class: "right" }, [
+							h("div", { class: "title" }, "提交成功"),
+							h("div", { class: "desc" }, "您的信息已成功提交。"),
+						]),
+					]
+				);
+			};
+		},
+	};
+	const SsErrorDialog = {
+		name: "SsErrorDialog",
+		setup(props, { emit }) {
+			const visible = ref(false);
+
+			const style = computed(() => {
+				return {};
+			});
+
+			const show = () => {
+				visible.value = true;
+			};
+
+			const hide = () => {
+				visible.value = false;
+			};
+
+			const onBack = () => {
+				emit("back");
+				hide();
+			};
+
+			return {
+				visible,
+				style,
+				show,
+				hide,
+				onBack,
+			};
+		},
+		render() {
+			const SsIcon = resolveComponent("ss-icon");
+			return this.visible
+				? h(
+						"div",
+						{
+							class: "errorDialog",
+							style: this.style,
+							onClick: (event) => event.stopPropagation(),
+						},
+						[
+							h("div", { class: "body" }, [
+								h("div", { class: "left" }, [
+									h("div", { class: "icon" }, [
+										h(SsIcon, { name: "close", size: "36px" }),
+									]),
+								]),
+								h("div", { class: "right" }, [
+									h("div", { class: "title" }, "操作失败"),
+									h("div", { class: "desc" }, "请点击返回以继续。"),
+								]),
+							]),
+							h("div", { class: "footer" }, [
+								h("div", { class: "left" }),
+								h("div", { class: "right" }, [
+									h(
+										"div",
+										{
+											class: "btn",
+											onClick: this.onBack,
+										},
+										[h(SsIcon, { name: "arrow-left-line" }), h("div", "返回")]
+									),
+								]),
+							]),
+						]
+					)
+				: null;
+		},
+	};
+	/**
+	 * 审核链条
+	 * <ss-verify
+	 * @param { Array } verify-list 审核节点列表
+	 * @property { Array } verify-list 审核节点列表
+	 * @example <ss-verify :verify-list="verifyList"></ss-verify>
+	 * verify-list [
+	 *    {
+	 *        groupName: "",  // 群组名称
+	 *        open: true, // 默认是否展开
+	 *        children:[ //群组里的人员
+	 *           {
+	 *            thumb: "images/example/user-4.png", // 头像
+	 *             name: "李丽思 ", // 姓名
+	 *             role: "人事处处长",  // 角色
+	 *             description: "同意。",  // 审核意见
+	 *             time: "09:38 08/11", // 审核时间
+	 *             video: false,  // false不显示/true显示 视频icon
+	 *             link: false,  // false不显示/true显示 链接icon 后续应该是附件
+	 *           }
+	 *        ]
+	 *    }
+	 *  ]
+	 */
+	const SsVerify = {
+		name: "SsVerify",
+		props: {
+			verifyList: {
+				type: Array,
+				required: true,
+			},
+		},
+		setup(props) {
+			const toggleOpen = (item) => {
+				item.open = !item.open;
+			};
+			onMounted(() => {
+				setTimeout(() => {
+					const lastOpenGroup = document.querySelector(".group-item-last-open");
+					console.log("lastOpenGroup", lastOpenGroup);
+					if (lastOpenGroup) {
+						const nodes = $(lastOpenGroup).find(".verify-node-container");
+						if (nodes.length) {
+							let totalHeight = 0;
+							const gudingHeight = 100;
+
+							if (nodes.length === 1) {
+								totalHeight = gudingHeight;
+							} else {
+								// 累加除最后一个节点外的所有节点高度
+								for (let i = 0; i < nodes.length - 1; i++) {
+									totalHeight += $(nodes[i]).outerHeight();
+								}
+								totalHeight += gudingHeight;
+							}
+
+							console.log("节点信息:", {
+								节点总数: nodes.length,
+								计算后的高度: totalHeight,
+							});
+
+							lastOpenGroup.style.setProperty(
+								"--group-line-height",
+								`${totalHeight}px`
+							);
+						}
+					}
+				}, 0);
+			});
+			return {
+				toggleOpen,
+			};
+		},
+		render() {
+			const SsIcon = resolveComponent("ss-icon");
+			const SsCommonIcon = resolveComponent("ss-common-icon");
+			const SsVerifyNode = resolveComponent("ss-verify-node");
+			return h(
+				"div",
+				{ class: "verify-nodes" },
+				this.verifyList.map((item, i) =>
+					h(
+						"div",
+						{
+							key: i,
+							class: {
+								"group-item": true,
+								"group-item-last-open":
+									i === this.verifyList.length - 1 && item.open,
+							},
+						},
+						[
+							h(
+								"div",
+								{
+									class: "group-item-title",
+									onClick: () => this.toggleOpen(item),
+								},
+								[
+									h("div", { class: "icon" }, [
+										item.open
+											? h(SsCommonIcon, { class: "common-icon-folder-open" })
+											: h(SsCommonIcon, { class: "common-icon-folder-close" }),
+										h(
+											"div",
+											{
+												class: "num",
+												style: { top: item.open ? "60%" : "55%" },
+											},
+											item.children?.length || 0
+										),
+									]),
+									h("div", { class: "name" }, item.groupName),
+								]
+							),
+							item.open && item.children?.length > 0
+								? h(
+										"div",
+										{ class: "group-item-children" },
+										item.children.map((citem, j) =>
+											h(SsVerifyNode, {
+												key: j,
+												item: citem,
+												// isGroup: i + 1 !== this.verifyList.length,
+												isGroup: true,
+											})
+										)
+									)
+								: null,
+						]
+					)
+				)
+			);
+		},
+	};
+
+	/**
+	 * 审核页面的审核节点
+	 * <ss-verify-node
+	 * @param {Object} item 审核节点信息
+	 * @param {Boolean} isGroup 是否为分组节点
+	 */
+	const SsVerifyNode = {
+		name: "SsVerifyNode",
+		props: {
+			item: {
+				type: Object,
+				required: true,
+			},
+			isGroup: {
+				type: Boolean,
+				default: false,
+			},
+		},
+		render() {
+			const SsIcon = resolveComponent("ss-icon");
+			const SsCommonIcon = resolveComponent("ss-common-icon");
+			return Vue.h("div", { class: "verify-node-container" }, [
+				Vue.h("div", { class: "info" }, [
+					Vue.h("div", { class: "avatar" }, [
+						Vue.h("img", {
+							src: this.item.thumb,
+							style: {
+								width: "50px",
+								height: "50px",
+								borderRadius: "50%",
+							},
+						}),
+					]),
+					Vue.h("div", { class: "desc" }, [
+						Vue.h("div", this.item.name),
+						Vue.h("div", this.item.role),
+					]),
+					Vue.h("div", { class: "link" }, [
+						Vue.h("div", [
+							this.item.video
+								? Vue.h(SsCommonIcon, { class: "common-icon-video" })
+								: null,
+							this.item.link
+								? Vue.h(SsCommonIcon, {
+										class: "common-icon-paper-clip",
+									})
+								: null,
+						]),
+					]),
+				]),
+				Vue.h(
+					"div",
+					{
+						class: {
+							description: true,
+							link: this.isGroup,
+						},
+						attrs: { "data-num": "3" },
+					},
+					[Vue.h("div", this.item.description)]
+				),
+				Vue.h("div", { class: "time" }, this.item.time),
+			]);
+		},
+	};
+	/**
+	 * 智能识别图片的左侧图片播放 可以放大缩小旋转图片
+	 * <ss-orc-img-box
+	 * @param { Object } image-obj 包含图片的url, 和图片的名称
+	 *
+	 */
+	const SsOrcImgBox = {
+		name: "SsOrcImgBox",
+		props: {
+			imageObj: {
+				type: Object,
+				required: true,
+			},
+		},
+		setup(props) {
+			const zoom = ref(1);
+			const rotation = ref(0);
+			const containerWidth = ref(0);
+			const containerHeight = ref(0);
+			const container = ref(null);
+			const imgPosition = ref({ x: 0, y: 0 });
+			const isDragging = ref(false);
+			const lastMousePosition = ref({ x: 0, y: 0 });
+			const imgStyle = computed(() => ({
+				width: `${zoom.value * 100}%`,
+				height: `${zoom.value * 100}%`,
+				transform: `rotate(${rotation.value}deg) translate(${imgPosition.value.x}px, ${imgPosition.value.y}px)`,
+				transformOrigin: "center center",
+				cursor: isDragging.value ? "grabbing" : "grab",
+			}));
+
+			const resetZoom = () => {
+				zoom.value = 1;
+				rotation.value = rotation.value + 90;
+				imgPosition.value = { x: 0, y: 0 };
+			};
+
+			const handleRangeChange = (event) => {
+				const value = event.target.value / 50; // 0 到 100 映射到 0 到 2 的缩放
+				zoom.value = Math.max(value, 0.1); // 设置最小缩放值为 0.1
+			};
+			const updateImgBoxDimensions = () => {
+				if (container.value) {
+					containerWidth.value = container.value.clientWidth;
+					containerHeight.value = container.value.clientHeight;
+				}
+			};
+			const onMouseDown = (event) => {
+				isDragging.value = true;
+				lastMousePosition.value = { x: event.clientX, y: event.clientY };
+			};
+
+			const onMouseMove = (event) => {
+				if (isDragging.value) {
+					const dx = event.clientX - lastMousePosition.value.x;
+					const dy = event.clientY - lastMousePosition.value.y;
+
+					// 防止旋转后拖动的x,y反转
+					// 首先将当前旋转角度从度数转换为弧度,因为 JavaScript 的 Math 库使用弧度
+					const angle = rotation.value * (Math.PI / 180);
+					// 使用基本的二维旋转矩阵将原始位移 dx 和 dy 转换为旋转后的位移 rotatedDx 和 rotatedDy。
+					const rotatedDx = dx * Math.cos(angle) + dy * Math.sin(angle);
+					const rotatedDy = dy * Math.cos(angle) - dx * Math.sin(angle);
+
+					imgPosition.value = {
+						x: imgPosition.value.x + rotatedDx,
+						y: imgPosition.value.y + rotatedDy,
+					};
+					lastMousePosition.value = { x: event.clientX, y: event.clientY };
+				}
+			};
+
+			const onMouseUp = () => {
+				isDragging.value = false;
+			};
+			onMounted(() => {
+				nextTick(() => {
+					updateImgBoxDimensions();
+					window.addEventListener("resize", updateImgBoxDimensions);
+					window.addEventListener("mousemove", onMouseMove);
+					window.addEventListener("mouseup", onMouseUp);
+				});
+			});
+
+			return {
+				zoom,
+				rotation,
+				container,
+				imgStyle,
+				resetZoom,
+				handleRangeChange,
+				containerWidth,
+				containerHeight,
+				onMouseDown,
+				imgPosition,
+			};
+		},
+		render() {
+			const SsIcon = resolveComponent("ss-icon");
+			return h("div", { class: "ocr-img-box" }, [
+				h("div", { class: "img-bar" }, [
+					h("div", this.imageObj.name),
+					h("div", { class: "action-bar" }, [
+						h("div", { class: "ocr-img-range-box" }, [
+							h("input", {
+								type: "range",
+								min: 0,
+								max: 100,
+								value: this.zoom * 50, // 初始位置为50
+								onInput: this.handleRangeChange,
+							}),
+							h("span", { class: "line" }),
+						]),
+						h(SsIcon, {
+							name: "reset",
+							size: "26px",
+							onClick: this.resetZoom,
+						}),
+					]),
+				]),
+				h("div", { class: "img-viewer", ref: "container" }, [
+					h(
+						"div",
+						{
+							class: "img-box",
+							style: {
+								width: `${this.containerWidth}px`,
+								height: `${this.containerHeight}px`,
+								overflow: "hidden",
+								position: "relative",
+							},
+						},
+						[
+							h("img", {
+								src: this.imageObj.thumb,
+								style: this.imgStyle,
+								class: "zoomable-img",
+								onMousedown: this.onMouseDown,
+							}),
+						]
+					),
+				]),
+			]);
+		},
+	};
+	// 搜索输入框组件
+	const SsSearchInput = {
+		name: "SsSearchInput",
+		props: {
+			name: String,
+			placeholder: String,
+			width: {
+				type: String,
+				default: "100px",
+			},
+			modelValue: String,
+		},
+		emits: ["update:modelValue", "search"],
+		setup(props, { emit }) {
+			const handleInput = (e) => {
+				emit("update:modelValue", e.target.value);
+			};
+			const handleKeyup = (e) => {
+				if (e.key === "Enter") {
+					emit("search");
+				}
+			};
+
+			return { handleInput, handleKeyup };
+		},
+		render() {
+			return h(
+				"div",
+				{
+					class: "input",
+					style: this.width ? { width: this.width } : undefined,
+				},
+				[
+					h("input", {
+						name: this.name,
+						placeholder: this.placeholder,
+						value: this.modelValue,
+						onInput: this.handleInput,
+						onKeyup: this.handleKeyup,
+					}),
+				]
+			);
+		},
+	};
+	// ss-search-date-picker 日期时间选择器组件
+	const SsSearchDatePicker = {
+		name: "SsSearchDatePicker",
+		props: {
+			modelValue: {
+				type: [String, Number, Date],
+				default: "",
+			},
+			name: {
+				type: String,
+				required: true,
+			},
+			type: {
+				type: String,
+				default: "date",
+				validator: (value) => ["date", "datetime", "time"].includes(value),
+			},
+			fmt: {
+				type: String,
+				default: null,
+			},
+			placeholder: {
+				type: String,
+				default: "",
+			},
+			width: {
+				type: String,
+				default: "100%",
+			},
+		},
+
+		emits: ["update:modelValue"],
+
+		setup(props, { emit }) {
+			const errMsg = ref("");
+			const validate = () => {
+				if (window.ssVm) {
+					const result = window.ssVm.validateField(props.name);
+					console.log("validate", window.ssVm.validateField(props.name));
+					errMsg.value = result.valid ? "" : result.message;
+				}
+			};
+			// 根据type确定默认格式
+			const defaultFormat = computed(() => {
+				switch (props.type) {
+					case "datetime":
+						return "YYYY-MM-DD HH:mm:ss";
+					case "date":
+						return "YYYY-MM-DD";
+					case "time":
+						return "HH:mm:ss";
+				}
+			});
+
+			const convertJavaFormatToElement = (javaFormat) => {
+				if (!javaFormat) return null;
+				return javaFormat
+					.replace("yyyy", "YYYY")
+					.replace("MM", "MM")
+					.replace("dd", "DD")
+					.replace("HH", "HH")
+					.replace("mm", "mm")
+					.replace("ss", "ss");
+			};
+
+			const finalFormat = computed(() => {
+				if (props.fmt) {
+					return convertJavaFormatToElement(props.fmt);
+				}
+				return defaultFormat.value;
+			});
+
+			// 使用 resolveComponent 获取组件
+			const ElDatePicker = resolveComponent("ElDatePicker");
+			const ElTimePicker = resolveComponent("ElTimePicker");
+			const SsFormIcon = resolveComponent("SsFormIcon");
+			const ElIcon = resolveComponent("ElIcon");
+			let useTimePicker = true;
+			//"yyyy-MM-dd HH:mm:ss";  "日期字符串格式在java的写法",传到本组件fmt属性也是按这个格式
+			if (props.fmt) {
+				//有fmt属性,则以fmt属性优先判断类型
+				if (/[dMy]/.test(props.fmt)) {
+					//如果有传入日期格式,且含年月日
+					useTimePicker = false;
+				} else {
+					useTimePicker = true;
+				}
+			} else if (props.type !== "time") {
+				useTimePicker = false;
+			}
+			const dateType = computed(() => {
+				const fmt = props.fmt || "";
+				if (fmt.includes("HH:mm:ss")) {
+					return "datetime";
+				} else if (fmt.includes("HH:mm")) {
+					return "datetime";
+				} else if (fmt.includes("mm:ss")) {
+					return "time";
+				}
+				return "date";
+			});
+			const handleValueUpdate = (val) => {
+				emit("update:modelValue", val);
+				emit("change", val); // 同时触发 change 事件
+				setTimeout(() => {
+					validate();
+				}, 50);
+			};
+			return () =>
+				h(
+					"div",
+					{ class: "ss-search-date-picker", style: { width: props.width } },
+					[
+						h("input", {
+							type: "hidden",
+							name: props.name,
+							value: props.modelValue,
+						}),
+						h(useTimePicker ? ElTimePicker : ElDatePicker, {
+							modelValue: props.modelValue,
+							"onUpdate:modelValue": handleValueUpdate,
+							type: dateType.value,
+							format: finalFormat.value,
+							"value-format": finalFormat.value,
+							clearable: true,
+							placeholder: props.placeholder,
+							class: "custom-date-picker", // 用于自定义样式
+							"time-arrow-control": props.type === "datetime", // 修改这里
+							size: "large", // 添加这一行,改为 large 尺寸
+							style: { width: "100%" },
+							"prefix-icon": h(SsFormIcon, { class: "form-icon-time" }),
+						}),
+					]
+				);
+		},
+	};
+	// 搜索按钮组件(包含下拉按钮)
+	const SsSearchButton = {
+		name: "SsSearchButton",
+		props: {
+			text: {
+				type: String,
+				required: true,
+			},
+			iconClass: {
+				type: String,
+				required: false,
+			},
+			opt: {
+				type: Array,
+				default: () => [],
+			},
+			checkId: {
+				type: String,
+				default: "0",
+			},
+			width: {
+				//add by Ben(20251225)
+				type: String,
+				required: false,
+			},
+			id: {
+				//add by Ben(20251225)
+				type: String,
+				required: false,
+			},
+		},
+		emits: ["click"],
+		setup(props, { emit }) {
+			const currentId = ref(props.checkId || "0");
+			const showPopup = ref(false);
+
+			const handleMouseEnter = () => {
+				showPopup.value = true;
+			};
+
+			const handleMouseLeave = () => {
+				showPopup.value = false;
+			};
+
+			// 添加点击事件处理,阻止默认行为
+			const handleClick = (e) => {
+				e.preventDefault();
+				if (props.opt?.length > 0) {
+					const selectedOption =
+						currentId.value === "0"
+							? props.opt[0]
+							: props.opt.find((opt) => opt.id === currentId.value);
+
+					if (selectedOption) {
+						selectedOption.callback?.();
+					}
+				} else {
+					emit("click", e);
+				}
+			};
+			// 获取显示文本
+			const getDisplayText = () => {
+				if (!props.opt?.length) return props.text;
+
+				const selectedOption =
+					currentId.value === "0"
+						? props.opt[0]
+						: props.opt.find((opt) => opt.id === currentId.value);
+
+				return selectedOption ? selectedOption.desc : props.opt[0].desc;
+			};
+
+			return () =>
+				h(
+					"button",
+					{
+						class:
+							props.opt?.length > 0
+								? "ss-drop-button ss-drop-button-more"
+								: "ss-drop-button",
+						type: "button", // 明确指定按钮类型为 button
+						onMouseenter: handleMouseEnter,
+						onMouseleave: handleMouseLeave,
+						onClick: handleClick, // 添加点击事件处理
+						style: { width: props.width }, //add by Ben(20251225)
+						id: props.id, //add by Ben(20251225)
+					},
+					[
+						props.iconClass
+							? h("span", {
+									class: props.iconClass,
+									style: { fontFamily: "iconfont", marginRight: "5px" },
+								})
+							: null,
+						h("span", getDisplayText()),
+						props.opt.length > 0 &&
+							showPopup.value &&
+							h(
+								"div",
+								{
+									class: "popup",
+								},
+								props.opt.map((item) =>
+									h(
+										"div",
+										{
+											onClick: (e) => {
+												e.preventDefault(); // 选项点击也阻止默认行为
+												e.stopPropagation(); // 阻止事件冒泡
+												currentId.value = item.id; // 更新当前选中的ID
+												item.callback();
+												showPopup.value = false; // 选择后关闭弹窗
+											},
+										},
+										item.desc
+									)
+								)
+							),
+					]
+				);
+		},
+	};
+	// 下拉按钮组件
+	const SsDropButton = {
+		name: "SsDropButton",
+		props: {
+			text: {
+				type: String,
+				required: true,
+			},
+			iconClass: {
+				type: String,
+				required: true,
+			},
+			opt: {
+				type: Array,
+				default: () => [],
+			},
+			checkId: {
+				type: String,
+				default: "0",
+			},
+			onclick: {
+				type: Function,
+				default: null,
+			},
+		},
+		setup(props) {
+			const currentId = ref(props.checkId || "0");
+			const showPopup = ref(false);
+
+			const handleMouseEnter = () => {
+				showPopup.value = true;
+			};
+
+			const handleMouseLeave = () => {
+				showPopup.value = false;
+			};
+
+			// 添加点击事件处理,阻止默认行为
+			const handleClick = (e) => {
+				e.preventDefault();
+				if (props.opt?.length > 0) {
+					const selectedOption =
+						currentId.value === "0"
+							? props.opt[0]
+							: props.opt.find((opt) => opt.id === currentId.value);
+
+					if (selectedOption) {
+						selectedOption.callback?.();
+					}
+				} else if (props.onclick) {
+					props.onclick();
+				}
+			};
+			// 获取显示文本
+			const getDisplayText = () => {
+				if (!props.opt?.length) return props.text;
+
+				const selectedOption =
+					currentId.value === "0"
+						? props.opt[0]
+						: props.opt.find((opt) => opt.id === currentId.value);
+
+				return selectedOption ? selectedOption.desc : props.opt[0].desc;
+			};
+
+			return () =>
+				h(
+					"button",
+					{
+						class:
+							props.opt?.length > 0
+								? "ss-drop-button ss-drop-button-more"
+								: "ss-drop-button",
+						type: "button", // 明确指定按钮类型为 button
+						onMouseenter: handleMouseEnter,
+						onMouseleave: handleMouseLeave,
+						onClick: handleClick, // 添加点击事件处理
+					},
+					[
+						h("span", {
+							class: props.iconClass,
+							style: { fontFamily: "iconfont" },
+						}),
+						h("span", getDisplayText()),
+						props.opt.length > 0 &&
+							showPopup.value &&
+							h(
+								"div",
+								{
+									class: "popup",
+								},
+								props.opt.map((item) =>
+									h(
+										"div",
+										{
+											onClick: (e) => {
+												e.preventDefault(); // 选项点击也阻止默认行为
+												e.stopPropagation(); // 阻止事件冒泡
+												currentId.value = item.id; // 更新当前选中的ID
+												item.callback();
+												showPopup.value = false; // 选择后关闭弹窗
+											},
+										},
+										item.desc
+									)
+								)
+							),
+					]
+				);
+		},
+	};
+	/**
+	 * 二级页面标签组件
+	 * <ss-sub-tab
+	 * @description 用于展示二级页面的布局组件,包含左侧垂直标签导航(支持分组)和右侧iframe内容区
+	 * @property {String} headerImage - 左侧顶部图片地址
+	 * @property {Array} menuList - 菜单配置列表
+	 * @property {Object} [activeMenu] - 当前选中的菜单项,不传则自动选择第一个可选菜单
+	 * @property {Array} footerButtons - 底部按钮配置列表
+
+	 */
+	/**
+	 * SsSubTab 左侧菜单+iframe内容组件
+	 * v3.0 改造:去掉顶部图片,改为图标+悬浮模式,iframe懒加载 by xu 20251216
+	 */
+	const SsSubTab = {
+		name: "SsSubTab",
+		props: {
+			menuList: {
+				type: Array,
+				required: true,
+			},
+			activeMenu: {
+				type: String,
+				default: "",
+			},
+			footerButtons: {
+				type: Array,
+				default: () => [],
+			},
+			leftDisplay: {
+				type: Boolean,
+				default: true,
+			},
+			// v3.0 新增:菜单模式 collapse(悬浮展开) / fixed(始终收起) by xu 20251216
+			initialMode: {
+				type: String,
+				default: "collapse",
+			},
+		},
+		emits: ["menu-change", "footer-click"],
+		setup(props, { emit }) {
+			// v3.0 新增:默认图标映射,使用icon-biz图标 by xu 20251216
+			const defaultIcons = [
+				"icon-obj-ry", // 人员
+				"icon-obj-dw", // 单位
+				"icon-obj-gw", // 岗位
+				"icon-biz-rc", // 人才
+				"icon-biz-xc", // 巡查
+				"icon-biz-cl", // 材料
+				"icon-biz-men", // 门
+				"icon-obj-xy", // 协议
+			];
+			//功能: SsSubTab 支持后端下发 iconName + pobj/cobj 两级菜单 by xu 20251222
+			const isTrue = (v) => v === true || v === "true" || v === 1 || v === "1"; //功能 by xu 20251222
+			const resolveIconClass = (iconNameOrClass, fallbackIndex) => {
+				//功能 by xu 20251222
+				const fallback = `menu-icon ${
+					defaultIcons[fallbackIndex % defaultIcons.length]
+				}`;
+				if (!iconNameOrClass) {
+					return fallback;
+				}
+				// 已经是完整 class(可能包含 menu-icon / menu-base-icon / 多个 class)
+				if (
+					typeof iconNameOrClass === "string" &&
+					iconNameOrClass.indexOf(" ") > -1
+				) {
+					return iconNameOrClass;
+				}
+				const iconName = iconNameOrClass;
+				if (iconName === "menu-icon" || iconName === "menu-base-icon") {
+					return fallback;
+				}
+				// 业务图标库:icon-biz / icon-obj -> menu-icon
+				if (
+					typeof iconName === "string" &&
+					(iconName.indexOf("icon-obj-") === 0 ||
+						iconName.indexOf("icon-biz-") === 0)
+				) {
+					return `menu-icon ${iconName}`;
+				}
+				// 默认认为是 icon-base 图标 -> menu-base-icon
+				return `menu-base-icon ${iconName}`;
+			};
+			const getMenuIcon = (item, index) => {
+				//功能 by xu 20251222
+				if (!item) {
+					return resolveIconClass(null, index);
+				}
+				//功能: 变动图标后端暂不正确,前端先写死为 icon-chg by xu 20251223
+				if (item.title === "变动" || item.name === "sys_bd") {
+					return resolveIconClass("icon-chg", index);
+				}
+				// 兼容旧字段 icon(优先使用)
+				if (item.icon) return resolveIconClass(item.icon, index);
+				// v3.0 使用后端下发 iconName
+				if (item.iconName) return resolveIconClass(item.iconName, index);
+				return resolveIconClass(null, index);
+			};
+
+			//功能: SsSubTab 底部按钮支持 icon+文字(icon-base)by xu 20251224
+			const getFooterIcon = (button) => {
+				//功能 by xu 20251224
+				if (!button) return "menu-base-icon icon-subm";
+				const iconNameOrClass =
+					button.iconClass || button.iconName || button.icon;
+				if (!iconNameOrClass) return "menu-base-icon icon-subm";
+				if (
+					typeof iconNameOrClass === "string" &&
+					iconNameOrClass.indexOf(" ") > -1
+				) {
+					return iconNameOrClass;
+				}
+				return `menu-base-icon ${iconNameOrClass}`;
+			};
+
+			//功能: pobj/cobj 扁平结构转换为 children 树结构,兼容原 children 结构 by xu 20251222
+			const normalizeMenuList = (rawList) => {
+				if (!Array.isArray(rawList) || rawList.length === 0) {
+					return [];
+				}
+				const hasTree = rawList.some(
+					(it) => Array.isArray(it?.children) && it.children.length > 0
+				);
+				if (hasTree) {
+					return rawList.map((it) => ({
+						...it,
+						__level: 1,
+						children: Array.isArray(it.children)
+							? it.children.map((c) => ({ ...c, __level: 2 }))
+							: it.children,
+					}));
+				}
+				const hasMarker = rawList.some(
+					(it) => it && ("pobj" in it || "cobj" in it)
+				);
+				if (!hasMarker) {
+					return rawList.map((it) => ({ ...it, __level: 1 }));
+				}
+				const result = [];
+				let currentGroup = null;
+				for (const item of rawList) {
+					//功能: “变动”始终按一级处理(即使后端误传 pobj/cobj)by xu 20251223
+					const isChgItem =
+						item && (item.title === "变动" || item.name === "sys_bd");
+					if (isChgItem) {
+						result.push({ ...item, __level: 1 });
+						continue;
+					}
+					const isParent = isTrue(item?.pobj);
+					const isChild = isTrue(item?.cobj);
+					if (isParent) {
+						currentGroup = {
+							...item,
+							__level: 1,
+							children: [],
+						};
+						result.push(currentGroup);
+						continue;
+					}
+					if (isChild && currentGroup) {
+						currentGroup.children.push({ ...item, __level: 2 });
+						continue;
+					}
+					//功能: 变动等无 pobj/cobj 的选项按一级展示(不挂到 children,也不打断当前分组)by xu 20251223
+					result.push({ ...item, __level: 1 });
+				}
+				return result;
+			};
+			const menuListComputed = computed(() =>
+				normalizeMenuList(props.menuList)
+			); //功能 by xu 20251222
+			//功能: 分组展开状态(默认展开),避免 computed 生成对象导致 open 状态丢失 by xu 20251222
+			const groupOpenState = reactive({}); // { [key]: boolean }
+			const getGroupKey = (item) => item?.name || item?.title || ""; //功能 by xu 20251222
+			const isGroupOpen = (item) => {
+				//功能 by xu 20251222
+				const key = getGroupKey(item);
+				if (!key) return true;
+				return groupOpenState[key] !== false;
+			};
+			const toggleGroupOpen = (item) => {
+				//功能 by xu 20251222
+				const key = getGroupKey(item);
+				if (!key) return;
+				groupOpenState[key] = !isGroupOpen(item);
+			};
+			const getLevelClass = (item, fallbackLevel) => {
+				//功能 by xu 20251222
+				//功能: “变动”始终按一级样式处理 by xu 20251223
+				if (item && (item.title === "变动" || item.name === "sys_bd")) {
+					return "level-1";
+				}
+				const level = item?.__level || fallbackLevel || 1;
+				return level === 2 ? "level-2" : "level-1";
+			};
+
+			// v3.0 新增:菜单模式管理 by xu 20251216
+			const menuMode = ref(props.initialMode);
+			const isHovering = ref(false);
+
+			const toggleMenuMode = () => {
+				menuMode.value = menuMode.value === "collapse" ? "fixed" : "collapse";
+			};
+
+			//功能: 提供给旧UI弹窗顶部按钮调用的 API(替代点击 .menu-mode-toggle DOM)by xu 20251224
+			const registerSsSubTabApi = () => {
+				//功能 by xu 20251224
+				try {
+					window.SS = window.SS || {};
+					window.SS.dom = window.SS.dom || {};
+					//功能: 兼容小写 ss 命名空间(部分页面只引用 window.ss)by xu 20251224
+					window.ss = window.ss || window.SS;
+					window.ss.dom = window.ss.dom || window.SS.dom;
+					const api = {
+						toggleMenuMode,
+						getMenuMode: () => menuMode.value,
+					};
+					window.SS.dom.ssSubTabApi = api;
+					window.ss.dom.ssSubTabApi = api;
+					//功能: 多层弹窗(如 objPlay -> objInfo) 场景,将 API 注册到 topWindow 供按钮跨层调用 by xu 20251224
+					try {
+						const wdDialogId =
+							window.wd &&
+							wd.display &&
+							wd.display.getwdDialogId &&
+							wd.display.getwdDialogId();
+						if (wdDialogId && window.top) {
+							window.top.__ssSubTabApiMap = window.top.__ssSubTabApiMap || {};
+							window.top.__ssSubTabApiMap[wdDialogId] = api;
+						}
+					} catch (e) {}
+					try {
+						console.log(
+							"[SsSubTabApi] registered",
+							window.location && window.location.pathname
+						);
+					} catch (e) {}
+				} catch (e) {}
+			};
+			const unregisterSsSubTabApi = () => {
+				//功能 by xu 20251224
+				try {
+					//功能: 从 topWindow 解绑(避免弹窗关闭后残留)by xu 20251224
+					try {
+						const wdDialogId =
+							window.wd &&
+							wd.display &&
+							wd.display.getwdDialogId &&
+							wd.display.getwdDialogId();
+						if (
+							wdDialogId &&
+							window.top &&
+							window.top.__ssSubTabApiMap &&
+							window.top.__ssSubTabApiMap[wdDialogId]
+						) {
+							delete window.top.__ssSubTabApiMap[wdDialogId];
+						}
+					} catch (e) {}
+					if (window.SS?.dom?.ssSubTabApi?.toggleMenuMode === toggleMenuMode) {
+						delete window.SS.dom.ssSubTabApi;
+					}
+					if (window.ss?.dom?.ssSubTabApi?.toggleMenuMode === toggleMenuMode) {
+						delete window.ss.dom.ssSubTabApi;
+					}
+				} catch (e) {}
+			};
+			//功能: 立即注册,避免 enable 早于 onMounted 导致“api not ready”by xu 20251224
+			registerSsSubTabApi(); //功能 by xu 20251224
+			onBeforeUnmount(unregisterSsSubTabApi); //功能 by xu 20251224
+
+			const onMouseEnter = () => {
+				if (menuMode.value === "collapse") {
+					isHovering.value = true;
+				}
+			};
+			const onMouseLeave = () => {
+				isHovering.value = false;
+			};
+
+			const isExpanded = computed(() => {
+				return menuMode.value === "collapse" && isHovering.value;
+			});
+
+			// v3.0 新增:iframe 懒加载,点击才加载 by xu 20251216
+			const loadedMenus = ref(new Set());
+
+			const isMenuLoaded = (menuName) => {
+				return loadedMenus.value.has(menuName);
+			};
+
+			// 根据标题找到对应的菜单项
+			const findMenuByTitle = (title) => {
+				for (const item of menuListComputed.value) {
+					//功能 by xu 20251222
+					if (item.children?.length > 0) {
+						const child = item.children.find((c) => c.title === title);
+						if (child) return child;
+					} else if (item.title === title) {
+						return item;
+					}
+				}
+				return null;
+			};
+
+			// 计算默认选中的菜单项
+			const defaultActiveMenu = computed(() => {
+				if (props.activeMenu) {
+					const menu = findMenuByTitle(props.activeMenu);
+					if (menu) return menu;
+				}
+				const firstItem = menuListComputed.value[0]; //功能 by xu 20251222
+				if (!firstItem) return null;
+				//功能: 默认选中第一个一级菜单(不默认跳到第一个二级)by xu 20251224
+				return firstItem;
+			});
+
+			const currentMenu = ref(defaultActiveMenu.value);
+
+			// 监听外部activeMenu变化
+			watch(
+				() => props.activeMenu,
+				(newTitle) => {
+					if (newTitle) {
+						const menu = findMenuByTitle(newTitle);
+						if (menu) {
+							currentMenu.value = menu;
+						}
+					}
+				}
+			);
+
+			// 初始化:默认选中项加入已加载集合
+			watch(
+				currentMenu,
+				(menu) => {
+					if (menu?.name) {
+						loadedMenus.value.add(menu.name);
+					}
+				},
+				{ immediate: true }
+			);
+
+			// 选择菜单项时触发 menu-change 钩子
+			const selectItem = (item) => {
+				currentMenu.value = item;
+				// 标记为已加载
+				if (item.name) {
+					loadedMenus.value.add(item.name);
+				}
+				emit("menu-change", item);
+			};
+
+			// 处理底部按钮点击
+			const handleFooterClick = (button, index) => {
+				emit("footer-click", { button, index });
+			};
+
+			return {
+				menuListComputed, //功能 by xu 20251222
+				currentMenu,
+				selectItem,
+				handleFooterClick,
+				getFooterIcon, //功能: SsSubTab 底部按钮支持 icon+文字(icon-base)by xu 20251224
+				menuMode,
+				isHovering,
+				isExpanded,
+				toggleMenuMode,
+				onMouseEnter,
+				onMouseLeave,
+				isMenuLoaded,
+				getMenuIcon,
+				isGroupOpen, //功能 by xu 20251222
+				toggleGroupOpen, //功能 by xu 20251222
+				getLevelClass, //功能 by xu 20251222
+			};
+		},
+		template: `
+						<div class="project-edit-container">
+							<div class="left-side"
+									 v-if="leftDisplay"
+									 :data-mode="menuMode"
+									 :class="{ 'is-expanded': isExpanded }"
+									 @mouseenter="onMouseEnter"
+									 @mouseleave="onMouseLeave">
+
+									<!-- 菜单内容 -->
+										<div class="menu-content">
+												<div class="scroll-view">
+															<template v-for="(menuItem, i) in menuListComputed" :key="i">
+																	<!-- 分组菜单 -->
+																	<div v-if="menuItem.children?.length > 0" class="group">
+																			<!-- 功能: 一级(pobj)可点击进入,箭头仅控制展开/收起;二级点击不影响一级选中状态 by xu 20251223 -->
+																			<div class="menu-item"
+																					 :class="[getLevelClass(menuItem, 1), { active: menuItem.name === currentMenu?.name }]"
+																					 @click="selectItem(menuItem)">
+																					<ss-icon :class="getMenuIcon(menuItem, i)" />
+																					<span class="menu-label">{{ menuItem.title }}</span>
+																					<!-- 功能: 一级菜单有子项时显示 dot(参考全局左侧菜单)by xu 20251224 -->
+																					<div class="has-children-dot"></div>
+																					<div class="menu-tooltip">{{ menuItem.title }}</div>
+																			</div>
+																			<!-- 功能: 二级菜单始终展示,不做收缩展开 by xu 20251223 -->
+																			<div class="group-detail">
+																					<div v-for="(item, j) in menuItem.children"
+																							:key="j"
+																							class="menu-item"
+																							:class="[getLevelClass(item, 2), { active: item.name === currentMenu?.name }]"
+																							@click.stop="selectItem(item)">
+																							<ss-icon :class="getMenuIcon(item, j)" />
+																							<span class="menu-label">{{ item.title }}</span>
+																					</div>
+																		</div>
+																</div>
+															<!-- 普通菜单项 -->
+																	<div v-else
+																			class="menu-item"
+																			:class="[getLevelClass(menuItem, 1), { active: menuItem.name === currentMenu?.name }]"
+																			@click="selectItem(menuItem)">
+																			<ss-icon :class="getMenuIcon(menuItem, i)" />
+																			<span class="menu-label">{{ menuItem.title }}</span>
+																		<div class="menu-tooltip">{{ menuItem.title }}</div>
+																</div>
+													</template>
+											</div>
+									</div>
+
+										<!-- 底部按钮 -->
+											<div v-if="footerButtons.length > 0"
+													class="sub-tab-menu-footer"
+													:class="{ 'has-text': !!footerButtons[0].text }"
+													@click="footerButtons[0].onclick">
+												<ss-icon :class="getFooterIcon(footerButtons[0])" />
+												<div class="footer-label" v-if="footerButtons[0].text">{{ footerButtons[0].text }}</div>
+												<ss-icon v-if="footerButtons.length > 1" class="footer-arrow" name="arrow-up" size="24px" />
+												<div v-if="footerButtons.length > 1" class="sub-tab-menu-popup">
+														<div v-for="(button, index) in footerButtons.slice(1)"
+																:key="index"
+																@click.stop="button.onclick">
+																{{ button.text }}
+														</div>
+												</div>
+										</div>
+
+							</div>
+
+							<!-- 右侧内容区域 - 懒加载 iframe -->
+							<div class="content-area fit-height-content" style="overflow: hidden;" :style="!leftDisplay ? { width: '100%' } : {}">
+									<template v-for="(menuItem, i) in menuList" :key="i">
+											<iframe
+													v-if="isMenuLoaded(menuItem.name)"
+													:src="menuItem.url"
+													style="height: 100%;width: 100%;"
+													frameborder="0"
+													class="sub-tab-iframe"
+													:id="i === 0 ? 'sub-tab-iframe' : ''"
+													v-show="currentMenu?.name === menuItem.name"
+											/>
+									</template>
+							</div>
+					</div>
+			`,
+	};
+	// <iframe
+	//     v-if="currentMenu?.url"
+	//     :src="currentMenu.url"
+	//     style="height: 100%;width: 100%;"
+	//     frameborder="0"
+	//     id="sub-tab-iframe"
+	// />
+
+///// 再增加,增加 SsCms(<ss-cms) -- 抄自上面的 SsSubTab。Lin
+   // 支持编辑、播放模式,支持 ccms 播放(不显示左侧栏)
+   // 去掉左侧栏的两级菜单,去掉 "分组菜单",只保留 "普通菜单项" -- cms 只需要一级
+   // 去掉鼠标进入展开左侧栏 -- 左侧栏增加显示名称 -- 点击后,窗口标题行显示完整名称
+	/**
+	 * cms 播放器、编辑器组件
+	 * <ss-cms
+	 * @description 用于展示二级页面的布局组件,包含左侧垂直标签导航(支持分组)和右侧iframe内容区
+	 * @property {String} headerImage - 左侧顶部图片地址
+	 * @property {Array} menuList - 菜单配置列表
+	 * @property {Object} [activeMenu] - 当前选中的菜单项,不传则自动选择第一个可选菜单
+	 * @property {Array} footerButtons - 底部按钮配置列表
+	 */
+	const SsCms = {
+		name: "SsCms",
+		props: {
+			menuList: {
+				type: Array,
+				required: true,
+			},
+			activeMenu: {
+				type: String,
+				default: "",
+			},
+/* 再改,改为单个按钮。Lin
+			footerButtons: {
+				type: Array,
+				default: () => [],
+			},
+*/
+			footerButton: {
+				type: Object,
+				default: null,
+			},
+
+			leftDisplay: {
+				type: Boolean,
+				default: true,
+			},
+		},
+		emits: ["menu-change", "footer-click"],
+		setup(props, { emit }) {
+			// v3.0 新增:iframe 懒加载,点击才加载 by xu 20251216
+			const loadedMenus = ref(new Set());
+
+			const isMenuLoaded = (menuName) => {
+				return loadedMenus.value.has(menuName);
+			};
+
+			//功能: SsSubTab 底部按钮支持 icon+文字(icon-base)by xu 20251224
+			const getFooterIcon = (button) => {
+				//功能 by xu 20251224
+				if (!button) return "menu-base-icon icon-subm";
+				const iconNameOrClass =
+						button.iconClass || button.iconName || button.icon;
+				if (!iconNameOrClass) return "menu-base-icon icon-subm";
+				if (
+						typeof iconNameOrClass === "string" &&
+						iconNameOrClass.indexOf(" ") > -1
+				) {
+					return iconNameOrClass;
+				}
+				return `menu-base-icon ${iconNameOrClass}`;
+			};
+
+			// 根据标题找到对应的菜单项
+			const findMenuByTitle = (title) => {
+				for (const item of props.menuList) {	// of menuListComputed.value)。去掉左侧栏的两级菜单。Lin
+					//功能 by xu 20251222
+					if (item.children?.length > 0) {
+						const child = item.children.find((c) => c.title === title);
+						if (child) return child;
+					} else if (item.title === title) {
+						return item;
+					}
+				}
+				return null;
+			};
+
+			// 计算默认选中的菜单项
+			const defaultActiveMenu = computed(() => {
+				if (props.activeMenu) {
+					const menu = findMenuByTitle(props.activeMenu);
+					if (menu) return menu;
+				}
+				const firstItem = props.menuList[0];	// = menuListComputed.value[0];。去掉左侧栏的两级菜单。Lin
+				if (!firstItem) return null;
+				//功能: 默认选中第一个一级菜单(不默认跳到第一个二级)by xu 20251224
+				return firstItem;
+			});
+
+			const currentMenu = ref(defaultActiveMenu.value);
+
+			// 监听外部activeMenu变化
+			watch(
+					() => props.activeMenu,
+					(newTitle) => {
+						if (newTitle) {
+							const menu = findMenuByTitle(newTitle);
+							if (menu) {
+								currentMenu.value = menu;
+							}
+						}
+					}
+			);
+
+			// 初始化:默认选中项加入已加载集合
+			watch(
+					currentMenu,
+					(menu) => {
+						if (menu?.name) {
+							loadedMenus.value.add(menu.name);
+						}
+					},
+					{ immediate: true }
+			);
+
+			// 选择菜单项时触发 menu-change 钩子
+			const selectItem = (item) => {
+				currentMenu.value = item;
+				// 标记为已加载
+				if (item.name) {
+					loadedMenus.value.add(item.name);
+				}
+				emit("menu-change", item);
+			};
+
+			// 处理底部按钮点击
+			const handleFooterClick = (button, index) => {
+				emit("footer-click", { button, index });
+			};
+
+			return {
+				currentMenu,
+				selectItem,
+				handleFooterClick,
+				getFooterIcon, //功能: SsSubTab 底部按钮支持 icon+文字(icon-base)by xu 20251224
+				isMenuLoaded,
+			};
+		},
+
+		template: `
+			<div class="cms-container"> <!-- ="project-edit-container"。Lin -->
+				<div class="left-side"
+						 v-if="leftDisplay">
+					<!-- 菜单内容 -->
+					<div class="menu-content">
+						<div class="scroll-view">
+							<template v-for="(menuItem, i) in menuList" :key="i"> <!-- in menuListComputed" :。去掉左侧栏的两级菜单。Lin -->
+								<!-- 普通菜单项 -->
+								<div class="menu-item"
+										 :class="[{ active: menuItem.name === currentMenu?.name }]"
+										 @click="selectItem(menuItem)">
+									<ss-icon :class="['menu-icon', menuItem.iconName]" />
+									<span class="menu-label">{{ menuItem.title }}</span>
+								</div>
+							</template>
+						</div>
+					</div>
+					<!-- 底部按钮 -->
+					<div v-if="footerButton"
+							 class="cms-menu-footer"
+							 :class="{ 'has-text': !!footerButton.text }"
+							 @click="footerButton.onclick">
+						<ss-icon :class="['menu-base-icon', footerButton.iconName]" />
+						<div class="footer-label" v-if="footerButton.text">{{ footerButton.text }}</div>
+					</div>
+				</div>
+				<!-- 右侧内容区域 - 懒加载 iframe -->
+				<div class="content-area fit-height-content" style="overflow: hidden;" :style="!leftDisplay ? { width: '100%' } : {}">
+					<template v-for="(menuItem, i) in menuList" :key="i">
+						<iframe
+								v-if="isMenuLoaded(menuItem.name)"
+								:src="menuItem.url"
+								style="height: 100%;width: 100%;"
+								frameborder="0"
+								class="sub-tab-iframe"
+								:id="i === 0 ? 'sub-tab-iframe' : ''"
+								v-show="currentMenu?.name === menuItem.name"
+						/>
+					</template>
+				</div>
+			</div>
+		`,
+	};
+/////
+
+	// ss-photo-upload 通用图片上传组件
+	const SsImgUpload = {
+		name: "SsImgUpload",
+		props: {
+/// 再增加,增加支持上传成功后的回调 -- 抄自 SsObjp(<ss-objp)。Lin
+			onchange: {
+				//在此属性传入onChange的window全局回调函数,函数唯一参数是当前选中值 Ben(20251217)
+				type: String,
+				required: false,
+			},
+///
+			name: {
+				type: String,
+				required: true,
+			},
+			// 图片URL,用于回显
+			// url: {
+			//   type: String,
+			//   default: "",
+			// },
+			// 样式类名
+			class: {
+				type: String,
+				required: false,	// : true,。没有 class= 时,为没有 缩略图 的上传。Lin
+			},
+			// 裁剪配置
+			cropperOpt: {
+				type: Object,
+				default: () => ({
+					width: 360,
+					height: 360,
+					aspectRatio: NaN,	// : 1,。改,增加支持自由裁剪比例 -- 不锁定宽高比。Lin
+				}),
+			},
+			//上传图片url(未加图片名参数之前的部分)
+			ulUrl: {
+				type: String,
+				required: true,
+			},
+			//下载图片url(未加图片名参数之前的部分)
+			dlUrl: {
+				type: String,
+				required: true,
+			},
+			modelValue: [String, Number],
+		},
+
+		emits: ["update:modelValue"],
+
+		setup(props, { emit }) {
+			const inputId = Vue.computed(
+				() => `file_${Vue.getCurrentInstance().uid}`
+			);
+			//修改图片初始显示路径
+			let pathVal = ref(props.modelValue);
+			let srcBaseName = pathVal.value.split('_')[1];	// 再增加,增加上传的源文件名 0/<uuid>_<源文件名>.jpg -- 用于不显示图片或非图片时显示源文件名。Lin
+			let picUrl = ref("");
+			if (props.modelValue) {
+				picUrl.value = props.dlUrl + "&path=" + props.modelValue;
+			}
+
+///// 再增加,增加支持上传成功后的回调 -- 抄自 SsUpload(<ss-ul)。Lin。Lin
+			// 功能说明:封装 modelValue 变化后的联动逻辑,兼容用户点击和桥接 API 赋值 by xu 20260416
+			const handleModelValueChange = (newValue) => {
+				if (!props.onchange || typeof props.onchange !== "string" ||
+						typeof window === "undefined" || !window[props.onchange] ||	typeof window[props.onchange] !== "function")
+					return;
+				try {
+					window[props.onchange](newValue);	// (value, desc)。Lin
+				} catch (error) {
+					console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
+				}
+			};
+
+			Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true });
+/////
+
+			Vue.onMounted(() => {
+				window.SS.cropper.init({
+					el: $(`#${inputId.value}`),
+					photoSize: {
+						width: props.cropperOpt.width,
+						height: props.cropperOpt.height,
+					},
+					aspectRatio: props.cropperOpt.aspectRatio,
+					uploadUrl: props.ulUrl,
+					success: (path) => {
+						pathVal.value = path;
+						srcBaseName = path.split('_')[1];	// 再增加,增加上传的源文件名 0/<uuid>_<源文件名>.jpg -- 用于不显示图片或非图片时显示源文件名。Lin
+						picUrl.value = props.dlUrl + "&path=" + path;
+						emit("update:modelValue", path);
+					},
+				});
+			});
+
+			return () => {
+/// 增加,支持没有缩略图的上传 -- 没有 class= 时,为没有 缩略图 的上传。Lin
+ // 没有缩略图:
+ //    点击整个 <td 框,就像点击 "名称" 的 <td 框一样
+ //    上传的文件名显示在 <td 里,就像显示名称一样
+				if (!props.class) {
+					return h("div", {style: "width: 100%;height: 100%;" }, [
+						h("input", {
+							type: "file",
+						accept: "image/*",
+							id: inputId.value,
+							style: { display: "none" },
+						}),
+						h("input", {
+							type: "hidden",
+							name: props.name,
+							value: pathVal.value,
+						}),
+						h(
+								"div",
+								{
+									style: {
+										width: "100%",
+										height: "100%",
+										alignContent: "center",
+										padding: "0 15px",
+									},
+									onClick: () => $(`#${inputId.value}`).click(),
+								},
+								srcBaseName
+						),
+					]);
+				}
+///
+				h("div", {class: [props.class]}, [
+					h("input", {
+						type: "file",
+						accept: "image/*",
+						id: inputId.value,
+						style: {display: "none"},
+					}),
+					h("input", {
+						type: "hidden",
+						name: props.name,
+						value: pathVal.value,
+					}),
+					h(
+							"div",
+							{
+								style: {
+									width: "100%",
+									height: "100%",
+								},
+								onClick: () => $(`#${inputId.value}`).click(),
+							},
+							[
+								picUrl.value &&
+								h("img", {
+									src: picUrl.value,
+									style:
+											"width: 100%; height: 100%;object-fit: inherit;position: relative;z-index: 11;",
+								}),
+							]
+					),
+				]);
+			}
+		},
+	};
+
+
+///// 再增加,增加 SsUpload(ss-ul)。抄自下面的 SsImgUpload(<ss-img)。Lin
+	// ss-photo-upload 通用图片上传组件
+	const SsUpload = {
+		name: "SsUpload",
+		props: {
+/// 再增加,增加支持上传成功后的回调 -- 抄自 SsObjp(<ss-objp)。Lin
+			onchange: {
+				//在此属性传入onChange的window全局回调函数,函数唯一参数是当前选中值 Ben(20251217)
+				type: String,
+				required: false,
+			},
+///
+			name: {
+				type: String,
+				required: true,
+			},
+			class: {
+				type: String,
+				required: false,	// : true,。没有 class= 时,为没有 缩略图 的上传。Lin
+			},
+			// 裁剪配置
+			cropperOpt: {
+				type: Object,
+				default: () => ({
+					width: 360,
+					height: 360,
+					aspectRatio: NaN,	// : 1,。改,增加支持自由裁剪比例 -- 不锁定宽高比。Lin
+				}),
+			},
+			//上传图片url(未加图片名参数之前的部分)
+			ulUrl: {
+				type: String,
+				required: true,
+			},
+			//下载图片url(未加图片名参数之前的部分)
+			dlUrl: {
+				type: String,
+				required: true,
+			},
+			modelValue: [String, Number],
+		},
+
+		emits: ["update:modelValue"],
+
+		setup(props, { emit }) {
+			const inputId = Vue.computed(
+					() => `file_${Vue.getCurrentInstance().uid}`
+			);
+			//修改图片初始显示路径
+			let pathVal = ref(props.modelValue);
+			let srcBaseName = pathVal.value.split('_')[1];	// 再增加,增加上传的源文件名 0/<uuid>_<源文件名>.jpg -- 用于不显示图片或非图片时显示源文件名。Lin
+			let picUrl = ref("");
+			if (props.modelValue) {
+				picUrl.value = props.dlUrl + "&path=" + props.modelValue;
+			}
+
+///// 再增加,增加支持上传成功后的回调 -- 抄自 SsObjp(<ss-objp)。Lin。Lin
+			// 功能说明:封装 modelValue 变化后的联动逻辑,兼容用户点击和桥接 API 赋值 by xu 20260416
+			const handleModelValueChange = (newValue) => {
+				if (!props.onchange || typeof props.onchange !== "string" ||
+						typeof window === "undefined" || !window[props.onchange] ||	typeof window[props.onchange] !== "function")
+					return;
+				try {
+					window[props.onchange](newValue);	// (value, desc)。Lin
+				} catch (error) {
+					console.error(`调用全局函数 ${props.onchange} 时出错:`, error);
+				}
+			};
+
+			Vue.watch(() => props.modelValue, handleModelValueChange, { immediate: true });
+/////
+
+			Vue.onMounted(() => {
+				window.SS.cropper.init({
+					el: $(`#${inputId.value}`),
+					photoSize: {
+						width: props.cropperOpt.width,
+						height: props.cropperOpt.height,
+					},
+					aspectRatio: props.cropperOpt.aspectRatio,
+					uploadUrl: props.ulUrl,
+					success: (path) => {
+						pathVal.value = path;
+						srcBaseName = path.split('_')[1];	// 再增加,增加上传的源文件名 0/<uuid>_<源文件名>.jpg -- 用于不显示图片或非图片时显示源文件名。Lin
+						picUrl.value = props.dlUrl + "&path=" + path;
+						emit("update:modelValue", path);
+					},
+				});
+			});
+
+			return () => {
+/// 增加,支持没有缩略图的上传 -- 没有 class= 时,为没有 缩略图 的上传。Lin
+ // 没有缩略图:
+ //    点击整个 <td 框,就像点击 "名称" 的 <td 框一样
+ //    上传的文件名显示在 <td 里,就像显示名称一样
+				if (!props.class) {
+					return h("div", {style: "width: 100%;height: 100%;" }, [
+						h("input", {
+							type: "file",
+//						accept: "image/*",	// 去掉,可以是其他文件。Lin
+							id: inputId.value,
+							style: { display: "none" },
+						}),
+						h("input", {
+							type: "hidden",
+							name: props.name,
+							value: pathVal.value,
+						}),
+						h(
+								"div",
+								{
+									style: {
+										width: "100%",
+										height: "100%",
+										alignContent: "center",
+										padding: "0 15px",
+									},
+									onClick: () => $(`#${inputId.value}`).click(),
+								},
+								srcBaseName
+						),
+					]);
+				}
+///
+				return h("div", { class: [props.class] }, [
+						h("input", {
+							type: "file",
+							accept: "image/*",
+							id: inputId.value,
+							style: { display: "none" },
+						}),
+						h("input", {
+							type: "hidden",
+							name: props.name,
+							value: pathVal.value,
+						}),
+						h(
+								"div",
+								{
+									style: {
+										width: "100%",
+										height: "100%",
+									},
+									onClick: () => $(`#${inputId.value}`).click(),
+								},
+								[
+									picUrl.value &&
+									h("img", {
+										src: picUrl.value,
+										style:
+												"width: 100%; height: 100%;object-fit: inherit;position: relative;z-index: 11;",
+									}),
+								]
+						),
+					]);
+			}
+		},
+	};
+/////
+
+
+	// 初始化函数,负责创建和挂载 Vue 应用
+	// window.SS = { dom: {} };
+	/**
+	 * 获取当前窗口的父窗口
+	 * @returns {Window} 父窗口对象
+	 */
+	window.SS.topWin = (function (p, c) {
+		while (p != c) {
+			c = p;
+			p = p.parent;
+		}
+		return c;
+	})(window.parent, window);
+
+	window.SS.createSsDialogInstance = createSsDialogInstance;
+	/**
+	 * 创建弹窗
+	 * @param {Object} setting
+	 * @param {Function} callbackEvent
+	 */
+	window.SS.openDialog = function (setting, callbackEvent) {
+		if (setting.params) {
+			const encodedParams = encodeURIComponent(JSON.stringify(setting.params));
+			setting.src +=
+				(setting.src.includes("?") ? "&" : "?") + "params=" + encodedParams;
+		}
+
+		if (window.parent && window.parent !== window) {
+			window.parent.SS.createSsDialogInstance(setting, callbackEvent);
+		} else {
+			createSsDialogInstance(setting, callbackEvent);
+		}
+	};
+	//关闭弹窗
+	window.SS.closeDialog = function () {
+		console.log("关闭弹窗");
+		if (topWindow.dialogInstances.length > 0) {
+			const instance = topWindow.dialogInstances.pop();
+			console.log("instance", instance);
+			console.log("instance.callbackEvent", instance.callbackEvent);
+			console.log(
+				"instance.callbackEvent.end",
+				typeof instance.callbackEvent === "function"
+			);
+			if (instance.callbackEvent) {
+				// 判断是否有end回调并执行
+				if (typeof instance.callbackEvent === "function") {
+					instance.callbackEvent();
+				}
+				if (typeof instance.callbackEvent.end === "function") {
+					instance.callbackEvent.end();
+				}
+			}
+			instance.app.unmount(); // 卸载最后一个实例
+			if (instance.container && instance.container.parentNode) {
+				instance.container.parentNode.removeChild(instance.container); // 移除容器
+			}
+		}
+	};
+
+	/**
+	 * 裁剪插件
+	 */
+	window.SS.cropper = {
+		init: function (setting) {
+			if (!window.top.SS) window.top.SS = {};
+			// 重要:确保 cropper 对象的完整初始化
+			if (!window.top.SS.cropper) {
+				window.top.SS.cropper = {
+					settings: new Map(),
+					_backupSettings: {},
+					getSetting: this.getSetting,
+					clearSetting: this.clearSetting,
+					debug: this.debug,
+				};
+			} else if (!window.top.SS.cropper.settings) {
+				// 如果 cropper 存在但 settings 不存在,重新初始化 settings
+				window.top.SS.cropper.settings = new Map();
+				window.top.SS.cropper._backupSettings = {};
+			}
+			const uploaderId = `uploader_${Date.now()}_${Math.random()
+				.toString(36)
+				.substr(2, 9)}`;
+
+			window.top.SS.cropper.settings.set(uploaderId, setting);
+			window.top.SS.cropper._backupSettings[uploaderId] = setting;
+
+			setting.box = setting.box || "1";
+			var winSetting = {
+				headerTitle: "图片裁剪",
+				src: "/js/cropper/cropper.jsp", //原来在"/newUI/page/cropper.jsp" Ben(20251205)
+				width: "900",
+				height: "500",
+			};
+
+			$(setting.el).change(function () {
+				if (!window.SS.cropper.verify(setting)) {
+					$(setting.el).val(""); // 清空文件选择
+					return false;
+				}
+				var files = this.files;
+				if (files && files.length) {
+					if (!window.SS.cropper.verifySize($(setting.el)[0], 5)) {
+						$(setting.el).val(""); // 清空文件选择
+						alert("文件大小不能超过5M,请重新选择");
+						return false;
+					}
+					var URL = window.URL || window.webkitURL;
+					var file = files[0];
+					setting.file = file;
+
+					if (
+						/^image\/\w+$/.test(file.type) &&
+						/\.(jpg|jpeg|png|)$/i.test(file.name)
+					) {
+						const uploadedImageURL = URL.createObjectURL(file);
+/// 再增加,增加支持自由裁剪比例 -- 没有指定 width 和 height 时,不锁定比例。Lin
+						if (!setting.aspectRatio) {	// 没有指定 width 和 height。Lin
+							const img = new Image();
+							img.onload = () => {
+//							URL.revokeObjectURL(uploadedImageURL); // 释放内存。先去掉,不释放。Lin
+								console.log("图片原始宽、高:" + img.width + "*" + img.height);
+								setting.photoSize.width = img.width;
+								setting.photoSize.height = img.height;
+							};
+							img.src = uploadedImageURL;
+						}
+///
+						setting.data = uploadedImageURL;
+						setting.fileName = file.name;
+						// console.log()
+						winSetting.params = {
+							...setting,
+							uploaderId,
+						};
+						console.log("ss-componets中change之后的winSetting", winSetting);
+						SS.openDialog(winSetting, {
+							success: function (win) {
+								console.log("裁剪插件成功");
+								// win.cropperSetting = setting;
+							},
+							end: function () {
+								console.log("裁剪插件结束");
+								$(setting.el).val(""); // 清空文件选择
+							},
+						});
+					} else {
+/* 再改,增加非图片时直接上传。Lin
+						alert("请选择图片文件,支持jpg、jpeg、png格式");
+*/
+						const reader = new FileReader();
+						reader.onload = (e) => {
+							const blob = new Blob([e.target.result], {type: 'application/octet-stream'});
+/// 抄自 cropper.jsp 里的 getCroppedCanvas: function () { -- "获取上传裁剪图片"。Lin
+							const formData = new FormData();
+							formData.append('fileEdit', new File([blob], file.name));	// , setting.fileName))。Lin
+							formData.append("application", "");	// "如果没有这个,后台会报错"。Lin
+																															// FtpServ.rdFileItemMapByReq() 里取不到 Map."true" -- Key = true 时,Value 为 fieldName = "application"。Lin
+							$.ajax(setting.uploadUrl, {
+								method: "POST",
+								data: formData,
+								processData: false,
+								contentType: false,
+								dataType: 'json',
+								success(data) {
+									if (data.fileList.length > 0) {
+										setting.success(data.fileList[0].path);
+										window.top.SS.cropper.clearSetting(uploaderId);
+									} else {
+										console.log('data.data[0].msg',data.data[0].msg);
+									}
+								},
+								error() {
+									alert('error');
+								}
+							});
+///
+						};
+						reader.readAsArrayBuffer(file);
+
+					}
+				}
+			});
+			return uploaderId;
+		},
+		verify: function (setting) {
+			if (!setting) {
+				console.error(" cropper setting is not undefined! ");
+				return false;
+			}
+			if (!setting.el) {
+				console.error(" cropper setting.el is not undefined! ");
+				return false;
+			}
+			if (setting.photoSize) {
+				if (
+					(!setting.photoSize.width && setting.photoSize.height) ||
+					(!setting.photoSize.height && setting.photoSize.width)
+				) {
+					console.error(
+						" cropper setting.photoSize { width, height } is not undefined! "
+					);
+					return false;
+				}
+			}
+			if (!setting.box) {
+				setting.box = "1";
+			}
+
+			if (!setting.aspectRatio) {
+				setting.aspectRatio = NaN;	// = 1 / 1;。改,增加支持自由裁剪比例 -- 不锁定宽高比。Lin
+			}
+
+			return true;
+		},
+		verifySize: function (fileEl, maxSize) {
+			// 判断是否为IE浏览器: /msie/i.test(navigator.userAgent) 为一个简单正则
+			var isIE = /msie/i.test(navigator.userAgent) && !window.opera;
+			var fileSize = 0;
+			if (isIE && !fileEl.files) {
+				// IE浏览器
+				var filePath = fileEl.value; // 获得上传文件的绝对路径
+				var fileSystem = new ActiveXObject("Scripting.FileSystemObject");
+				var file = fileSystem.GetFile(filePath);
+				fileSize = file.Size; // 文件大小,单位:b
+			} else {
+				// 非IE浏览器
+				fileSize = fileEl.files[0].size;
+			}
+
+			var size = fileSize / 1024 / 1024;
+			return !(size > maxSize);
+		},
+		// 获取特定上传组件的setting
+		getSetting: function (uploaderId) {
+			if (!window.top.SS?.cropper) {
+				console.warn("顶层窗口中未找到 SS.cropper");
+				return null;
+			}
+
+			// 优先从 Map 中获取
+			let setting = window.top.SS.cropper.settings.get(uploaderId);
+
+			// 如果 Map 中没有,尝试从备份中获取
+			if (!setting && window.top.SS.cropper._backupSettings[uploaderId]) {
+				console.log("从备份中恢复 setting");
+				setting = window.top.SS.cropper._backupSettings[uploaderId];
+				// 恢复到 Map 中
+				window.top.SS.cropper.settings.set(uploaderId, setting);
+			}
+
+			return setting;
+		},
+
+		// 清理特定上传组件的setting
+		clearSetting: function (uploaderId) {
+			if (!window.top.SS?.cropper) return;
+
+			window.top.SS.cropper.settings.delete(uploaderId);
+			delete window.top.SS.cropper._backupSettings[uploaderId];
+			console.log(
+				"清理设置后的 Map size:",
+				window.top.SS.cropper.settings.size
+			);
+		},
+	};
+
+	/**
+	 * 获取url中的参数
+	 * @returns {Object}
+	 */
+	window.SS.getQueryParams = function () {
+		const params = {};
+		const queryString = window.location.search.substring(1);
+		const pairs = queryString.split("&");
+		for (let i = 0; i < pairs.length; i++) {
+			const pair = pairs[i].split("=");
+			params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
+		}
+		if (params.params) {
+			try {
+				params.params = JSON.parse(params.params);
+			} catch (e) {
+				console.error("Failed to parse params:", e);
+			}
+		}
+
+		return params;
+	};
+
+	/**
+	 * 创建vue应用
+	 * @param {Object} config 配置项
+	 * @values {String} config.el 挂载的元素
+	 * @values {Boolean} config.isDialogPage 是否是弹窗页面 决定了是否可以使用顶天立地
+	 * @values {Object} config.vueOptions vue配置项
+	 * @returns {Object} vue实例
+	 */
+	window.ss = window.ss || window.SS;
+	window.ss.dom = window.ss.dom || window.SS.dom;
+	window.SS.dom._vueAppSeq =
+		window.SS.dom._vueAppSeq || window.ss.dom._vueAppSeq || 0;
+	window.SS.dom.vueApps = window.SS.dom.vueApps || window.ss.dom.vueApps || [];
+	window.ss.dom._vueAppSeq = window.SS.dom._vueAppSeq;
+	window.ss.dom.vueApps = window.SS.dom.vueApps;
+
+	window.SS.dom._registerVueApp = function ({ vm, el, appKey, scope, href }) {
+		if (!vm) return null;
+		const registry = window.SS.dom.vueApps || (window.SS.dom.vueApps = []);
+		const id = `vue-app-${++window.SS.dom._vueAppSeq}`;
+		const record = {
+			id,
+			el: el || "",
+			appKey: appKey || "",
+			scope: scope || "current",
+			href: href || window.location.href,
+			createdAt: Date.now(),
+			vm,
+			win: window,
+		};
+		registry.push(record);
+		window.SS.dom.currentApp = vm;
+		window.SS.dom.currentAppRecord = record;
+		if (window.ss && window.ss.dom) {
+			window.ss.dom.vueApps = registry;
+			window.ss.dom._vueAppSeq = window.SS.dom._vueAppSeq;
+			window.ss.dom.currentApp = vm;
+			window.ss.dom.currentAppRecord = record;
+		}
+		return record;
+	};
+
+	window.SS.dom._getVmData = function (vm) {
+		if (!vm) return null;
+		return vm.$data || vm;
+	};
+
+	window.SS.dom._hasVmKey = function (vm, key) {
+		if (!vm || !key) return false;
+		const data = window.SS.dom._getVmData(vm);
+		return key in vm || (!!data && key in data);
+	};
+
+	window.SS.dom._hasVmMethod = function (vm, methodName) {
+		return !!(vm && methodName && typeof vm[methodName] === "function");
+	};
+
+	window.SS.dom._normalizeBridgeOptions = function (
+		options = {},
+		defaults = {}
+	) {
+		return {
+			scope: "chain",
+			...defaults,
+			...options,
+		};
+	};
+
+	window.SS.dom._matchVueRecord = function (record, options = {}) {
+		if (!record || !record.vm) return false;
+		if (options.appKey && record.appKey !== options.appKey) return false;
+		if (options.el && record.el !== options.el) return false;
+		if (options.id && record.id !== options.id) return false;
+		if (
+			options.dataKey &&
+			!window.SS.dom._hasVmKey(record.vm, options.dataKey)
+		) {
+			return false;
+		}
+		if (
+			options.methodName &&
+			!window.SS.dom._hasVmMethod(record.vm, options.methodName)
+		) {
+			return false;
+		}
+		if (typeof options.predicate === "function") {
+			try {
+				if (!options.predicate(record.vm, record)) {
+					return false;
+				}
+			} catch (e) {
+				return false;
+			}
+		}
+		return true;
+	};
+
+	window.SS.dom._getWindowVueRecord = function (targetWindow, options = {}) {
+		if (!targetWindow || !targetWindow.SS || !targetWindow.SS.dom) return null;
+		const registry = targetWindow.SS.dom.vueApps || [];
+		for (let i = registry.length - 1; i >= 0; i--) {
+			if (targetWindow.SS.dom._matchVueRecord(registry[i], options)) {
+				return registry[i];
+			}
+		}
+		const currentRecord = targetWindow.SS.dom.currentAppRecord;
+		if (targetWindow.SS.dom._matchVueRecord(currentRecord, options)) {
+			return currentRecord;
+		}
+		const currentVm = targetWindow.SS.dom.currentApp;
+		const fallbackRecord = currentVm
+			? {
+					vm: currentVm,
+					win: targetWindow,
+					el: "",
+					appKey: "",
+					id: "",
+				}
+			: null;
+		if (targetWindow.SS.dom._matchVueRecord(fallbackRecord, options)) {
+			return fallbackRecord;
+		}
+		return null;
+	};
+
+	window.SS.dom.getVueAppRecord = function (options = {}) {
+		const scope = options.scope || "current";
+		if (scope === "current") {
+			return window.SS.dom._getWindowVueRecord(window, options);
+		}
+		if (scope === "top") {
+			try {
+				return window.SS.dom._getWindowVueRecord(window.top, options);
+			} catch (e) {
+				return null;
+			}
+		}
+		if (scope === "parent") {
+			try {
+				if (window.parent && window.parent !== window) {
+					return window.SS.dom._getWindowVueRecord(window.parent, options);
+				}
+			} catch (e) {
+				return null;
+			}
+			return null;
+		}
+		if (scope === "chain") {
+			let currentWindow = window;
+			while (currentWindow) {
+				try {
+					const record = window.SS.dom._getWindowVueRecord(
+						currentWindow,
+						options
+					);
+					if (record) {
+						return record;
+					}
+				} catch (e) {
+					return null;
+				}
+				if (currentWindow === currentWindow.parent) {
+					break;
+				}
+				currentWindow = currentWindow.parent;
+			}
+			return null;
+		}
+		return window.SS.dom._getWindowVueRecord(window, options);
+	};
+
+	window.SS.dom.getVueApp = function (options = {}) {
+		const record = window.SS.dom.getVueAppRecord(options);
+		return record ? record.vm : null;
+	};
+
+	window.SS.dom.getVmValue = function (key, options = {}) {
+		const vm = window.SS.dom.getVueApp(
+			window.SS.dom._normalizeBridgeOptions(options, { dataKey: key })
+		);
+		if (!vm) return undefined;
+		return vm[key];
+	};
+
+	window.SS.dom.setVmValue = function (key, value, options = {}) {
+		const vm = window.SS.dom.getVueApp(
+			window.SS.dom._normalizeBridgeOptions(options, { dataKey: key })
+		);
+		if (!vm) return false;
+		vm[key] = value;
+		return true;
+	};
+
+	window.SS.dom.callVmMethod = function (methodName, args = [], options = {}) {
+		const vm = window.SS.dom.getVueApp(
+			window.SS.dom._normalizeBridgeOptions(options, { methodName })
+		);
+		if (!vm || typeof vm[methodName] !== "function") {
+			return undefined;
+		}
+		return vm[methodName].apply(vm, args);
+	};
+
+	window.SS.dom.get = function (key, options = {}) {
+		return window.SS.dom.getVmValue(key, options);
+	};
+
+	window.SS.dom.set = function (key, value, options = {}) {
+		return window.SS.dom.setVmValue(key, value, options);
+	};
+
+	window.SS.dom.call = function (methodName, args = [], options = {}) {
+		return window.SS.dom.callVmMethod(methodName, args, options);
+	};
+
+	[
+		"_registerVueApp",
+		"_getVmData",
+		"_hasVmKey",
+		"_hasVmMethod",
+		"_normalizeBridgeOptions",
+		"_matchVueRecord",
+		"_getWindowVueRecord",
+		"getVueAppRecord",
+		"getVueApp",
+		"getVmValue",
+		"setVmValue",
+		"callVmMethod",
+		"get",
+		"set",
+		"call",
+	].forEach((name) => {
+		window.ss.dom[name] = window.SS.dom[name];
+	});
+
+	window.SS.dom.initializeFormApp = function (config) {
+		const {
+			el,
+			isDialogPage = false,
+			appKey = "",
+			scope = "current",
+			...vueOptions
+		} = config;
+		const app = createApp({
+			...vueOptions,
+		});
+		if (isDialogPage) {
+			function checkScroll() {
+				const elements = document.querySelectorAll(".fit-height-content");
+				let hasScrollBar = false;
+				elements.forEach((el) => {
+					if (el.scrollHeight > el.clientHeight) {
+						hasScrollBar = true;
+					}
+				});
+				window.parent.postMessage({ hasScrollBar }, "*");
+			}
+
+			function addScrollListeners() {
+				const elements = document.querySelectorAll("div");
+				elements.forEach((el) => {
+					el.addEventListener("scroll", checkScroll);
+				});
+			}
+			const observer = new MutationObserver(() => {
+				addScrollListeners();
+				checkScroll();
+			});
+
+			observer.observe(document.body, {
+				childList: true,
+				subtree: true,
+			});
+
+			window.addEventListener("resize", checkScroll);
+		}
+		app.component("SsLoginIcon", SsLoginIcon);
+		app.component("SsMark", SsMark);
+		app.component("SsFullStyleHeader", SsFullStyleHeader);
+		app.component("SsDialog", SsDialog);
+		app.component("SsInp", SsInput);
+		app.component("SsObjp", SsObjp);
+		app.component("SsHidden", SsHidden);
+		app.component("SsCcp", SsCcp);
+		app.component("SsDatePicker", SsDatePicker);
+		app.component("SsIcon", SsIcon);
+		app.component("SsCommonIcon", SsCommonIcon);
+		app.component("SsBreadcrumb", SsBreadcrumb);
+		app.component("SsEditor", SsEditor);
+		app.component("SsDialogIcon", SsDialogIcon);
+/* 再改,<ss-bottom-button 改为 <ss-btn -- 考虑合并 <ss-search-xxx 到 <ss-xxx 里 -- 增加 mode: 属性。Lin
+ * <ss-bottom-button 对 <ss-search-button,<ss-inp 对 <ss-search-inp
+		app.component("SsBottomButton", SsBottomButton);
+*/	app.component("ss-btn", SsBottomButton);
+		app.component("SsNavIcon", SsNavIcon);
+		app.component("SsHeaderIcon", SsHeaderIcon);
+		app.component("SsGolbalMenuIcon", SsGolbalMenuIcon);
+		app.component("SsCartListIcon", SsCartListIcon);
+		app.component("SsQuickIcon", SsQuickIcon);
+		app.component("SsFormIcon", SsFormIcon);
+		app.component("SsBottomDivIcon", SsBottomDivIcon);
+		app.component("SsEditorIcon", SsEditorIcon);
+		app.component("SsValidate", SsValidate);
+		app.component("SsOnoff", Ssonoff);
+		app.component("SsonoffArray", SsonoffArray);
+		app.component("SsTextarea", SsTextarea);
+		app.component("SsLoginInput", SsLoginInput);
+		app.component("SsLoginButton", SsLoginButton);
+		app.component("SsSearch", SsSearch);
+		app.component("SsCartItem", SsCartItem);
+		app.component("SsCartItem2", SsCartItem2);
+		app.component("SsListCard", SsListCard);
+		app.component("ss-cobj-card-list", SsCObjCardList);
+		app.component("SsFolderCard", SsFolderCard);
+		app.component("ss-sidebar", SsSidebar);
+		app.component("ss-sidebar-buttons", SsSidebarButtons);
+		app.component("ss-sidebar-chart", SsSidebarChart);
+		app.component("ss-sidebar-chart-hover", SsSidebarChartHover);
+		app.component("ss-sidebar-list", SsSidebarList);
+		app.component("ss-sidebar-report-table", SsSidebarReportTable);
+		app.component("SsFolderCartView", SsFolderCartView);
+		app.component("SsPage", SsPage);
+		app.component("SsRightInfo", SSRightInfo);
+		app.component("SsSuccessPopup", SsSuccessPopup);
+		app.component("SsErrorDialog", SsErrorDialog);
+		app.component("SsVerify", SsVerify);
+		app.component("SsVerifyNode", SsVerifyNode);
+		app.component("SsOrcImgBox", SsOrcImgBox);
+		app.component("ss-search-input", SsSearchInput);
+		app.component("ss-search-date-picker", SsSearchDatePicker);
+		app.component("ss-search-button", SsSearchButton);
+		app.component("ss-drop-button", SsDropButton);
+		app.component("ss-sub-tab", SsSubTab);
+		app.component("ss-cms", SsCms);
+		app.component("ss-img", SsImgUpload);
+		app.component("ss-ul", SsUpload);
+		app.use(ElementPlus, {
+			locale: ElementPlusLocaleZhCn,
+		});
+		for (const componentName in IndexComponents) {
+			app.component(componentName, IndexComponents[componentName]);
+		}
+		for (const componentName in EchartComponents) {
+			app.component(componentName, EchartComponents[componentName]);
+		}
+		let vm;
+		try {
+			vm = app.mount(el);
+			vm.data = vueOptions.data();
+			window.SS.dom._registerVueApp({
+				vm,
+				el,
+				appKey,
+				scope,
+				href: window.location.href,
+			});
+			console.log("vm:", vm);
+			console.log("vueOptions:", vueOptions);
+		} catch (error) {
+			console.log("Mount failed:" + error);
+		}
+
+		return vm;
+	};
 })();

+ 4 - 4
web/page/env/addChk.jsp

@@ -129,17 +129,17 @@
 				<div class="bottom-div" style="border: none; display:flex;flex-direction: column;position: absolute;"> 			
 					<div class="bottom-div-button" style="width: 100%;display:flex;justify-content: flex-end; gap:10px;padding-bottom: 10px;padding-top: 10px;">
 		
-					<ss-bottom-button
+					<ss-btn
 					  class="bottom-button-reject"
 					  text="退回"
 					  @click="onReject"
 					  icon-class="bottom-div-back"
-					></ss-bottom-button>
-					<ss-bottom-button
+					></ss-btn>
+					<ss-btn
 					  text="同意"
 					  @click="onSubmit"
 					  icon-class="bottom-div-save"
-					></ss-bottom-button>
+					></ss-btn>
 				  </div>
 				</div>
 				<div class="bottom-div" style="display: none;">

+ 6 - 6
web/page/env/addSure.jsp

@@ -143,22 +143,22 @@
 	<div class="bottom-div" style="border: none; display:flex;flex-direction: column;position: absolute;">
 		<input type="button" id="sureSubmitButton" value="确定" class="bottom-button" onclick="wd.display.submitToTopTab(this);" style="display:none;"/>
 		<div class="bottom-div-button" style="width: 100%;display:flex;justify-content: flex-end; gap:10px;padding-bottom: 10px;padding-top: 10px;">
-			<ss-bottom-button
+			<ss-btn
 				text="关闭"
 				@click="onDialogClose"
 				icon-class="bottom-div-close"
-			></ss-bottom-button>
+			></ss-btn>
 			<ss:equal val='${empty print}' val2='false'>
-				<ss-bottom-button
+				<ss-btn
 					text="打印"
 					@click="onPrint"
-				></ss-bottom-button>
+				></ss-btn>
 			</ss:equal>
-			<ss-bottom-button
+			<ss-btn
 				text="确定"
 				@click="onSubmit"
 				icon-class="bottom-div-save"
-			></ss-bottom-button>
+			></ss-btn>
 		</div>
 	</div>
 <input name='wdComponentID' type='hidden' value='addSure'/></form>

+ 4 - 4
web/page/env/chgChkTab.jsp

@@ -130,17 +130,17 @@
 					<div class="bottom-div" style="border: none; display:flex;flex-direction: column;position: absolute;"> 
 						
 						<div class="bottom-div-button" style="width: 100%;display:flex;justify-content: flex-end; gap:10px;padding-bottom: 10px;padding-top: 10px;">
-							<ss-bottom-button
+							<ss-btn
 									class="bottom-button-reject"
 									text="退回"
 									@click="onReject"
 									icon-class="bottom-div-back"
-							></ss-bottom-button>
-							<ss-bottom-button
+							></ss-btn>
+							<ss-btn
 									text="同意"
 									@click="onSubmit"
 									icon-class="bottom-div-save"
-							></ss-bottom-button>
+							></ss-btn>
 						</div>
 					</div>
 					

+ 89 - 0
web/page/env/cmsAdd.jsp

@@ -0,0 +1,89 @@
+<%@ page pageEncoding="UTF-8" isELIgnored="false" %>
+<!DOCTYPE html>
+<html>
+<head>
+	<meta http-equiv="pragma" content="no-cache">
+	<meta http-equiv="cache-control" content="no-cache">
+	<meta http-equiv="expires" content="0">
+	<script src="/ss/jquery/jquery.js"></script>
+	<script src="/js/load.js"></script>
+	<script src="/js/display.js"></script>
+	<script src="/js/form.js"></script>
+	<script>
+		window.ss.dom.formElemConfig = window.ss.dom.formElemConfig || {};
+		window.ss.dom.btnElemConfig = window.ss.dom.btnElemConfig|| {};
+	</script>
+</head>
+<body class="env-input-body">
+<form id="app" action="/service?ssServ=saveCms" method="post" class="form-container">
+	<div class="content-box fit-height-content">
+
+		<div class='content-div' ssFith="true">
+			<table class='form'>
+				<tr>
+					<th style="width:160px;">名称</th>
+					<td>
+						<%--自动生成:xmfybx.mc--%>
+						<script>
+							ss.dom.formElemConfig.mc={val:`${mc}`,type:window.ss.dom.TYPE.INPUT};
+						</script>
+						<ss-inp
+								v-model="mc"
+								name="mc"
+								:readonly="false"
+						>
+						</ss-inp>
+					</td>
+				</tr>
+				<tr>
+					<th style="width:160px;">文件</th>
+					<td>
+						<script>
+							ss.dom.formElemConfig.datawj={val:`${datawj}`,type:window.ss.dom.TYPE.INPUT.IMG};
+						</script>
+						<ss-ul
+								dl-url="<ss:serv name='dlByHttp'/>"
+								ul-url="/service?ssServ=ulByHttp"
+								v-model="datawj"
+								name="datawj"
+								:readonly="false"
+								onChange="wrMc"
+						>
+						</ss-ul>
+					</td>
+				</tr>
+			</table>
+		</div>
+	</div>
+
+	<div class='bottom-div'>
+		<ss-btn
+				text="保存并提交"
+<%-- 再改,直接使用 type="submit"。Lin
+				onclick="document.getElementById('app').submit()"
+--%>		type="submit"
+				icon-class="bottom-div-save"
+		></ss-btn>
+		<ss-btn
+				text="关闭"
+				onclick='SS.closeDialog()'
+				icon-class="bottom-div-close"
+		></ss-btn>
+	</div>
+	<input name='wdComponentID' type='hidden' value='grcz_grczAdd'/></form>
+</body>
+<script>
+	window.onload = function() {
+		if ('${msg}') {
+			alert('${msg}');
+			SS.closeDialog();
+		}
+	}
+
+	function wrMc(value) {
+		console.log("进入获取 名称 方法");
+		console.log("入口参数值为:"+ value);
+	}
+</script>
+</html>
+<script type="module" src="/js/vue/initVue.js"></script> <%-- 来自 footer.jsp。去掉 tokenCleanser( 部分。Lin --%>

+ 182 - 0
web/page/env/cmsEdit.jsp

@@ -0,0 +1,182 @@
+<%@ page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
+<%@ taglib uri="/ssTag" prefix="ss"%>
+<%pageContext.setAttribute("wdpageinformation","{'hastab':'1'}");%>
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="pragma" content="no-cache">
+<meta http-equiv="cache-control" content="no-cache">
+<meta http-equiv="expires" content="0">
+<script>window.loginStatus="${empty sessionScope['ssUser']?'0':'1'}"</script>
+<ss:skin file='main.css'/>
+<script type="text/javascript" src="/ss/jquery/jquery.js"></script>
+<script type="text/javascript" src="/ss/artdialog/artDialogUtil.js"></script>
+<script type="text/javascript" src="/ss/js/base.js"></script>
+<script> if(!window.wd) var wd={}; if(!wd.display) wd.display={}; wd.display.wdDialogId="objInfo"; if(!wd.app) wd.app={};  wd.app.name='pms';</script>
+<script type="text/javascript" src="/ss/js/masklayer.js"></script>
+<script type="text/javascript" src="/ss/js/wdDialogInit.js"></script>
+<script type="text/javascript" src="/ss/js/common.js"></script>
+<script type="text/javascript" src="/ss/js/display.js"></script>
+<script type="text/javascript" src="/ss/js/edit.js"></script>
+<!-- <script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.js"></script>
+<script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.iframehelper.min.js"></script> -->
+
+<%-- 新UI引入的JS --%>
+<script src="/js/load.js"></script> <%-- ="/newUI/ss/js/base.js"。Lin(新UI) --%>
+
+</head>
+<body>
+<div id="app">
+	<div class="cms-container">
+		<ss-cms
+		:menu-list="tabConfig"
+		active-menu="相对方"
+		@menu-change="handleMenuChange"
+		:left-display="leftDisplay"
+		:footer-button="footerButton"
+	  />
+	</div>
+</div>
+
+<script type="text/javascript">var wdRecordValue='${wdRecordValue}';</script>
+<script type="text/javascript" src="/ss/js/wdRecord.js"></script>
+<script type="text/javascript">(function(){wdRecord("objInfo");})();</script>
+<script type="text/javascript" src="/ss/js/wdFitHeight.js"></script>
+<script type="text/javascript">initWdFitHeight(33)</script>
+<script type="text/javascript">initWdFitHeightFunction=function(){initWdFitHeight(33);};</script>
+<script type='text/javascript'>wd.display.wdTabNo='${ssNextTabNo}';</script><script type="text/javascript" src="/ss/js/wdDrag.js"></script>
+<script type="text/javascript" src="/ss/js/configurableTab.js"></script>
+<ss:help/>
+</body>
+<script type="text/javascript">
+try{wd.display.showMsgPopup('${msg}');
+}catch(err){console.error(err);}
+</script>
+</html>
+
+<script type="text/javascript">
+	<%-- 增加初始化选项卡json start Ben --%>
+	window.SS.dom.tabConfig = window.SS.dom.tabConfig || [];
+<%-- 先写死,模拟 查看单位 基本情况。Lin
+	<ss:rpt name='${tabList}' id='item'>
+	{
+	let item = {
+	url: "<ss:serv name='${item.servName}' dest='${item.dest}' parm='${item.parm}'/>",
+	title:"${item.desc}",
+	name:"${item.name}",
+	<%@-- 下面的属性是为了计算选项卡高度fitHeight准备的 --@%>
+	width:"${item.width}",
+	height:"${item.height}",
+	minHeight:"${item.minHeight}",
+	maxHeight:"${item.maxHeight}",
+	iconName:"${item.iconName}",
+	pobj:"${item.pobj}",
+	cobj:"${item.cobj}"
+	};
+	window.SS.dom.tabConfig.push(item);
+	}
+	</ss:rpt>
+--%>
+	let item = {
+		url: "<ss:serv name='dw_ck_jbqk' dest='dw_baseInfo' parm='{dwid:"10111",ssObjId:"10111",ssObjName:"dw",dataType:"play"}'/>",
+		title:"你好",
+		name:"baseInfo",
+		iconName:"icon-obj-dw",
+		width:"1000",
+		height:"600",
+		minHeight:"14",
+		maxHeight:"613",
+	};
+	window.SS.dom.tabConfig.push(item);
+
+	console.log('tabConfig:'+JSON.stringify(window.SS.dom.tabConfig));
+
+	<%-- 增加初始化选项卡json end Ben --%>
+
+	tokenCleanser("<ss:serv name='clearPageToken'/>", {tokenList:"<%= pageContext.getAttribute(ss.page.PageC.PAGE_tokenList)%>"});
+</script>
+<script type="module">
+
+const data = {
+	tabConfig: window.SS.dom.tabConfig.map(tab => ({
+		...tab,
+		cgxList: false,
+		
+	})),
+	leftDisplay: true,
+/* 改,改为单个按钮。Lin
+	footerButtons: [
+		{
+			//功能: SsSubTab 查看页底部按钮使用关闭图标(仅图标)by xu 20251224
+			iconName: "icon-close",
+			text: "关闭",
+			onclick: function(){
+				wd.display.closeDialog();
+			}
+		}
+	]
+*/
+	footerButton: {
+		//功能: SsSubTab 查看页底部按钮使用关闭图标(仅图标)by xu 20251224
+		iconName: "icon-add",
+		text: "增加",
+		onclick: function(){
+			SS.openDialog({
+				headerTitle: "你好",
+				src: "<ss:serv name='chkCmsNrid' dest='cmsAdd' parm='{nrid:"${nrid}"}'/>",
+				height: 400,
+				width: 600
+			});
+		}
+	}
+}
+	SS.ready(function () {
+		const app = window.SS.dom.initializeFormApp({
+			el: "#app",
+			data(){
+			return data;
+		},
+		methods:{
+			handleMenuChange(menu){
+				console.log('handleMenuChange', menu);
+			},
+			async showTagState(url) {
+				// 从每个tab的url中提取token
+				const tokenList = this.tabConfig.map(tab => {
+					const match = /ssToken=([^&]+)/.exec(tab.url);
+					return match ? match[1] : null;
+				});
+
+				try {
+					const response = await $.post(url, {
+						tokenList: JSON.stringify(tokenList)
+					});
+					
+					const result = eval("(" + response + ")");
+					
+					// 更新每个tab的状态
+					this.tabConfig = this.tabConfig.map((tab, index) => {
+						if (!result[index]) return tab;
+						return {
+						...tab,
+						cgxList: result[index].cgxList === true,
+						
+						};
+					});
+					console.log('更新标签状态成功:', this.tabConfig);
+				} catch (error) {
+					console.error('获取标签状态失败:', error);
+				}
+			}
+		},
+/* 去掉,没有 小圆点 了。Lin
+		mounted() {
+			this.showTagState("<ss@serv name='wrTabState' parm='{ssObjName:"$@{ssObjName}",ssObjId:"$@{ssObjId}","$@{ssObjIdName}":"$@{ssObjId}",dataType:"$@{dataType}"}'/>");	// ,wdConfirmationCaptchaService:"0",。Lin
+		}
+*/
+	})
+	
+		window.SS.dom.currentApp = app;
+
+	})
+	</script>

+ 9 - 5
web/page/env/cmsHome.ss.jsp

@@ -82,7 +82,7 @@
 </head>
 
 <body style="overflow: hidden;">
-<div class="nr-system-div" ssFith="true" style="width: 100%;position: relative;display: flex;overflow: hidden;">
+<div id="app" class="nr-system-div" ssFith="true" style="width: 100%;position: relative;display: flex;overflow: hidden;">
 <!--
 	<div class="nrsx">
 		<span>名称:${nrmc}</span>
@@ -90,8 +90,8 @@
 	</div>
 -->
 	<div id="float_menu" class="contextMenu-div">
-		<input class="contextMenu-button" type="button" value="删除" id="delete">
-		<input class="contextMenu-button" type="button" value="属性" id="fileProperty">
+		<input class="contextMenu-button" type="button" value="删除" id="delete"/>
+		<input class="contextMenu-button" type="button" value="属性" id="fileProperty"/>
 	</div>
 	<div id="leftDiv" style="width: 200px;height: 100%;overflow:auto;display: inline-block;position: relative;z-index: 9;" class="smallScroll cms-background" ssDragw="{min:180,max:300,right:true}"> <%-- wdDragWidth="min:180px,max:300px,side:right"。Lin --%>
 		<div id="container" style="width:100%;min-height: 100%;padding-bottom: 83px;box-sizing: border-box;">
@@ -103,11 +103,11 @@
 	</div>
 	<div class="mainDiv smallScroll" unselectable="on" ondragstart="return false;" onselectstart="return false;" style="-moz-user-select:none;width: 100%;height: 100%;vertical-align: top;overflow-x: hidden;" ssDragw=""> <%-- wdDragWidth=""。先保留,搞明白再去掉???Lin --%>
 	</div>
-	<input type="button" style="position:absolute;right:16px;top:16px;border: none;display:none;" id="fullscreen" class="" title="全屏/还原按钮">
+	<input type="button" style="position:absolute;right:16px;top:16px;border: none;display:none;" id="fullscreen" class="" title="全屏/还原按钮"/>
 </div>
 <div class='bottom-div'>
 	<!-- 底部区域 -->
-	<!--<input type="button" value="关闭" onclick="wd.display.closeDialog();"  class="bottom-button" >-->
+	<!--<@input type="button" value="关闭" onclick="wd.display.closeDialog();"  class="bottom-button" >-->
 </div>
 </body>
 
@@ -672,6 +672,7 @@
 		if ("${sftc}" == "0") {
 			sftc = 0;
 		}
+/* 先去掉,w 为空,导致 弹出的 cms 增加界面(cmsAdd) 藏在 cmsHome 后面 -- 临时应急。Lin
 		var w = wd.display.getwdDialogWindows();
 		//添加内容属性按钮
 		w.button("CMS_nrProperty").show();
@@ -692,12 +693,15 @@
 		if ("${nrlbm}" == "901001") {
 			w.button("CMS_nrProperty").hide();
 		}
+*/
 		$('.mainDiv').attr("isCmsFullScreen", 'false');
 		var items = $(".dragList").find(".item");
 		if (items == undefined || items.length == 0) {
+/* 先去掉,w 为空,导致 弹出的 cms 增加界面(cmsAdd) 藏在 cmsHome 后面 -- 临时应急。Lin
 			if (sftc) {
 				clicked();
 			}
+*/
 		} else {
 			var nrid = $(items[0]).find(".nrid").text();
 			var nrjslbm = $(items[0]).find(".nrjslbm").text();

+ 2 - 2
web/page/env/cobjChg.ss.jsp

@@ -41,9 +41,9 @@
 					_sizeinfo="width:${item.width},height:${item.height},minHeight:${item.minHeight}, maxHeight:${item.maxHeight}"
 <%-- 增加 删除二级对象的基本情况变动 功能,使用页面参数混写来传递 bdlbm 和 sqid。Lin
 					wdTabClick="<varServ@ss name='${item.service}' dest='${item.dest}' parm='${item.param}'/>"> --%>
-<%-- 再改,不在页面混写。Lin
+<%-- 再改,不在页面混写。规范 tabList 命名,。Lin
 					ssTabClick="<varServ.ss name='${item.service}' dest='${item.dest}' parm='{${item.paramStr},bdlbm:"${bdlbm}",sqid:"${sqid}"}'/>"> --%>
-					ssTabClick="<varServ.ss name='${item.service}' dest='${item.dest}' parm='${item.param}'/>">
+					ssTabClick="<varServ.ss name='${item.servName}' dest='${item.dest}' parm='${item.parm}'/>">
 				${item.desc}
 			</li>
 		</rpt.ss>

+ 18 - 185
web/page/env/cobjList.jsp

@@ -193,144 +193,6 @@
                         ></ss-search-input>
                     </template>
                 </template>
-                <template v-else>
-                    <%--关键词--%>
-                    <%-- 再去掉 -- 只支持一行。Lin
-                                <ss:rpt name='searchableFields' id='fieldsList'>
-                    --%>
-                    <ss:rpt name='fieldsList' id='searchItem'>
-                        <%
-                            ss.obj.ObjFieldB f = (ss.obj.ObjFieldB) pageContext.getAttribute("searchItem");
-                            pageContext.setAttribute("searchItemValue", request.getParameter(f.getName()));
-                        %>
-                        <%--codebook 使用select下拉--%>
-                        <ss:equal val='${empty searchItem.cbName}' val2='false'>
-                            <%--<input type="text" name="${searchItem.name}" value="${searchItemValue}"/>
-                            <input type="text" name="${searchItem.name}Name" placeholder="${searchItem.desc}" style="width:${searchItem.width};min-width: 108px;"/>
-                            <ss:equal val='${empty cadcadingInputs[searchItem.name]}' val2='true'>
-                                <ss:objp name='${searchItem.name}' cb='${searchItem.cbName}' inp='true'/>
-                            </ss:equal>--%>
-                            <ss-objp
-                                    v-model="${searchItem.name}"
-                                    name="${searchItem.name}"
-                                    :opt="${searchItem.name}Option"
-                                    placeholder="${searchItem.desc}"
-                                    width="120"
-                                    :inp="true"
-                                    url="/service?ssServ=loadObjpOpt&objectpickerdropdown1=1"
-                                    cb="${searchItem.cbName}"
-                            ></ss-objp>
-                            <script>
-                                /**
-                                 * objectPicker(如:性别码)
-                                 * optUrl:加载下拉菜单option选项的url
-                                 */
-                                window.SS.dom.formElemConfig.${searchItem.name} = {
-                                    desc: '${searchItem.desc}',
-                                    value: '${searchItemValue}',
-                                    optUrl: '123456',
-                                    type: 2
-                                };//放当前页面表单元素配置的变量
-                            </script>
-                        </ss:equal>
-                        <%--codebook 使用input输入框--%>
-                        <ss:equal val='${empty searchItem.cbName}' val2='true'>
-                            <%--日期--%>
-                            <ss:equal val='${searchItem.type}'
-                                      valList='3,11'> <%-- 改 equal:val1="true" val2='${searchItem.type == "time"}'。Lin --%>
-                                <div class="input-inside">
-                                        <%--年度--%>
-                                        <%--
-                                        <ss:equal val='${searchItem.enrolDate}' val2='true'>
-                                            <input type='hidden' placeholder="${searchItem.desc}" name='${searchItem.name}'
-                                                    value='<ss:txt val='${searchItemValue}'/>'/>
-                                            <div><input type="text" name="${searchItem.name}_year" autocomplete="off" />
-        <input name="${searchItem.name}_month" type="button" value="春季" ssVal="3"/>
-        <input name="${searchItem.name}_month" type="button" value="秋季" ssVal="9"/>
-        </div><script>(function(){wd.edit.onoffInit('radio','${searchItem.name}_month','',false,null,null,null,'edit');})();</script>
-        <script>(function(){
-        wd.display.initEnrolDate('${searchItem.name}','edit');
-        })()
-        </script>
-                                        </ss:equal>--%>
-                                        <%--日期--%>
-                                    <ss:equal val='${searchItem.type==11}' val2='true'>
-                                        <%--<input type='text' autocomplete="off" placeholder="${searchItem.desc}" name='${searchItem.name}'
-                                                value='<ss:txt val='${searchItemValue}'/>' format="${searchItem.fmt}"/>
-                                        <input type="button" ssType="date" ssName="${searchItem.name}"/>--%>
-                                        <ss-search-date-picker
-                                                v-model="${searchItem.name}"
-                                                name="${searchItem.name}"
-                                                type="date"
-                                                placeholder="${searchItem.desc}"
-                                                width="100px"
-                                        ></ss-search-date-picker>
-                                        <script>
-                                            //日期类型(如:出生日期)
-                                            window.SS.dom.formElemConfig.${searchItem.name} = {
-                                                desc: '${searchItem.desc}',
-                                                value: '${searchItemValue}',
-                                                type: 3,
-                                                name: '${searchItem.name}'
-                                            };//放当前页面表单元素配置的变量
-                                        </script>
-                                    </ss:equal>
-                                </div>
-                            </ss:equal>
-                            <%--文本--%>
-                            <ss:notEqual val='${searchItem.type}'
-                                         valList='3,11'> <%-- 改 equal:val1="false" val2='${searchItem.type == "time"}'。Lin --%>
-                                <%--<input name='${searchItem.name}' placeholder="${searchItem.desc}" type='text'
-                                            value='<ss:txt val='${searchItemValue}'/>'/>
-                                    <input type="hidden" ssType="and" ssName="${searchItem.name}"/>--%>
-                                <%--<script>wd.edit.addClearTextButton("${searchItem.name}");</script>--%>
-                                <ss-search-input
-                                        name="${searchItem.name}"
-                                        placeholder="${searchItem.desc}"
-                                        v-model="${searchItem.name}"
-                                        width="100px"
-                                >
-                                </ss-search-input>
-                                <script>
-                                    //日期类型(如:出生日期)
-                                    window.SS.dom.formElemConfig.${searchItem.name} = {
-                                        desc: '${searchItem.desc}',
-                                        value: '${searchItemValue}',
-                                        type: 31,
-                                        name: '${searchItem.name}'
-                                    };//放当前页面表单元素配置的变量
-                                </script>
-                            </ss:notEqual>
-                        </ss:equal>
-                    </ss:rpt>
-                    <%-- 再去掉 -- 只支持一行。Lin
-                                </ss:rpt>
-                    --%>
-                    <ss:rpt name='cadcadingName' id='item'><%-- 级联菜单,还不知道怎么出来的 --%>
-                        <ss:ccp name='${item}'/>
-                    </ss:rpt>
-                    <ss:equal val='${hasKeyWord}' val2='true'>
-                        <%--<input name="ssKeyword" value="${ssKeyword}" type="text" placeholder="关键词"/>
-                        <script>wd.edit.addClearTextButton("ssKeyword");</script>--%>
-                        <ss-search-input
-                                name="ssKeyword"
-                                placeholder="关键词"
-                                v-model="ssKeyword"
-                                width="100px"
-                        >
-                        </ss-search-input>
-
-                        <script>
-                            //关键词
-                            window.SS.dom.formElemConfig.ssKeyword = {
-                                value: '${ssKeyword}',
-                                name: "ssKeyword",
-                                desc: "关键词",
-                                type: 31
-                            };//放当前页面表单元素配置的变量
-                        </script>
-                    </ss:equal>
-                </template>
                 <ss-search-button
                         text="所有"
                         icon-class="nav-icon-search"
@@ -524,45 +386,6 @@
         </div>
         <%--搜索条件end--%>
 
-        <%--个人统计表start${!isMultipleObject}--%>
-        <ss:equal val='${"1"!=isReady && !isMultipleObject}' val2='true'>
-            <%-- 再改为 WebC.REQ_objName,避免与数据表里的 对象名 字段重名。用到再确认。Lin
-                     传到 objList.ss.jsp 的是 ${ssObjName},传给 addPstat 的是 dxm(统计指标.对象名、个人统计.对象名)
-                    <input name="addgrtjUrl" type="hidden" value="<serv@ss name='add_grtj' parm='{dxm:"${dxm}"}'/>"/> --%>
-            <input name="addgrtjUrl" type="hidden"
-                   value="<ss:serv name='addPcht' parm='{"dxm":"${ssObjName}"}'/>"/> <%-- {"wdConfirmationCaptchaService":"0",。Lin --%>
-            <input name="grtjSizeUrl" type="hidden"
-                   value="<ss:serv name='savePstatSize' parm='{"grtjSize":"ssVal{grtjSize}"}'/>"/> <%-- name='save_grtjSize'。{"wdConfirmationCaptchaService":"0",。Lin --%>
-            <input name="getgrtjJsonUrl" type="hidden"
-                   value="<ss:serv name='getgrtjJson'/>"/> <%-- parm='{"wdConfirmationCaptchaService":"0"}'。Lin --%>
-            <div class="graph scrollbar" style="padding-right: 16px;">
-                <ss:rpt name='${grtjList}' id='item'>
-                    <div class="graph-list" grtjid="${item.grtjid}" style="width:${item.kd};height:${item.gd};">
-                        <div class="graph-list-body" style="height: 100%;">${item.mc}</div>
-                        <span class="graph-list-mask"></span>
-                        <span class="graph-list-resize"></span>
-                        <span class="vLine"
-                              style="height: 40px;width: 1px;position: absolute;right: 70px;top: 0px"></span>
-                        <span class="hLine-highlight"
-                              style="width: 100%;height: 0px;position: absolute;top: 40px;left: 0px;"></span>
-                        <span class="icon-set" style="position: absolute;right: 0px;top: 0px;width: 70px;height: 40px;"
-                            <%-- 再改为 WebC.REQ_objName,避免与数据表里的 对象名 字段重名。用到再确认。Lin
-                                                    onclick='<serv@ss dlg="true" name="getZbInfo" dest="grtj_sz" parm="{grtjid:&quot;${item.grtjid}&quot;,dxm:&quot;${dxm}&quot;}"/>'> --%>
-                              onclick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='getZbInfo'
-                                                                                                 parm='{"grtjid":"${item.grtjid}","ssObjName":"${ssObjName}"}'
-                                                                                                 dest='grtj_sz'/>",title:"挑选指标",width:1000,height:800});'>
-																																																	<%-- {"wdConfirmationCaptchaService":"0",。Lin --%>
-					</span>
-                    </div>
-                </ss:rpt>
-                <div>
-                        <%--<div class="graphButton button icon-add" style="height: 60px;line-height: 82px;float: right;margin-right: 0px;margin-top: 0px;">增加</div>
-                <input name="initTj" onclick='@service{name:"initTj",dest:"sys_info",show:"wdDialog"}@' value="初始化" type="button" />--%>
-                </div>
-            </div>
-        </ss:equal>
-        <%--个人统计表end--%>
-
         <div style="clear: both;"></div>
         <script type="text/javascript" src="/ss/env/env_search.js"></script>
 
@@ -1248,19 +1071,29 @@ dataType:"${dataType}",	// 增加,传递给 searchCobjByA()。Lin
         cobjReqId: 0,
 
         searchButtonConfigCheckId: '${management}',
-        searchButtonConfig: [
-            {id: "99", desc: "所有"},
-            {id: "2", desc: "管理"},
-            {id: "1", desc: "创建"},
-            {id: "3", desc: "已办"},
-            {id: "55", desc: "停用"},
-        ],
+        // 功能说明:根据 dataType 动态生成 searchButtonConfig,play 时不显示"停用" by xu 20260508
+        searchButtonConfig: (function() {
+            var base = [
+                {id: "99", desc: "所有"},
+                {id: "2", desc: "管理"},
+                {id: "1", desc: "创建"},
+                {id: "3", desc: "已办"}
+            ];
+            var dt = "${dataType}";
+            if (dt !== "play") {
+                base.push({id: "55", desc: "停用"});
+            }
+            return base;
+        })(),
     }
     if (window.SS.dom.formElemConfig) {
         Object.entries(window.SS.dom.formElemConfig).forEach(([key, config]) => {
             data[key] = config.value;
             // 处理 objPicker
-            if (config.type === window.SS.dom.TYPE.OBJPICKER) {
+            if (
+                config.type === window.SS.dom.TYPE.OBJPICKER ||
+                config.type === window.SS.dom.TYPE.OBJP
+            ) {
                 data[key + "ObjPicker"] = true;
                 data[key + "Option"] = [];
                 data[key + "Url"] = config.optUrl;

+ 51 - 26
web/page/env/objInp.jsp

@@ -7,6 +7,7 @@
 	<meta http-equiv="cache-control" content="no-cache">
 	<meta http-equiv="expires" content="0">
 	<script type="text/javascript" src="/ss/jquery/jquery.js"></script>
+	<script type="text/javascript" src="/ss/js/wdDialogInit.js"></script>
 	<script src="/js/load.js"></script> <%-- ="/newUI/ss/js/base.js"。Lin(新UI) --%>
 	<script type="text/javascript" src="/js/display.js"></script>
 	<script type="text/javascript" src="/js/form.js"></script>
@@ -49,13 +50,13 @@
 	<div class='bottom-div'>
 		<ss:equal val='${empty saveDest}' val2='false'>
 			<%-- 保存按钮 --%>
-					<ss-bottom-button
+					<ss-btn
 							text="${saveButtonValue}"
 <%--							type="submit"--%>
 							onclick='ss.form.submit({url:"<ss:serv name='${save}' dest='${saveDest}' parm='${saveParam}'/>",width:${savewidth},height:${saveheight},minHeight:${saveminheight},maxHeight:${savemaxheight}});'
 					<%--							onclick='wd.display.changeFormAction("<ss:serv name='${save}' dest='${saveDest}' parm='${saveParam}'/>",this,${savewidth},${saveheight},${saveminheight},${savemaxheight});'--%>
 							icon-class="bottom-div-save"
-					></ss-bottom-button>
+					></ss-btn>
 
 
                     </ss:equal>
@@ -69,12 +70,12 @@
 			<!-- 保存按钮 end -->
 <%--		</ss:equal>--%>
 		<ss:equal val='${empty saveAndCommitDest}' val2='false'>
-			<ss-bottom-button
+			<ss-btn
 					id="saveAndCommit"
 					text="${saveAndCommitButtonValue}"
 					onclick='ss.objInp.submitAndCollapseParent({url:"<ss:serv name='${saveAndCommit}' dest='${saveAndCommitDest}' parm='${saveAndCommitParam}'/>",width:${saveAndCommitwidth},height:${saveAndCommitheight},minHeight:${saveAndCommitminheight},maxHeight:${saveAndCommitmaxheight},targetWin:null});'<%-- 最后一个参数原来为targetWin:parent导致刷新了顶层窗口,改为null Ben(20251215) --%>
 					icon-class="bottom-div-save"
-			></ss-bottom-button>
+			></ss-btn>
 			<!-- 保存并提交按钮 start -->
 			<%-- <input type="button" value="${saveAndCommitButtonValue}" class="bottom-button"
                    onclick='ss.display.reset("dialog",this,"<ss:serv name='${saveAndCommit}' dest='${saveAndCommitDest}' parm='${saveAndCommitParam}'/>",${saveAndCommitwidth},${saveAndCommitheight},${saveAndCommitminheight},${saveAndCommitmaxheight});'
@@ -86,11 +87,11 @@
 			<%--只有一个变动--%>
 			<!-- 只有一个变动时的 停用按钮  start -->
 			<ss:equal val='${changeNoSize}' val2='1'>
-				<ss-bottom-button
+				<ss-btn
 						text="${changeNoFunctions[0].desc}"
 						onclick='ss.form.submit({url:"<ss:serv name='${changeNoFunctions[0].servName}' dest='${changeNoFunctions[0].dest}' parm='{ssObjId:"${ssObjId}",ssObjName:"${ssObjName}","${ssObjIdName}":"${ssObjId}",dataType:"${empty dataType?1:dataType}",ssPobjName:"${ssPobjName}"}'/>",width:${changeNoFunctions[0].width},height:${changeNoFunctions[0].height},minHeight:${changeNoFunctions[0].minHeight},maxHeight:${changeNoFunctions[0].maxHeight},targetWin:parent});'
 						icon-class="bottom-div-close"
-				></ss-bottom-button>
+				></ss-btn>
 				<%-- <input type="button" value="${changeNoFunctions[0].name}" class="bottom-button"
                        onclick='ss.display.reset("dialog",this,"<ss:serv name='${changeNoFunctions[0].servName}' dest='${changeNoFunctions[0].dest}' parm='{ssObjId:"${ssObjId}",ssObjName:"${ssObjName}","${ssObjIdName}":"${ssObjId}",dataType:"${empty dataType?1:dataType}",requestParentViewObject:"${requestParentViewObject}"}'/>",${changeNoFunctions[0].width},${changeNoFunctions[0].height},${changeNoFunctions[0].minHeight},${changeNoFunctions[0].maxHeight});'
                 > --%>
@@ -127,9 +128,9 @@
 				</ss:rpt>
 
 				<%-- 修改支持更多按钮 by xu 20251211 --%>
-					<ss-bottom-button
+					<ss-btn
 							more="moreChg"
-					></ss-bottom-button>
+					></ss-btn>
 			<%-- 改成vue写法 Ben(20251211)
             <input id="morebutton" type="button" value="更多变动" class="bottom-button"/>
             <script>ss.display.attachButton("morebutton","changebutton");</script>
@@ -143,7 +144,7 @@
         <%--
         <input type="submit" value="删除" onclick="wd.display.changeFormAction(&quot;<wd:token  service='${delete}' dest='${deleteDest}' param='${deleteParam}' test=''  />&quot;,this);"  class="bottom-button" ></wd:equal>
         --%>
-			<ss-bottom-button
+			<ss-btn
 					text="${deleteButtonValue}"
 					onclick='ss.form.confirm("删除","是否删除?",function (){ss.form.submit({url:"<ss:serv name='${delete}' dest='${deleteDest}' parm='${deleteParam}'/>",targetWin:parent});},null)'
 <%--					onclick='ss.display.confirm("删除","是否删除?",(function(button){return function(){var form=document.querySelector("form");button.form=form;form.setAttribute("vvv","2");--%>
@@ -151,7 +152,7 @@
 <%--							"<ss:serv name='${delete}' dest='${deleteDest}' parm='${deleteParam}'/>");--%>
 <%--							ss.display.submitToTopTab(button);form.submit();}})(this))'--%>
 					icon-class="bottom-div-close"
-			></ss-bottom-button>
+			></ss-btn>
 			<%-- <input id="deleteButton" type="button" value="${deleteButtonValue}"
                    onclick='wd.display.confirm("删除","是否删除?",(function(button){return function(){var form=document.querySelector("form");button.form=form;form.setAttribute("vvv","2");
                            form.setAttribute("action",
@@ -165,7 +166,7 @@
 		<%-- 再增加 删除二级对象的基本情况变动 功能 -- "删除变动" 按钮。Start。Lin --%>
 		<!-- 删除二级对象的基本情况变动 功能 -- "删除变动" 按钮。Start -->
 		<ss:equal val='${empty delChildChgDest}' val2='false'>
-			<ss-bottom-button
+			<ss-btn
 					text="${delChildChgButtonValue}"
 					onclick='ss.form.confirm("删除","是否删除?",function (){ss.form.submit({url:"<ss:serv name='${delChildChg}' dest='${delChildChgDest}' parm='${delChildChgParam}'/>",targetWin:parent});},null)'
 <%--					onclick='ss.display.confirm("删除变动","是否删除基本情况变动?",(function(button){return function(){var form=document.querySelector("form");button.form=form;form.setAttribute("vvv","2");--%>
@@ -173,7 +174,7 @@
 <%--							"<ss:serv name='${delChildChg}' dest='${delChildChgDest}' parm='${delChildChgParam}'/>");--%>
 <%--							wd.display.submitToTopTab(button);form.submit();}})(this))'--%>
 					icon-class="bottom-div-close"
-			></ss-bottom-button>
+			></ss-btn>
 			<%-- <input id="delChildChgButton" type="button" value="${delChildChgButtonValue}"
                    onclick='ss.display.confirm("删除变动","是否删除基本情况变动?",(function(button){return function(){var form=document.querySelector("form");button.form=form;form.setAttribute("vvv","2");
                            form.setAttribute("action",
@@ -186,23 +187,23 @@
 		<%-- 再增加 删除二级对象的基本情况变动 功能 -- "删除变动" 按钮。End。Lin --%>
 		<!-- 停用start -->
 		<ss:equal val='${empty disableSubmitDest}' val2='false'>
-			<ss-bottom-button
+			<ss-btn
 					text="${disableSubmitButtonValue}"
 					onclick='ss.form.submit({url:"<ss:serv name='${disableSubmit}' dest='${disableSubmitDest}' parm='${disableSubmitParam}'/>",width:${disableSubmitwidth},height:${disableSubmitheight},minHeight:${disableSubmitminheight},maxHeight:${disableSubmitmaxheight},targetWin:parent});'
 <%--					onclick='ss.display.reset("dialog",this,"<ss:serv name='${disableSubmit}' dest='${disableSubmitDest}' parm='${disableSubmitParam}'/>",${disableSubmitwidth},${disableSubmitheight},${disableSubmitminheight},${disableSubmitmaxheight});'--%>
 					icon-class="bottom-div-close"
-			></ss-bottom-button>
+			></ss-btn>
 			<!-- <input type="submit" value="${disableSubmitButtonValue}" class="bottom-button"
 			onclick='ss.display.reset("dialog",this,"<ss:serv name='${disableSubmit}' dest='${disableSubmitDest}' parm='${disableSubmitParam}'/>",${disableSubmitwidth},${disableSubmitheight},${disableSubmitminheight},${disableSubmitmaxheight});'
 			> -->
 
 		</ss:equal>
 		<!-- 停用end -->
-		<ss-bottom-button
+		<ss-btn
 				text="关闭"
 				onclick='ss.display.closeDialog();'
 				icon-class="bottom-div-close"
-		></ss-bottom-button>
+		></ss-btn>
 		<%-- <input type="button" value="关闭" onclick="ss.display.closeDialog();" class="bottom-button"> --%>
 		<%--
        ${param}
@@ -265,6 +266,7 @@
 	console.log('[objInp] formElemConfig:', window.SS.dom.formElemConfig);
 	if (window.SS.dom.formElemConfig) {
 		Object.entries(window.SS.dom.formElemConfig).forEach(([key, config]) => {
+			const formElemType = config ? config.type : null;
 			// 如果 config 有 val 属性,使用 val;否则如果 config 本身是数组/对象,直接使用 config
 			// 这支持 zwwjCustomButtons 这样的直接数组配置
 			if (config && typeof config === 'object' && 'val' in config) {
@@ -276,20 +278,30 @@
 				console.log('[objInp] zwwjCustomButtons 处理:', config, '->', data[key]);
 			}
 			// 处理 objPicker
-			if (config.type === window.SS.dom.TYPE.OBJPICKER) {
+			if (
+				formElemType === window.SS.dom.TYPE.OBJPICKER ||
+				formElemType === window.SS.dom.TYPE.OBJP
+			) {
 				data[key + "ObjPicker"] = true;
 				data[key + "Option"] = [];
 				data[key + "Url"] = config.url;
 			}
 			
 			// 处理datepicker
-			if (config.type === window.SS.dom.TYPE.DATE) {
+			if (
+				formElemType === window.SS.dom.TYPE.DATE ||
+				formElemType === window.SS.dom.TYPE.TIME ||
+				formElemType === window.SS.dom.TYPE.DATETIME
+			) {
 
 			    data[key + "Mode"] = config.mode
 			    console.log(data[key + "Mode"]);
 			}
 			// 处理富文本编辑器(RICHTEXT 和 HTML 类型)
-			if (config.type === window.SS.dom.TYPE.RICHTEXT || config.type === window.SS.dom.TYPE.HTML) {
+			if (
+				formElemType === window.SS.dom.TYPE.RICHTEXT ||
+				formElemType === window.SS.dom.TYPE.HTML
+			) {
 				data[key + "Url"] = config.val;
 				data[key + "editor"] = config.val;
 				// 处理编辑器自定义按钮配置(同台字段)by xu 20250331
@@ -298,10 +310,13 @@
 				}
 			}
 			// 处理onoff
-			if (config.type === window.SS.dom.TYPE.ONOFFBTN) {
-				data[key] = config.val.split('|');
+			if (formElemType === window.SS.dom.TYPE.ONOFFBTN) {
+				data[key] = config.val ? config.val.split('|') : [];
 			}
-			if (config.type === window.SS.dom.TYPE.IMG) {
+			if (
+				formElemType === window.SS.dom.TYPE.IMG ||
+				formElemType === window.SS.dom.TYPE.PIC
+			) {
 				data[key + "showUrl"] = config.showUrl;
 				data[key + "uploadUrl"] = config.uploadUrl;
 			}
@@ -316,12 +331,14 @@
 				const item = ss.dom.formVmConfig[i];
 				// 处理每个元素
 				let rule = item.rule;
-				let fieldArr = item.field;
+				let fieldArr = Array.isArray(item.field) ? item.field : [item.field];
 				let param = item.param;
 				let fieldValMap = [];
-				for (let i = 0; i < fieldArr.length; i++) {//校验程序增加传入表单元素的值fieldValMap Ben(20260107)
-					const field = fieldArr[i];
-					fieldValMap[field] = window.SS.dom.formElemConfig[field].val;
+				for (let j = 0; j < fieldArr.length; j++) {//校验程序增加传入表单元素的值fieldValMap Ben(20260107)
+					const field = fieldArr[j];
+					if (window.SS.dom.formElemConfig && window.SS.dom.formElemConfig[field]) {
+						fieldValMap[field] = window.SS.dom.formElemConfig[field].val;
+					}
 				}
 				window.ssVm.add(rule, fieldArr, param ,fieldValMap);//校验程序增加传入表单元素的值fieldValMap Ben(20260107)
 
@@ -403,6 +420,14 @@
 					
 
 				});
+
+				try {
+					window.SS = window.SS || {};
+					window.SS.__appMounted = true;
+					document.dispatchEvent(new Event('ssAppMounted'));
+				} catch (e) {
+					console.error('dispatch ssAppMounted failed:', e);
+				}
 			}
 		});
 	});

+ 43 - 6
web/page/env/objList.jsp

@@ -116,15 +116,29 @@
                 <div class="search-bar-contaienr">
                     <template v-if="homeReady">
                         <template v-for="field in searchFieldList" :key="field.name">
+                            <ss-ccp
+                                    v-if="field.ccp"
+                                    mode="2"
+                                    :param="field.parm"
+                                    url="/service?ssServ=loadObjpOpt&objectpickerdropdown1=1"
+                                    v-model="form[field.name]"
+                                    :name="field.name"
+                                    :placeholder="field.desc"
+                                    :readonly="false"
+                                    :width="field.width"
+                                    :search="true"
+                                    :inp="field.inp"
+                            ></ss-ccp>
                             <ss-objp
-                                    v-if="field.cbName"
+                                    v-else-if="field.cbName"
                                     v-model="form[field.name]"
                                     :name="field.name"
                                     :placeholder="field.desc"
-                                    width="150px"
-                                    :inp="true"
+                                    :width="field.width"
+                                    :inp="field.inp"
                                     url="/service?ssServ=loadObjpOpt&objectpickerdropdown1=1"
                                     :cb="field.cbName"
+                                    :search="true"
                             ></ss-objp>
                             <ss-search-date-picker
                                     v-else-if="field.type == 11"
@@ -176,8 +190,8 @@
                             <ss-search-button
                                     :text="func.desc || func.title || ''"
                                     icon-class="nav-icon-add"
-                                    :opt="[]"
-                                    :check-id="0"
+                                    :opt="subpageOpt"
+                                    :check-id="selSubpage"
                                     @click="handleRootFuncClick(func)"
                             ></ss-search-button>
                         </template>
@@ -1084,12 +1098,17 @@
                 callback: () => window.__objListVm && window.__objListVm.switchScope(55),
             }
         ],
+        subpageOpt: [],
+        selSubpage: "",
     }
     if (window.ss.dom.formElemConfig) {
         Object.entries(window.ss.dom.formElemConfig).forEach(([key, config]) => {
             data[key] = config.value;
             // 处理 objPicker
-            if (config.type === window.ss.dom.TYPE.OBJPICKER) {
+            if (
+                config.type === window.ss.dom.TYPE.OBJPICKER ||
+                config.type === window.ss.dom.TYPE.OBJP
+            ) {
                 data[key + "ObjPicker"] = true;
                 data[key + "Option"] = [];
                 data[key + "Url"] = config.optUrl;
@@ -1485,6 +1504,20 @@
                     this.form = nextForm;
                     this.searchButtonConfigCheckId = String(this.form?.management || "99");
 
+                    if (this.rootFuncList) {
+                        this.subpageOpt = [];
+                        this.rootFuncList.forEach((func) => {
+                            if (func.pageList) {
+                                func.pageList.forEach((page) => {
+                                    this.subpageOpt.push({
+                                        id: page.id,
+                                        desc: page.desc,
+                                        callback: () => this.swSubpage(page),
+                                    });
+                                });
+                            }
+                        });
+                    }
                     // 初始化列表(objList/draftList)
                     const nextDraft = Array.isArray(ssData.draftList) ? ssData.draftList.map((r) => this.normalizeObjToCard(r)) : [];
                     const nextList = Array.isArray(ssData.objList) ? ssData.objList.map((r) => this.normalizeObjToCard(r)) : [];
@@ -1620,6 +1653,10 @@
                 handleRootFuncClick(func) {
                     this.openServiceDialog(func);
                 },
+                swSubpage(page) {
+                    this.selSubpage = String(page.id);
+                    this.openServiceDialog(page);
+                },
                 // 切换范围(所有/管理/创建/已办/停用)=> 刷新列表(不刷新右侧栏)
                 switchScope(management) {
                     if (this.loadingList) return;

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
web/page/env/pwdEdit.ss.jsp


+ 31 - 0
web/page/mp/mp_cobjList.html

@@ -302,6 +302,8 @@
             v-for="(button, index) in rootFuncList"
             :key="`${getButtonText(button)}-${index}`"
             :text="getButtonText(button)"
+            :options="getButtonOptions(button)"
+            :suffix-icon="getButtonOptions(button).length > 1 ? 'icon-xiala' : ''"
             @click="handleRootButtonClick(button)"
         ></ss-search-button>
     </div>
@@ -812,6 +814,31 @@
                     return button.desc || button.title || button.buttonName || button.name || button.function?.desc || '';
                 },
 
+                getButtonOptions(button) {
+                    if (!button || typeof button !== 'object') return [];
+                    const source = Array.isArray(button.pluginList) && button.pluginList.length
+                        ? button.pluginList
+                        : Array.isArray(button.pageList)
+                            ? button.pageList
+                            : [];
+                    return this.createNavOptions(source);
+                },
+
+                createNavOptions(buttonList) {
+                    if (!Array.isArray(buttonList)) return [];
+                    return buttonList
+                        .filter(item => item && typeof item === 'object')
+                        .map(item => ({
+                            text: this.getButtonText(item),
+                            onclick: () => NavigationManager.goToFromButton(item),
+                        }))
+                        .filter(item => item.text || item.onclick);
+                },
+
+                hasButtonOptions(button) {
+                    return this.getButtonOptions(button).length > 0;
+                },
+
                 setupScopeButtons() {
                     const scopeList = [
                         { id: '99', text: '所有' },
@@ -854,6 +881,9 @@
                 },
 
                 handleRootButtonClick(button) {
+                    if (this.hasButtonOptions(button)) {
+                        return;
+                    }
                     if (!NavigationManager.goToFromButton(button)) {
                         this.handleServiceAction(button.function || button);
                     }
@@ -866,6 +896,7 @@
                     }
 
                     const navButton = {
+                        ...serviceAction,
                         dest: serviceAction.dest || serviceAction.ssDest || '',
                         servName: serviceAction.servName || serviceAction.ssServ || serviceAction.service || '',
                         service: serviceAction.servName || serviceAction.ssServ || serviceAction.service || '',

+ 31 - 3
web/page/mp/mp_objList.html

@@ -286,6 +286,8 @@
           v-for="(button, index) in buttonList"
           :key="index"
           :text="getButtonText(button)"
+          :options="getButtonOptions(button)"
+          :suffix-icon="getButtonOptions(button).length > 1 ? 'icon-xiala' : ''"
           @click="handleButtonClick(button)"
         >
         </ss-search-button>
@@ -1017,9 +1019,9 @@
             // 处理buttonList按钮点击
             handleButtonClick(button) {
               console.log("🔘 按钮点击:", button);
-
-              // 直接跳转到目标页面
-              const destPage = button.function?.dest || button.dest;
+              if (this.hasButtonOptions(button)) {
+                return;
+              }
               NavigationManager.goToFromButton(button);
             },
 
@@ -1193,6 +1195,32 @@
               );
             },
 
+            getButtonOptions(button) {
+              if (!button || typeof button !== "object") return [];
+              const source =
+                Array.isArray(button.pluginList) && button.pluginList.length
+                  ? button.pluginList
+                  : Array.isArray(button.pageList)
+                  ? button.pageList
+                  : [];
+              return this.createNavOptions(source);
+            },
+
+            createNavOptions(buttonList) {
+              if (!Array.isArray(buttonList)) return [];
+              return buttonList
+                .filter((item) => item && typeof item === "object")
+                .map((item) => ({
+                  text: this.getButtonText(item),
+                  onclick: () => NavigationManager.goToFromButton(item),
+                }))
+                .filter((item) => item.text || item.onclick);
+            },
+
+            hasButtonOptions(button) {
+              return this.getButtonOptions(button).length > 0;
+            },
+
             // 功能说明:提取有效筛选参数(过滤空串/null/undefined) by xu 2026-02-28
             getActiveFilterParams(source) {
               const params = {};

+ 28 - 5
web/page/objList.jsp

@@ -176,8 +176,8 @@
                             <ss-search-button
                                     :text="func.desc || func.title || ''"
                                     icon-class="nav-icon-add"
-                                    :opt="[]"
-                                    :check-id="0"
+                                    :opt="subpageOpt"
+                                    :check-id="selSubpage"
                                     @click="handleRootFuncClick(func)"
                             ></ss-search-button>
                         </template>
@@ -1002,9 +1002,11 @@
 	        isSysEditMode: false, // 功能说明:系统编辑态(业务页)控制右下角“新增”入口显隐 by xu 20260123
 	        sysModeSource: "unknown", // 功能说明:编辑态来源(desktop/biz/menu/unknown) by xu 20260123
 
-	        // 首页接口返回字段(按 page/objlist修改.txt)
+        // 首页接口返回字段(按 page/objlist修改.txt)
         searchFieldList: [], // 查询条件字段
         rootFuncList: [], // 根功能
+        subpageOpt: [],
+        selSubpage: "",
         hasKeyword: false, // 是否有关键词
         hasScope: false, // 是否带范围
         thnType: (() => { // 功能说明:首屏 thnType 优先从 JSP 注入(用于第一个接口前正确计算 rowNumPer);空/缺省回退 0 by xu 20260123
@@ -1089,7 +1091,10 @@
         Object.entries(window.ss.dom.formElemConfig).forEach(([key, config]) => {
             data[key] = config.value;
             // 处理 objPicker
-            if (config.type === window.ss.dom.TYPE.OBJPICKER) {
+            if (
+                config.type === window.ss.dom.TYPE.OBJPICKER ||
+                config.type === window.ss.dom.TYPE.OBJP
+            ) {
                 data[key + "ObjPicker"] = true;
                 data[key + "Option"] = [];
                 data[key + "Url"] = config.optUrl;
@@ -1484,6 +1489,20 @@
                     });
                     this.form = nextForm;
                     this.searchButtonConfigCheckId = String(this.form?.management || "99");
+                    if (this.rootFuncList) {
+                        this.subpageOpt = [];
+                        this.rootFuncList.forEach((func) => {
+                            if (func.pageList) {
+                                func.pageList.forEach((page) => {
+                                    this.subpageOpt.push({
+                                        id: page.id,
+                                        desc: page.desc,
+                                        callback: () => this.swSubpage(page),
+                                    });
+                                });
+                            }
+                        });
+                    }
 
                     // 初始化列表(objList/draftList)
                     const nextDraft = Array.isArray(ssData.draftList) ? ssData.draftList.map((r) => this.normalizeObjToCard(r)) : [];
@@ -1616,10 +1635,14 @@
 	                        this.sidebarButtons = [];
 	                    }
 
-	                },
+                },
                 handleRootFuncClick(func) {
                     this.openServiceDialog(func);
                 },
+                swSubpage(page) {
+                    this.selSubpage = String(page.id);
+                    this.openServiceDialog(page);
+                },
                 // 切换范围(所有/管理/创建/已办/停用)=> 刷新列表(不刷新右侧栏)
                 switchScope(management) {
                     if (this.loadingList) return;

+ 34 - 6
web/skin/easy/css/base.css

@@ -3045,7 +3045,9 @@ input::placeholder ,textarea::placeholder{
 .form-container td { 
   /* width: 360px; //不写死 td 的宽度 Xu(20251208)*/ 
   height: 60px;
+/* 再去掉,growh 弹出框的左右边线与 <td 的边线重叠。Lin
   padding: 0 15px;
+*/
   box-sizing: border-box;
   border: 1px solid #e2e4ec;
   position: relative;
@@ -3212,6 +3214,10 @@ input::placeholder ,textarea::placeholder{
 .input-container>.input>textarea {
   /* padding-left: 15px; 
   padding-right: 15px; */
+/* 再增加,growh 弹出框的左右边线与 <td 的边线重叠。Lin */
+  padding-left: 15px;
+  padding-right: 15px;
+/* */
   font-family: inherit; /* 继承字体 */
   /* 上下padding由JS动态设置,不在这里固定 */
 }
@@ -3272,6 +3278,10 @@ input::placeholder ,textarea::placeholder{
   top: 0;
   left: 0;
   cursor: pointer;
+/* 再增加,growh 弹出框的左右边线与 <td 的边线重叠。Lin */
+  padding-left: 15px;
+  padding-right: 15px;
+/* */
 }
 
 .select-container .input>input {
@@ -3368,7 +3378,9 @@ input::placeholder ,textarea::placeholder{
   position: relative;
   border-radius: 4px;
   color: #fff;
+/* 改,下拉选择框滚动条的 上、下、右 边距改为 4px。Lin
   padding: 15px 2px;
+*/padding: 4px 4px;
 }
 
 .select-container .popup-win .content-area {
@@ -3376,12 +3388,16 @@ input::placeholder ,textarea::placeholder{
   max-height: 200px;
   overflow-y: auto;
   --scrollbar-track-color: transparent;
+/* 改,下拉选择框滚动条的 星 颜色改为 #c0c4c9。Lin
   --scrollbar-thumb-color: #000;
+*/--scrollbar-thumb-color: #c0c4c9;
 }
 
 
 .select-container .popup-win .content-area::-webkit-scrollbar {
+/* 改,下拉选择框滚动条的 星 宽度改为 8px。Lin
   width: 10px;
+*/width: 8px;
   height: 10px;
 }
 
@@ -3662,10 +3678,17 @@ input::placeholder ,textarea::placeholder{
   outline: none;
   height: auto;
   /* overflow-y: hidden; 隐藏滚动条 */
+/* 再改,支持 <input height=。Lin
+ * 原 height= 大于 5 行时,仍弹出 5 行
+ * 增加全局变量 --growh-textarea-max-height(带px),在 ss-components.js 里的 adjustHeight()、calculateFloatingDivPosition 里赋值 -- 不用行数来计算
+ * 去掉 + 10px,需要时写到 --growh-textarea-max-height(带px) 里
   max-height: calc(20px * 5 + 10px); /* 统一为5行 + padding */
+*/max-height: var(--growh-textarea-max-height);
   line-height: 20px;
   font-size: 16px;
+/* 再改,与 <input 录入框 的字体一致 -- 微软雅黑。Lin
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+*/font-family: '微软雅黑', Tahoma, Geneva, Verdana, sans-serif;
   /* padding: 5px; */
 }
 
@@ -8726,25 +8749,30 @@ input::placeholder ,textarea::placeholder{
   overflow: auto;
 }
 .ss-editor-attach-btn {
-  display: inline-flex;
+  display: flex;	/* : inline-flex;。把 附件 按钮放在 jodit 工具条的右端。Lin */
+/* 增加,把 附件 按钮放在 jodit 工具条的右端。Lin */
+  float: right;
+  height: 38px;
+/* */
   align-items: center;
   gap: 6px;
   padding: 6px 12px;
-  margin-bottom: 12px;
-  background: #f5f7fa;
+  margin-bottom: 0;	/* : 12px;。把 附件 按钮放在 jodit 工具条的右端。Lin */
+  background: #f9f9f9;	/* : #f5f7fa;。一致化按钮样式。把 附件 按钮放在 jodit 工具条的右端。Lin */
+/* 去掉,美化按钮,使按钮占满整个工具条的右端。把 附件 按钮放在 jodit 工具条的右端。Lin
   border: 1px solid #dcdfe6;
   border-radius: 4px;
+*/
   cursor: pointer;
   font-size: 14px;
   color: #606266;
   transition: all 0.2s;
 }
 .ss-editor-attach-btn:hover {
-  background: #ecf5ff;
+  background: #dddfe6;	/* : #ecf5ff;。一致化按钮样式。把 附件 按钮放在 jodit 工具条的右端。Lin */
   border-color: #409eff;
-  color: #409eff;
+  color: #000;	/* : #409eff;。一致化按钮样式。把 附件 按钮放在 jodit 工具条的右端。Lin */
 }
 .ss-editor-attach-text {
   font-size: 14px;
 }
-

+ 2 - 2
web/ss/js/display.js

@@ -3780,7 +3780,7 @@
 	}
 
 	// 有弹出窗口且大于 1 时,MSG固定右下角
-	if (wd.topWindow.$(".wdMaskDiv").size() > 1) {
+	if (wd.topWindow.$(".wdMaskDiv").length > 1) {
 		setFixation();
 	}
 
@@ -3801,7 +3801,7 @@
 			y = window.event.pageY;
 		}
 
-		if (wd.topWindow.$("#flashmsgtipsId").find("p").size() < 1) {
+		if (wd.topWindow.$("#flashmsgtipsId").find("p").length < 1) {
 			// wd.topWindow.$("#flashmsgtipsId").addClass("flashmsgtips").removeClass("flashmsgtips-submit");
 			wd.topWindow.$("#flashmsgtipsId").css({
 				"top": y - 53 + "px",

+ 14 - 4
web/ss/js/objectPicker.js

@@ -132,7 +132,7 @@ wd.edit.cascading.display=function(data){
 	var data=eval("("+data+")");
 //	console.log(data);
 	for(var key in data){
-		$("[name="+key+"]").hide().after("<span>"+data[key]+"</span>")
+		$("[name="+key+"]").hide().after("<span>"+data[key]+" </span>")	// ("<span>"+data[key]+"</span>")。加 空格 间开 <省>、<市>、<县>。Lin
 		
 	}
 }
@@ -1957,6 +1957,7 @@ wd.edit.objectPicker.body=function(){
 /// 抄自 init( 里的。Lin
 							//初始化转换数据
 							if (data.result) {	// {1:'男性', 2:'女性'}。Lin
+/* 改,ObjpResultB.result(Map<String, String>) 改为 List<Map<String, String>> -- 支持按服务器端的的顺序显示下拉列表。Lin
 								THIS.searchResult = [];
 								for (var key in data.result) {
 									var aa = {};
@@ -1964,6 +1965,18 @@ wd.edit.objectPicker.body=function(){
 									aa[data.visiable] = data.result[key];	// "mc"。Lin
 									THIS.searchResult.push(aa);	// {mc: '男性', xbm: '1'}, {mc: '女性', xbm: '2'}。Lin
 								}
+*/
+								if (data.result.length > 0) {	// List<{1:'男性', 2:'女性'}>。Lin
+									THIS.searchResult = [];
+									for (let i=0; i<data.result.length; i++) {
+										var aa = {};
+										var m = Object.entries(data.result[i])[0];
+										aa[data.invisiable] = m[0];	// "xbm"。Lin
+										aa[data.visiable] = m[1];	// "mc"。Lin
+										THIS.searchResult.push(aa);	// {mc: '男性', xbm: '1'}, {mc: '女性', xbm: '2'}。Lin
+									}
+								}
+
 							}
 ///
 
@@ -2717,6 +2730,3 @@ wd.edit.objectPicker.createObjectPicker=function(name,field,viewobject,input,def
 //})
 
 
-
-
-

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно