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

View File

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

View File

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

View File

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