调整年级班级选择

This commit is contained in:
ywyonui 2025-07-18 15:30:20 +08:00
parent 68142cf67f
commit 87d90244aa
2 changed files with 9 additions and 6 deletions

View File

@ -1,22 +1,25 @@
<template> <template>
<picker mode="multiSelector" :range="njBjRange" :value="curIndex" @change="onMultiChange" <picker mode="multiSelector" :range="njBjRange" :value="curIndex" @change="onMultiChange"
@columnchange="onColumnChange"> @columnchange="onColumnChange">
<view class="picker-item"> <view class="picker-item" :style="customStyle">
<text>{{ curNjBjLabel || "选择班级" }}</text> <text>{{ curNjBjLabel || "选择班级" }}</text>
<uni-icons type="bottom" size="14" color="#666"></uni-icons> <uni-icons :type="iconArrow" size="14" color="#666"></uni-icons>
</view> </view>
</picker> </picker>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { findAllNjBjTreeApi } from "@/api/base/server"; import { findAllNjBjTreeApi } from "@/api/base/server";
import { on } from "events";
// //
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
defaultValue: any defaultValue: any,
customStyle: any,
iconArrow: string
}>(), { }>(), {
defaultValue: [] defaultValue: [],
customStyle: {},
iconArrow: "bottom"
}); });
// emit // emit

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="schedule-page"> <view class="schedule-page">
<view class="bj-picker"> <view class="bj-picker">
<NjBjPicker @change="changeNjBj" /> <NjBjPicker @change="changeNjBj" icon-arrow="right" :customStyle="{ backgroundColor: '#fff', borderRadius: '0', padding: '12px 15px' }" />
</view> </view>
<view class="week-selector" @click="openWeekPicker"> <view class="week-selector" @click="openWeekPicker">
<text>{{ curZc.mc }}</text> <text>{{ curZc.mc }}</text>