Browse Source

优化代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
fe78badfc5
1 changed files with 0 additions and 21 deletions
  1. +0
    -21
      templates/base/footer.tmpl

+ 0
- 21
templates/base/footer.tmpl View File

@@ -62,7 +62,6 @@
dataType:"json",
async:false,
success:function(json){
console.log("cloudbrain task info=" + json);
for(var i=0;i < json.length;i++){
jobTask[json[i].ai_center_id] =json[i].job_name;
}
@@ -109,21 +108,6 @@
//数据 blue, green, yellow
data: {
itemList:serverItemList,
/*
itemList: [
{ name:'鹏城云脑一号', type:'blue', icon:'', },
{ name:'鹏城云脑二号', type:'blue', icon:'', },
{ name:'北大人工智能集群系统', type:'green', icon:'', },
{ name:'合肥类脑智能开放平台', type:'green', icon:'', },
{ name:'武汉人工智能计算中心', type:'green', icon:'', },
{ name:'西安未来人工智能计算中心', type:'green', icon:'', },
{ name:'……', type:'yellow', icon:'', },
{ name:'中原人工智能计算中心', type:'green', icon:'', },
{ name:'成都人工智能计算中心', type:'green', icon:'', },
{ name:'横琴先进智能计算中心', type:'green', icon:'', },
{ name:'国家超级计算济南中心', type:'green', icon:'', },
],
*/
},
mounted: function () {
new Rotation3D({
@@ -142,16 +126,11 @@
});
$(document).ready(function(){
var pArrays=$('.itemList').find("p");
console.log("center length=" + pArrays.length);

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

var lines=$('.lineList').find("span");
console.log("lines length=" + lines.length);

for(var i=0; i< lines.length;i++){
if(jobTask[i+1] != null){
lines[i].innerText = jobTask[i+1];


Loading…
Cancel
Save