-
@@ -87,7 +87,7 @@
-
@@ -110,7 +110,7 @@
-
@@ -262,7 +262,7 @@
this.dialogTotal = data.itemCount;
});
},
- wsMemberList() {
+ dialogSearch() {
let row = this.currentWorkspaceRow;
this.dialogWsMemberVisible = true;
let param = this.dialogCondition;
@@ -324,9 +324,6 @@
this.memberLineData = [];
this.list();
},
- search() {
- this.list();
- },
list() {
let url = '/workspace/list/all/' + this.currentPage + '/' + this.pageSize;
this.result = this.$post(url, this.condition, response => {
diff --git a/frontend/src/business/components/settings/system/User.vue b/frontend/src/business/components/settings/system/User.vue
index ac4fcfd490..44bffab1f6 100644
--- a/frontend/src/business/components/settings/system/User.vue
+++ b/frontend/src/business/components/settings/system/User.vue
@@ -170,27 +170,18 @@
type: 'warning'
}).then(() => {
this.result = this.$get(this.deletePath + row.id, () => {
- this.$message({
- type: 'success',
- message: this.$t('commons.delete_success')
- });
+ this.$success(this.$t('commons.delete_success'));
this.search();
});
}).catch(() => {
- this.$message({
- type: 'info',
- message: this.$t('commons.delete_cancel')
- });
+ this.$info(this.$t('commons.delete_cancel'));
});
},
createUser(createUserForm) {
- this.$refs[createUserForm].validate(valide => {
- if (valide) {
+ this.$refs[createUserForm].validate(valid => {
+ if (valid) {
this.result = this.$post(this.createPath, this.form, () => {
- this.$message({
- type: 'success',
- message: this.$t('commons.save_success')
- });
+ this.$success(this.$t('commons.save_success'));
this.search();
this.createVisible = false;
});
@@ -200,13 +191,10 @@
})
},
updateUser(updateUserForm) {
- this.$refs[updateUserForm].validate(valide => {
- if (valide) {
+ this.$refs[updateUserForm].validate(valid => {
+ if (valid) {
this.result = this.$post(this.updatePath, this.form, () => {
- this.$message({
- type: 'success',
- message: this.$t('commons.modify_success')
- });
+ this.$success(this.$t('commons.modify_success'));
this.updateVisible = false;
this.search();
});
@@ -227,10 +215,7 @@
},
changeSwitch(row) {
this.$post(this.updatePath, row, () => {
- this.$message({
- type: 'success',
- message: this.$t('commons.modify_success')
- });
+ this.$success(this.$t('commons.modify_success'));
})
},
buildPagePath(path) {
diff --git a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
index 3734d48a2f..0cb53f56bd 100644
--- a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
+++ b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
@@ -2,7 +2,7 @@
-
@@ -167,15 +167,12 @@
buildPagePath(path) {
return path + "/" + this.currentPage + "/" + this.pageSize;
},
- search() {
- this.initTableData();
- },
closeFunc() {
this.form = {};
this.initTableData();
},
del(row) {
- this.$confirm('移除该成员, 是否继续?', '提示', {
+ this.$confirm(this.$t('member.delete_confirm'), '', {
confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'),
type: 'warning'
@@ -224,7 +221,7 @@
};
let wsId = this.currentUser().lastWorkspaceId;
if (typeof wsId == "undefined" || wsId == null || wsId == "") {
- this.$warning("请先选择工作空间!");
+ this.$warning(this.$t('workspace.please_select_a_workspace_first'));
return false;
}
this.$post('/user/org/member/list/all', param, response => {
diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js
index f25ae951ce..379332d50e 100644
--- a/frontend/src/i18n/en-US.js
+++ b/frontend/src/i18n/en-US.js
@@ -60,6 +60,7 @@ export default {
'search_by_name': 'Search by name',
'organization_name': 'Organization Name',
'please_choose_organization': 'Please Choose Organization',
+ 'please_select_a_workspace_first': 'Please select a workspace first!',
},
organization: {
'create': 'Create',
diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js
index e458d0527e..648af7a4bc 100644
--- a/frontend/src/i18n/zh-CN.js
+++ b/frontend/src/i18n/zh-CN.js
@@ -62,6 +62,7 @@ export default {
'search_by_name': '根据名称搜索',
'organization_name': '所属组织',
'please_choose_organization': '请选择组织',
+ 'please_select_a_workspace_first': '请先选择工作空间!',
},
organization: {
'create': '创建组织',