wkyy 2 anni fa
parent
commit
8d990f7fa6
1 ha cambiato i file con 26 aggiunte e 3 eliminazioni
  1. 26 3
      pages/teacher/callNames/classCall.vue

+ 26 - 3
pages/teacher/callNames/classCall.vue

@@ -8,9 +8,11 @@
 				<u-cell-item  title="上课教室" value="二楼舞蹈一教室"  :arrow="false"></u-cell-item>
 				<u-cell-item  class="teacher" title="任课老师" value="夏奕琳"  ></u-cell-item>
 				<u-cell-item  title="学员总数" value="20人"  :arrow="false"></u-cell-item>
-				<u-cell-item  title="点名结果批量设置" value="到课"  ></u-cell-item>
+				<u-cell-item  title="点名结果批量设置" value="到课" @click="show = true"></u-cell-item>
 			</u-cell-group>
 		</view>
+		<u-picker mode="selector" v-model="show" :default-selector="[0]" :range="selectorObj"
+			range-key="cateName" @confirm="confirm"></u-picker>
 		<view class="student-details">
 			<view class="photo">
 				<img src="../../../assets/img/photo@1x.png" alt="">
@@ -33,7 +35,7 @@
 					</view>
 				</view>
 			</view>
-			<view class="to-class">
+			<view class="to-class" @click="show = true">
 				到课<u-icon name="arrow-right" color="#cccccc"></u-icon>
 			</view>
 		</view>
@@ -93,7 +95,25 @@
 	export default {
 		data() {
 			return {
-				
+				show: false,
+				selectorObj: [
+					{
+						cateName: '到课',
+						id: 0
+					},
+					{
+						cateName: '请假',
+						id: 1
+					},
+					{
+						cateName: '旷课',
+						id: 2
+					},
+					{
+						cateName: '补课',
+						id: 3
+					}
+				]
 			}
 		},
 		methods: {
@@ -102,6 +122,9 @@
 					url: '/pages/teacher/callNames/callNames'
 				})
 			},
+			confirm(obj) {
+				console.log(this.selectorObj[obj[0]].cateName)
+			}
 		}
 	}
 </script>