From c40faa96c951b793bdf457c529ab3f375b6b8948 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Sat, 27 Apr 2024 11:23:31 +0800
Subject: [PATCH] 更新

---
 subPackage/school/clockIn.vue |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/subPackage/school/clockIn.vue b/subPackage/school/clockIn.vue
index 7ca38a4..b98a779 100644
--- a/subPackage/school/clockIn.vue
+++ b/subPackage/school/clockIn.vue
@@ -13,7 +13,6 @@
 		<view class="content bgc-ff">
 			<u-form labelPosition="left" :model="info" :rules="rules" ref="form" labelWidth="90"
 				:labelStyle="{fontSize:'28rpx'}">
-
 				<u-form-item label="角色类型" prop="type" borderBottom ref="phone" @click="showPicker = true"
 					v-if="roleName !='mj'">
 					<u-input v-model="clockInRoleTypeValue" border="none" placeholder="请输入" placeholderClass="f-28 c-99"
@@ -75,19 +74,12 @@
 			</view>
 		</view>
 
-
 		<!-- <button class="submit-btn" @click="sumitInfo">提交</button> -->
 		<!-- <button class="list-btn" @click="navigatorPage">我上报的事件</button> -->
-
 		<footer-btn @click="sumitInfo"></footer-btn>
-
-
 		<u-picker :defaultIndex="clockInRoleTypeIndex" :closeOnClickOverlay="true" :show="showPicker"
 			:columns="[statusList]" @close="showPicker = false" @cancel="showPicker = false" keyName="name"
 			@confirm="confirmPicker"></u-picker>
-
-
-
 
 	</view>
 </template>
@@ -97,8 +89,6 @@
 	import {
 		addClockIn
 	} from "@/api/school/school.js";
-
-
 	import {
 		getQrCodeDetail
 	} from "@/api/system/index"
@@ -200,8 +190,12 @@
 				})
 			},
 
-
 			sumitInfo() {
+				if (this.info.type == 2) {
+					this.info.gradeAndClass = "";
+					this.info.realName = "";
+				}
+
 				this.$refs.form.validate().then(valid => {
 					if (this.form.images.length > 0) {
 						let urls = []
@@ -210,7 +204,6 @@
 						})
 						this.info.images = urls.join(",")
 					}
-
 					addClockIn(this.info).then(res => {
 						this.$showTips("提交成功", "success")
 						setTimeout(() => {
@@ -224,7 +217,7 @@
 			confirmPicker(e) {
 				this.clockInRoleTypeIndex = e.indexs;
 				this.clockInRoleTypeValue = e.value[0].name;
-				this.info.type = e.value[0].value;
+				this.info.type = e.value[0].id;
 				this.showPicker = false;
 			},
 

--
Gitblit v1.9.3