| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725 |
- function nbListInit(sqid) {
- var url = document.getElementById("getNbListUrl").value;
- console.log("进来了");
- $.ajax({
- type: "post",
- url: url,
- async: true,
- data: {
- sqid: sqid
- },
- dataType: 'json',
- success: function (data) {
- if (data.result) {
- $.each(data.data, function (i, element) {
- var sj =
- "<span style='font-size: 12px;display:inline-block;width:46%; height:16px;line-height:16px;text-align:center;'>" +
- element.time.hours + ":" + element.time.minutes +
- "</span><span style='font-size: 12px;display:inline-block;width:46%; height:16px;line-height:16px;text-align:center;'>" +
- element.time.date + "\/" + (1 + element.time.month) + "</span>";
- var ynrid = "T-" + element.ynrid;
- if (element.ynrid.length != 0 && element.ynrid != 0) {
- var url = document.getElementById('lyUrl').value;
- url = wd.display.replaceDynamicParam(url, {
- 'id': ynrid
- });
- $('#nbSelected').append("<div wdObjectId='" + element.shid +
- "' class='list-background nb-Div' style=''><div class='nbLeft' style='overflow:hidden;max-width:780px'><span class='nbName list-dim' style='display: inline-block;float: left;width: 85px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;height:41px;line-height:41px;'>" +
- element.xm +
- "</span><span class='nbBt list-dim' style='float: left;display:inline-block;height:41px;line-height:41px;width:calc(100% - 265px);'>" +
- element.sm +
- "</span><input class='list-button' type='button' value='来源' onclick='" +
- url +
- "' /><div class='sj list-smallDim' style='float: right;margin-right: 10px;font-size: 0px;padding-top:12px;width:80px;'>" +
- sj + "</div></div><div class='nbRight'></div></div>");
- } else {
- var url = document.getElementById('lyUrl').value;
- url = wd.display.replaceDynamicParam(url, {
- 'id': ynrid
- });
- $('#nbSelected').append("<div wdObjectId='" + element.shid +
- "' class='list-background nb-Div' style='overflow:hidden;max-width:780px;'><div class='nbLeft'><span class='nbName list-dim' style='display: inline-block;float: left;width: 85px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;height:41px;line-height:41px;'>" +
- element.xm +
- "</span><span class='nbBt list-dim' style='float: left;display:inline-block;height:41px;line-height:41px;width:calc(100% - 265px);'>" +
- element.sm +
- "</span><div class='sj list-smallDim' style='float: right;margin-right: 10px;font-size: 0px;padding-top:12px;width:80px;'>" +
- sj + "</div></div><div class='nbRight'></div></div>");
- }
- });
- console.log("reload...");
- DM.getDrager().selectedList.reload();
- }
- }
- });
- }
- /*function nbListInit(sqid) {
- var url = document.getElementById("getNbListUrl").value;
- $.ajax({
- type: "post",
- url: url,
- async: true,
- data: {
- sqid: sqid
- },
- dataType:'json',
- success: function(data) {
- if(data.result) {
-
- $.each(data.data, function(i, element) {
- var sj = "<span style='font-size: 12px;display:inline-block;width:46%; height:16px;line-height:16px;text-align:center;'>"+element.time.hours + ":" + element.time.minutes + "</span><span style='font-size: 12px;display:inline-block;width:46%; height:16px;line-height:16px;text-align:center;'>" +element.time.date + "\/" + (1 + element.time.month)+"</span>";
-
- var ynrid = "T-" + element.ynrid;
- if(element.ynrid.length!=0&&element.ynrid!=0){
- var url = document.getElementById('lyUrl').value;
- url = wd.display.replaceDynamicParam(url, {
- 'id': ynrid
- });
- $('#nbUl').append("<li class='nbLi'><div class='nbLeft' style='overflow:hidden;max-width:780px'><input class='nbCheck' name='shidList' type='checkbox' style='float:left;margin-top:14px;margin-right:5px;' value='" + element.shid + "'/><span class="jdcheck"></span><span class='list-icon'></span><span class='nbName list-dim' style='display: inline-block;float: left;width: 85px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;height:41px;line-height:41px;'>" + element.xm + "</span><span class='nbBt list-dim' style='float: left;display:inline-block;height:41px;line-height:41px;width:calc(100% - 290px);'>" + element.sm + "</span><input class='list-button' type='button' value='来源' style='vertical-align:text-top' onclick='" + url + "' /><div class='sj list-smallDim' style='float: right;margin-right: 10px;font-size: 0px;padding-top:12px;width:80px;'>" + sj + "</div></div><div class='nbRight'></div></li>");
- }else{
- var url = document.getElementById('lyUrl').value;
- url = wd.display.replaceDynamicParam(url, {
- 'id': ynrid
- });
- $('#nbUl').append( "<div wdObjectId="+element.ynrid+" class='list-background' style='min-height: 41px;line-height: 41px;padding-left: 28px;width: calc(100% - 4px);box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;'><span>"+element.xm+"</span></div>");
- }
- });
- DM.getDrager().selectedList.reload();
- DM.getDrager().optionList.reload();
-
- }
- }
- });
- }*/
- function getSelectedNb() {
- var shids = new Array();
- $('div.nb-Div').each(function (i, element) {
- if (!$(element).hasClass("list-checkedIcon")) {
- shids.push($(element).attr("wdobjectid"));
- }
- });
- return shids;
- }
- function updateUnCheckedSh() {
- var shids = getSelectedNb();
- /*$('input[name="shidList"]').not("input:checked").each(function(i, element) {
- shids.push(element.value);
- });20190308 11:09 cj*/
- var url = document.getElementById("updateShlbmUrl").value;
- $.ajax({
- type: "post",
- url: url,
- async: true,
- data: {
- "shids": shids
- },
- dataType: "json",
- traditional: true,
- success: function (data) {
- if (data.result) {
- console.info(data.data);
- }
- }
- });
- }
- function getRyidListParam() {
- //1、将单位领导和部门变成ryid集合
- var ryids = new Array();
- var bms = new Array();
- $("#rySelected").find("div.leader").each(function (i, element) {
- ryids.push(element.getAttribute("wdobjectid"));
- });
- $("#rySelected").find("div.bmList").each(function (i, element) {
- bms.push(element.getAttribute("wdobjectid"));
- });
- /*$('input[name="leader"]:checked').each(function(i, element) {
- ryids.push(element.value);
- });*/
- /*$('input[name="bm"]:checked').each(function(i, element) {
- bms.push(element.value);
- });*/
- var url = document.getElementById("toRyidUrl").value;
- var under = $('input[name="under"]:checked').size() == 0 ? false : true;
- $.ajax({
- type: "post",
- url: url,
- async: false,
- data: {
- "bms": bms,
- "under": under
- },
- dataType: "json",
- traditional: true,
- success: function (data) {
- if (data.result) {
- $.each(data.data, function (i, element) {
- ryids.push(element);
- });
- }
- }
- });
- //参数变换
- var ryidList = "";
- $.each(ryids, function (i, element) {
- ryidList += element + ",";
- });
- return ryidList.substring(0, ryidList.length - 1);
- }
- /**
- 学员查询中获得ryid
- **/
- function getRyidListParamForXy() {
- //获得已选id
- var yxids = [];
- $('#rySelected > div').each(function (i, d) {
- yxids.push($(d).attr('attr-id'));
- });
- //wsly
- var wsly = $('input[name="wslym"]').val();
- //查询获得
- var data = {};
- data.wslym = wsly;
- if (yxids.length)
- data.ids = yxids.toString();
- var url = $('#XyshiftRyidsUrl').val();
- var ryidList = "";
- $.ajax({
- type: "post",
- url: url,
- async: false,
- data: data,
- dataType: "json",
- traditional: true,
- success: function (data) {
- if (data.result) {
- var data = data.data;
- $.each(data, function (i, element) {
- ryidList += element + ",";
- });
- }
- }
- });
- return ryidList == "" ? "" : ryidList.substring(0, ryidList.length - 1);
- }
- /**
- 查询学员相关
- 班级 -- 家长
- 专业 -- 班级
- **/
- function queryXyRelated() {
- //获得已选的id集合
- var yxids = [];
- $('#column1 > li').each(function (i, d) {
- yxids.push($(d).attr('attr-id'));
- });
- //获得文书来源
- var wsly = $('input[name="wsly"]').val();
- var sid = $('select[name="sid"]').val();
- //
- var data = {};
- if (yxids.length)
- data.yxids = yxids.toString();
- data.wslym = wsly;
- data.sid = sid;
- var url = $('#queryRyUrl').val();
- $.post(url, data, function (data) {
- if (data.result) {
- var list = data.data;
- $("#column2").html('');
- $.each(list, function (i) {
- $("#column2").append('<li attr-id="' + list[i].id +
- '" class="item"><h2 class="handle dragList_margin">' + list[i].mc +
- '</h2> </li>');
- });
- initDrag();
- } else {
- console.info('has an error');
- }
- }, 'json');
- }
- //2018-10-31 cj
- // 批示工具初始化
- function commentToolInit() {
- var ynrid = null;
- var shid = document.getElementById('shid').value;
- // 1、判断审核表的ynrid是否存在,如果存在则使用loadCMSEditor重新编辑,如果不存在则使用loadCMSEditor新建
- $.ajax({
- type: "post",
- url: "/service?wdService=ajax_getShYnrid&wdToken=5",
- async: false,
- data: {
- shid: shid
- },
- dataType: "json",
- success: function (data) {
- if (!data['isNull']) {
- ynrid = data['ynrid'];
- // 3、存储ynrid
- document.getElementById('ynrid').value = ynrid;
- }
- }
- });
- // 2、加载内容
- if (ynrid) {
- console.info('edit');
- var nrid = "T-" + ynrid;
- wd.edit.loadCMSEditor('outDiv', {
- 'type': "edit",
- 'nrid': nrid,
- 'save': saveSh
- });
- } else {
- createCommentTool(); // 根据下拉框创建不同的批阅内容
- }
- }
- // 根据下拉框创建不同的批阅内容
- function createCommentTool() {
- var psType = document.getElementById('psType');
- var psVal = psType.value;
- var nrid = null;
- if (psVal == "440120100230") {
- console.info('create');
- nrid = wd.edit.loadCMSEditor('outDiv', {
- 'type': 'create',
- 'editorId': 'T-440120100230',
- 'save': saveSh
- });
- } else if (psVal == "440120100210") { // TODO 其他情况
- nrid = wd.edit.loadCMSEditor('outDiv', {
- 'type': 'create',
- 'editorId': 'T-440120100210',
- 'save': saveSh
- });
- } else if (psVal == "440120100250") {
- nrid = wd.edit.loadCMSEditor('outDiv', {
- 'type': 'create',
- 'editorId': 'T-440120100250',
- 'save': saveSh
- });
- }
- // 存储ynrid
- ynrid = nrid.substr(2);
- document.getElementById('ynrid').value = ynrid;
- }
- //打开弹层方法
- function openScreenLayer(src) {
- var topbody = $("body", window.top.document);
- var wdfs = topbody.find("#wdfullscreen"); //弹层的div
- if (wdfs.length < 1) {
- topbody.append("<div id='wdfullscreen' style='display:none'></div>");
- wdfs = topbody.find("#wdfullscreen");
- }
- wdfs.html("");
- wdfs.append("<link rel='stylesheet' type='text/css' id='uefullscreenstyle' href='/wd/js/ueditor/ueFull.css'>").show()
- wdfs.append(
- '<div class="uefullscreen"><input type="button" style="border: 1px solid #000000;" class="btn-list fulscrbtn fullButton" value="X" state="1" onClick="wd.display.closeDialog();"/><div class="fullscreen fullscreenSrc" ></div></div>'
- );
- wdfs.find(".fullscreen").html('<iframe frameborder=0 id="myIframe" src="' + src +
- '" width="" height="" style="width:1200px;height:800px;position: absolute;left: 50% !important;margin-left: -600px;)"></iframe>'
- );
- wdfs.find(".fulscrbtn").click(function (e) {
- wdfs.find('#myIframe')[0].contentWindow.saveEditor('outDiv');
- wdfs.find('#myIframe')[0].contentWindow.saveYnridToWsxd();
- wdfs.remove();
- });
- }
- function isGg(wsxdid) {
- var result = false;
- var url = document.getElementById("isGg").value;
- $.ajax({
- type: "post",
- url: url,
- async: false,
- data: {
- "wsxdid": wsxdid
- },
- dataType: "json",
- success: function (data) {
- if (data.result) {
- result = new Boolean(data.data);
- }
- }
- });
- return result;
- }
- // commentTool事件
- function commentToolEvent() {
- $('#psType').on('change', function (e) {
- createCommentTool();
- });
- }
- function otherEvent() {
- $('#mainText').click(function (e) {
- var src = document.getElementById("gg").value;
- openScreenLayer(src);
- });
- }
- // 将批示意见保存到审核表中
- function saveSh() {
- var shid = document.getElementById('shid').value;
- var sm = "";
- var textarea = $('#outDiv').find('textarea');
- if (textarea.size() > 0) {
- sm = textarea.get(0).value;
- zhFlag = false;
- }
- var ynrid = document.getElementById('ynrid').value;
- /*if(ynrid.trim().length <= 0) {
- return;
- }*/
- $.ajax({
- type: "post",
- url: "/service?wdService=ajax_updateSh&wdToken=5",
- async: false,
- data: {
- 'shid': shid,
- 'sm': sm,
- 'ynrid': ynrid, // 不带T-的内容id
- 'shlbm': 11
- },
- success: function (data) {
- console.info(data);
- }
- });
- }
- function thWsZwwj() {
- var wsid = document.getElementById('wsid').value;
- var wsxdid = document.getElementById('wsxdid').value;
- $.ajax({
- type: "post",
- url: "/service?wdService=ws_ps_thzwwj",
- async: true,
- data: {
- 'wsid': wsid,
- 'wsxdid': wsxdid
- },
- success: function (data) {
- console.info(data);
- }
- });
- }
- function compare(wsxdid) {
- var contrastStr1 = null;
- var contrastStr2 = null;
- $.ajax({
- type: "post",
- url: "/service?wdService=ws_sh_db_cx&wdToken=5",
- async: false,
- data: {
- 'wsxdid': wsxdid
- },
- dataType: "json",
- success: function(data) {
- if(data.result) {
- contrastStr1 = data.data.str1;
- contrastStr2 = data.data.str2;
- }
- }
- });
- $('body').append("<div id='wind' class='wd'></div>");
- diffInitUI({
- textboxId: "wind",
- leftHtml: contrastStr1,
- rightHtml: contrastStr2
- });
- console.info(33333);
- $('#wind').append("<span class='close'></span>");
- $('.close').on('click', function() {
- $('.wd').remove();
- });
- }
- /*
- function compare(wsxdid) {
- var contrastStr1 = null;
- var contrastStr2 = null;
- $.ajax({
- type: "post",
- url: "/service?wdService=ws_sh_db_cx&wdToken=5",
- async: false,
- data: {
- 'wsxdid': wsxdid
- },
- dataType: "json",
- success: function (data) {
- if (data.result) {
- contrastStr1 = data.data.str1;
- contrastStr2 = data.data.str2;
- }
- }
- });
- var diffUrl = $("#diffurl").val();
- var json = JSON.parse('{"str1":"'+contrastStr1.replace(/\"/g,"'").replace(/\t/g," ").replace(/ /g," ").replace(/"/g,"'")+'","str2":"'+contrastStr2.replace(/\"/g,"'").replace(/\t/g," ").replace(/ /g," ").replace(/"/g,"'")+'"}');
- diffUrl = wd.display.replaceDynamicParam(diffUrl,json);
- eval(diffUrl);
-
- }
- */
- //2018-11-1 cj
- //zgzButton全选
- function allCheckEvent() {
- var arr = "";
- if ($('input[name="qx"][type="button"]').attr("class").indexOf("content-onButton") > -1) {
- $("input[name='bm'][type='checkbox']").each(function () {
- arr += $(this).val() + ",";
- });
- wd.edit.onoffEdit("bm", arr);
- } else {
- wd.edit.onoffEdit("bm", "");
- }
- }
- //2018-11-06
- //会签合稿节点
- /**
- * 合稿的版本
- */
- function versionListInit() {
- //1、使用treetable
- $('#versionList').treetable({
- expandable: true
- });
- //2、添加versionList的点击事件
- $("#versionList").on("click", "tr", function () {
- $(".list-checkedIcon").not(this).removeClass("list-checkedIcon");
- $(this).toggleClass("list-checkedIcon");
- var zwwj = $(this).attr("data-zwwj");
- if (zwwj != null && zwwj.trim().length > 0) {
- var url = document.getElementById("getZwwjUrl").value;
- $.ajax({
- type: "post",
- url: url,
- data: {
- 'zwwj': zwwj
- },
- async: false,
- success: function (data) {
- //加载其他的内容
- UE.getEditor("selectZwEdit").setContent(data);
- }
- });
- }
- });
- }
- //2018-11-08 cj搬运工
- var num = 0;
- var ondiv = false;
- var ontips = false;
- var hideTime = null;
- var islock = false;
- function versionListInit2() {
- //1、使用treetable
- /*$('#bmxdSelected').treetable({
- expandable: true
- });*/
- //2、添加versionList的点击事件
- $("#bmxdSelected>div>span.icon-unchecked").on("click", function () {
- var zwwj = $(this).parent().attr("data-zwwj");
- var xdsj = $(this).parent().attr("data-xdsj");
- var beforeZwwj = $("#beforeVersion").val();
- var beforeXdsj = $("#beforeXdsj").val();
- if($(this).hasClass("icon-checked")){
- $(this).attr("class", "icon-unchecked");
- num--;
- var this_ = this;
- $(this).parent().siblings().each(function (i,e) {
- if($($(e).children().get(0)).hasClass("icon-checked")){
- zwwj = $(e).attr("data-zwwj");
- xdsj = $(e).attr("data-xdsj");
- return false;
- }
- });
- }else{
- $(this).attr("class", "icon-checked");
- num++;
- }
- /*if ($(this).parent().attr("data-zwwj") == $("#beforeVersion").val() && num == 1) {
- $(this).parent().attr("class", "list-checkedIcon");
- $("#beforeVersion").val(zwwj);
- $("#beforeXdsj").val(xdsj);
- return;
- }*/
-
- /*$(this).parent().siblings().each(function () {
- if ($(this).parent().attr("class") == "list-background") {
- $(this).parent().attr("class", "list-background");
- } else {
- $(this).parent().attr("class", "list-checkedIcon");
- }
- });*/
- if (num == 2) {
- var beforeContent = getZwByZwwj(beforeZwwj);
- var selectContent = getZwByZwwj(zwwj);
- if (beforeXdsj > xdsj) {
- diffInitUI({
- textboxId: "compareDiv",
- leftHtml: beforeContent,
- rightHtml: selectContent
- });
- } else {
- diffInitUI({
- textboxId: "compareDiv",
- leftHtml: selectContent,
- rightHtml: beforeContent
- });
- }
- } else {
- diffInitUI({
- textboxId: "compareDiv",
- leftHtml: "",
- rightHtml: ""
- });
- }
- if (num == 3) {
- num = 1;
- $(this).parent().siblings().each(function (i,e) {
- $($(e).children().get(0)).attr("class", "icon-unchecked");
- });
- $(this).attr("class", "icon-checked");
- }
- $("#beforeVersion").val(zwwj);
- $("#beforeXdsj").val(xdsj);
- });
- //显示头像
- //3、添加versionList的悬停事件
- $(".smname").on("mouseenter mouseleave", function (enent) {
- if (event.type == "mouseover") {
- if(!islock){
- $(".tips").remove();
- ondiv = true;
- tips($(this));
- $(".flashMsg-lockButton").on("click",function(){
- islock = true;
- $(".flashMsg-lockButton").hide();
- $(".flashMsg-closeButton").show();
- })
- $(".flashMsg-closeButton").on("click",function(){
- islock = false;
- $(".flashMsg-closeButton").hide();
- $(".flashMsg-lockButton").show();
- $(".tips").remove();
- ondiv = false;
- ontips = false;
- // var hideTime = null;
- })
- }
- } else if (event.type == "mouseout") {
- ondiv = false;
- $(".tips").on("mouseenter",function(){
- ontips = true;
- });
- $(".tips").on("mouseleave",function(){
- ontips = false;
- if(!ondiv && !ontips && !islock){
- $(".tips").remove();
- }
-
- })
- hideTime = setTimeout(function(){
- if(!ondiv && !ontips && !islock){
- $(".tips").remove();
- }
- }, 100);
-
- }
-
- });
-
- }
- /*
- 文书会签合稿页面的对比函数
- */
- function hgCompare(versionPath){
- let zwwj = $("#wszwwj").val();
- var beforeContent = getZwByZwwj(versionPath);
- var selectContent = getZwByZwwj(zwwj);
- diffInitUI({
- textboxId: "compareDiv",
- leftHtml: beforeContent,
- rightHtml: selectContent
- });
- }
- function tips(obj) {
- var left = $(obj).offset().left;
- var top = $(obj).offset().top;
- var height = $(obj).height();
- var imgPath = $(obj).attr('data-ysz');
- if($(obj).attr('data-sm') == ""){
- var sm = "";
- }else{
- var sm = '<div id="wdhelpdialog" class="flashMsg-div help-size-m" style="position:relative"><div style="text-align:left;display:inline-block;min-height:25px;"><span style="display:inline-block;text-align:center;margin-bottom:5px">'+$(obj).attr('data-bmmc')+'</span></div><div class="flashMsg-down"></div><div class="flashMsg-title" style="position:absolute;top:6px;right:20px;"><div title="已锁定" class="flashMsg-lockButton" style="display: block;"></div><div title="关闭" class="flashMsg-closeButton" style="display: none;"></div></div><div class=""><p class="smallHelp-text">'+$(obj).attr('data-sm')+'</p></div></div>'
- }
- var tipHtml;
- if(imgPath&&imgPath.indexOf("..")>-1){
- imgPath = getDataUrl+"&path="+encodeURIComponent(imgPath);//getDataUrl是在部件里面声明的变量
- tipHtml = '<div class="tips" id="tips" style="position: absolute;left: ' + (left + 5) + 'px; z-index: 999999999999999;">'+
- '<div class="personalPhoto-small" style="margin-left:16px;float:none;">' +
- '<img src="' + imgPath + '" />'+
- '</div>' + sm + '</div>';
- }else{
- tipHtml = '<div class="tips" id="tips" style="position: absolute;left: ' + (left + 5) + 'px; z-index: 999999999999999;">'+
- '<div class="personalPhoto-small" style="margin-left:16px;float:none;">' +
- '<img src="' + imgPath + '" />'+
- '</div>' + sm + '</div>';
- }
-
- $("body").append(tipHtml);
- var tipsHeight = $(".tips").height();
- $(".tips").css({
- "top":(top - tipsHeight + 5 ) + "px"
- })
- // console.log("tipsHeight---------------|" + tipsHeight)
- }
- function getZwByZwwj(zwwj) {
- var zwContent = "";
- if (zwwj != null && zwwj.trim().length > 0) {
- var url = document.getElementById("getZwwjUrl").value;
- $.ajax({
- type: "post",
- url: url,
- data: {
- 'lj': zwwj
- },
- async: false,
- success: function (data) {
- //加载其他的内容
- zwContent = data;
- }
- });
- }
- return zwContent;
- }
|