与wps集成,模版页面提交
This commit is contained in:
parent
eee981a926
commit
c16a3598a8
@ -465,6 +465,7 @@
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
debugger;
|
||||
// 自定义帮助扩展
|
||||
initCustomHelpToolExtMenuUrl();
|
||||
if (methodId !== 'process.epc' && methodId != 'control.policy'&& methodId != 'process.flowchart') {
|
||||
@ -485,6 +486,14 @@
|
||||
$('#bar_importPolicyFile').css('display','none')
|
||||
}
|
||||
|
||||
//新增 打开wps文件逻辑
|
||||
if((methodId === 'control.policy' && ext3==='I/O_L4')|| methodId ==='engineering.standard' || methodId ==='process.scheme'){
|
||||
//执行切换显示按钮
|
||||
switchWpsDisplay(true);
|
||||
}else{
|
||||
switchWpsDisplay(false);
|
||||
}
|
||||
|
||||
isGetHidden();
|
||||
if (!installBatch) {// 未安装批处理应用,删除功能入口
|
||||
$('li[ac=batchreplace]').remove();
|
||||
@ -517,7 +526,7 @@
|
||||
verHtml += "<label class='awsui-checkbox-label'>" + tmp.nameVersion +"</label></br>";
|
||||
}
|
||||
$("#versionGroup").html(verHtml);
|
||||
$("#dialog_version_compare .awsui-checkbox").check();
|
||||
//$("#dialog_version_compare .awsui-checkbox").check();
|
||||
//三员管理,密级回显
|
||||
if (isHighSecurity == "true") {
|
||||
$("#securityLevelName").show()
|
||||
@ -698,7 +707,7 @@
|
||||
$('#shape_panel_more_shape').show();
|
||||
var panelHeight=$('#designer_viewport').height();
|
||||
$('#shape_panel').height(panelHeight - 40);
|
||||
$('#shape_panel_more_shape').css('margin-top',panelHeight - 40);
|
||||
$('#shape_panel_more_shape').css('margin-top',panelHeight);
|
||||
}
|
||||
//计算页面渲染效率
|
||||
//var t = window.performance.timing;
|
||||
@ -820,6 +829,35 @@
|
||||
ifrm.style.height = getDocHeight(doc) + 4 + "px";
|
||||
ifrm.style.visibility = 'visible';
|
||||
}
|
||||
function switchWpsDisplay(flag){
|
||||
debugger;
|
||||
if(flag){//显示wps页面,隐藏其余页面
|
||||
$("#wpsPage").css('display','block');
|
||||
$("#wpsPage").height($('#designer_viewport').height());
|
||||
$("#shape_panel").css('display','none');
|
||||
$("#shape_panel_more_shape").css('display','none');
|
||||
$("#designer_layout").css('display','none');
|
||||
//打开wps在线编辑页面
|
||||
openWpsUrl();
|
||||
}else{
|
||||
$("#wpsPage").css('display','none');
|
||||
$("#shape_panel").css('display','block');
|
||||
$("#shape_panel_more_shape").css('display','block');
|
||||
$("#designer_layout").css('display','block');
|
||||
}
|
||||
}
|
||||
function openWpsUrl(){
|
||||
$.ajax({
|
||||
url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.addons.wpsonline_get_previewUrl&fileId=" + ruuid,
|
||||
type: 'GET',
|
||||
success: function(data) {
|
||||
if(data.code ===200){
|
||||
//初始化建模导引
|
||||
$("#wpsUrl").attr("src", data.data.link);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
//渲染形状配置信息
|
||||
/*function painterShapeConfig(dataArray, shapeId, key) {
|
||||
for (var i = 0; i < dataArray.length; i++) {
|
||||
@ -1215,7 +1253,7 @@
|
||||
<canvas width="160px"></canvas>
|
||||
<div style="width: 180px;"></div>
|
||||
</div>
|
||||
<div id="dock">
|
||||
<div id="dock" style="z-index: 999;">
|
||||
<div class="dock_header"></div>
|
||||
<div class="dock_buttons">
|
||||
<div id="dock_btn_attribute" class="toolbar_button selected" style="<#attributeView>" onclick="Dock.showView('attribute');setCookie('<#uuid>', 'attribute,true');" awsui-qtip="数据属性">
|
||||
@ -1647,7 +1685,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="wpsPage" style="width: 100%;position: relative;background-color: beige;">
|
||||
<iframe id="wpsUrl" style="width: 100%;height: 100%;"></iframe>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div id="designer_footer">
|
||||
<div class="footer_content">
|
||||
@ -2484,12 +2526,12 @@
|
||||
<input type="hidden" id="exitAttributesJsonIds" value="" name="exitAttributesJsonIds" />
|
||||
</div>
|
||||
|
||||
<!--版本对比对话框-->
|
||||
<!--版本对比对话框
|
||||
<div title="版本对比" id="dialog_version_compare" style="width:300px; height: 200px">
|
||||
<div id="versionGroup" style="height: 130px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<!--版本对比结果-->
|
||||
<div title="版本对比" id="dialog_version_compare_result" style="width:400px; height: 300px">
|
||||
<div id="versionCompareResult" style="display: none; height: 70%;overflow: auto;">
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.33);
|
||||
-moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.33);
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.33);
|
||||
z-index: 0;
|
||||
z-index: 999;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
display: none;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user