|
|
|
@ -409,14 +409,19 @@ export default {
|
|
|
|
|
this.onlineNum = res.data.onlineNum;
|
|
|
|
|
this.totalNum = res.data.totalNum;
|
|
|
|
|
this.currentData = JSON.parse(localStorage.getItem("currentData"));
|
|
|
|
|
|
|
|
|
|
console.log(this.currentData);
|
|
|
|
|
if (this.lineTreeData[0].list[0].list.length > 0) {
|
|
|
|
|
if (Object.keys(this.currentData).length !== 0) {
|
|
|
|
|
console.log("diyici");
|
|
|
|
|
if (
|
|
|
|
|
this.currentData !== null &&
|
|
|
|
|
Object.keys(this.currentData).length !== 0
|
|
|
|
|
) {
|
|
|
|
|
console.log("aaa");
|
|
|
|
|
this.currentNodekey = this.currentData.id;
|
|
|
|
|
this.handleNodeClick(this.currentData);
|
|
|
|
|
} else {
|
|
|
|
|
console.log("diyici");
|
|
|
|
|
this.selectData = this.lineTreeData[0]; //第一个选中的数据
|
|
|
|
|
|
|
|
|
|
this.currentNodekey = this.lineTreeData[0].id; //第一个数据
|
|
|
|
|
this.type = 1;
|
|
|
|
|
this.newCurrentId = this.lineTreeData[0].id;
|
|
|
|
|