|
@@ -311,6 +311,7 @@ export default {
|
|
|
},
|
|
|
// 新建拓扑图成功
|
|
|
toEdit(data) {
|
|
|
+ // 如果跳入草稿则直接跳入
|
|
|
// 打开新窗口
|
|
|
let routeUrl = this.$router.resolve({
|
|
|
name: "Editer",
|
|
@@ -358,6 +359,31 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ // 查询所有草稿图
|
|
|
+ getAllDraft() {
|
|
|
+ if (!this.curCategory.code) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.selectCard = [];
|
|
|
+ const pa = {
|
|
|
+ filters: `categoryId="${this.curCategory.code}"`,
|
|
|
+ orders: `${this.selVal} desc`,
|
|
|
+ };
|
|
|
+ if (this.queryText) {
|
|
|
+ pa.filters += `;name contain ""`;
|
|
|
+ }
|
|
|
+ if (this.isPub) {
|
|
|
+ queryPubGraph(pa).then((res) => {
|
|
|
+ this.cardList = res.content.map((t) => {
|
|
|
+ t.checked = false;
|
|
|
+ return t;
|
|
|
+ });
|
|
|
+ this.cardLoading = false;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
components: {
|
|
|
Select,
|