Kaynağa Gözat

知识分类点击修改

赵志鹏 1 yıl önce
ebeveyn
işleme
401ae4e25c

+ 8 - 0
src/views/modules/knowledge/components/classMenu.vue

@@ -106,6 +106,14 @@ export default {
     },
     handleClick(node,ele){
       console.log(node)
+
+      let indexNum=this.checkArr.indexOf(node.pkId)
+      if(indexNum>-1){
+        this.checkArr.splice(indexNum, 1)
+      }else{
+        this.checkArr.push(node.pkId)
+      }
+
       this.checkId = node.pkId;
       let dataArr=node.pId.split(",")
       dataArr.shift()

+ 2 - 1
src/views/modules/knowledge/warehouse/contentData.vue

@@ -54,7 +54,8 @@
           <div class="listBox">
             <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList" :key="index">
               <pageList :showJurisdiction="true" :item="item" type="list0" v-if="type==3||type==4"></pageList>
-              <pageList :showJurisdiction="true" v-else :item="item" :type="type!=null||categoryName=='全部分类'?'list1':'list0'"></pageList>
+              <!-- <pageList :showJurisdiction="true" v-else :item="item" :type="type!=null||categoryName=='全部分类'?'list1':'list0'"></pageList> -->
+                <pageList :showJurisdiction="true" v-else :item="item" type="list0"></pageList>
               <a-divider class="bottomBorder" v-if="(index!=dataList.length-1)"/>
             </div>
           </div>