diff --git a/src/views/modules/sys/user-add-or-update.vue b/src/views/modules/sys/user-add-or-update.vue
index c71c168..3102f5e 100644
--- a/src/views/modules/sys/user-add-or-update.vue
+++ b/src/views/modules/sys/user-add-or-update.vue
@@ -103,6 +103,25 @@
{{ $t('user.status1') }}
+
+
+ 停用
+ 本人验证
+ 领导验证
+
+
+
+
+
{{ $t('cancel') }}
@@ -136,8 +155,11 @@ export default {
mobile: '',
roleIdList: [],
status: 1,
+ verifyFlag: '0',
+ verifyMobile: '',
userTagKey: ''
},
+ verifyMobileList: [],
userTagDictList: []
}
},
@@ -272,12 +294,36 @@ export default {
this.dataForm.deptName = data.name
this.deptListVisible = false
},
+ handleSelect (item) {
+ console.log(item)
+ },
+ verifyFlagChange (e) {
+ if (e === '2') {
+ this.$http.get(`/sys/user/getLeaderPhone/${this.dataForm.deptId}`).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.verifyMobileList = res.data
+ }).catch(() => { })
+ } else {
+ this.verifyMobileList = []
+ this.dataForm.verifyMobile = this.dataForm.mobile
+ }
+ },
+ querySearch (queryString, cb) {
+ let results = this.verifyMobileList
+ // 调用 callback 返回建议列表的数据
+ cb(results)
+ },
// 表单提交
dataFormSubmitHandle: debounce(function () {
this.$refs['dataForm'].validate((valid) => {
if (!valid) {
return false
}
+ if (this.dataForm.verifyFlag === '0') {
+ this.dataForm.verifyMobile = ''
+ }
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/user', {
...this.dataForm,
roleIdList: [