Commit 87f43308 by 罗绍泽

办事大厅修改

parent f1c3eea2
$(function(){ $(function(){
document.domain="jfbrother.com";
//去掉尾部的一个div //去掉尾部的一个div
$('.index_footer').next().remove(); $('.index_footer').next().remove();
...@@ -25,7 +25,7 @@ $(function(){ ...@@ -25,7 +25,7 @@ $(function(){
init_officeDetail_container_minHeight(); init_officeDetail_container_minHeight();
//初始化iframe高度 //初始化iframe高度
initIframe(); //initIframe();
}) })
function initIframe() { function initIframe() {
...@@ -80,6 +80,20 @@ function init_office_module_bottom(){ ...@@ -80,6 +80,20 @@ function init_office_module_bottom(){
//模块的切换 //模块的切换
function init_office_change_moddle(){ function init_office_change_moddle(){
$('.office_bg_content>div>div').on('click',function(){ $('.office_bg_content>div>div').on('click',function(){
var src=$(this).attr('src');
var iframeId=$(this).attr('iframeId');
if(src){
if(!$("#"+iframeId).attr("src")){
$("#"+iframeId).attr("src",src);
document.getElementById(iframeId).onload = function() {
this.contentWindow.onbeforeunload = function() {
document.getElementById(iframeId).setAttribute('height', 'auto');
};
this.setAttribute('height', $(this.contentWindow.document.body).outerHeight(true));
};
}
}
var index = $('.office_bg_content>div>div').index($(this)); var index = $('.office_bg_content>div>div').index($(this));
$('.office_module').hide(); $('.office_module').hide();
$('.office_module').eq(index).show(); $('.office_module').eq(index).show();
...@@ -103,7 +117,7 @@ function init_office_apply_lump(){ ...@@ -103,7 +117,7 @@ function init_office_apply_lump(){
var $create_content = $('<div></div>'); var $create_content = $('<div></div>');
$create_content.bind('click',function(){ $create_content.bind('click',function(){
var processInfo=$(this).data('processInfo'); var processInfo=$(this).data('processInfo');
window.open($("#procAppUrl").val()+'/processView_detail?procId='+processInfo.UUID); window.open($("#procAppUrl").val()+'?redirectUrl=processView_detail%3fprocId='+processInfo.UUID);
// $("#proc_iframe_loading").show(); // $("#proc_iframe_loading").show();
// $("#proc_iframe").hide(); // $("#proc_iframe").hide();
// var processInfo=$(this).data('processInfo'); // var processInfo=$(this).data('processInfo');
......
...@@ -23,25 +23,25 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz ...@@ -23,25 +23,25 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz
<div class="row office_bg"> <div class="row office_bg">
<div class="office_bg_content col-md-12"> <div class="office_bg_content col-md-12">
<div class="col-md-3"> <div class="col-md-3">
<div class="office_bg_content_click"> <div class="office_bg_content_click" >
<img src="${ctx}/custom/images/office_apply.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_apply.png" width="100" height="100" />
<div>我要申请</div> <div>我要申请</div>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<div class=""> <div class="" src="<%=procApp %>?redirectUrl=processView_approval" iframeId="approval">
<img src="${ctx}/custom/images/office_examine.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_examine.png" width="100" height="100" />
<div>我要审批</div> <div>我要审批</div>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<div class=""> <div class="" src="<%=procApp %>?redirectUrl=processView_progressRate" iframeId="progressRate">
<img src="${ctx}/custom/images/office_progress.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_progress.png" width="100" height="100" />
<div>进度查询</div> <div>进度查询</div>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<div class=""> <div class="" src="<%=procApp %>?redirectUrl=processView_progressHistory" iframeId="progressHistory">
<img src="${ctx}/custom/images/office_history.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_history.png" width="100" height="100" />
<div>历史查询</div> <div>历史查询</div>
</div> </div>
...@@ -61,21 +61,21 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz ...@@ -61,21 +61,21 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz
<!-- 审批模块 --> <!-- 审批模块 -->
<div class="office_module row" style="display:none"> <div class="office_module row" style="display:none">
<iframe id="approval" style="width:100%" src="<%=procApp %>/processView_approval"></iframe> <iframe id="approval" style="width:100%" ></iframe>
</div> </div>
<!-- 进度查询模块 --> <!-- 进度查询模块 -->
<div class="office_module row" style="display:none"> <div class="office_module row" style="display:none">
<iframe id="progressRate" style="width:100%" src="<%=procApp %>/processView_progressRate"></iframe> <iframe id="progressRate" style="width:100%" ></iframe>
</div> </div>
<!-- 历史查询模块 --> <!-- 历史查询模块 -->
<div class="office_module row" style="display:none"> <div class="office_module row" style="display:none">
<iframe id="progressHistory" style="width:100%" src="<%=procApp %>/processView_progressHistory"></iframe> <iframe id="progressHistory" style="width:100%" ></iframe>
</div> </div>
<!--主容器结尾--> <!--主容器结尾-->
</div> </div>
<input type="text" id="procAppUrl" value="<%=procApp%>"> <input type="text" id="procAppUrl" value="<%=procApp%>" style="display:none;">
<!-- 内容部分2 --> <!-- 内容部分2 -->
<div class="container-fluid" id="process_content2" style="display:none;"> <div class="container-fluid" id="process_content2" style="display:none;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment