//以下代码支持pc端
(function(){
var doc=getCurrentDocument();
var statelabel=doc.getStateLabel();
var html = " <script type=\"text/javascript\">";
html += "$(document).ready(function(){";
if("印章保管员审核".equals(statelabel) || "归档".equals(statelabel)){
html+="jQuery(\".yc1\").css(\"display\",\"\");";
}else{
html+="jQuery(\".yc1\").css(\"display\",\"none\");";
}
html+= "});";
html+=" </script>";
return html;
})();
//以下代码支持手机端
//控件的ID需要隐藏多个时使用;隔开
(function(){
var doc=getCurrentDocument();
var html = "";
var opcation =getItemValueAsString("opcation");
if('选项A'.equals(opcation)){
html+="<o-action action-type='documentshowhidden' documenthidden='控件的ID' documentshow=''>hidden</o-action>";
}else{
html+="<o-action action-type='documentshowhidden' documenthidden='' documentshow='控件的ID'>show</o-action>";
}
return html;
})();
|