|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view class="container">
|
|
|
+ <view class="container" :style="showEdit ? 'padding-bottom:180rpx' : ''">
|
|
|
<!-- 背景图片区域 -->
|
|
|
<img class="img_bg" src="../../static/images/center-bg.png" />
|
|
|
|
|
|
@@ -9,10 +9,10 @@
|
|
|
<!-- 学校年级班级区域 -->
|
|
|
<view class="school" v-if="list.length">
|
|
|
<view class="">{{ classInfo }}</view>
|
|
|
- <!-- 编辑按钮区域 -->
|
|
|
+ <!-- 批量按钮区域 -->
|
|
|
<view v-if="!showEdit" class="school_edit" @click="handleEdit">
|
|
|
<img class="img" src="@/static/images/edit.png" />
|
|
|
- 编辑
|
|
|
+ 批量
|
|
|
</view>
|
|
|
<!-- 全选按钮区域 -->
|
|
|
<view v-else class="school_btn">
|
|
|
@@ -32,9 +32,11 @@
|
|
|
|
|
|
<radio v-if="showEdit" color="#0061FF" style="transform: scale(0.7)" :checked="item.isChecked" />
|
|
|
</view>
|
|
|
+ </view>
|
|
|
|
|
|
- <!-- 关联时间组按钮区域 -->
|
|
|
- <view v-if="showEdit" class="btn_box" @click="handleBind">
|
|
|
+ <!-- 关联时间组按钮区域 -->
|
|
|
+ <view class="btn" v-if="showEdit">
|
|
|
+ <view class="btn_box" @click="handleBind">
|
|
|
<uni-icons color="#fff" type="link" size="28"></uni-icons>
|
|
|
<text class="text">关联时间组</text>
|
|
|
</view>
|
|
|
@@ -65,7 +67,7 @@ const list = ref([])
|
|
|
// 缓存数据
|
|
|
const copyList = ref([])
|
|
|
|
|
|
-// 是否显示编辑radio
|
|
|
+// 是否显示全选radio
|
|
|
const showEdit = ref(false)
|
|
|
|
|
|
// 是否全选
|
|
|
@@ -97,7 +99,7 @@ const getData = async () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-// 点击编辑按钮回调
|
|
|
+// 点击批量按钮回调
|
|
|
const handleEdit = () => {
|
|
|
showEdit.value = true
|
|
|
copyList.value = JSON.parse(JSON.stringify(list.value))
|
|
|
@@ -239,6 +241,13 @@ const changeInputValue = (value) => {
|
|
|
.box_time {
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ padding: 0 30rpx 30rpx;
|
|
|
+ background-color: #fff;
|
|
|
|
|
|
.btn_box {
|
|
|
display: flex;
|