|
|
@ -22,7 +22,6 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-tree
|
|
|
|
<el-tree
|
|
|
|
ref="tree"
|
|
|
|
ref="tree"
|
|
|
|
:empty-text="emptyText"
|
|
|
|
|
|
|
|
:data="lineTreeData"
|
|
|
|
:data="lineTreeData"
|
|
|
|
:props="defaultProps"
|
|
|
|
:props="defaultProps"
|
|
|
|
node-key="id"
|
|
|
|
node-key="id"
|
|
|
@ -402,7 +401,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//获取左侧树结构
|
|
|
|
//获取左侧树结构
|
|
|
|
getLineTreeList() {
|
|
|
|
getLineTreeList() {
|
|
|
|
// this.emptyText = "正在加载中...";
|
|
|
|
|
|
|
|
getdyTreeListJoggle()
|
|
|
|
getdyTreeListJoggle()
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
@ -418,7 +416,7 @@ export default {
|
|
|
|
this.handleNodeClick(this.currentData);
|
|
|
|
this.handleNodeClick(this.currentData);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.selectData = this.lineTreeData[0]; //第一个选中的数据
|
|
|
|
this.selectData = this.lineTreeData[0]; //第一个选中的数据
|
|
|
|
this.emptyText = "暂无数据";
|
|
|
|
|
|
|
|
this.currentNodekey = this.lineTreeData[0].id; //第一个数据
|
|
|
|
this.currentNodekey = this.lineTreeData[0].id; //第一个数据
|
|
|
|
this.type = 1;
|
|
|
|
this.type = 1;
|
|
|
|
this.newCurrentId = this.lineTreeData[0].id;
|
|
|
|
this.newCurrentId = this.lineTreeData[0].id;
|
|
|
|