Browse Source

优化代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
494ea99d4e
1 changed files with 0 additions and 26 deletions
  1. +0
    -26
      public/home/home.js

+ 0
- 26
public/home/home.js View File

@@ -119,7 +119,6 @@ document.onreadystatechange = function () {
continue;
}
}
//refresh3DInfo(record);
var recordPrefix = getMsg(record);
if(record.OpType == "6" || record.OpType == "10" || record.OpType == "12" || record.OpType == "13"){
html += recordPrefix + actionName;
@@ -208,31 +207,6 @@ function getTaskLink(record){
return re;
}

function refresh3DInfo(record){
if(record.OpType == "25" || record.OpType == "29" || record.OpType == "31"){
//cloudbrain one
//var lines = $('.rotation3D__line');
var span = $('.rotation3D__line').find("span")[0];
//console.log(span);
if(span != null){
span.innerText =record.RefName;
}
//$('.rotation3D__line').find("span").eq(0).text(record.RefName)
//console.log("cloudbrain one line length=" + lines.length);
//lines[0].find("span").text(record.RefName);
}else if(record.OpType == "26" || record.OpType == "27" || record.OpType == "28"){
//cloudbrain two
//var lines = $('.rotation3D__line');
//console.log("cloudbrain two line length=" + lines.length);
var span = $('.rotation3D__line').find("span")[1];
//console.log(span);
if(span != null){
span.innerText =record.RefName;
}
}

}

function getMsg(record){
var html ="";
html += "<div class=\"swiper-slide item\">";


Loading…
Cancel
Save