style(审批详情页):先将地图隐藏,按需显示
Showing
4 changed files
with
67 additions
and
177 deletions
... | @@ -61,8 +61,7 @@ $(function () { | ... | @@ -61,8 +61,7 @@ $(function () { |
61 | // 去掉tabs | 61 | // 去掉tabs |
62 | if (orign != 'ghsc') { | 62 | if (orign != 'ghsc') { |
63 | $('#isTabs').remove(); | 63 | $('#isTabs').remove(); |
64 | } | 64 | }; |
65 | ; | ||
66 | if (orign === 'ghsc') { | 65 | if (orign === 'ghsc') { |
67 | $("#continueProject").remove(); | 66 | $("#continueProject").remove(); |
68 | $("#createProject").html('<span class="glyphicon glyphicon-download-alt" style="font-size: 15px"></span><a class="bumpbox_white">新建</a>').show(); | 67 | $("#createProject").html('<span class="glyphicon glyphicon-download-alt" style="font-size: 15px"></span><a class="bumpbox_white">新建</a>').show(); | ... | ... |
... | @@ -197,9 +197,9 @@ $(function () { | ... | @@ -197,9 +197,9 @@ $(function () { |
197 | } else if (!taskId && stats == "Manage") { | 197 | } else if (!taskId && stats == "Manage") { |
198 | lookProjectManage(); | 198 | lookProjectManage(); |
199 | } else { | 199 | } else { |
200 | if(stats == "dealedproject"){ | 200 | if (stats == "dealedproject") { |
201 | lookThroughProject(); | 201 | lookThroughProject(); |
202 | }else if (stats == "correctionproject") { | 202 | } else if (stats == "correctionproject") { |
203 | correctionRecordId = _queryParams.correctionRecordId; | 203 | correctionRecordId = _queryParams.correctionRecordId; |
204 | correctionProject(); | 204 | correctionProject(); |
205 | var res = getCorrectionRecord(correctionRecordId); | 205 | var res = getCorrectionRecord(correctionRecordId); |
... | @@ -270,7 +270,7 @@ function uploadBtnNone() { | ... | @@ -270,7 +270,7 @@ function uploadBtnNone() { |
270 | if (temp > -1) { | 270 | if (temp > -1) { |
271 | roleArr = roleIds.split(","); | 271 | roleArr = roleIds.split(","); |
272 | } | 272 | } |
273 | if(_flowId1!='t1001_4028d83970955d2a01709577b3870018'){ | 273 | if (_flowId1 != 't1001_4028d83970955d2a01709577b3870018') { |
274 | return; | 274 | return; |
275 | } | 275 | } |
276 | $.ajax({ | 276 | $.ajax({ |
... | @@ -432,9 +432,11 @@ function initBureau(currentUnitId) { | ... | @@ -432,9 +432,11 @@ function initBureau(currentUnitId) { |
432 | } | 432 | } |
433 | }); | 433 | }); |
434 | } | 434 | } |
435 | |||
435 | var flag = true; | 436 | var flag = true; |
436 | var invFlag; | 437 | var invFlag; |
437 | var invFlag1; | 438 | var invFlag1; |
439 | |||
438 | function initOneMap() { | 440 | function initOneMap() { |
439 | // 初始化地图 | 441 | // 初始化地图 |
440 | initGis(_projectId); | 442 | initGis(_projectId); |
... | @@ -460,7 +462,7 @@ function initOneMap() { | ... | @@ -460,7 +462,7 @@ function initOneMap() { |
460 | } | 462 | } |
461 | // 点击录入坐标 | 463 | // 点击录入坐标 |
462 | $("#AxisMap").attr("disabled", false).click(function () { | 464 | $("#AxisMap").attr("disabled", false).click(function () { |
463 | if(invFlag) { | 465 | if (invFlag) { |
464 | clearTimeout(invFlag) | 466 | clearTimeout(invFlag) |
465 | } | 467 | } |
466 | invFlag = setTimeout(() => { | 468 | invFlag = setTimeout(() => { |
... | @@ -478,11 +480,11 @@ function initOneMap() { | ... | @@ -478,11 +480,11 @@ function initOneMap() { |
478 | }); | 480 | }); |
479 | // 点击查看大图 | 481 | // 点击查看大图 |
480 | $("#MaxMap").attr("disabled", false).click(function () { | 482 | $("#MaxMap").attr("disabled", false).click(function () { |
481 | if(invFlag1) { | 483 | if (invFlag1) { |
482 | clearTimeout(invFlag1) | 484 | clearTimeout(invFlag1) |
483 | } | 485 | } |
484 | invFlag1 = setTimeout(() => { | 486 | invFlag1 = setTimeout(() => { |
485 | if(_projectId == ""){ | 487 | if (_projectId == "") { |
486 | layer.msg("请先保存!", {icon: 2}); | 488 | layer.msg("请先保存!", {icon: 2}); |
487 | } | 489 | } |
488 | if (_projectId) { | 490 | if (_projectId) { |
... | @@ -1199,7 +1201,7 @@ function lookThroughProject() { | ... | @@ -1199,7 +1201,7 @@ function lookThroughProject() { |
1199 | console.log("查询当前流程的所有环节失败"); | 1201 | console.log("查询当前流程的所有环节失败"); |
1200 | } | 1202 | } |
1201 | }); | 1203 | }); |
1202 | if (_flowId=='t1001_4028d83970955d2a01709577b3870018') {//判断是不是数据申请流程 | 1204 | if (_flowId == 't1001_4028d83970955d2a01709577b3870018') {//判断是不是数据申请流程 |
1203 | rootPath = project.attachpath; | 1205 | rootPath = project.attachpath; |
1204 | loadMaterialsNew(res.data); | 1206 | loadMaterialsNew(res.data); |
1205 | $("#project_saveSuggest").css("display", "none"); | 1207 | $("#project_saveSuggest").css("display", "none"); |
... | @@ -1376,10 +1378,10 @@ function dealingProject() { | ... | @@ -1376,10 +1378,10 @@ function dealingProject() { |
1376 | console.log("查询当前流程的所有环节失败"); | 1378 | console.log("查询当前流程的所有环节失败"); |
1377 | } | 1379 | } |
1378 | }); | 1380 | }); |
1379 | if(_flowId=='t1001_4028d83970955d2a01709577b3870018'){ | 1381 | if (_flowId == 't1001_4028d83970955d2a01709577b3870018') { |
1380 | rootPath = project.attachpath; | 1382 | rootPath = project.attachpath; |
1381 | loadMaterialsNew(flowObjectName); | 1383 | loadMaterialsNew(flowObjectName); |
1382 | }else if (_flowId == 't1001_4028d839710f68d101710f8b74ad0006'){ | 1384 | } else if (_flowId == 't1001_4028d839710f68d101710f8b74ad0006') { |
1383 | rootPath = project.attachpath; | 1385 | rootPath = project.attachpath; |
1384 | loadAttach(project.attachpath, data.projectMaterialDirList);//加载附件 | 1386 | loadAttach(project.attachpath, data.projectMaterialDirList);//加载附件 |
1385 | } | 1387 | } |
... | @@ -4897,50 +4899,6 @@ function returned() { | ... | @@ -4897,50 +4899,6 @@ function returned() { |
4897 | } | 4899 | } |
4898 | }); | 4900 | }); |
4899 | } | 4901 | } |
4900 | |||
4901 | |||
4902 | /*function loadDockinglSystemData(flowid, _dockingid) { | ||
4903 | $.ajax({ | ||
4904 | type: "POST", | ||
4905 | url: CONF_DOCKINGSYSTEM_SERVERURL + '/xiangj/resource/get', | ||
4906 | data: {'sxslbm': _dockingid, 'flowid': flowid}, | ||
4907 | dataType: 'json', | ||
4908 | success: function (result) { | ||
4909 | if (result.status == 'ok') { | ||
4910 | dataList.map = result.data; | ||
4911 | } else { | ||
4912 | _dockingid = 'error' | ||
4913 | console.log(result.message); | ||
4914 | } | ||
4915 | }, | ||
4916 | error: function (e) { | ||
4917 | console.log(e); | ||
4918 | _dockingid = 'error'; | ||
4919 | } | ||
4920 | }); | ||
4921 | }*/ | ||
4922 | |||
4923 | /*function getSxbmByProjectid(projectid) { | ||
4924 | var thisfm = this; | ||
4925 | $.ajax({ | ||
4926 | type: "POST", | ||
4927 | url: CONF_DOCKINGSYSTEM_SERVERURL + '/xiangj/resource/getSxbmByProjectid', | ||
4928 | data: {'projectid': projectid}, | ||
4929 | dataType: 'json', | ||
4930 | success: function (result) { | ||
4931 | if (result.status == 'ok') { | ||
4932 | _dockingid = result.data; | ||
4933 | } else { | ||
4934 | _dockingid = 'error'; | ||
4935 | } | ||
4936 | }, | ||
4937 | error: function (e) { | ||
4938 | console.log(e); | ||
4939 | _dockingid = 'error'; | ||
4940 | } | ||
4941 | }); | ||
4942 | }*/ | ||
4943 | |||
4944 | function validateMaterialRequired() { | 4902 | function validateMaterialRequired() { |
4945 | var isRe = {flag: false, message: '效验成功'}; | 4903 | var isRe = {flag: false, message: '效验成功'}; |
4946 | 4904 | ||
... | @@ -5047,7 +5005,8 @@ function displayBlock(nodeName, _projerct, _flage) { | ... | @@ -5047,7 +5005,8 @@ function displayBlock(nodeName, _projerct, _flage) { |
5047 | } | 5005 | } |
5048 | }); | 5006 | }); |
5049 | //flag 已办结 | 5007 | //flag 已办结 |
5050 | if (version && version.indexOf('1.0') > -1) {//判断是不是规划审查流程 | 5008 | if (version && version.indexOf('1.0') > -1) { |
5009 | //判断是不是规划审查流程 | ||
5051 | // FIXME: 申请环节为新增流程 申请数据流程 | 5010 | // FIXME: 申请环节为新增流程 申请数据流程 |
5052 | if (hjArr.includes(flowObjectId)) { | 5011 | if (hjArr.includes(flowObjectId)) { |
5053 | if (_flowId == 't1001_4028d83970955d2a01709577b3870018') {//判断是不是成果审查流程 | 5012 | if (_flowId == 't1001_4028d83970955d2a01709577b3870018') {//判断是不是成果审查流程 |
... | @@ -5077,7 +5036,7 @@ function displayBlock(nodeName, _projerct, _flage) { | ... | @@ -5077,7 +5036,7 @@ function displayBlock(nodeName, _projerct, _flage) { |
5077 | } | 5036 | } |
5078 | } | 5037 | } |
5079 | }); | 5038 | }); |
5080 | if(lcyj.length>0){ | 5039 | if (lcyj.length > 0) { |
5081 | var _width = $("#project_suggest_div").width(); | 5040 | var _width = $("#project_suggest_div").width(); |
5082 | $("#project_suggest_div").css({ | 5041 | $("#project_suggest_div").css({ |
5083 | "display": "flex", | 5042 | "display": "flex", |
... | @@ -5107,6 +5066,8 @@ function displayBlock(nodeName, _projerct, _flage) { | ... | @@ -5107,6 +5066,8 @@ function displayBlock(nodeName, _projerct, _flage) { |
5107 | $('#project_saveSuggest').off('click').on('click', function () { | 5066 | $('#project_saveSuggest').off('click').on('click', function () { |
5108 | saveSuggest($('#project_textarea_cs').val()); | 5067 | saveSuggest($('#project_textarea_cs').val()); |
5109 | }); | 5068 | }); |
5069 | }else { | ||
5070 | $("#browsingGrp").css('display', 'inline-block'); | ||
5110 | } | 5071 | } |
5111 | 5072 | ||
5112 | if (_flowId == 't1001_4028d839710f68d101710f8b74ad0006') {//判断是不是数据申请流程 | 5073 | if (_flowId == 't1001_4028d839710f68d101710f8b74ad0006') {//判断是不是数据申请流程 |
... | @@ -5126,7 +5087,7 @@ function displayBlock(nodeName, _projerct, _flage) { | ... | @@ -5126,7 +5087,7 @@ function displayBlock(nodeName, _projerct, _flage) { |
5126 | */ | 5087 | */ |
5127 | else if (version && version.indexOf('2.0') > -1) {//判断是不是业务协同模块 | 5088 | else if (version && version.indexOf('2.0') > -1) {//判断是不是业务协同模块 |
5128 | initOneMap(); | 5089 | initOneMap(); |
5129 | var arr1=['sid-862DE529-CECB-4360-ABDB-CFA518A0907F','sid-1CC0CEE0-D6C2-461A-807B-2361D0E8BC54','sid-2D676B0B-FBF0-42E3-9A8C-7860614DAF7A']; | 5090 | var arr1 = ['sid-862DE529-CECB-4360-ABDB-CFA518A0907F', 'sid-1CC0CEE0-D6C2-461A-807B-2361D0E8BC54', 'sid-2D676B0B-FBF0-42E3-9A8C-7860614DAF7A']; |
5130 | $("#form_div").children('div:first-child').css('margin-top', '0'); | 5091 | $("#form_div").children('div:first-child').css('margin-top', '0'); |
5131 | //FIXME:wei | 5092 | //FIXME:wei |
5132 | //如果环节id 等于流程环节启动id | 5093 | //如果环节id 等于流程环节启动id |
... | @@ -5141,29 +5102,29 @@ function displayBlock(nodeName, _projerct, _flage) { | ... | @@ -5141,29 +5102,29 @@ function displayBlock(nodeName, _projerct, _flage) { |
5141 | lcyj = res.data; | 5102 | lcyj = res.data; |
5142 | } | 5103 | } |
5143 | }); | 5104 | }); |
5144 | if(detailType != undefined){ | 5105 | if (detailType != undefined) { |
5145 | if(detailType == "1"){ | 5106 | if (detailType == "1") { |
5146 | if(flowObjectId == startTaskId){ | 5107 | if (flowObjectId == startTaskId) { |
5147 | $('#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); | 5108 | $('#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); |
5148 | }else{ | 5109 | } else { |
5149 | $('#ywxt_right,#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); | 5110 | $('#ywxt_right,#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); |
5150 | } | 5111 | } |
5151 | } | 5112 | } |
5152 | if(detailType == "2"){ | 5113 | if (detailType == "2") { |
5153 | if (lcyj.length > 0) { | 5114 | if (lcyj.length > 0) { |
5154 | $('#ywxt_right,#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); | 5115 | $('#ywxt_right,#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); |
5155 | } else { | 5116 | } else { |
5156 | $('#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); | 5117 | $('#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); |
5157 | } | 5118 | } |
5158 | } | 5119 | } |
5159 | }else{ | 5120 | } else { |
5160 | $('#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); | 5121 | $('#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div').css('display', 'inline-block'); |
5161 | } | 5122 | } |
5162 | $("#createFolder,#uploadFile").show(); | 5123 | $("#createFolder,#uploadFile").show(); |
5163 | isTypeInreference = true; | 5124 | isTypeInreference = true; |
5164 | //$('#ywxt_right,#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div button').css('display', 'inline-block'); | 5125 | //$('#ywxt_right,#project_cl,#formPanel,#project_div_attachment,#form_div,#browsingGrp,#hint,#pro_btn_group_div button').css('display', 'inline-block'); |
5165 | if(_flowId=="t1001_4028d8397114eb4501713455a38d3544"){ | 5126 | if (_flowId == "t1001_4028d8397114eb4501713455a38d3544") { |
5166 | if(arr1.includes(flowObjectId)){ | 5127 | if (arr1.includes(flowObjectId)) { |
5167 | $("#pro_ywxt_csyj").remove(); | 5128 | $("#pro_ywxt_csyj").remove(); |
5168 | $("#project_ywxt_textarea_cs").remove(); | 5129 | $("#project_ywxt_textarea_cs").remove(); |
5169 | $("#project_ywxt_saveSuggest").remove(); | 5130 | $("#project_ywxt_saveSuggest").remove(); |
... | @@ -5197,40 +5158,9 @@ function displayBlock(nodeName, _projerct, _flage) { | ... | @@ -5197,40 +5158,9 @@ function displayBlock(nodeName, _projerct, _flage) { |
5197 | } | 5158 | } |
5198 | suggestFun1(nodeName); | 5159 | suggestFun1(nodeName); |
5199 | } | 5160 | } |
5200 | } | 5161 | else { |
5201 | 5162 | $("#browsingGrp").css('display', 'inline-block'); | |
5202 | /* | ||
5203 | // load Fs module | ||
5204 | function cgsbjdxx(_id) { | ||
5205 | layui.use('laytpl', function () { | ||
5206 | var laytpl = layui.laytpl; | ||
5207 | |||
5208 | if (!_id) { | ||
5209 | layer.msg("未查询到进度信息!"); | ||
5210 | return false; | ||
5211 | } | ||
5212 | // 联调 $(').html() | ||
5213 | $.ajax({ | ||
5214 | type: "POST", | ||
5215 | url: CONF_NEWGHSC_SERVERURL + '/bz/getZblcXx?id=' + _id, | ||
5216 | data: '', | ||
5217 | dataType: 'json', | ||
5218 | success: function (res) { | ||
5219 | console.log(res) | ||
5220 | if (res.code == 200) { | ||
5221 | //直接解析字符 | ||
5222 | laytpl($("#projectCgsbJdxx").html()).render(res.data, function (_html) { | ||
5223 | $("#project_jdxx ul.layui-timeline").html(_html); | ||
5224 | }); | ||
5225 | } else { | ||
5226 | layer.msg('error'); | ||
5227 | } | ||
5228 | }, | ||
5229 | error: function (e) { | ||
5230 | layer.msg('error'); | ||
5231 | } | 5163 | } |
5232 | }); | ||
5233 | }); | ||
5234 | } | 5164 | } |
5235 | 5165 | ||
5236 | /** | 5166 | /** |
... | @@ -5367,34 +5297,34 @@ function qualityInspection() { | ... | @@ -5367,34 +5297,34 @@ function qualityInspection() { |
5367 | layer.msg('请先保存项目!'); | 5297 | layer.msg('请先保存项目!'); |
5368 | return; | 5298 | return; |
5369 | } | 5299 | } |
5370 | if(fileListBack == null){ | 5300 | if (fileListBack == null) { |
5371 | layer.msg('请先导入成果包!'); | 5301 | layer.msg('请先导入成果包!'); |
5372 | return; | 5302 | return; |
5373 | } | 5303 | } |
5374 | var data = window.formMgr.getDataJson(); | 5304 | var data = window.formMgr.getDataJson(); |
5375 | var formData = JSON.parse(data); | 5305 | var formData = JSON.parse(data); |
5376 | var xmlx = formData.XM.XMLX; | 5306 | var xmlx = formData.XM.XMLX; |
5377 | if(xmlx == null || xmlx == "" || xmlx == undefined || xmlx == "请选择"){ | 5307 | if (xmlx == null || xmlx == "" || xmlx == undefined || xmlx == "请选择") { |
5378 | layer.msg("基本信息-规划类型不能为空"); | 5308 | layer.msg("基本信息-规划类型不能为空"); |
5379 | return; | 5309 | return; |
5380 | } | 5310 | } |
5381 | var ghjb = formData.XM.GHJB; | 5311 | var ghjb = formData.XM.GHJB; |
5382 | if(ghjb == null || ghjb == "" || ghjb == undefined || ghjb == "请选择"){ | 5312 | if (ghjb == null || ghjb == "" || ghjb == undefined || ghjb == "请选择") { |
5383 | layer.msg("基本信息-规划级别不能为空"); | 5313 | layer.msg("基本信息-规划级别不能为空"); |
5384 | return; | 5314 | return; |
5385 | } | 5315 | } |
5386 | var xmmc = formData.XM.XMMC; | 5316 | var xmmc = formData.XM.XMMC; |
5387 | if(xmmc == null || xmmc == "" || xmmc == undefined){ | 5317 | if (xmmc == null || xmmc == "" || xmmc == undefined) { |
5388 | layer.msg("基本信息-规划名称不能为空"); | 5318 | layer.msg("基本信息-规划名称不能为空"); |
5389 | return; | 5319 | return; |
5390 | } | 5320 | } |
5391 | var ghqx = formData.XM.GHQX; | 5321 | var ghqx = formData.XM.GHQX; |
5392 | if(ghqx == null || ghqx == "" || ghqx == undefined){ | 5322 | if (ghqx == null || ghqx == "" || ghqx == undefined) { |
5393 | layer.msg("基本信息-规划期限不能为空"); | 5323 | layer.msg("基本信息-规划期限不能为空"); |
5394 | return; | 5324 | return; |
5395 | } | 5325 | } |
5396 | var bsrq = formData.CG_LS.BSRQ; | 5326 | var bsrq = formData.CG_LS.BSRQ; |
5397 | if(bsrq == null || bsrq == "" || bsrq == undefined){ | 5327 | if (bsrq == null || bsrq == "" || bsrq == undefined) { |
5398 | layer.msg("版本信息-报送日期不能为空"); | 5328 | layer.msg("版本信息-报送日期不能为空"); |
5399 | return; | 5329 | return; |
5400 | } | 5330 | } |
... | @@ -5760,7 +5690,7 @@ function dTreeInit1(_id, _initData, _fn, _optFn) { | ... | @@ -5760,7 +5690,7 @@ function dTreeInit1(_id, _initData, _fn, _optFn) { |
5760 | // 绑定节点点击 | 5690 | // 绑定节点点击 |
5761 | 5691 | ||
5762 | 5692 | ||
5763 | dtree.on(`node('${_id}')`, (obj, e) =>{ | 5693 | dtree.on(`node('${_id}')`, (obj, e) => { |
5764 | if (typeof _fn === 'function') { | 5694 | if (typeof _fn === 'function') { |
5765 | _fn(obj.param); | 5695 | _fn(obj.param); |
5766 | } | 5696 | } |
... | @@ -5779,7 +5709,7 @@ function dTreeInit1(_id, _initData, _fn, _optFn) { | ... | @@ -5779,7 +5709,7 @@ function dTreeInit1(_id, _initData, _fn, _optFn) { |
5779 | _optFn.call(this, dtree.getParam(`${_id}`, $(this).data('id')), $(this).data('node')); | 5709 | _optFn.call(this, dtree.getParam(`${_id}`, $(this).data('id')), $(this).data('node')); |
5780 | }) | 5710 | }) |
5781 | } | 5711 | } |
5782 | }, 500); | 5712 | }, 500); |
5783 | } | 5713 | } |
5784 | 5714 | ||
5785 | /* | 5715 | /* |
... | @@ -5906,7 +5836,7 @@ function loadMaterialsNew(nodeName, rename) { | ... | @@ -5906,7 +5836,7 @@ function loadMaterialsNew(nodeName, rename) { |
5906 | } | 5836 | } |
5907 | 5837 | ||
5908 | parent.imgArrSrc = []; | 5838 | parent.imgArrSrc = []; |
5909 | let _data =fjDataFormat([res.data[0]]); | 5839 | let _data = fjDataFormat([res.data[0]]); |
5910 | //_data = fjDataFormat([res.data[0]]); | 5840 | //_data = fjDataFormat([res.data[0]]); |
5911 | dTreeInit('project_fjTree', _data, res => { | 5841 | dTreeInit('project_fjTree', _data, res => { |
5912 | // 点击附件查看附件预览 | 5842 | // 点击附件查看附件预览 |
... | @@ -5945,7 +5875,7 @@ function loadMaterialsNew(nodeName, rename) { | ... | @@ -5945,7 +5875,7 @@ function loadMaterialsNew(nodeName, rename) { |
5945 | deletefile2(resOpt.context, resOpt.basicData.isDir, 'origin', window.event || arguments.callee.caller.arguments[0], resOpt.nodeId); | 5875 | deletefile2(resOpt.context, resOpt.basicData.isDir, 'origin', window.event || arguments.callee.caller.arguments[0], resOpt.nodeId); |
5946 | } | 5876 | } |
5947 | });*/ | 5877 | });*/ |
5948 | if(res.data.length>1){ | 5878 | if (res.data.length > 1) { |
5949 | let data1 = fjDataFormat([res.data[1]]); | 5879 | let data1 = fjDataFormat([res.data[1]]); |
5950 | $("#noAttachment1").hide(); | 5880 | $("#noAttachment1").hide(); |
5951 | dTreeInit1('project_bgTree', data1, res => { | 5881 | dTreeInit1('project_bgTree', data1, res => { |
... | @@ -6404,13 +6334,15 @@ function saveSuggest(yjnr) { | ... | @@ -6404,13 +6334,15 @@ function saveSuggest(yjnr) { |
6404 | $.ajax({ | 6334 | $.ajax({ |
6405 | type: "POST", | 6335 | type: "POST", |
6406 | url: CONF_NEWGHSC_SERVERURL + '/ghsc/createScYjReport', | 6336 | url: CONF_NEWGHSC_SERVERURL + '/ghsc/createScYjReport', |
6407 | data: JSON.stringify({flowObjectId:flowObjectId, | 6337 | data: JSON.stringify({ |
6408 | userId:userid, | 6338 | flowObjectId: flowObjectId, |
6409 | userName:username, | 6339 | userId: userid, |
6410 | pid:_projectId}), | 6340 | userName: username, |
6341 | pid: _projectId | ||
6342 | }), | ||
6411 | dataType: 'json', | 6343 | dataType: 'json', |
6412 | contentType: "application/json;charset=UTF-8", | 6344 | contentType: "application/json;charset=UTF-8", |
6413 | async:false, | 6345 | async: false, |
6414 | success: function (res) { | 6346 | success: function (res) { |
6415 | if (res.code == 200) { | 6347 | if (res.code == 200) { |
6416 | layer.msg(res.msg); | 6348 | layer.msg(res.msg); |
... | @@ -6782,11 +6714,11 @@ function isTypeIn() { | ... | @@ -6782,11 +6714,11 @@ function isTypeIn() { |
6782 | $.ajax({ | 6714 | $.ajax({ |
6783 | type: "POST", | 6715 | type: "POST", |
6784 | url: CONF_GIS_ONEMAP + "projectMap/getProjectMapAndProjectLayerOne", | 6716 | url: CONF_GIS_ONEMAP + "projectMap/getProjectMapAndProjectLayerOne", |
6785 | data:JSON.stringify(param), | 6717 | data: JSON.stringify(param), |
6786 | contentType: 'application/json', | 6718 | contentType: 'application/json', |
6787 | async: false, | 6719 | async: false, |
6788 | success: function (res) { | 6720 | success: function (res) { |
6789 | if (res!= null&&res!="") { | 6721 | if (res != null && res != "") { |
6790 | return resolve(true) | 6722 | return resolve(true) |
6791 | } | 6723 | } |
6792 | return reject(false) | 6724 | return reject(false) |
... | @@ -6923,14 +6855,14 @@ async function sendClickBefore() { | ... | @@ -6923,14 +6855,14 @@ async function sendClickBefore() { |
6923 | }); | 6855 | }); |
6924 | if (_flowId == 't1001_4028d83970955d2a01709577b3870018') { | 6856 | if (_flowId == 't1001_4028d83970955d2a01709577b3870018') { |
6925 | if (flowObjectId == startTaskId) { | 6857 | if (flowObjectId == startTaskId) { |
6926 | if(!quality){ | 6858 | if (!quality) { |
6927 | layer.msg('您还没有进行一键质检'); | 6859 | layer.msg('您还没有进行一键质检'); |
6928 | return false; | 6860 | return false; |
6929 | } | 6861 | } |
6930 | } | 6862 | } |
6931 | } | 6863 | } |
6932 | 6864 | ||
6933 | var arr1=['sid-862DE529-CECB-4360-ABDB-CFA518A0907F','sid-1CC0CEE0-D6C2-461A-807B-2361D0E8BC54','sid-2D676B0B-FBF0-42E3-9A8C-7860614DAF7A']; | 6865 | var arr1 = ['sid-862DE529-CECB-4360-ABDB-CFA518A0907F', 'sid-1CC0CEE0-D6C2-461A-807B-2361D0E8BC54', 'sid-2D676B0B-FBF0-42E3-9A8C-7860614DAF7A']; |
6934 | var flowId1 = 't1001_4028d839710f68d101710f8b74ad0006' | 6866 | var flowId1 = 't1001_4028d839710f68d101710f8b74ad0006' |
6935 | var hjArr = []; | 6867 | var hjArr = []; |
6936 | $.ajax({ | 6868 | $.ajax({ |
... | @@ -6995,7 +6927,9 @@ async function sendClickBefore() { | ... | @@ -6995,7 +6927,9 @@ async function sendClickBefore() { |
6995 | } | 6927 | } |
6996 | } | 6928 | } |
6997 | } | 6929 | } |
6998 | var quality=false; | 6930 | |
6931 | var quality = false; | ||
6932 | |||
6999 | function createReport() { | 6933 | function createReport() { |
7000 | var data = window.formMgr.getDataJson(); | 6934 | var data = window.formMgr.getDataJson(); |
7001 | var formData = JSON.parse(data); | 6935 | var formData = JSON.parse(data); |
... | @@ -7017,27 +6951,27 @@ function createReport() { | ... | @@ -7017,27 +6951,27 @@ function createReport() { |
7017 | type: "POST", | 6951 | type: "POST", |
7018 | url: CONF_NEWGHSC_SERVERURL + '/ghsc/createPdfFileAndFold', | 6952 | url: CONF_NEWGHSC_SERVERURL + '/ghsc/createPdfFileAndFold', |
7019 | data: JSON.stringify({ | 6953 | data: JSON.stringify({ |
7020 | userId:userid, | 6954 | userId: userid, |
7021 | userName:username, | 6955 | userName: username, |
7022 | pid:_projectId, | 6956 | pid: _projectId, |
7023 | yjzjData:{ | 6957 | yjzjData: { |
7024 | xmlx:xmlx, | 6958 | xmlx: xmlx, |
7025 | ghjb:ghjb, | 6959 | ghjb: ghjb, |
7026 | xmmc:xmmc, | 6960 | xmmc: xmmc, |
7027 | ghqx:ghqx, | 6961 | ghqx: ghqx, |
7028 | bsrq:bsrq, | 6962 | bsrq: bsrq, |
7029 | ghfw:ghfw, | 6963 | ghfw: ghfw, |
7030 | cgbbh:cgbbh | 6964 | cgbbh: cgbbh |
7031 | } | 6965 | } |
7032 | }), | 6966 | }), |
7033 | async:false, | 6967 | async: false, |
7034 | dataType: 'json', | 6968 | dataType: 'json', |
7035 | contentType: "application/json;charset=UTF-8", | 6969 | contentType: "application/json;charset=UTF-8", |
7036 | success: function (res) { | 6970 | success: function (res) { |
7037 | console.log(res) | 6971 | console.log(res) |
7038 | if (res.code == 200) { | 6972 | if (res.code == 200) { |
7039 | layer.msg('生成一键质检报告成功'); | 6973 | layer.msg('生成一键质检报告成功'); |
7040 | $("#yjzjTableTpl").css("display","none"); | 6974 | $("#yjzjTableTpl").css("display", "none"); |
7041 | loadMaterialsNew(flowObjectName); | 6975 | loadMaterialsNew(flowObjectName); |
7042 | } else { | 6976 | } else { |
7043 | console.log("生成一键质检报告失败"); | 6977 | console.log("生成一键质检报告失败"); |
... | @@ -7049,5 +6983,5 @@ function createReport() { | ... | @@ -7049,5 +6983,5 @@ function createReport() { |
7049 | $("#yjzjTableTpl").remove(); | 6983 | $("#yjzjTableTpl").remove(); |
7050 | } | 6984 | } |
7051 | }); | 6985 | }); |
7052 | quality=true; | 6986 | quality = true; |
7053 | } | 6987 | } | ... | ... |
... | @@ -229,27 +229,6 @@ nav span { | ... | @@ -229,27 +229,6 @@ nav span { |
229 | <a class="glyphicon glyphicon-plus bindingAssignee" title="选择类型" onclick="selectProjecType()"></a> | 229 | <a class="glyphicon glyphicon-plus bindingAssignee" title="选择类型" onclick="selectProjecType()"></a> |
230 | </div> | 230 | </div> |
231 | 231 | ||
232 | <!-- <div class="search" style="position: relative;"> | ||
233 | <label>业务类别</label> | ||
234 | <select id="documentType" | ||
235 | onchange="changeType()"> | ||
236 | <option>所有</option> | ||
237 | <option v-for="option in options" v-bind:value="option.value">{{option.text}}</option> | ||
238 | </select> | ||
239 | </div> --> | ||
240 | <%--<div id="isTabs" style=" height: 32px;"> | ||
241 | <div style="display: flex;height: 32px;"> | ||
242 | <div onclick="lyfunc.tabsChanges(2)" id="cgscTable" class="tabs-changes select-tables"> | ||
243 | <img src="./img/menu-document-selected.png"/> | ||
244 | <span>成果审查</span> | ||
245 | </div> | ||
246 | <div onclick="lyfunc.tabsChanges(1)" id="sjsqTable" class="tabs-changes"> | ||
247 | <img src="./img/menu-document-checkbox.png"/> | ||
248 | <span>数据申请</span> | ||
249 | </div> | ||
250 | </div> | ||
251 | </div>--%> | ||
252 | |||
253 | <div class="clearboth"></div> | 232 | <div class="clearboth"></div> |
254 | <%-- <div style="border-bottom: 1px solid #cac8c8; margin-top: 5px;"></div>--%> | 233 | <%-- <div style="border-bottom: 1px solid #cac8c8; margin-top: 5px;"></div>--%> |
255 | 234 | ||
... | @@ -260,29 +239,7 @@ nav span { | ... | @@ -260,29 +239,7 @@ nav span { |
260 | <div id="page2" style="float:right"></div> | 239 | <div id="page2" style="float:right"></div> |
261 | 240 | ||
262 | </div> | 241 | </div> |
263 | <!-- <div id="nvaTab" class="data-list" style="margin-top: 10px;display:none"> | ||
264 | <div style="width: 100%;" dir="ltr" id="gbox_gridTable" | ||
265 | class="ui-jqgrid ui-widget ui-widget-content ui-corner-all"> | ||
266 | |||
267 | <div style="width: 100%;" id="gview_gridTable" | ||
268 | class="ui-jqgrid-view"> | ||
269 | |||
270 | <div class="ui-state-default ui-jqgrid-hdiv" style="width: 100%;"> | ||
271 | <table class="table datatable"> | ||
272 | 242 | ||
273 | </table> | ||
274 | <div class="nav-page" id="pageZero"> | ||
275 | <div> | ||
276 | 共<span id="total_records"></span>条,共<span id="total_page"></span>页 | ||
277 | </div> | ||
278 | <nav style="cursor:pointer;"> | ||
279 | <ul class="pagination"> | ||
280 | </nav> | ||
281 | </div> | ||
282 | </div> | ||
283 | </div> | ||
284 | </div> | ||
285 | </div> --> | ||
286 | <div id="msg" style="display: none;position: absolute;top: 50%;left: 50%;"> | 243 | <div id="msg" style="display: none;position: absolute;top: 50%;left: 50%;"> |
287 | <div style="color: #b9b4b4;font-size: 20px;position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);">没有相关数据</div> | 244 | <div style="color: #b9b4b4;font-size: 20px;position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);">没有相关数据</div> |
288 | </div> | 245 | </div> | ... | ... |
... | @@ -807,7 +807,7 @@ | ... | @@ -807,7 +807,7 @@ |
807 | 807 | ||
808 | <!-- GIS服务 --> | 808 | <!-- GIS服务 --> |
809 | <div id="browsingGrp" class="div-right-content-item" | 809 | <div id="browsingGrp" class="div-right-content-item" |
810 | style="display: inline-block;text-overflow: ellipsis;width: 100%;margin-left: 0;padding: 0px;"> | 810 | style="display: none;text-overflow: ellipsis;width: 100%;margin-left: 0;padding: 0px;"> |
811 | <div style="margin:33px 0 15px 0;"> | 811 | <div style="margin:33px 0 15px 0;"> |
812 | <img src="../../image/projecttask/dt.png" | 812 | <img src="../../image/projecttask/dt.png" |
813 | style="width: 25px;height:25px;margin-top: -5px;margin-right: 5px;"> | 813 | style="width: 25px;height:25px;margin-top: -5px;margin-right: 5px;"> | ... | ... |
-
Please register or sign in to post a comment