Browse Source

增加代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
58a939313a
2 changed files with 6 additions and 4 deletions
  1. +5
    -3
      public/home/home.js
  2. +1
    -1
      templates/base/footer.tmpl

+ 5
- 3
public/home/home.js View File

@@ -211,16 +211,18 @@ function getTaskLink(record){
function refresh3DInfo(record){
if(record.OpType == "25" || record.OpType == "29" || record.OpType == "31"){
//cloudbrain one
var lines = $('.rotation3D__line');
//var lines = $('.rotation3D__line');
var span = $('.rotation3D__line').find("span")[0];
//console.log(span);
span.innerText =record.RefName;
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');
//var lines = $('.rotation3D__line');
//console.log("cloudbrain two line length=" + lines.length);
var span = $('.rotation3D__line').find("span")[1];
//console.log(span);


+ 1
- 1
templates/base/footer.tmpl View File

@@ -121,7 +121,7 @@

for(var i=0;i<pArrays.length;i++){
var p = pArrays[i];
p.content=serverItemList[i].name;
p.innerText=serverItemList[i].name;
}
});
</script>


Loading…
Cancel
Save