|
@@ -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,
|