Mr.Shi
2023-09-13 46b0b4d41a260e44e5e648d79cac60e97fe17789
minipro_standard/pages_adjust/components/multipleMaterial.vue
@@ -12,10 +12,16 @@
            scroll-y="true"
            @scrolltolower="loadMore">
               <view v-for="(item1, index) in list" :key="index" class="flex mb20" @click="jump(index)">
<<<<<<< HEAD
                  <view class="img36 mr20 pt10" style="position: relative;">
                     <u-checkbox-group style="display: block;" name="">
=======
                  <view class="img36 mr20 pt10">
                     <u-checkbox-group style="display: block;" name="" @change="jump(index)">
>>>>>>> 041c81a20c93a6b8238e810fe9a1adfee9c9d86f
                        <u-checkbox :checked="item1.isActive"></u-checkbox>
                     </u-checkbox-group>
                     <view style="width: 18px; height: 18px; position: absolute; top: 0; left: 0; z-index: 99;"></view>
                  </view>
                  <view class="fx1">
                     <div class="page_content_title_top">
@@ -151,6 +157,13 @@
                  item.isActive = !item.isActive
               }
            })
            for (let i = 0; i < this.list.length; i++) {
               if (!this.list[i].isActive) {
                  this.isAll = []
                  return
               }
            }
            this.isAll = ['all']
         },
         // 搜索提交
         submit() {
@@ -216,8 +229,6 @@
            this.loadData()
         },
         selectAll(e) {
            console.log(e)
            console.log(this.isAll)
            this.list.forEach(element => {
               element.isActive = e.length > 0 ? true : false
            })