Commit f843c170 by liuyang

2024-04-11 企业管理log docId去空格优化

parent 98fb7153
......@@ -2451,8 +2451,8 @@ $(function () {
onSuccess: function (ei) {//返回结果集
if (ei.blocks.result !== undefined){
let results = ei.getBlock("result").getMappedRows();
if (results.length>0 && results[0].docIdPc.length>0){
let src = downloadHref(results[0].docIdPc,results[0].projectEnv)
if (results.length>0 && results[0].docIdPc.trim().length>0){
let src = downloadHref(results[0].docIdPc.trim(),results[0].projectEnv)
let img=`<img src="${src}" style='width:200px;height:55px;background-image: none;'/>`;
$("#sidebar .sidebar-content .side-header").html(img);
//$("#sidebar .sidebar-content .side-header").attr("src",downloadHref(results[0].docIdPc,results[0].projectEnv));
......
......@@ -12,11 +12,11 @@ $(function () {
template: function (item) {
let docId = item.docIdPc;
let template = '';
if (docId!= null && docId.length>0){
if (docId!= null && docId.trim().length>0){
let src = downloadHref(docId);
template = '<a style="cursor: pointer;display: inline-flex;justify-content: center;background-color: #e7e7e7" '
+ 'href="' + src + '" target="_blank">' +
'<img src="'+src+'" style="width:200px;height:50px;background-image: none;" alt="APP端log"/></a>';
'<img src="'+src+'" style="width:200px;height:50px;background-image: none;" alt="PC端log"/></a>';
}
return template;
}
......@@ -27,7 +27,7 @@ $(function () {
template: function (item) {
let docId = item.docIdApp;
let template = '';
if (docId!= null && docId.length>0){
if (docId!= null && docId.trim().length>0){
let src = downloadHref(docId);
template = '<a style="cursor: pointer;display: inline-flex;justify-content: center;background-color: #e7e7e7" '
+ 'href="' + src + '" target="_blank">' +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment