Browse Source

即使在我的PPT目录,没选择节点也不能移动

cxmo 7 months ago
parent
commit
f35aa4061d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/ppt_manage/newVersion/pptCatalog.vue

+ 2 - 2
src/views/ppt_manage/newVersion/pptCatalog.vue

@@ -208,7 +208,7 @@
             @start="dragStartHandler"
             @start="dragStartHandler"
             @update="dragenter"
             @update="dragenter"
             @end="moveListPPT"
             @end="moveListPPT"
-            :disabled="treeName!=='private'"
+            :disabled="(treeName==='private'&&!selectNode)||treeName!=='private'"
             >
             >
             <div class="list-item" 
             <div class="list-item" 
               v-for="item in catalogPPTList" :key="item.PptId"
               v-for="item in catalogPPTList" :key="item.PptId"
@@ -217,7 +217,7 @@
               <div class="item-title">
               <div class="item-title">
                 <span>{{item.Title}}</span>
                 <span>{{item.Title}}</span>
                 <img
                 <img
-                  v-if="treeName==='private'"
+                  v-if="treeName==='private'&&selectNode"
                   src="~@/assets/img/data_m/move_ico.png"
                   src="~@/assets/img/data_m/move_ico.png"
                   style="width: 14px; height: 14px; margin-right: 8px"
                   style="width: 14px; height: 14px; margin-right: 8px"
                 />
                 />