fix typo
This commit is contained in:
parent
bc294c354c
commit
158f4b2d71
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue