增加切换视图按钮
This commit is contained in:
parent
ba539f9ea3
commit
48c61c1c4c
@ -830,7 +830,6 @@
|
||||
ifrm.style.visibility = 'visible';
|
||||
}
|
||||
function switchWpsDisplay(flag){
|
||||
debugger;
|
||||
if(flag){//显示wps页面,隐藏其余页面
|
||||
$("#wpsPage").css('display','block');
|
||||
$("#wpsPage").height($('#designer_viewport').height());
|
||||
@ -846,9 +845,17 @@
|
||||
$("#designer_layout").css('display','block');
|
||||
}
|
||||
}
|
||||
//切换视图页面
|
||||
function switchViews(){
|
||||
if ($("#wpsPage").is(":visible")) {
|
||||
switchWpsDisplay(false);
|
||||
} else {
|
||||
switchWpsDisplay(true);
|
||||
}
|
||||
}
|
||||
function openWpsUrl(){
|
||||
$.ajax({
|
||||
url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.addons.wpsonline_get_previewUrl&fileId=" + ruuid,
|
||||
url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.addons.wpsonline_get_previewUrl&fileId=" + ruuid +"&fileName="+updatedPolicyFileList,
|
||||
type: 'GET',
|
||||
success: function(data) {
|
||||
if(data.code ===200){
|
||||
@ -1074,6 +1081,9 @@
|
||||
<!--<i class="ico awsui-iconfont"></i>-->
|
||||
<div class="ico modelingGuide"></div>
|
||||
</div>
|
||||
<div id="switchViews" awsui-qtip='切换视图' class="toolbar_button">
|
||||
<div class="ico switchViews" onclick="switchViews()"></div>
|
||||
</div>
|
||||
<div id="QuickPublishing" awsui-qtip='快捷发布' class="toolbar_button">
|
||||
<div style="font-weight: bold;font-size: medium;block-size: auto;">一键发布</div>
|
||||
</div>
|
||||
|
||||
@ -229,6 +229,13 @@
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.ico.switchViews{
|
||||
width: 20px;
|
||||
background-position: 0px 0px;
|
||||
background: url(../images/switchViews.png) no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.ico.processManifest{
|
||||
background-position: 0px 0px;
|
||||
background: url(../images/processlist.png) no-repeat;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user