@@ -141,6 +141,7 @@
@@ -337,6 +338,17 @@ export default {
this.rightBox.title = this.$t("config.account.createAccount");
this.rightBox.show = true;
},
+ tabSave:function(){
+ this.$put('sys/user/update', this.user).then(response => {
+ if (response.code === 200) {
+ this.rightBox.show = false;
+ this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
+ } else {
+ this.$message.error(response.msg);
+ }
+ this.getTableData();
+ });
+ },
save: function() {
this.$refs.accountForm.validate((valid) => {
if(valid){
@@ -376,7 +388,7 @@ export default {
},
statusChange: function(user) {
this.user = user;
- this.save();
+ this.tabSave();
},
jumpTo(data,id) {
this.$store.state.assetData.moduleData = data;
diff --git a/nezha-fronted/src/components/page/config/promServer.vue b/nezha-fronted/src/components/page/config/promServer.vue
index f06b09440..b4912d645 100644
--- a/nezha-fronted/src/components/page/config/promServer.vue
+++ b/nezha-fronted/src/components/page/config/promServer.vue
@@ -6,7 +6,7 @@
display: inline-block;
font-size: 12px;
margin-right:6px;
- }
+ }
@@ -136,6 +136,7 @@