|
|
@@ -14,15 +14,15 @@
|
|
|
<div class="list-content">
|
|
|
<ul class="staff-adds">
|
|
|
<li><span>姓名:</span><input type="text" v-model="newUserName" maxlength="10" placeholder="请输入用户名"></li>
|
|
|
- <li style="overflow: visible;"><span>性别:</span>
|
|
|
- <div class="sex-filter">
|
|
|
- <div class="select-wrap" @click.stop="openChoose">{{sex === 'M' ? '男' : '女'}}<i class="iconfont icon-arrow-down"></i></div>
|
|
|
- <ul class="select-list" v-if="showChooseSex">
|
|
|
- <li v-show="sex != 'M'" @click="chooseSex('M')">男</li>
|
|
|
- <li v-show="sex != 'F'" @click="chooseSex('F')">女</li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
+ <!--<li style="overflow: visible;"><span>性别:</span>-->
|
|
|
+ <!--<div class="sex-filter">-->
|
|
|
+ <!--<div class="select-wrap" @click.stop="openChoose">{{sex === 'M' ? '男' : '女'}}<i class="iconfont icon-arrow-down"></i></div>-->
|
|
|
+ <!--<ul class="select-list" v-if="showChooseSex">-->
|
|
|
+ <!--<li v-show="sex != 'M'" @click="chooseSex('M')">男</li>-->
|
|
|
+ <!--<li v-show="sex != 'F'" @click="chooseSex('F')">女</li>-->
|
|
|
+ <!--</ul>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</li>-->
|
|
|
<li><span>手机:</span><input type="text"
|
|
|
v-model="newUserPhone"
|
|
|
@change="checkPhone()"
|
|
|
@@ -59,7 +59,7 @@
|
|
|
<div class="staff-list">
|
|
|
<div class="list-item"><span>UU账号:</span><span v-text="newUserInfo.userUU">100000721</span></div>
|
|
|
<div class="list-item"><span>姓名:</span><span v-text="newUserInfo.userName">张洪别</span></div>
|
|
|
- <div class="list-item"><span>性别:</span><span v-text="newUserInfo.userSex === 'F' ? '女' : newUserInfo.userSex === 'M' ? '男' : '-'">男</span></div>
|
|
|
+ <!--<div class="list-item"><span>性别:</span><span v-text="newUserInfo.userSex === 'F' ? '女' : newUserInfo.userSex === 'M' ? '男' : '-'">男</span></div>-->
|
|
|
<div class="list-item"><span>手机:</span><span v-text="newUserInfo.userTel">12345678901</span></div>
|
|
|
<div class="list-item"><span>邮箱:</span><span v-text="newUserInfo.userEmail">12345678901</span></div>
|
|
|
</div>
|
|
|
@@ -118,13 +118,13 @@
|
|
|
setSwitchType (type) {
|
|
|
this.switchType = type
|
|
|
},
|
|
|
- openChoose () {
|
|
|
- this.showChooseSex = !this.showChooseSex
|
|
|
- },
|
|
|
- chooseSex (info) {
|
|
|
- this.sex = info
|
|
|
- this.showChooseSex = false
|
|
|
- },
|
|
|
+ // openChoose () {
|
|
|
+ // this.showChooseSex = !this.showChooseSex
|
|
|
+ // },
|
|
|
+ // chooseSex (info) {
|
|
|
+ // this.sex = info
|
|
|
+ // this.showChooseSex = false
|
|
|
+ // },
|
|
|
onRemind: function (str) {
|
|
|
this.remindText = str
|
|
|
this.timeoutCount ++
|
|
|
@@ -175,7 +175,7 @@
|
|
|
},
|
|
|
// 绑定未注册用户
|
|
|
addNewUser () {
|
|
|
- if (!this.newUserName ||this.newUserName === '') {
|
|
|
+ if (!this.newUserName || this.newUserName === '') {
|
|
|
this.onRemind('请输入用户名')
|
|
|
} else if (!this.newUserPhone || this.newUserPhone === '') {
|
|
|
this.onRemind('请输入手机号码')
|
|
|
@@ -191,7 +191,9 @@
|
|
|
this.onRemind('增加用户成功' + this.newUserName)
|
|
|
this.$router.push('/mobile/user/staff')
|
|
|
}
|
|
|
- })
|
|
|
+ }).catch(() => {
|
|
|
+ this.onRemind('增加用户失败!')
|
|
|
+ })
|
|
|
} else {
|
|
|
this.checkPhone()
|
|
|
this.checkEmail()
|
|
|
@@ -209,7 +211,7 @@
|
|
|
if (response.data) {
|
|
|
this.searchNoData = false
|
|
|
if (response.data.userUU === this.userInfo.userUU) {
|
|
|
- //不可自己绑定自己
|
|
|
+ // 不可自己绑定自己
|
|
|
this.bindSelf = true
|
|
|
this.showSearchUser = false
|
|
|
} else {
|
|
|
@@ -223,7 +225,7 @@
|
|
|
this.showSearchUser = false
|
|
|
this.bindSelf = false
|
|
|
}
|
|
|
- }).catch (err =>{
|
|
|
+ }).catch(err => {
|
|
|
if (err) {
|
|
|
this.searchNoData = true
|
|
|
this.showSearchUser = false
|