Browse Source

Merge branch 'master' of http://120.26.64.82:3000/BFFE/CABaggageData2.0

zhongxiaoyu 2 years ago
parent
commit
2e14e7b5ba
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/views/accountManagement/components/accountHome.vue

+ 5 - 3
src/views/accountManagement/components/accountHome.vue

@@ -196,8 +196,6 @@ export default {
         new: "",
         again: "",
       },
-      dataFormObj: {},
-      dataFormId: null,
       // leup: true,
       dataRules: {
         //数据项表单验证
@@ -468,7 +466,11 @@ export default {
     addSubmit (formName) {
       this.$refs[formName].validate(async (valid) => {
         if (valid) {
-          this.dataForm.user_sec_pwd = this.dataForm.again
+          if (this.dataForm.new !== this.dataForm.again) {
+            this.$message.error("两次输入的密码不一致,请重新输入");
+            return false;
+          }
+          this.dataForm.user_sec_pwd = MD5(this.dataForm.again)
           const obj = Object.assign(this.ruleForm, this.dataForm)
           const { code, message } = await GeneralDataReception({
             serviceId: SERVICE_ID.accountScId,