Commit f8429996 authored by 黄奎's avatar 黄奎

页面修改

parent 6ddb30e3
...@@ -393,14 +393,11 @@ export default { ...@@ -393,14 +393,11 @@ export default {
var qMsg = {}; var qMsg = {};
queryCourseCategoryTree(qMsg).then(res => { queryCourseCategoryTree(qMsg).then(res => {
this.TreeCategoryList = res.Data; this.TreeCategoryList = res.Data;
console.log(this.objOption.CateId,this.TreeCategoryList)
//if(this.objOption.CateId!=0){
this.TreeCategoryList.forEach(x=>{ this.TreeCategoryList.forEach(x=>{
if(x.CateId==this.objOption.CateId){ if(x.CateId==this.objOption.CateId){
this.chosenCateId=x this.chosenCateId=x
} }
}) })
//}
}); });
}, },
//新增阶梯定价 //新增阶梯定价
...@@ -513,7 +510,7 @@ export default { ...@@ -513,7 +510,7 @@ export default {
this.objOption.StepPriceList = this.ladderPriceList; this.objOption.StepPriceList = this.ladderPriceList;
this.objOption.Teacher_Ids = Teacher_Ids; this.objOption.Teacher_Ids = Teacher_Ids;
this.objOption.Saleplat = salePlat; this.objOption.Saleplat = salePlat;
console.log(this.chosenCateId)
this.objOption.CateId=this.chosenCateId this.objOption.CateId=this.chosenCateId
saveCourseInfo(this.objOption) saveCourseInfo(this.objOption)
.then(res => { .then(res => {
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
Uid:this.getLocalStorage().Id Uid:this.getLocalStorage().Id
} }
UploadLocalSystem(JSON.stringify(fileParams), files.file, res => { UploadLocalSystem(JSON.stringify(fileParams), files.file, res => {
console.log("res", res);
}) })
}, },
//获取教师下拉 //获取教师下拉
......
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
title: '功能提示', title: '功能提示',
message: '灰度测试功能,即将在下版本中开启' message: '灰度测试功能,即将在下版本中开启'
}).onOk(() => { }).onOk(() => {
// console.log('OK')
}); });
}, },
}, },
......
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
title: '功能提示', title: '功能提示',
message: '此功能即将在下一版本中开放' message: '此功能即将在下一版本中开放'
}).onOk(() => { }).onOk(() => {
// console.log('OK')
}); });
}, },
logout() { logout() {
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
this.$router.push('/login') this.$router.push('/login')
}) })
.catch((e) => { .catch((e) => {
console.log(e)
}) })
}, },
}, },
......
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
}); });
}, },
changeType() { changeType() {
console.log(this.defaultGroupType);
}, },
querySearch() { querySearch() {
this.searchText = this.searchText.trim(); this.searchText = this.searchText.trim();
...@@ -372,7 +372,7 @@ export default { ...@@ -372,7 +372,7 @@ export default {
if (this.postsList.length > 0) { if (this.postsList.length > 0) {
this.showResult = true; this.showResult = true;
} }
console.log(this.postsList);
}); });
}, },
queryDepts() { queryDepts() {
...@@ -402,7 +402,6 @@ export default { ...@@ -402,7 +402,6 @@ export default {
return x; return x;
} }
}); });
console.log(pw);
if (pw && pw.Id) { if (pw && pw.Id) {
if (pw.State != this.defaultPower.id) { if (pw.State != this.defaultPower.id) {
pw.State = this.defaultPower.id; pw.State = this.defaultPower.id;
...@@ -446,7 +445,6 @@ export default { ...@@ -446,7 +445,6 @@ export default {
TargetId: this.kr.Id TargetId: this.kr.Id
}).then(r => { }).then(r => {
this.powersList = r.Data; this.powersList = r.Data;
console.log(this.powersList);
}); });
} }
} }
......
...@@ -402,7 +402,6 @@ export default { ...@@ -402,7 +402,6 @@ export default {
queryKRRuleRangeList({ queryKRRuleRangeList({
KeyResultId: this.kr.Id KeyResultId: this.kr.Id
}).then(r => { }).then(r => {
console.log(r.Data)
r.Data.forEach(x => { r.Data.forEach(x => {
if (x.Type == 2 && x.RelationId != this.userInfo.Id) { if (x.Type == 2 && x.RelationId != this.userInfo.Id) {
this.rangeList.push({ this.rangeList.push({
...@@ -419,10 +418,8 @@ export default { ...@@ -419,10 +418,8 @@ export default {
name: x.RelationName, name: x.RelationName,
type: 1 type: 1
}); });
console.log('this.rangeList',this.rangeList);
} }
}); });
console.log(this.rangeList);
}); });
} }
} }
......
...@@ -69,7 +69,6 @@ export default { ...@@ -69,7 +69,6 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.obj)
if(this.obj.IsDefaultState==1){ if(this.obj.IsDefaultState==1){
this.status='0' this.status='0'
}else{ }else{
......
...@@ -1000,7 +1000,7 @@ export default { ...@@ -1000,7 +1000,7 @@ export default {
}); });
}) })
.onCancel(() => { .onCancel(() => {
// console.log('>>>> Cancel')
}); });
} }
} }
......
...@@ -186,7 +186,6 @@ export default { ...@@ -186,7 +186,6 @@ export default {
watch: { watch: {
userObj: { userObj: {
handler(newV, oldV) { handler(newV, oldV) {
console.log(newV);
this.user = newV; this.user = newV;
this.init(); this.init();
this.queryLikeState(); this.queryLikeState();
...@@ -207,10 +206,8 @@ export default { ...@@ -207,10 +206,8 @@ export default {
}, },
created() { created() {
this.user = this.userObj; this.user = this.userObj;
console.log(this.auditMode);
if (this.auditMode) { if (this.auditMode) {
this.auditPeroids = this.peroids.split(","); this.auditPeroids = this.peroids.split(",");
console.log(this.auditPeroids);
} }
}, },
mounted() { mounted() {
...@@ -279,7 +276,6 @@ export default { ...@@ -279,7 +276,6 @@ export default {
this.periodList.forEach(x => { this.periodList.forEach(x => {
x.isHaveAudit = this.auditPeroids.indexOf(x.Id.toString()) != -1; x.isHaveAudit = this.auditPeroids.indexOf(x.Id.toString()) != -1;
}); });
console.log(this.periodList);
this.$emit("change", this.periodList[this.periodId].Id); this.$emit("change", this.periodList[this.periodId].Id);
if (!this.auditMode) { if (!this.auditMode) {
this.queryMyObjective(); this.queryMyObjective();
...@@ -303,7 +299,6 @@ export default { ...@@ -303,7 +299,6 @@ export default {
UserId: this.user.Id UserId: this.user.Id
}; };
queryOtherObjectiveList(msg).then(r => { queryOtherObjectiveList(msg).then(r => {
console.log(r);
if (r.Data.List && r.Data.List.length > 0) { if (r.Data.List && r.Data.List.length > 0) {
r.Data.List.forEach(x => { r.Data.List.forEach(x => {
x.PeriodId = this.periodList[this.periodId].Id; x.PeriodId = this.periodList[this.periodId].Id;
......
...@@ -284,7 +284,6 @@ export default { ...@@ -284,7 +284,6 @@ export default {
}, 200); }, 200);
} else { } else {
let keyn = `object_${this.objectiveList.length - 1}`; let keyn = `object_${this.objectiveList.length - 1}`;
console.log(this.$refs[keyn]);
this.$refs[keyn][0].$refs.obj_content.focus(); this.$refs[keyn][0].$refs.obj_content.focus();
} }
}, },
......
...@@ -264,13 +264,11 @@ export default { ...@@ -264,13 +264,11 @@ export default {
}, },
returnContent() { returnContent() {
this.dat.content = this.$refs.ue.getUEContent(); this.dat.content = this.$refs.ue.getUEContent();
console.log(this.dat.content);
}, },
showContent() { showContent() {
this.show = !this.show; this.show = !this.show;
}, },
setVal(val) { setVal(val) {
//this.$refs.div.innerHTML = val;
this.txt = val; this.txt = val;
this.ueditor.value = decodeURIComponent(val); this.ueditor.value = decodeURIComponent(val);
this.chosenText = ""; this.chosenText = "";
......
...@@ -140,7 +140,6 @@ ...@@ -140,7 +140,6 @@
}, },
computed: {}, computed: {},
mounted() { mounted() {
console.log(this.saveObj,'saveObj');
this.msg.Id = this.saveObj.Id; this.msg.Id = this.saveObj.Id;
this.daysOne = this.saveObj.Days.split(','); this.daysOne = this.saveObj.Days.split(',');
this.msg.Time = this.saveObj.Time; this.msg.Time = this.saveObj.Time;
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
// import SeeksRGStore from './core4vue/SeeksRGStore' // import SeeksRGStore from './core4vue/SeeksRGStore'
// import { mapState } from 'vuex' // import { mapState } from 'vuex'
// var _parent = this.$parent // var _parent = this.$parent
// console.log('GraphSettingPanel.vue:', _parent)
export default { export default {
name: 'GraphBottomPanel', name: 'GraphBottomPanel',
props: { props: {
......
...@@ -120,13 +120,6 @@ export default { ...@@ -120,13 +120,6 @@ export default {
downloadPanelWidth: 106 downloadPanelWidth: 106
} }
}, },
// watch: {
// 'graphSetting.layoutName': function(newV, oldV) {
// console.log('change layout:', newV, oldV)
// SeeksRGLayouters.switchLayout(newV, this.graphSetting)
// this.refresh()
// }
// },
mounted() { mounted() {
if (this.$parent.onDownloadExcel !== null) { if (this.$parent.onDownloadExcel !== null) {
this.downloadPanelWidth += 50 this.downloadPanelWidth += 50
...@@ -145,17 +138,16 @@ export default { ...@@ -145,17 +138,16 @@ export default {
this.refresh() this.refresh()
}, },
toggleAutoLayout() { toggleAutoLayout() {
// console.log('this.graphSetting.autoLayouting', this.graphSetting.autoLayouting)
this.graphSetting.autoLayouting = !this.graphSetting.autoLayouting this.graphSetting.autoLayouting = !this.graphSetting.autoLayouting
if (this.graphSetting.autoLayouting) { if (this.graphSetting.autoLayouting) {
if (!this.graphSetting.layouter.autoLayout) { if (!this.graphSetting.layouter.autoLayout) {
console.log('当前布局不支持自动布局!')
} else { } else {
this.graphSetting.layouter.autoLayout(true) this.graphSetting.layouter.autoLayout(true)
} }
} else { } else {
if (!this.graphSetting.layouter.stop) { if (!this.graphSetting.layouter.stop) {
console.log('当前布局不支持自动布局stop!')
} else { } else {
this.graphSetting.layouter.stop() this.graphSetting.layouter.stop()
} }
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
} else { } else {
this.zoom = 1 this.zoom = 1
} }
// console.log('Mini View style:', _view_center_x, _canvas_center_x)
var style = { var style = {
width: _width + 'px', width: _width + 'px',
height: _height + 'px', height: _height + 'px',
......
...@@ -112,7 +112,7 @@ import SeeksRGLayouters from './core4vue/SeeksRGLayouters' ...@@ -112,7 +112,7 @@ import SeeksRGLayouters from './core4vue/SeeksRGLayouters'
// import SeeksRGStore from './core4vue/SeeksRGStore' // import SeeksRGStore from './core4vue/SeeksRGStore'
// import { mapState } from 'vuex' // import { mapState } from 'vuex'
// var _parent = this.$parent // var _parent = this.$parent
// console.log('GraphSettingPanel.vue:', _parent)
export default { export default {
name: 'GraphSettingPanel', name: 'GraphSettingPanel',
props: { props: {
...@@ -129,16 +129,7 @@ export default { ...@@ -129,16 +129,7 @@ export default {
currentLayoutName: '' currentLayoutName: ''
} }
}, },
// computed: mapState({
// graphSetting: () => _parent.graphSetting
// }),
// watch: {
// 'graphSetting.layoutName': function(newV, oldV) {
// console.log('change layout:', newV, oldV)
// SeeksRGLayouters.switchLayout(newV, this.graphSetting)
// this.$parent.refresh()
// }
// },
methods: { methods: {
toggleSettingPanel() { toggleSettingPanel() {
this.showSettingPanel = !this.showSettingPanel this.showSettingPanel = !this.showSettingPanel
...@@ -146,13 +137,13 @@ export default { ...@@ -146,13 +137,13 @@ export default {
toggleAutoLayout() { toggleAutoLayout() {
if (this.graphSetting.autoLayouting) { if (this.graphSetting.autoLayouting) {
if (!this.graphSetting.layouter.autoLayout) { if (!this.graphSetting.layouter.autoLayout) {
console.log('当前布局不支持自动布局!')
} else { } else {
this.graphSetting.layouter.autoLayout(true) this.graphSetting.layouter.autoLayout(true)
} }
} else { } else {
if (!this.graphSetting.layouter.stop) { if (!this.graphSetting.layouter.stop) {
console.log('当前布局不支持自动布局stop!')
} else { } else {
this.graphSetting.layouter.stop() this.graphSetting.layouter.stop()
} }
......
...@@ -217,12 +217,10 @@ function SeeksAutoLayouter(layoutSetting, graphSetting) { ...@@ -217,12 +217,10 @@ function SeeksAutoLayouter(layoutSetting, graphSetting) {
if (zero_length < 30) { if (zero_length < 30) {
Kf = Kf * 100 Kf = Kf * 100
} }
// if (length < 100)Kf = Kf * 2
var _buff_x = (node1.x - node2.x) / length var _buff_x = (node1.x - node2.x) / length
var _buff_y = (node1.y - node2.y) / length var _buff_y = (node1.y - node2.y) / length
// if (_buff_x < 30)_buff_x = 1
// if (_buff_y < 30)_buff_y = 1
// console.log({ Kf, _buff_x, _buff_y, zero_length })
this.addFtoNode(node1, _buff_x * Kf, _buff_y * Kf, 0) this.addFtoNode(node1, _buff_x * Kf, _buff_y * Kf, 0)
this.addFtoNode(node2, _buff_x * Kf * -1, _buff_y * Kf * -1, 0) this.addFtoNode(node2, _buff_x * Kf * -1, _buff_y * Kf * -1, 0)
} }
...@@ -233,7 +231,7 @@ function SeeksAutoLayouter(layoutSetting, graphSetting) { ...@@ -233,7 +231,7 @@ function SeeksAutoLayouter(layoutSetting, graphSetting) {
return (8 - level) / 8 return (8 - level) / 8
} }
this.addFtoNode = function(node, x, y) { this.addFtoNode = function(node, x, y) {
// console.log('Add F:', node.text, type, parseInt(x), parseInt(y))
if (isNaN(x) || isNaN(y)) { if (isNaN(x) || isNaN(y)) {
return return
} }
......
...@@ -11,7 +11,6 @@ function SeeksFixedLayouter(layoutSetting, graphSetting) { ...@@ -11,7 +11,6 @@ function SeeksFixedLayouter(layoutSetting, graphSetting) {
} }
this.placeNodes = function(allNodes, rootNode) { this.placeNodes = function(allNodes, rootNode) {
if (!rootNode) { if (!rootNode) {
console.log('root is null:', rootNode)
return return
} else { } else {
if (window.SeeksGraphDebug) console.log('layout by root:', rootNode) if (window.SeeksGraphDebug) console.log('layout by root:', rootNode)
......
...@@ -194,17 +194,6 @@ ...@@ -194,17 +194,6 @@
}, },
data() { data() {
var wheelEvent = {} var wheelEvent = {}
// console.log('this.options.disableZoom:', this.options.disableZoom)
// if (this.options.disableZoom) {
// wheelEvent = {
// 'mousewheel':this.mouseListener
// }
// } else {
// wheelEvent = {
// 'mousewheel':this.mouseListener
// }
// console.log('wheelEvent:', wheelEvent)
// }
return { return {
wheelEvent, wheelEvent,
version: '1.1.0', version: '1.1.0',
...@@ -302,23 +291,11 @@ ...@@ -302,23 +291,11 @@
this.syncToolsPosition() this.syncToolsPosition()
}, },
methods: { methods: {
// getCanvasSizeAndPosition() {
// console.log('重新计算:getCanvasSizeAndPosition')
// return {
// 'width': this.graphSetting.canvasSize.width + 'px',
// 'height': this.graphSetting.canvasSize.height + 'px',
// 'margin-left': (this.graphSetting.canvasOffset.x) + 'px',
// 'margin-top': (this.graphSetting.canvasOffset.y) + 'px',
// 'background-color': this.canvasBackgroundColor,
// 'transform': 'scale(' + this.graphSetting.canvasZoom / 100 + ',' + this.graphSetting.canvasZoom / 100 + ')'
// // 'transform-origin': (this.graphSetting.canvasOffset.zoom_buff_x * 100).toFixed(2) + '% ' + (this.graphSetting.canvasOffset.zoom_buff_y * 100).toFixed(2) + '%'
// }
// },
init() { init() {
this.$refs.rgCanvas.style.setProperty('--stroke', 'url(\'#' + this.graphSetting.instanceId + '-lineStyle\')') this.$refs.rgCanvas.style.setProperty('--stroke', 'url(\'#' + this.graphSetting.instanceId + '-lineStyle\')')
this.$refs.rgCanvas.style.setProperty('--markerEnd', 'url(\'#' + this.graphSetting.instanceId + '-arrow-default\')') this.$refs.rgCanvas.style.setProperty('--markerEnd', 'url(\'#' + this.graphSetting.instanceId + '-arrow-default\')')
this.$refs.rgCanvas.style.setProperty('--markerEndChecked', 'url(\'#' + this.graphSetting.instanceId + '-arrow-checked\')') this.$refs.rgCanvas.style.setProperty('--markerEndChecked', 'url(\'#' + this.graphSetting.instanceId + '-arrow-checked\')')
// console.log('#############Seeks graph viewSize:', this.graphSetting.viewSize.width, this.graphSetting.viewSize.height)
this.cycleTask() this.cycleTask()
this.resetViewSize() this.resetViewSize()
this.refreshNVAnalysisInfo() this.refreshNVAnalysisInfo()
...@@ -1183,7 +1160,6 @@ ...@@ -1183,7 +1160,6 @@
this.graphSetting.canvasOffset.x += _speed_x this.graphSetting.canvasOffset.x += _speed_x
this.graphSetting.canvasOffset.y += _speed_y this.graphSetting.canvasOffset.y += _speed_y
}, () => { }, () => {
// console.log('分解完毕....')
callback() callback()
}) })
}, },
...@@ -1196,12 +1172,10 @@ ...@@ -1196,12 +1172,10 @@
this.animateStepAction(0, _perDelay, _allStepNum, () => { this.animateStepAction(0, _perDelay, _allStepNum, () => {
this.zoom(_speed) this.zoom(_speed)
}, () => { }, () => {
// console.log('分解完毕....')
callback() callback()
}) })
}, },
animateStepAction(stepIndex, delay, allStepNum, stepCallback, finalCallback) { animateStepAction(stepIndex, delay, allStepNum, stepCallback, finalCallback) {
// console.log(Date.now() + '步骤[' + stepIndex + ']')
if (stepIndex < allStepNum) { if (stepIndex < allStepNum) {
stepCallback(stepIndex, allStepNum) stepCallback(stepIndex, allStepNum)
setTimeout(() => { setTimeout(() => {
...@@ -1224,7 +1198,7 @@ ...@@ -1224,7 +1198,7 @@
} }
}, },
onNodeCollapseEvent(node, e) { onNodeCollapseEvent(node, e) {
console.log('onNodeCollapse:', node)
if (this.onNodeCollapse) { if (this.onNodeCollapse) {
this.onNodeCollapse(node, e) this.onNodeCollapse(node, e)
} }
...@@ -1248,8 +1222,7 @@ ...@@ -1248,8 +1222,7 @@
return this.SeeksRGStore.getOptions() return this.SeeksRGStore.getOptions()
}, },
printGraphJsonData() { printGraphJsonData() {
console.log('graph options:', JSON.stringify(this.getGraphJsonOptions()))
console.log('graph json data:', JSON.stringify(this.getGraphJsonData()))
} }
} }
} }
...@@ -1257,7 +1230,6 @@ ...@@ -1257,7 +1230,6 @@
<style scoped> <style scoped>
.rel-map{ .rel-map{
background-color: #ffffff; background-color: #ffffff;
/*background-image: url("/static/images/graph-bg.png");*/
overflow:hidden; overflow:hidden;
cursor: default; cursor: default;
user-select: none; user-select: none;
......
...@@ -368,7 +368,6 @@ export default { ...@@ -368,7 +368,6 @@ export default {
}, },
computed: mapState({ computed: mapState({
isHavePriceAction(state) { isHavePriceAction(state) {
console.log(state.user.userInfo)
if (state.user.userInfo.ActionMenuList) { if (state.user.userInfo.ActionMenuList) {
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "Edit_CoursePrice") { if (x.FunctionCode == "Edit_CoursePrice") {
......
...@@ -473,7 +473,6 @@ export default { ...@@ -473,7 +473,6 @@ export default {
getUserList() { getUserList() {
queryOKRMyEmployeeList().then(res => { queryOKRMyEmployeeList().then(res => {
this.menuList = res.Data; this.menuList = res.Data;
console.log(this.menuList);
}); });
}, },
changeMenu(m, t, obj) { changeMenu(m, t, obj) {
...@@ -491,7 +490,6 @@ export default { ...@@ -491,7 +490,6 @@ export default {
}, },
openUserObjective(obj) { openUserObjective(obj) {
this.isOtherUser = obj.Id != this.userInfo.Id; this.isOtherUser = obj.Id != this.userInfo.Id;
console.log(this.isOtherUser, obj.Id, this.userInfo);
if (this.isOtherUser) { if (this.isOtherUser) {
this.chosenUser = obj; this.chosenUser = obj;
} else { } else {
......
...@@ -156,7 +156,6 @@ export default { ...@@ -156,7 +156,6 @@ export default {
? obj.ChildNum ? obj.ChildNum
: 0 : 0
}; };
console.log(node.id)
if (prev.indexOf('child') != -1) { if (prev.indexOf('child') != -1) {
node.childNum = obj.ChildList node.childNum = obj.ChildList
? obj.ChildList.length ? obj.ChildList.length
...@@ -217,7 +216,6 @@ export default { ...@@ -217,7 +216,6 @@ export default {
applyCollapseStyle2Node(_node) { applyCollapseStyle2Node(_node) {
// _node的子节点将被隐藏,同时让_node右侧显示一个加号,点击后可以展开子节点 // _node的子节点将被隐藏,同时让_node右侧显示一个加号,点击后可以展开子节点
if (_node.lot.childs.length > 0) { if (_node.lot.childs.length > 0) {
console.log(_node);
_node.lot.childs.forEach(thisChildNode => { _node.lot.childs.forEach(thisChildNode => {
thisChildNode.isShow = false; thisChildNode.isShow = false;
this.applyCollapseStyle2Node(thisChildNode); this.applyCollapseStyle2Node(thisChildNode);
...@@ -227,23 +225,19 @@ export default { ...@@ -227,23 +225,19 @@ export default {
} }
}, },
onNodeCollapse(node, e) { onNodeCollapse(node, e) {
console.log("onNodeCollapse2222:", node);
// 当有一些节点被显示或隐藏起来时,会让图谱看着很难看,需要布局器重新为节点分配位置,所以这里需要调用refresh方法来重新布局 // 当有一些节点被显示或隐藏起来时,会让图谱看着很难看,需要布局器重新为节点分配位置,所以这里需要调用refresh方法来重新布局
this.$refs.seeksRelationGraph.refresh(); this.$refs.seeksRelationGraph.refresh();
}, },
onNodeExpand(node, e) { onNodeExpand(node, e) {
// 当有一些节点被显示或隐藏起来时,会让图谱看着很难看,需要布局器重新为节点分配位置,所以这里需要调用refresh方法来重新布局 // 当有一些节点被显示或隐藏起来时,会让图谱看着很难看,需要布局器重新为节点分配位置,所以这里需要调用refresh方法来重新布局
console.log("onNodeExpand1111:", node);
//this.$refs.seeksRelationGraph.refresh(); //this.$refs.seeksRelationGraph.refresh();
// 根据具体的业务需要决定是否需要从后台加载数据 // 根据具体的业务需要决定是否需要从后台加载数据
if (!node.data.isNeedLoadDataFromRemoteServer) { if (!node.data.isNeedLoadDataFromRemoteServer) {
console.log("这个节点的子节点已经加载过了");
this.$refs.seeksRelationGraph.refresh(); this.$refs.seeksRelationGraph.refresh();
return; return;
} }
//判断是否已经动态加载数据了 //判断是否已经动态加载数据了
if (node.data.childrenLoaded) { if (node.data.childrenLoaded) {
console.log("这个节点的子节点已经加载过了");
this.$refs.seeksRelationGraph.refresh(); this.$refs.seeksRelationGraph.refresh();
return; return;
} }
......
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