待阅文件页面优化
This commit is contained in:
parent
daa67e14e3
commit
78afcec93b
@ -12,17 +12,17 @@
|
|||||||
<link rel="stylesheet" href="../commons/css/awsui.css"/>
|
<link rel="stylesheet" href="../commons/css/awsui.css"/>
|
||||||
<script src="../commons/js/jquery/scripts/jquery.js"></script>
|
<script src="../commons/js/jquery/scripts/jquery.js"></script>
|
||||||
<script src="../commons/js/awsui.js"></script>
|
<script src="../commons/js/awsui.js"></script>
|
||||||
<style>
|
<style>
|
||||||
#edithtml span{font-size: 17px !important}
|
#edithtml span{font-size: 19px !important}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<!--<div class="headertitle">文档详情</div>-->
|
<!--<div class="headertitle">文档详情</div>-->
|
||||||
<div class="bgc">
|
<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 class="edit" >
|
||||||
<div id="edithtml"></div>
|
<div id="edithtml" style="height: auto;margin: 30px;"></div>
|
||||||
|
|
||||||
<div class="poster-btn" >收起</div>
|
<div class="poster-btn" >收起</div>
|
||||||
</div>
|
</div>
|
||||||
@ -43,18 +43,22 @@
|
|||||||
$(function (){
|
$(function (){
|
||||||
// alert($("#ProcessTile").val());
|
// alert($("#ProcessTile").val());
|
||||||
// alert(JSON.parse($("#jsonlist").val()));
|
// alert(JSON.parse($("#jsonlist").val()));
|
||||||
|
|
||||||
var code = $("#subString").val();
|
var code = $("#subString").val();
|
||||||
$('#edithtml').html(code)
|
|
||||||
|
if($("#ProcessTile").val()!='关于发布《液态奶事业部2024年喷粉量管控项目激励方案》的通知(该文件已撤回,给您带来不便请谅解)'){
|
||||||
|
$('#edithtml').html(code)
|
||||||
|
}
|
||||||
|
|
||||||
if(code.length ==0){
|
if(code.length ==0){
|
||||||
//$('#edithtml').css('height',0)
|
//$('#edithtml').css('height',0)
|
||||||
$('#edithtml').css('height','8rem')
|
$('#edithtml').css('height','8rem')
|
||||||
}else{
|
}else{
|
||||||
$('#edithtml').css('height','auto')
|
$('#edithtml').css('height','auto')
|
||||||
|
|
||||||
}
|
}
|
||||||
$(".poster-btn").click(function(){
|
$(".poster-btn").click(function(){
|
||||||
|
|
||||||
if ($(this).text() == "展开更多") {
|
if ($(this).text() == "展开更多") {
|
||||||
$(this).text("收起");
|
$(this).text("收起");
|
||||||
$("#edithtml").css("height","auto");
|
$("#edithtml").css("height","auto");
|
||||||
@ -64,77 +68,104 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if($("#ProcessTile").val()!='关于发布《液态奶事业部2024年喷粉量管控项目激励方案》的通知(该文件已撤回,给您带来不便请谅解)'){
|
||||||
|
var json=JSON.parse($("#jsonlist").val());
|
||||||
|
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-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-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>'
|
||||||
|
}
|
||||||
|
|
||||||
var json=JSON.parse($("#jsonlist").val());
|
//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>'
|
||||||
var str=''
|
|
||||||
debugger;
|
}
|
||||||
for(var i=0;i<json.length;i++){
|
}
|
||||||
if(json[i].title.indexOf('xml') == -1){
|
$('.nav').html(str);
|
||||||
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>'
|
$('span').css({
|
||||||
}else{
|
'font-family': 'Microsoft YaHei',
|
||||||
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>'
|
});
|
||||||
}
|
$("#RELEASE_INSTRUCTIONS_htmlRead p").slice(0, 3).remove();
|
||||||
|
|
||||||
//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>'
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$('.nav').html(str);
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
function createFile(taskId,title,id){
|
function createFile(taskId,title,id){
|
||||||
debugger;
|
awsui.ajax.request({
|
||||||
|
type: "POST",
|
||||||
awsui.ajax.request({
|
url: "./jd",
|
||||||
type: "POST",
|
dataType:"json",
|
||||||
url: "./jd",
|
async: false,
|
||||||
dataType:"json",
|
data: {
|
||||||
async: false,
|
sid: $("#sid").val(),
|
||||||
data: {
|
cmd: "com.awspaas.user.apps.integrates.createFileController",
|
||||||
sid: $("#sid").val(),
|
taskId:taskId,
|
||||||
cmd: "com.awspaas.user.apps.integrates.createFileController",
|
title:title,
|
||||||
taskId:taskId,
|
id:id
|
||||||
title:title,
|
},
|
||||||
id:id
|
success: function (msg) {
|
||||||
},
|
console.log(msg);
|
||||||
success: function (msg) {
|
if (msg.result == "ok") {
|
||||||
console.log(msg);
|
window.location.href = msg.data.url;
|
||||||
if (msg.result == "ok") {
|
}
|
||||||
window.location.href = msg.data.url;
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function downloadZipFile(uuid,taskId,fileName,methodId) {
|
function downloadZipFile(uuid,taskId,fileName,methodId) {
|
||||||
debugger;
|
$.ajax({
|
||||||
$.ajax({
|
type : "POST",
|
||||||
type : "POST",
|
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_outputreport_output_downloadZipfile",
|
||||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_outputreport_output_downloadZipfile",
|
data : {
|
||||||
data : {
|
splitId : uuid,
|
||||||
splitId : uuid,
|
toolbarname:fileName,
|
||||||
toolbarname:fileName,
|
taskIdParams:taskId,
|
||||||
taskIdParams:taskId,
|
methodId:methodId
|
||||||
methodId:methodId
|
},
|
||||||
},
|
success : function(msg) {
|
||||||
success : function(msg) {
|
if (msg.result == "ok") {
|
||||||
debugger;
|
window.location.href = msg.data.url;
|
||||||
if (msg.result == "ok") {
|
}
|
||||||
|
}
|
||||||
window.location.href = msg.data.url;
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user