|
|
@ -677,7 +677,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
getTreeData() { // 获取树结构数据 |
|
|
|
getTreeData() { // 获取树结构数据 |
|
|
|
|
|
|
|
|
|
|
|
if(this.treeDataStore.length) { |
|
|
|
if(this.treeDataStore.length) { |
|
|
|
const tmp = deepCopy(this.treeDataStore) |
|
|
|
const tmp = deepCopy(this.treeDataStore) |
|
|
|
this.treeData = this.toTreeId(tmp, this.treeDataStore[0].parentId); |
|
|
|
this.treeData = this.toTreeId(tmp, this.treeDataStore[0].parentId); |
|
|
@ -685,12 +684,14 @@ export default { |
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
this.getInfoData(this.$route.query.lcId); |
|
|
|
this.getInfoData(this.$route.query.lcId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.loading = false |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
this.$get(this.api.getLcRecord).then(res => { |
|
|
|
this.$get(this.api.getLcRecord).then(res => { |
|
|
|
if (res.status == 200 && res.list.length>0) { |
|
|
|
if (res.status == 200 && res.list.length>0) { |
|
|
|
if (res.list.length>0) { |
|
|
|
if (res.list.length>0) { |
|
|
|
this.$store.commit('setTreeDataStore', { treeDataStore: res.list}) |
|
|
|
this.$store.commit('setTreeDataStore', { treeDataStore: res.list}) |
|
|
|
this.treeData = this.toTreeId(res.list, res.list[0].parentId); |
|
|
|
this.treeData = this.toTreeId(res.list, res.list[0].parentId); |
|
|
|
|
|
|
|
this.loading = false |
|
|
|
if (this.$route.query.lcId) { |
|
|
|
if (this.$route.query.lcId) { |
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
this.lcId = this.$route.query.lcId; |
|
|
|
this.getInfoData(this.$route.query.lcId); |
|
|
|
this.getInfoData(this.$route.query.lcId); |
|
|
@ -700,7 +701,7 @@ export default { |
|
|
|
this.$message.warning(res.message); |
|
|
|
this.$message.warning(res.message); |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
// console.log(err); |
|
|
|
this.loading = false |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|