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,10 +58,12 @@ var bridgeObj = {},
58 58
    for (let i = 0; i < serverList.length; ++i) {
59 59
      if (bid === serverList[i].bridgeId) {
60 60
        for (let j = 0; j < deviceList.length; ++j) {
61
          for (let m = 0; m < transducerList.length; ++m) {
62
            if (serverList[i].id === transducerList[m].serverId) {
63
              transducerList[m].deviceCode = deviceList[j].code
64
              trans.push(transducerList[m])
61
          if (serverList[i].id === deviceList[j].serverId) {
62
            for (let m = 0; m < transducerList.length; ++m) {
63
              if (deviceList[j].id === transducerList[m].deviceId) {
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,7 +211,7 @@
211 211
          if (valid) {
212 212
            resetPwdByTel(this.ruleForm2.pass, this.ruleForm.msgVC).then((res) => {
213 213
              if (res.success) {
214
                this.$alert('提示', '密码已重置,快去登录吧!', {
214
                this.$alert('密码已重置,快去登录吧!', '提示', {
215 215
                  confirmButtonText: '确定',
216 216
                  type: 'success',
217 217
                  center: true,
@ -222,7 +222,7 @@
222 222
                  }
223 223
                })
224 224
              } else {
225
                this.$alert('提示', '密码重置失败!', {
225
                this.$alert('密码重置失败!', '提示', {
226 226
                  confirmButtonText: '重新找回密码',
227 227
                  type: 'warning',
228 228
                  center: true,