邮件发送问题查看
This commit is contained in:
		
							parent
							
								
									2d5d7824dc
								
							
						
					
					
						commit
						4650d2a0f9
					
				| 
						 | 
					@ -101,7 +101,7 @@
 | 
				
			||||||
        <el-table-column type="index" width="50" />
 | 
					        <el-table-column type="index" width="50" />
 | 
				
			||||||
        <el-table-column align="center" label="大类名称">
 | 
					        <el-table-column align="center" label="大类名称">
 | 
				
			||||||
          <template slot-scope="scope"
 | 
					          <template slot-scope="scope"
 | 
				
			||||||
            ><span v-html="showlight(scope.row.dlmc)"></span
 | 
					            ><span v-html="showlight(scope.row.dlmc)" v-if="scope.row.dlmc"></span
 | 
				
			||||||
          ></template>
 | 
					          ></template>
 | 
				
			||||||
        </el-table-column>
 | 
					        </el-table-column>
 | 
				
			||||||
        <el-table-column align="header-center" label="类别名称">
 | 
					        <el-table-column align="header-center" label="类别名称">
 | 
				
			||||||
| 
						 | 
					@ -126,7 +126,7 @@
 | 
				
			||||||
        </el-table-column>
 | 
					        </el-table-column>
 | 
				
			||||||
        <el-table-column align="header-center" label="标准编号">
 | 
					        <el-table-column align="header-center" label="标准编号">
 | 
				
			||||||
          <template slot-scope="scope"
 | 
					          <template slot-scope="scope"
 | 
				
			||||||
            ><span v-html="showlight(scope.row.bzbh)"></span
 | 
					            ><span v-html="showlight(scope.row.bzbh)" v-if="scope.row.bzbh"></span
 | 
				
			||||||
          ></template>
 | 
					          ></template>
 | 
				
			||||||
        </el-table-column>
 | 
					        </el-table-column>
 | 
				
			||||||
        <el-table-column
 | 
					        <el-table-column
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -89,7 +89,7 @@
 | 
				
			||||||
      <el-table-column type="index" width="50" />
 | 
					      <el-table-column type="index" width="50" />
 | 
				
			||||||
      <el-table-column label="大类名称">
 | 
					      <el-table-column label="大类名称">
 | 
				
			||||||
        <template slot-scope="scope"
 | 
					        <template slot-scope="scope"
 | 
				
			||||||
          ><span v-html="showlight(scope.row.dlmc)"></span
 | 
					          ><span v-html="showlight(scope.row.dlmc)" v-if="scope.row.dlmc"></span
 | 
				
			||||||
        ></template>
 | 
					        ></template>
 | 
				
			||||||
      </el-table-column>
 | 
					      </el-table-column>
 | 
				
			||||||
      <el-table-column label="类别名称">
 | 
					      <el-table-column label="类别名称">
 | 
				
			||||||
| 
						 | 
					@ -114,7 +114,7 @@
 | 
				
			||||||
      </el-table-column>
 | 
					      </el-table-column>
 | 
				
			||||||
      <el-table-column label="标准编号">
 | 
					      <el-table-column label="标准编号">
 | 
				
			||||||
        <template slot-scope="scope"
 | 
					        <template slot-scope="scope"
 | 
				
			||||||
          ><span v-html="showlight(scope.row.bzbh)"></span
 | 
					          ><span v-html="showlight(scope.row.bzbh)" v-if="scope.row.bzbh"></span
 | 
				
			||||||
        ></template>
 | 
					        ></template>
 | 
				
			||||||
      </el-table-column>
 | 
					      </el-table-column>
 | 
				
			||||||
      <el-table-column label="限制范围">
 | 
					      <el-table-column label="限制范围">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -176,6 +176,9 @@ export default {
 | 
				
			||||||
      redirect: undefined,
 | 
					      redirect: undefined,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					  created() {
 | 
				
			||||||
 | 
					    this.getUP()
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  watch: {
 | 
					  watch: {
 | 
				
			||||||
    $route: {
 | 
					    $route: {
 | 
				
			||||||
      handler: function (route) {
 | 
					      handler: function (route) {
 | 
				
			||||||
| 
						 | 
					@ -200,7 +203,13 @@ export default {
 | 
				
			||||||
        this.getTimer()
 | 
					        this.getTimer()
 | 
				
			||||||
        sendMsg({'mail':this.loginForm2.mail}).then(res=>{
 | 
					        sendMsg({'mail':this.loginForm2.mail}).then(res=>{
 | 
				
			||||||
          this.$message.success('验证码已发送至该邮箱,请注意查收')
 | 
					          this.$message.success('验证码已发送至该邮箱,请注意查收')
 | 
				
			||||||
        }).catch(e=>{})
 | 
					          
 | 
				
			||||||
 | 
					        }).catch(e=>{
 | 
				
			||||||
 | 
					          this.disabled = false;
 | 
				
			||||||
 | 
					          clearInterval(this.timer);
 | 
				
			||||||
 | 
					          this.timer = null;
 | 
				
			||||||
 | 
					          this.buttonmsg = '发送验证码'
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
      }else{
 | 
					      }else{
 | 
				
			||||||
        this.$message.warning('请输入邮箱号')
 | 
					        this.$message.warning('请输入邮箱号')
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					@ -232,6 +241,8 @@ export default {
 | 
				
			||||||
            .then(() => {
 | 
					            .then(() => {
 | 
				
			||||||
              this.$router.push({ path: this.redirect || "/" });
 | 
					              this.$router.push({ path: this.redirect || "/" });
 | 
				
			||||||
              this.loading = false;
 | 
					              this.loading = false;
 | 
				
			||||||
 | 
					              localStorage.setItem("rem_username", this.loginForm.username);
 | 
				
			||||||
 | 
					              localStorage.setItem("rem_password", this.loginForm.password);
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            .catch(() => {
 | 
					            .catch(() => {
 | 
				
			||||||
              this.loading = false;
 | 
					              this.loading = false;
 | 
				
			||||||
| 
						 | 
					@ -251,6 +262,7 @@ export default {
 | 
				
			||||||
            .then(() => {
 | 
					            .then(() => {
 | 
				
			||||||
              this.$router.push({ path: this.redirect || "/" });
 | 
					              this.$router.push({ path: this.redirect || "/" });
 | 
				
			||||||
              this.loading2 = false;
 | 
					              this.loading2 = false;
 | 
				
			||||||
 | 
					              localStorage.setItem("rem_mail", this.loginForm2.mail);
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            .catch(() => {
 | 
					            .catch(() => {
 | 
				
			||||||
              this.loading2 = false;
 | 
					              this.loading2 = false;
 | 
				
			||||||
| 
						 | 
					@ -261,6 +273,12 @@ export default {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    //读取cookie
 | 
				
			||||||
 | 
					            getUP() {
 | 
				
			||||||
 | 
					                this.loginForm2.mail = localStorage.getItem("rem_mail")
 | 
				
			||||||
 | 
					                this.loginForm.username = localStorage.getItem("rem_username");
 | 
				
			||||||
 | 
					                this.loginForm.password = localStorage.getItem("rem_password");
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue