From 0ccd94c863ac71b46bff3cc15feabec53650738f Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期五, 11 四月 2025 20:23:52 +0800 Subject: [PATCH] bug修改 --- cloud-server-management/src/main/webapp/WEB-INF/view/system/tHuiminAgreement/tHuiminAgreement_add.html | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tHuiminAgreement/tHuiminAgreement_add.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tHuiminAgreement/tHuiminAgreement_add.html index e4c1699..731e1fe 100644 --- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tHuiminAgreement/tHuiminAgreement_add.html +++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tHuiminAgreement/tHuiminAgreement_add.html @@ -78,7 +78,7 @@ </div> <div class="row btn-group-m-t"> - <div class="col-sm-10"> + <div class="col-sm-10" style="margin-top: 10px;"> <#button btnCss="info" name="保存" id="ensure" icon="fa-check" clickFun="submitData()"/> </div> </div> @@ -88,6 +88,7 @@ </div> <script src="${ctxPath}/modular/system/tHuiminAgreement/tHuiminAgreement_info.js"></script> <script> + var editor_1 = null; var editor_2 = null; var editor_3 = null; @@ -95,11 +96,18 @@ var editorCounter = 0; // 用于生成唯一ID $(function () { - //初始化编辑器 - editor_1 = UE.getEditor('editor_1'); - editor_2 = UE.getEditor('editor_2'); - editor_3 = UE.getEditor('editor_3'); - + var objectType = '${objectType!}'; + var operatorId; + if(objectType == 1){ + //初始化编辑器 + editor_1 = UE.getEditor('editor_1'); + editor_2 = UE.getEditor('editor_2'); + editor_3 = UE.getEditor('editor_3'); + }else{ + editor_3 = UE.getEditor('editor_3'); + operatorId ='${operatorId!}'; + console.log("operatorId",operatorId); + } // 改用全局方法处理删除 window.deleteTab = function(counter) { console.log("全局删除方法被调用,counter =", counter); @@ -126,7 +134,6 @@ console.log("编辑器初始化完成,准备加载数据"); // 页面初始化时通过AJAX请求获取协议配置数据 - var operatorId = $("#operator").val(); console.log("页面初始化,当前运营商ID:", operatorId); // 调用接口获取协议配置数据(只回显协议配置,不回显门店无惠民卡介绍页) -- Gitblit v1.7.1