|
@@ -102,7 +102,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="main-body" v-loading="cardLoading">
|
|
|
- <div class="has-data-body" v-if="cardList.length">
|
|
|
+ <div class="has-data-body" v-if="noTreeFlag && cardList.length">
|
|
|
<template v-for="t in cardList">
|
|
|
<topoImageCard
|
|
|
:isPub="isPub"
|
|
@@ -205,6 +205,8 @@ export default {
|
|
|
...mapMutations(["SETPROJECTID"]),
|
|
|
getProject(data) {
|
|
|
this.SETPROJECTID(data.id);
|
|
|
+ // 判断垃圾箱是否可以点击
|
|
|
+ this.getRecycleData();
|
|
|
},
|
|
|
// 创建拓扑图
|
|
|
createProject() {
|
|
@@ -218,11 +220,15 @@ export default {
|
|
|
} else {
|
|
|
this.selectCard.push(v);
|
|
|
}
|
|
|
+ this.cardList.map(t => {
|
|
|
+ t.showCheckFlag = this.selectCard.length > 0;
|
|
|
+ })
|
|
|
},
|
|
|
// 全选按钮
|
|
|
handleCheckAllChange(val) {
|
|
|
this.cardList = this.cardList.map((t) => {
|
|
|
t.checked = val;
|
|
|
+ t.showCheckFlag = val;
|
|
|
return t;
|
|
|
});
|
|
|
this.selectCard = val
|
|
@@ -289,6 +295,7 @@ export default {
|
|
|
},
|
|
|
// 选中节点变化
|
|
|
changeNode(data) {
|
|
|
+ this.noTreeFlag = true
|
|
|
this.curCategory = data;
|
|
|
this.categoryName = data.name;
|
|
|
this.queryGraph();
|
|
@@ -390,6 +397,7 @@ export default {
|
|
|
queryPubGraph(pa).then((res) => {
|
|
|
this.cardList = res.content.map((t) => {
|
|
|
t.checked = false;
|
|
|
+ t.showCheckFlag = false;
|
|
|
return t;
|
|
|
});
|
|
|
this.cardLoading = false;
|
|
@@ -399,6 +407,7 @@ export default {
|
|
|
queryDraftsGraph(pa).then((res) => {
|
|
|
this.cardList = res.content.map((t) => {
|
|
|
t.checked = false;
|
|
|
+ t.showCheckFlag = false;
|
|
|
return t;
|
|
|
});
|
|
|
this.cardLoading = false;
|