| | |
| | | <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" |
| | |
| | | </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> |
| | |
| | | import { |
| | | addClockIn |
| | | } from "@/api/school/school.js"; |
| | | |
| | | |
| | | import { |
| | | getQrCodeDetail |
| | | } from "@/api/system/index" |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | 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 = [] |
| | |
| | | }) |
| | | this.info.images = urls.join(",") |
| | | } |
| | | |
| | | addClockIn(this.info).then(res => { |
| | | this.$showTips("提交成功", "success") |
| | | setTimeout(() => { |
| | |
| | | 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; |
| | | }, |
| | | |