发布态文件,增加隐藏按钮逻辑
This commit is contained in:
parent
f5dc6ed03c
commit
cb9f80fea0
@ -329,6 +329,35 @@
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
|
||||
//打开正文的附件
|
||||
function openUpFileNew() {
|
||||
var elements = Model.define.elements;
|
||||
var type = "shape";
|
||||
for (var i in elements) {
|
||||
if (i!=undefined && (elements[i].name === "regulation" || elements[i].name === "card")) {
|
||||
shapeId = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Utils.selectShape(shapeId);
|
||||
var upfileUrl = "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_processlevel_upfile_portal_page";
|
||||
var upfileDlg=FrmDialog.open({
|
||||
title: "附件管理",
|
||||
width: 570,
|
||||
height: 380,
|
||||
url: upfileUrl,
|
||||
data:{"pl_uuid": ruuid, "shape_uuid": shapeId, "type": type},
|
||||
id:"upfileDlg"
|
||||
});
|
||||
setTimeout(function(){
|
||||
if (editable == false) {
|
||||
window.frames["id-awsui-win-frm-2013-frmupfileDlg"].$(".button").attr("disabled", "true").addClass("disable");
|
||||
window.frames["id-awsui-win-frm-2013-frmupfileDlg"].$(".del").hide();
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@ -466,15 +495,21 @@
|
||||
<div id="processTermination" awsui-qtip='废止' class="toolbar_button">
|
||||
<div class="ico processTermination"></div>
|
||||
</div>
|
||||
<div id="modelFileUpload" awsui-qtip='文件附件' class="toolbar_button">
|
||||
<div class="ico fileUpLoad" onclick="openUpFile()" ></div>
|
||||
</div>
|
||||
<div id="textFileShow" awsui-qtip='正文附件' class="toolbar_button">
|
||||
<div class="ico textFile" onclick="openUpFileNew()" ></div>
|
||||
</div>
|
||||
<div id="switchViews" awsui-qtip='切换视图' class="toolbar_button">
|
||||
<div class="ico switchViews"></div>
|
||||
</div>
|
||||
<div id="bar_importShape" awsui-qtip='上传附件并创建相应节点' class="toolbar_button" style="<#importShapeStyle>">
|
||||
<div class="ico ico_importShape"></div>
|
||||
</div>
|
||||
<!-- <div id="bar_import" awsui-qtip='导入' class="toolbar_button" style="<#importStyle>">
|
||||
<div class="ico ico_import"></div>
|
||||
</div> -->
|
||||
<!-- <div id="bar_importShape" awsui-qtip='上传附件并创建相应节点' class="toolbar_button" style="<#importShapeStyle>">
|
||||
<div class="ico ico_importShape"></div>
|
||||
</div>-->
|
||||
<!-- <div id="bar_import" awsui-qtip='导入' class="toolbar_button" style="<#importStyle>">
|
||||
<div class="ico ico_import"></div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1519,6 +1554,7 @@
|
||||
switchWpsDisplay(true);
|
||||
}else{
|
||||
$("#switchViews").css('display','none');
|
||||
$("#textFileShow").css('display','none');
|
||||
}
|
||||
$("#processTermination").off("click").on("click", function () {
|
||||
$.ajax({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user