From 239c5308af49780bf45a09a05c519e669caec939 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期一, 11 九月 2023 16:54:47 +0800
Subject: [PATCH] 小程序
---
minipro_standard/pages_adjust/components/multipleMaterial.vue | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/minipro_standard/pages_adjust/components/multipleMaterial.vue b/minipro_standard/pages_adjust/components/multipleMaterial.vue
index ea3d29a..40549be 100644
--- a/minipro_standard/pages_adjust/components/multipleMaterial.vue
+++ b/minipro_standard/pages_adjust/components/multipleMaterial.vue
@@ -63,8 +63,8 @@
</view> -->
<view class="fixedBottom bottom cY">
<view class="fx1 bbox plr30">
- <u-checkbox-group style="display: block;" name="" @change="selectAll()">
- <u-checkbox :checked="isAll" label="鍏ㄩ��"></u-checkbox>
+ <u-checkbox-group v-model="isAll" style="display: block;" @change="selectAll()">
+ <u-checkbox label="鍏ㄩ��" name="all"></u-checkbox>
</u-checkbox-group>
</view>
<view class="submit sbtn_green bbox tc" @click="submitAction">{{ `鎻愪氦(${totalNum})`}}</view>
@@ -97,6 +97,7 @@
loading: false,
finished: false,
refreshing: false,
+ isAll: false,
total: 0
};
},
@@ -135,6 +136,7 @@
},
methods: {
open() {
+ this.isAll = false
this.show = true
this.refreshing = false
this.finished = false
@@ -212,9 +214,11 @@
this.pages.page = 1
this.loadData()
},
- selectAll() {
+ selectAll(e) {
+ console.log(e)
+ console.log(this.isAll)
this.list.forEach(element => {
- element.isActive = this.all
+ element.isActive = e.length > 0 ? true : false
})
},
submitAction () {
--
Gitblit v1.9.3