|
@@ -10,37 +10,56 @@
|
|
<view>*</view>
|
|
<view>*</view>
|
|
<view>姓名</view>
|
|
<view>姓名</view>
|
|
</view>
|
|
</view>
|
|
- <view class="text-bottom-p">{{newData.data1}}</view>
|
|
|
|
|
|
+ <view class="text-bottom-p">{{newData.userName}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="text-max-box">
|
|
<view class="text-max-box">
|
|
<view class="text-top-box">
|
|
<view class="text-top-box">
|
|
<view>*</view>
|
|
<view>*</view>
|
|
- <view>学号</view>
|
|
|
|
|
|
+ <view>{{newData.userType==1?'工号':(newData.userType==2?'学号':'')}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="text-bottom-p">{{newData.data2}}</view>
|
|
|
|
|
|
+ <view class="text-bottom-p">{{newData.account}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="text-max-box">
|
|
<view class="text-max-box">
|
|
<view class="text-top-box">
|
|
<view class="text-top-box">
|
|
<view>*</view>
|
|
<view>*</view>
|
|
<view>所在学院</view>
|
|
<view>所在学院</view>
|
|
</view>
|
|
</view>
|
|
- <view class="text-bottom-p">{{newData.data3}}</view>
|
|
|
|
|
|
+ <view class="text-bottom-p">{{newData.deptName?newData.deptName:'-'}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="text-max-box">
|
|
|
|
|
|
+ <view class="text-max-box" v-if="newData.userType == 2">
|
|
<view class="text-top-box">
|
|
<view class="text-top-box">
|
|
<view>*</view>
|
|
<view>*</view>
|
|
<view>专业</view>
|
|
<view>专业</view>
|
|
</view>
|
|
</view>
|
|
- <view class="text-bottom-p">{{newData.data4}}</view>
|
|
|
|
|
|
+ <view class="text-bottom-p">{{newData.majorName?newData.majorName:'-'}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text-max-box" v-if="newData.mobile">
|
|
|
|
+ <view class="text-top-box">
|
|
|
|
+ <view>*</view>
|
|
|
|
+ <view>手机号</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text-bottom-p">{{newData.mobile}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="input-max-box">
|
|
|
|
|
|
+ <view class="input-max-box" v-if="!newData.mobile">
|
|
<view class="input-top-box">
|
|
<view class="input-top-box">
|
|
<view>*</view>
|
|
<view>*</view>
|
|
<view>手机号</view>
|
|
<view>手机号</view>
|
|
</view>
|
|
</view>
|
|
- <input class="input-top-p" v-model="form.phone" maxlength="11" focus placeholder="请输入手机号码">
|
|
|
|
|
|
+ <input class="input-top-p" v-model="form.mobile" maxlength="11" focus placeholder="请输入手机号码">
|
|
|
|
+ </view>
|
|
|
|
+ <view class="input-button-max-box" v-if="!newData.mobile">
|
|
|
|
+ <view class="input-top-box">
|
|
|
|
+ <view>*</view>
|
|
|
|
+ <view>手机验证码</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="input-button-box">
|
|
|
|
+ <input maxlength="6" v-model="form.captcha" focus placeholder="请输入手机验证码" />
|
|
|
|
+ <view @click="getCode()" :class="codeType?'checkButton':'noCheckButton'">
|
|
|
|
+ {{codeType?seconds+'秒后重试':'获取验证码'}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="button-max-box">
|
|
|
|
|
|
+ <view class="button-max-box" v-if="newData.userType == 2 && !newData.tutorUserName">
|
|
<view class="button-top-box">
|
|
<view class="button-top-box">
|
|
<view>*</view>
|
|
<view>*</view>
|
|
<view>导师</view>
|
|
<view>导师</view>
|
|
@@ -48,6 +67,13 @@
|
|
<input class="button-bottom-p" :disabled="true" v-model="form.supervisorName"
|
|
<input class="button-bottom-p" :disabled="true" v-model="form.supervisorName"
|
|
maxlength="30" focus placeholder="请选择导师" @click="userButton()">
|
|
maxlength="30" focus placeholder="请选择导师" @click="userButton()">
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="text-max-box" v-if="newData.userType == 2 && newData.tutorUserName">
|
|
|
|
+ <view class="text-top-box">
|
|
|
|
+ <view>*</view>
|
|
|
|
+ <view>导师</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text-bottom-p">{{newData.tutorUserName}}</view>
|
|
|
|
+ </view>
|
|
<view class="bottom-button-p" @click="submitButton()">确定</view>
|
|
<view class="bottom-button-p" @click="submitButton()">确定</view>
|
|
</view>
|
|
</view>
|
|
<view class="shade-max-big-box" v-if="userShowType">
|
|
<view class="shade-max-big-box" v-if="userShowType">
|
|
@@ -57,17 +83,17 @@
|
|
<view class="shade-top-left-box">
|
|
<view class="shade-top-left-box">
|
|
<uni-icons type="search" class="icon-view-left" size="20" color="#999999"></uni-icons>
|
|
<uni-icons type="search" class="icon-view-left" size="20" color="#999999"></uni-icons>
|
|
<input class="input-top-p" @confirm="searchButton()"
|
|
<input class="input-top-p" @confirm="searchButton()"
|
|
- v-model="getData.searchValue" maxlength="10" focus placeholder="请输入导师">
|
|
|
|
- <uni-icons v-if="getData.searchValue" @click="clearButton()"
|
|
|
|
|
|
+ v-model="getData.userName" maxlength="10" focus placeholder="请输入导师">
|
|
|
|
+ <uni-icons v-if="getData.userName" @click="clearButton()"
|
|
type="clear" class="icon-view-right" size="20" color="#999999"></uni-icons>
|
|
type="clear" class="icon-view-right" size="20" color="#999999"></uni-icons>
|
|
</view>
|
|
</view>
|
|
<view class="shade-top-right-button" @click="searchButton()">搜索</view>
|
|
<view class="shade-top-right-button" @click="searchButton()">搜索</view>
|
|
</view>
|
|
</view>
|
|
<scroll-view scroll-y @scrolltolower="scrollGet" class="shade-bottom-box">
|
|
<scroll-view scroll-y @scrolltolower="scrollGet" class="shade-bottom-box">
|
|
- <view @click="checkUser(item,index)"
|
|
|
|
- class="for-user-box" :class="checkUserIndex==index?'check-user':''"
|
|
|
|
|
|
+ <view @click="checkUser(item)"
|
|
|
|
+ class="for-user-box" :class="checkUserUserId==item.userId?'check-user':''"
|
|
v-for="(item,index) in dataList" :key="index">
|
|
v-for="(item,index) in dataList" :key="index">
|
|
- <view>{{item.name}}{{item.num?'('+item.num+')':''}}</view>
|
|
|
|
|
|
+ <view>{{item.userName}}{{item.account?'('+item.account+')':''}}</view>
|
|
<view>{{item.deptName}}</view>
|
|
<view>{{item.deptName}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
|
|
<view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
|
|
@@ -80,71 +106,79 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- systemSubjectGetAppSubject,
|
|
|
|
- } from '@/pages_manage/api/index.js'
|
|
|
|
|
|
+ systemUserDetail,
|
|
|
|
+ systemUserSelectByPage,
|
|
|
|
+ systemUserEditUser,
|
|
|
|
+ authNumCaptchaNotRegistered,
|
|
|
|
+ } from '@/pages_basics/api/index.js'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
newData:{
|
|
newData:{
|
|
- data1:"刘晓明",
|
|
|
|
- data2:"2024060236",
|
|
|
|
- data3:"园艺学院",
|
|
|
|
- data4:"茶艺",
|
|
|
|
|
|
+ userName:"",
|
|
|
|
+ account:"",
|
|
|
|
+ deptName:"",
|
|
|
|
+ majorName:"",
|
|
|
|
+ userType:0,
|
|
},
|
|
},
|
|
form:{
|
|
form:{
|
|
- phone:"",
|
|
|
|
|
|
+ mobile:"",
|
|
supervisorName:"",
|
|
supervisorName:"",
|
|
supervisorId:"",
|
|
supervisorId:"",
|
|
},
|
|
},
|
|
userShowType:false,
|
|
userShowType:false,
|
|
- checkUserIndex:null,
|
|
|
|
|
|
+ checkUserUserId:null,
|
|
//查询
|
|
//查询
|
|
getData: {
|
|
getData: {
|
|
|
|
+ userType:1,
|
|
page: 1,
|
|
page: 1,
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
- searchValue: '',
|
|
|
|
|
|
+ userName: '',
|
|
},
|
|
},
|
|
getDataType: false,
|
|
getDataType: false,
|
|
total: 0,
|
|
total: 0,
|
|
//教师查询列表
|
|
//教师查询列表
|
|
- dataList:[
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- {name:"一二三四五",num:"01234567890123456789",deptName:"学院名称五六七八九十",},
|
|
|
|
- ],
|
|
|
|
|
|
+ dataList:[],
|
|
|
|
+ //定时器
|
|
|
|
+ codeType: false,
|
|
|
|
+ seconds: 0,
|
|
|
|
+ timer:null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
|
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- // this.systemSubjectGetAppSubject();
|
|
|
|
|
|
+ this.systemUserDetail();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- //提交
|
|
|
|
- submitButton(){
|
|
|
|
|
|
+ async systemUserDetail(){
|
|
|
|
+ const { data } = await systemUserDetail({userId:uni.getStorageSync('userId')});
|
|
|
|
+ if (data.code == 200) {
|
|
|
|
+ this.$set(this,'newData',data.data);
|
|
|
|
+ this.systemUserSelectByPage();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ //获取验证码
|
|
|
|
+ getCode() {
|
|
|
|
+ let self = this;
|
|
const reg = /^1[3|4|5|7|8|9][0-9]\d{8}$/
|
|
const reg = /^1[3|4|5|7|8|9][0-9]\d{8}$/
|
|
- if(!this.form.phone){
|
|
|
|
|
|
+ if (this.codeType) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请稍后再试',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ } else if (!this.form.mobile) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '请输入手机号码',
|
|
title: '请输入手机号码',
|
|
icon: "none",
|
|
icon: "none",
|
|
duration: 3000
|
|
duration: 3000
|
|
});
|
|
});
|
|
return
|
|
return
|
|
- }else if (!reg.test(this.form.phone)) {
|
|
|
|
|
|
+ } else if (!reg.test(this.form.mobile)) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '请输入正确的手机号码',
|
|
title: '请输入正确的手机号码',
|
|
icon: "none",
|
|
icon: "none",
|
|
@@ -152,13 +186,127 @@
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(!this.form.supervisorName){
|
|
|
|
|
|
+ this.authNumCaptchaNotRegistered();
|
|
|
|
+ },
|
|
|
|
+ async authNumCaptchaNotRegistered() {
|
|
|
|
+ let self = this;
|
|
|
|
+ const {
|
|
|
|
+ data
|
|
|
|
+ } = await authNumCaptchaNotRegistered({mobile:this.form.mobile});
|
|
|
|
+ if (data.code == 200) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '请选择导师',
|
|
|
|
|
|
+ title: '发送成功',
|
|
icon: "none",
|
|
icon: "none",
|
|
- duration: 3000
|
|
|
|
|
|
+ mask: true,
|
|
|
|
+ duration: 2000
|
|
});
|
|
});
|
|
- return
|
|
|
|
|
|
+ const TIME_COUNT = 60;
|
|
|
|
+ this.$set(this, 'codeType', true);
|
|
|
|
+ if (!this.timer) {
|
|
|
|
+ this.$set(this, 'seconds', TIME_COUNT);
|
|
|
|
+ this.timer = setInterval(() => {
|
|
|
|
+ if (this.seconds > 1 && this.seconds <= TIME_COUNT) {
|
|
|
|
+ this.seconds -= 1;
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(this, 'codeType', false);
|
|
|
|
+ clearInterval(this.timer);
|
|
|
|
+ this.$set(this, 'timer', null);
|
|
|
|
+ }
|
|
|
|
+ }, 1000);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //提交
|
|
|
|
+ submitButton(){
|
|
|
|
+ let self = this;
|
|
|
|
+ const reg = /^1[3|4|5|7|8|9][0-9]\d{8}$/
|
|
|
|
+ if(this.newData.userType == 1){
|
|
|
|
+ if(!this.form.mobile){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入手机号码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }else if (!reg.test(this.form.mobile)) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入正确的手机号码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ } else if (!this.form.captcha) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入手机验证码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }else if(this.newData.userType == 2){
|
|
|
|
+ if(!this.newData.mobile && !this.newData.tutorUserName){
|
|
|
|
+ if(!this.form.mobile){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入手机号码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }else if (!reg.test(this.form.mobile)) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入正确的手机号码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ } else if (!this.form.captcha) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入手机验证码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ } else if(!this.checkUserUserId){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请选择导师',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }else if(this.newData.mobile){
|
|
|
|
+ if(!this.checkUserUserId){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请选择导师',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ if(!this.form.mobile){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入手机号码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }else if (!reg.test(this.form.mobile)) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入正确的手机号码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ } else if (!this.form.captcha) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请输入手机验证码',
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '确认提交?',
|
|
title: '确认提交?',
|
|
@@ -167,21 +315,57 @@
|
|
content: '',
|
|
content: '',
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
- console.log('确定')
|
|
|
|
|
|
+ // console.log('确定')
|
|
|
|
+ self.systemUserEditUser();
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
- console.log('取消')
|
|
|
|
|
|
+ // console.log('取消')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //完善用户信息-提交
|
|
|
|
+ async systemUserEditUser(){
|
|
|
|
+ let obj = {
|
|
|
|
+ userId:this.newData.userId,
|
|
|
|
+ }
|
|
|
|
+ if(this.newData.userType == 1){
|
|
|
|
+ obj.mobile = this.form.mobile;
|
|
|
|
+ obj.captcha = this.form.captcha;
|
|
|
|
+ } else if(this.newData.userType == 2){
|
|
|
|
+ if(!this.newData.mobile && !this.newData.tutorUserName){
|
|
|
|
+ obj.tutorUserId = this.checkUserUserId;
|
|
|
|
+ obj.mobile = this.form.mobile;
|
|
|
|
+ obj.captcha = this.form.captcha;
|
|
|
|
+ }else if(this.newData.mobile){
|
|
|
|
+ obj.tutorUserId = this.checkUserUserId;
|
|
|
|
+ }else{
|
|
|
|
+ obj.mobile = this.form.mobile;
|
|
|
|
+ obj.captcha = this.form.captcha;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ const { data } = await systemUserEditUser(obj);
|
|
|
|
+ if (data.code == 200) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '提交成功',
|
|
|
|
+ mask: true,
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages/views/home/home',
|
|
|
|
+ });
|
|
|
|
+ },2000);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//搜索按钮
|
|
//搜索按钮
|
|
clearButton(){
|
|
clearButton(){
|
|
this.$set(this, 'getDataType', false);
|
|
this.$set(this, 'getDataType', false);
|
|
this.$set(this, 'dataList', []);
|
|
this.$set(this, 'dataList', []);
|
|
this.$set(this, 'total', 0);
|
|
this.$set(this, 'total', 0);
|
|
- this.$set(this.getData, 'searchValue','');
|
|
|
|
|
|
+ this.$set(this.getData, 'userName','');
|
|
this.$set(this.getData, 'page', 1);
|
|
this.$set(this.getData, 'page', 1);
|
|
- this.systemSubjectGetAppSubject();
|
|
|
|
|
|
+ this.systemUserSelectByPage();
|
|
},
|
|
},
|
|
//搜索按钮
|
|
//搜索按钮
|
|
searchButton(){
|
|
searchButton(){
|
|
@@ -189,17 +373,17 @@
|
|
this.$set(this, 'dataList', []);
|
|
this.$set(this, 'dataList', []);
|
|
this.$set(this, 'total', 0);
|
|
this.$set(this, 'total', 0);
|
|
this.$set(this.getData, 'page', 1);
|
|
this.$set(this.getData, 'page', 1);
|
|
- this.systemSubjectGetAppSubject();
|
|
|
|
|
|
+ this.systemUserSelectByPage();
|
|
},
|
|
},
|
|
//教师弹窗开关啊
|
|
//教师弹窗开关啊
|
|
userButton(type){
|
|
userButton(type){
|
|
this.$set(this,'userShowType',!this.userShowType);
|
|
this.$set(this,'userShowType',!this.userShowType);
|
|
},
|
|
},
|
|
//选中教师
|
|
//选中教师
|
|
- checkUser(item,index){
|
|
|
|
- this.$set(this.form,'supervisorName',item.name);
|
|
|
|
- this.$set(this.form,'supervisorId',item.num);
|
|
|
|
- this.$set(this,'checkUserIndex',index);
|
|
|
|
|
|
+ checkUser(item){
|
|
|
|
+ this.$set(this.form,'supervisorName',item.userName);
|
|
|
|
+ this.$set(this.form,'supervisorId',item.account);
|
|
|
|
+ this.$set(this,'checkUserUserId',item.userId);
|
|
this.$set(this,'userShowType',false);
|
|
this.$set(this,'userShowType',false);
|
|
},
|
|
},
|
|
//滚动加载事件
|
|
//滚动加载事件
|
|
@@ -210,16 +394,25 @@
|
|
} else {
|
|
} else {
|
|
this.getData.page += 1;
|
|
this.getData.page += 1;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.systemSubjectGetAppSubject();
|
|
|
|
|
|
+ this.systemUserSelectByPage();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//获取实验室
|
|
//获取实验室
|
|
- async systemSubjectGetAppSubject() {
|
|
|
|
|
|
+ async systemUserSelectByPage() {
|
|
let self = this;
|
|
let self = this;
|
|
|
|
+ let obj = {
|
|
|
|
+ userType:this.getData.userType,
|
|
|
|
+ page:this.getData.page,
|
|
|
|
+ pageSize:this.getData.pageSize,
|
|
|
|
+ userName:this.getData.userName,
|
|
|
|
+ };
|
|
|
|
+ if(!obj.userName){
|
|
|
|
+ obj.deptId = this.newData.deptId
|
|
|
|
+ }
|
|
const {
|
|
const {
|
|
data
|
|
data
|
|
- } = await systemSubjectGetAppSubject(this.getData);
|
|
|
|
|
|
+ } = await systemUserSelectByPage(obj);
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
if (self.getData.page == 1) {
|
|
if (self.getData.page == 1) {
|
|
this.dataList = data.data.records;
|
|
this.dataList = data.data.records;
|
|
@@ -318,6 +511,54 @@
|
|
border: 1rpx solid #E0E0E0;
|
|
border: 1rpx solid #E0E0E0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .input-button-max-box{
|
|
|
|
+ .input-top-box{
|
|
|
|
+ display: flex;
|
|
|
|
+ margin-left:32rpx;
|
|
|
|
+ view{
|
|
|
|
+ font-size:30rpx;
|
|
|
|
+ line-height: 100rpx;
|
|
|
|
+ }
|
|
|
|
+ view:nth-child(1){
|
|
|
|
+ color:#FF0000;
|
|
|
|
+ }
|
|
|
|
+ view:nth-child(2){
|
|
|
|
+ color:#333;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .input-button-box {
|
|
|
|
+ display: flex;
|
|
|
|
+ margin-left:30rpx;
|
|
|
|
+ input {
|
|
|
|
+ width: 412rpx;
|
|
|
|
+ height: 100rpx;
|
|
|
|
+ line-height: 100rpx;
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
+ border: 1px solid #D8D8D8;
|
|
|
|
+ padding: 0 30rpx;
|
|
|
|
+ margin-right: 18rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ view {
|
|
|
|
+ width: 200rpx;
|
|
|
|
+ line-height: 100rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .checkButton {
|
|
|
|
+ color: #333;
|
|
|
|
+ background-color: #E8E8E8;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .noCheckButton {
|
|
|
|
+ color: #fff;
|
|
|
|
+ background-color: #0183FA;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.button-max-box{
|
|
.button-max-box{
|
|
.button-top-box{
|
|
.button-top-box{
|
|
display: flex;
|
|
display: flex;
|
|
@@ -357,7 +598,7 @@
|
|
height:100%;
|
|
height:100%;
|
|
width:100%;
|
|
width:100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
background-color: rgba(0,0,0,0.5);
|
|
- z-index:1;
|
|
|
|
|
|
+ z-index:100;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -372,7 +613,7 @@
|
|
border-top-left-radius:20rpx;
|
|
border-top-left-radius:20rpx;
|
|
border-top-right-radius:20rpx;
|
|
border-top-right-radius:20rpx;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- z-index:10;
|
|
|
|
|
|
+ z-index:110;
|
|
.shade-top-box{
|
|
.shade-top-box{
|
|
height:122rpx;
|
|
height:122rpx;
|
|
border-bottom:1px solid #dedede;
|
|
border-bottom:1px solid #dedede;
|