|
@@ -23,7 +23,7 @@
|
|
|
<el-container class="bodys">
|
|
|
<!-- 左侧树状导航栏部分 -->
|
|
|
<el-aside class="aside" width="240px">
|
|
|
- <left-folder @changeFolder="changeFolder"></left-folder>
|
|
|
+ <left-folder ref="leftFolder" @changeFolder="changeFolder"></left-folder>
|
|
|
<!-- <leftAsideTree ref="leftAsideTree" @changeNode="changeNode" @noTree="(noTreeFlag = false), (popVisible = true)"></leftAsideTree>
|
|
|
<div class="recycle" @click="showRecycleDialog">
|
|
|
<img :src="require('@/assets/images/recycle.png')" />
|
|
@@ -205,8 +205,16 @@ export default {
|
|
|
this.$refs.createPlanarDialog.showDialog();
|
|
|
},
|
|
|
// 新建画布成功回调
|
|
|
- createPlanarCallback({ folderId, folderName }) {
|
|
|
- this.queryGraph(folderId);
|
|
|
+ createPlanarCallback(folder) {
|
|
|
+ if (folder.folderId) {
|
|
|
+ // 是否新建文件夹
|
|
|
+ if (folder.folderName) {
|
|
|
+ // 新建文件夹
|
|
|
+ this.$refs.leftFolder.getFolderData(folder.folderId);
|
|
|
+ } else {
|
|
|
+ this.$refs.leftFolder.handleCheckFolder(folder.folderId);
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
// 批量新建画布
|
|
|
batchCreateCanvas(val) {
|