This commit is contained in:
王振 2020-05-12 11:32:49 +08:00
parent bc294c354c
commit 158f4b2d71
4 changed files with 12 additions and 12 deletions

View File

@ -163,8 +163,8 @@
this.editPasswordVisible = true; this.editPasswordVisible = true;
}, },
updateUser(updateUserForm) { updateUser(updateUserForm) {
this.$refs[updateUserForm].validate(valide => { this.$refs[updateUserForm].validate(valid => {
if (valide) { if (valid) {
this.result = this.$post(this.updatePath, this.form, response => { this.result = this.$post(this.updatePath, this.form, response => {
this.$success(this.$t('commons.modify_success')); this.$success(this.$t('commons.modify_success'));
localStorage.setItem(TokenKey, JSON.stringify(response.data)); localStorage.setItem(TokenKey, JSON.stringify(response.data));
@ -178,8 +178,8 @@
}) })
}, },
updatePassword(editPasswordForm) { updatePassword(editPasswordForm) {
this.$refs[editPasswordForm].validate(valide => { this.$refs[editPasswordForm].validate(valid => {
if (valide) { if (valid) {
this.result = this.$post(this.updatePasswordPath, this.ruleForm, response => { this.result = this.$post(this.updatePasswordPath, this.ruleForm, response => {
this.$success(this.$t('commons.modify_success')); this.$success(this.$t('commons.modify_success'));
this.editPasswordVisible = false; this.editPasswordVisible = false;

View File

@ -290,8 +290,8 @@
}) })
}, },
updateWorkspace(updateForm) { updateWorkspace(updateForm) {
this.$refs[updateForm].validate(valide => { this.$refs[updateForm].validate(valid => {
if (valide) { if (valid) {
this.result = this.$post("/workspace/special/update", this.form, () => { this.result = this.$post("/workspace/special/update", this.form, () => {
this.$success(this.$t('commons.modify_success')); this.$success(this.$t('commons.modify_success'));
this.dialogWsUpdateVisible = false; this.dialogWsUpdateVisible = false;

View File

@ -350,8 +350,8 @@
if (this.result.loading) { if (this.result.loading) {
return; return;
} }
this.$refs[createTestResourcePoolForm].validate(valide => { this.$refs[createTestResourcePoolForm].validate(valid => {
if (valide) { if (valid) {
let vri = this.validateResourceInfo(); let vri = this.validateResourceInfo();
if (vri.validate) { if (vri.validate) {
this.convertSubmitResources(); this.convertSubmitResources();
@ -389,8 +389,8 @@
if (this.result.loading) { if (this.result.loading) {
return; return;
} }
this.$refs[updateTestResourcePoolForm].validate(valide => { this.$refs[updateTestResourcePoolForm].validate(valid => {
if (valide) { if (valid) {
let vri = this.validateResourceInfo(); let vri = this.validateResourceInfo();
if (vri.validate) { if (vri.validate) {
this.convertSubmitResources(); this.convertSubmitResources();

View File

@ -255,8 +255,8 @@
}) })
}, },
editUserPassword(editPasswordForm){ editUserPassword(editPasswordForm){
this.$refs[editPasswordForm].validate(valide=>{ this.$refs[editPasswordForm].validate(valid=>{
if(valide){ if(valid){
this.result = this.$post(this.editPasswordPath, this.ruleForm, response => { this.result = this.$post(this.editPasswordPath, this.ruleForm, response => {
this.$success(this.$t('commons.modify_success')); this.$success(this.$t('commons.modify_success'));
this.editPasswordVisible = false; this.editPasswordVisible = false;