Browse Source

找回密码tip

luyanan 6 years ago
parent
commit
06b2ad6a00
2 changed files with 8 additions and 6 deletions
  1. 6 4
      src/utils/queryInfo.js
  2. 2 2
      src/views/findPwd/index.vue

+ 6 - 4
src/utils/queryInfo.js

58
    for (let i = 0; i < serverList.length; ++i) {
58
    for (let i = 0; i < serverList.length; ++i) {
59
      if (bid === serverList[i].bridgeId) {
59
      if (bid === serverList[i].bridgeId) {
60
        for (let j = 0; j < deviceList.length; ++j) {
60
        for (let j = 0; j < deviceList.length; ++j) {
61
          for (let m = 0; m < transducerList.length; ++m) {
61
          if (serverList[i].id === deviceList[j].serverId) {
62
            if (serverList[i].id === transducerList[m].serverId) {
62
            for (let m = 0; m < transducerList.length; ++m) {
63
              transducerList[m].deviceCode = deviceList[j].code
63
              if (deviceList[j].id === transducerList[m].deviceId) {
64
              trans.push(transducerList[m])
64
                transducerList[m].deviceCode = deviceList[j].code
65
                trans.push(transducerList[m])
66
              }
65
            }
67
            }
66
          }
68
          }
67
        }
69
        }

+ 2 - 2
src/views/findPwd/index.vue

211
          if (valid) {
211
          if (valid) {
212
            resetPwdByTel(this.ruleForm2.pass, this.ruleForm.msgVC).then((res) => {
212
            resetPwdByTel(this.ruleForm2.pass, this.ruleForm.msgVC).then((res) => {
213
              if (res.success) {
213
              if (res.success) {
214
                this.$alert('提示', '密码已重置,快去登录吧!', {
214
                this.$alert('密码已重置,快去登录吧!', '提示', {
215
                  confirmButtonText: '确定',
215
                  confirmButtonText: '确定',
216
                  type: 'success',
216
                  type: 'success',
217
                  center: true,
217
                  center: true,
222
                  }
222
                  }
223
                })
223
                })
224
              } else {
224
              } else {
225
                this.$alert('提示', '密码重置失败!', {
225
                this.$alert('密码重置失败!', '提示', {
226
                  confirmButtonText: '重新找回密码',
226
                  confirmButtonText: '重新找回密码',
227
                  type: 'warning',
227
                  type: 'warning',
228
                  center: true,
228
                  center: true,