|
@@ -205,9 +205,8 @@ export default {
|
|
|
this.$refs.createPlanarDialog.showDialog();
|
|
|
},
|
|
|
// 新建画布成功回调
|
|
|
- createPlanarCallback(folder) {
|
|
|
- console.log(folder)
|
|
|
- debugger
|
|
|
+ createPlanarCallback({ folderId, folderName }) {
|
|
|
+ this.queryGraph(folderId);
|
|
|
},
|
|
|
// 批量新建画布
|
|
|
batchCreateCanvas(val) {
|
|
@@ -307,6 +306,7 @@ export default {
|
|
|
* 更改选中的文件夹
|
|
|
*/
|
|
|
changeFolder(data) {
|
|
|
+ console.log("changeFolder");
|
|
|
console.log(data);
|
|
|
this.folderId = data.id;
|
|
|
this.queryGraph();
|
|
@@ -370,10 +370,12 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
- /////////////////接口
|
|
|
- // 查询图形信息
|
|
|
- async queryGraph() {
|
|
|
- if (!this.folderId) {
|
|
|
+ /**
|
|
|
+ * 查询图形信息
|
|
|
+ * @param { string } floderId 传入的文件ID,新建画布成功之后,会调用该接口
|
|
|
+ */
|
|
|
+ async queryGraph(floderId) {
|
|
|
+ if (!(floderId || this.folderId)) {
|
|
|
return false;
|
|
|
}
|
|
|
this.cardLoading = true;
|
|
@@ -385,7 +387,7 @@ export default {
|
|
|
// projectId: "Pj1101050029"
|
|
|
// statistics: {}
|
|
|
const postParams = {
|
|
|
- filters: `folderId='${this.folderId}'`,
|
|
|
+ filters: `folderId='${floderId || this.folderId}'`,
|
|
|
PageNumber: 1,
|
|
|
PageSize: 1000,
|
|
|
};
|
|
@@ -433,8 +435,8 @@ export default {
|
|
|
});
|
|
|
this.cardTree = cardTree;
|
|
|
this.cardList = cardList;
|
|
|
- console.log(this.cardList)
|
|
|
- console.log(this.cardTree)
|
|
|
+ console.log(this.cardList);
|
|
|
+ console.log(this.cardTree);
|
|
|
this.cardLoading = false;
|
|
|
},
|
|
|
},
|