Selaa lähdekoodia

bug5683修复

haojianlong 4 vuotta sitten
vanhempi
commit
7f91bf7776

+ 2 - 5
src/components/editClass/persagy-edit/PTopoFactory.ts

@@ -24,14 +24,11 @@
  * *********************************************************************************************************************
  */
 
-import { SColor, SFont, SPoint, SArrowStyleType } from "@persagy-web/draw";
-import { SArrowItem, SPolygonItem, SArrowPoly, SItemFactory, ItemOrder, SPolylineItem } from "@persagy-web/big"
-import { SGraphCircleItem, STextItem, SImageItem, SGraphLineItem } from "@persagy-web/graph/lib"
+import { Marker } from "@persagy-web/big"
 import { SBaseInfoPoint } from "./items/SBaseInfoPoint"
 import { SBasePipeUninTool } from "./items/SBasePipeUninTool"
 import { SBaseBtns } from "./items/SBaseBtns"
-import { SLineStyle } from "@persagy-web/graph"
-import { BigEditFactory, Legend, Marker, Relation, ElementData } from "@persagy-web/big-edit"
+import { BigEditFactory } from "@persagy-web/big-edit"
 /**
  * item 创建工厂
  *

+ 1 - 2
src/components/editClass/persagy-edit/PTopoParser.ts

@@ -23,8 +23,7 @@
  *
  * ****/
 
-import { SParser, ItemOrder } from '@persagy-web/big/lib';
-import { BigEditFactory, Legend, Marker, Relation, ElementData } from "@persagy-web/big-edit"
+import { ElementData, Legend, Marker, Relation, SParser } from '@persagy-web/big/lib';
 import { PTopoFactory } from "./PTopoFactory"
 
 /**

+ 7 - 2
src/components/homeView/topoImageCard.vue

@@ -1,7 +1,7 @@
 <!--拓扑图缩略图卡片-->
 <template>
   <el-card
-    :class="{ 'box-card': true, active: data.checked }"
+    :class="{ 'box-card': true, active: data.showCheckFlag, checked: data.checked }"
     shadow="hover"
     :body-style="{ padding: '0px' }"
   >
@@ -171,7 +171,7 @@ export default {
   margin-bottom: 20px;
   cursor: pointer;
   &:hover,
-  &.active {
+  &.checked {
     border-color: #0091ff80;
     box-shadow: 0px 8px 16px 0px rgba(195, 199, 203, 0.4);
     .shadow {
@@ -183,6 +183,11 @@ export default {
       }
     }
   }
+  &.active{
+    .shadow {
+      display: block;
+    }
+  }
   .image {
     display: block;
     width: 100%;

+ 6 - 0
src/views/home.vue

@@ -218,11 +218,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
@@ -390,6 +394,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 +404,7 @@ export default {
         queryDraftsGraph(pa).then((res) => {
           this.cardList = res.content.map((t) => {
             t.checked = false;
+            t.showCheckFlag = false;
             return t;
           });
           this.cardLoading = false;