待阅文件页面优化
This commit is contained in:
parent
daa67e14e3
commit
78afcec93b
@ -13,16 +13,16 @@
|
||||
<script src="../commons/js/jquery/scripts/jquery.js"></script>
|
||||
<script src="../commons/js/awsui.js"></script>
|
||||
<style>
|
||||
#edithtml span{font-size: 17px !important}
|
||||
#edithtml span{font-size: 19px !important}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<!--<div class="headertitle">文档详情</div>-->
|
||||
<!--<div class="headertitle">文档详情</div>-->
|
||||
<div class="bgc">
|
||||
<div class="h1title" style="font-size: 25px;font-weight: bold"><#ProcessTile></div>
|
||||
<div class="h1title" style="font-size: 25px;font-weight: bold;text-align:center;font-family:Microsoft YaHei;font-size:27px"><#ProcessTile></div>
|
||||
<div class="edit" >
|
||||
<div id="edithtml"></div>
|
||||
<div id="edithtml" style="height: auto;margin: 30px;"></div>
|
||||
|
||||
<div class="poster-btn" >收起</div>
|
||||
</div>
|
||||
@ -45,7 +45,11 @@
|
||||
// alert(JSON.parse($("#jsonlist").val()));
|
||||
|
||||
var code = $("#subString").val();
|
||||
|
||||
if($("#ProcessTile").val()!='关于发布《液态奶事业部2024年喷粉量管控项目激励方案》的通知(该文件已撤回,给您带来不便请谅解)'){
|
||||
$('#edithtml').html(code)
|
||||
}
|
||||
|
||||
if(code.length ==0){
|
||||
//$('#edithtml').css('height',0)
|
||||
$('#edithtml').css('height','8rem')
|
||||
@ -64,17 +68,16 @@
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if($("#ProcessTile").val()!='关于发布《液态奶事业部2024年喷粉量管控项目激励方案》的通知(该文件已撤回,给您带来不便请谅解)'){
|
||||
var json=JSON.parse($("#jsonlist").val());
|
||||
var str=''
|
||||
debugger;
|
||||
var str='';
|
||||
for(var i=0;i<json.length;i++){
|
||||
if(json[i].title.indexOf('xml') == -1){
|
||||
var ss = json[i].title;
|
||||
if(json[i].title.indexOf('.')!=-1){
|
||||
str+='<li id="'+json[i].id+'"><label><a target="_blank";style="cursor:pointer;" font-size:16px href="'+json[i].link+'">'+json[i].title+'</a></label></li>'
|
||||
str+='<li id="'+json[i].id+'"><label><a target="_blank";style="cursor:pointer;font-family:\'Microsoft YaHei\';font-size:16px" href="'+json[i].link+'">'+json[i].title+'</a></label></li>'
|
||||
}else{
|
||||
str+='<li id="'+json[i].id+'"><label><a target="_blank"; style="cursor:pointer;" font-size:16px href="'+json[i].link+'">'+json[i].title+'</a></label><span><a target="_blank"; onclick = createFile("'+json[i].taskId+'","'+json[i].title+'","'+json[i].id+'")><img src="../apps/com.awspaas.user.apps.yili.integration/img/down.png"></a></span> </li>'
|
||||
str+='<li id="'+json[i].id+'"><label><a target="_blank"; style="cursor:pointer;font-family:\'Microsoft YaHei\';font-size:16px" href="'+json[i].link+'">'+json[i].title+'</a></label><span><a target="_blank"; onclick = createFile("'+json[i].taskId+'","'+json[i].title+'","'+json[i].id+'")><img src="../apps/com.awspaas.user.apps.yili.integration/img/down.png"></a></span> </li>'
|
||||
}
|
||||
|
||||
//str+='<li id="'+json[i].id+'"><label><a target="_blank"; font-size:16px href="'+json[i].link+'">'+json[i].title+'</a></label><span><a href="'+json[i].url+'"><img src="../apps/com.awspaas.user.apps.yili.integration/img/down.png"></a></span> </li>'
|
||||
@ -82,14 +85,18 @@
|
||||
}
|
||||
}
|
||||
$('.nav').html(str);
|
||||
}
|
||||
|
||||
$('span').css({
|
||||
'font-family': 'Microsoft YaHei',
|
||||
});
|
||||
$("#RELEASE_INSTRUCTIONS_htmlRead p").slice(0, 3).remove();
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
function createFile(taskId,title,id){
|
||||
debugger;
|
||||
|
||||
function createFile(taskId,title,id){
|
||||
awsui.ajax.request({
|
||||
type: "POST",
|
||||
url: "./jd",
|
||||
@ -110,13 +117,12 @@ function createFile(taskId,title,id){
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function downloadZipFile(uuid,taskId,fileName,methodId) {
|
||||
debugger;
|
||||
function downloadZipFile(uuid,taskId,fileName,methodId) {
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_outputreport_output_downloadZipfile",
|
||||
@ -127,14 +133,39 @@ debugger;
|
||||
methodId:methodId
|
||||
},
|
||||
success : function(msg) {
|
||||
debugger;
|
||||
if (msg.result == "ok") {
|
||||
|
||||
window.location.href = msg.data.url;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.bgc{
|
||||
width: 100%; /* 缩小宽度 */
|
||||
/* height: 80%; */ /* 缩小高度,如需要 */
|
||||
padding: 7%; /* 在四周添加内边距,相当于整体缩小的效果 */
|
||||
box-sizing: border-box; /* 确保内边距不会增加元素的总尺寸 */
|
||||
/* background-color: lightblue; */ /* 仅为了视觉效果,显示缩小的div */
|
||||
margin: -87px auto; /* 如果需要水平居中 */
|
||||
font-family: '宋体', sans-serif;font-size: 30px;
|
||||
}
|
||||
.nav{
|
||||
width: 100%; /* 缩小宽度 */
|
||||
/* height: 80%; */ /* 缩小高度,如需要 */
|
||||
padding: 7%; /* 在四周添加内边距,相当于整体缩小的效果 */
|
||||
box-sizing: border-box; /* 确保内边距不会增加元素的总尺寸 */
|
||||
/* background-color: lightblue; */ /* 仅为了视觉效果,显示缩小的div */
|
||||
margin: 0 auto; /* 如果需要水平居中 */
|
||||
font-family: '宋体', sans-serif;font-size: 28px;
|
||||
}
|
||||
.edit{
|
||||
font-family: '宋体', sans-serif;font-size: 30px;
|
||||
|
||||
}
|
||||
.h1title{
|
||||
line-height:88px;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user