Commit 9cc14195 authored by 黄奎's avatar 黄奎

页面修改

parent decf504e
...@@ -1252,9 +1252,6 @@ vjs.getAbsoluteURL = function(url){ ...@@ -1252,9 +1252,6 @@ vjs.getAbsoluteURL = function(url){
vjs.log = function(){ vjs.log = function(){
vjs.log.history = vjs.log.history || []; // store logs to an array for reference vjs.log.history = vjs.log.history || []; // store logs to an array for reference
vjs.log.history.push(arguments); vjs.log.history.push(arguments);
if(window.console){
window.console.log(Array.prototype.slice.call(arguments));
}
}; };
// Offset Left // Offset Left
......
...@@ -337,11 +337,7 @@ ...@@ -337,11 +337,7 @@
var _stuff_height = _max_y - _min_y + 50 var _stuff_height = _max_y - _min_y + 50
var _final_x = (this.graphSetting.viewSize.width - _stuff_width)/2 - _min_x var _final_x = (this.graphSetting.viewSize.width - _stuff_width)/2 - _min_x
var _final_y = (this.graphSetting.viewSize.height - _stuff_height)/2 - _min_y var _final_y = (this.graphSetting.viewSize.height - _stuff_height)/2 - _min_y
// if (window.SeeksGraphDebug) console.log('_min_x, _min_y, _stuff_width, _stuff_height:', _min_x, _min_y, _stuff_width, _stuff_height)
// var _final_x = -_min_x
// var _final_y = -_min_y
this.animateGoto(_final_x, _final_y, 500, () => { this.animateGoto(_final_x, _final_y, 500, () => {
// this.graphSetting.checkedNodeId = thisNode.id
this.refreshNVAnalysisInfo() this.refreshNVAnalysisInfo()
}) })
}) })
...@@ -365,9 +361,7 @@ ...@@ -365,9 +361,7 @@
} else { } else {
this.graphSetting.layouter = SeeksRGLayouters.createLayout(_defaultLayoutSetting, this.graphSetting) this.graphSetting.layouter = SeeksRGLayouters.createLayout(_defaultLayoutSetting, this.graphSetting)
} }
} else { }
console.log('你需要设置layouts来指定当前图谱可以使用的布局器!')
}
this.doLayout() this.doLayout()
callback(this) callback(this)
}, },
...@@ -788,9 +782,7 @@ ...@@ -788,9 +782,7 @@
} else { } else {
this.graphSetting.layouter = SeeksRGLayouters.createLayout(_defaultLayoutSetting, this.graphSetting) this.graphSetting.layouter = SeeksRGLayouters.createLayout(_defaultLayoutSetting, this.graphSetting)
} }
} else { }
console.log('你需要设置layouts来指定当前图谱可以使用的布局器!')
}
var __root_id = jsonData['rootId'] var __root_id = jsonData['rootId']
this.loadGraphJsonData(jsonData) this.loadGraphJsonData(jsonData)
...@@ -1056,7 +1048,7 @@ ...@@ -1056,7 +1048,7 @@
this.graphSetting.canvasOffset.y = _origin_offset_y this.graphSetting.canvasOffset.y = _origin_offset_y
this.canvasBackgroundColor = 'transparent' this.canvasBackgroundColor = 'transparent'
} catch (e) { } catch (e) {
console.log('[SEEKS Graph]Create and download image error:', e)
} }
}) })
}) })
......
...@@ -446,11 +446,12 @@ ...@@ -446,11 +446,12 @@
}, },
} }
}, },
created() {}, created() {
},
mounted() { mounted() {
if (this.$route.query.SourceId && this.$route.query.SourceId) { if (this.$route.query.SourceId && this.$route.query.SourceId) {
this.msg.SourceId = this.$route.query.SourceId; this.msg.SourceId = this.$route.query.SourceId;
} }
this.getData(); this.getData();
}, },
......
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