Pārlūkot izejas kodu

全选状态下,取消一个选中,重置全选状态

yejian 2 gadi atpakaļ
vecāks
revīzija
e0cce161c1

+ 1 - 0
src/views/Ranking/FusionNumberManuscript.vue

@@ -61,6 +61,7 @@ export default {
     handleClick(e) {
       if(this.btnFocus.includes(e) && this.btnFocus.length!==1){
         this.btnFocus = this.btnFocus.filter((v)=>{return v!==e});
+        this.checkedAll = false;
       }else if(!this.btnFocus.includes(e)){
         this.btnFocus.push(e);
       }

+ 1 - 0
src/views/Ranking/FusionVermicelli.vue

@@ -64,6 +64,7 @@ export default {
     handleClick(e) {
       if(this.btnFocus.includes(e) && this.btnFocus.length!==1){
         this.btnFocus = this.btnFocus.filter((v)=>{return v!==e});
+        this.checkedAll = false;
       }else if(!this.btnFocus.includes(e)){
         this.btnFocus.push(e);
       }

+ 1 - 0
src/views/Ranking/ManuscriptQuantity.vue

@@ -63,6 +63,7 @@ export default {
         this.btnFocus = this.btnFocus.filter((v) => {
           return v !== e;
         });
+        this.checkedAll = false;
       } else if (!this.btnFocus.includes(e)) {
         this.btnFocus.push(e);
       }