Commit bc951d2e by zhangzhen

细节优化

parent ffafd23b
...@@ -315,6 +315,7 @@ ...@@ -315,6 +315,7 @@
}) })
} }
} }
console.log(this.folderList,9999999)
}, },
onReachBottom() { onReachBottom() {
if (this.status == 'loadmore') { if (this.status == 'loadmore') {
...@@ -417,13 +418,14 @@ ...@@ -417,13 +418,14 @@
}) })
}, },
onGetFolder() { onGetFolder() {
let lastObj = this.folderList[this.folderList.length - 1] let lastObj = this.folderList[this.folderList.length - 1];
console.log(lastObj,'lastObj')
if(lastObj.leaf == '1'){ if(lastObj.leaf == '1'){
this.onGetList(); this.onGetList();
}else{ }else{
getProjTreeData({ getProjTreeData({
node: lastObj.code, node: lastObj.code,
projCode: lastObj.code projCode: lastObj.projCode
}).then(res => { }).then(res => {
this.onGetList(); this.onGetList();
this.folders = toJsonData(res.data.__blocks__[lastObj.code].rows, res.data.__blocks__[lastObj.code].meta.columns); this.folders = toJsonData(res.data.__blocks__[lastObj.code].rows, res.data.__blocks__[lastObj.code].meta.columns);
......
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