diff --git a/frontend/src/business/components/settings/Setting.vue b/frontend/src/business/components/settings/Setting.vue
index e741a6dfb9..852a22f1b1 100644
--- a/frontend/src/business/components/settings/Setting.vue
+++ b/frontend/src/business/components/settings/Setting.vue
@@ -3,7 +3,7 @@
diff --git a/frontend/src/business/components/settings/organization/OrganizationMember.vue b/frontend/src/business/components/settings/organization/OrganizationMember.vue
index 22fe460ff9..a820cac769 100644
--- a/frontend/src/business/components/settings/organization/OrganizationMember.vue
+++ b/frontend/src/business/components/settings/organization/OrganizationMember.vue
@@ -11,17 +11,12 @@
-
- {{ role.name }}
-
+
-
-
+
@@ -58,8 +53,9 @@
@@ -92,8 +88,9 @@
@@ -105,10 +102,12 @@
import {TokenKey} from "../../../../common/js/constants";
import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader";
+ import MsRolesTag from "../../common/components/MsRolesTag";
+ import MsTableOperator from "../../common/components/MsTableOperator";
export default {
name: "MsOrganizationMember",
- components: {MsCreateBox, MsTablePagination, MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader, MsRolesTag, MsTableOperator},
created() {
this.initTableData();
},
diff --git a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
index 027c90d6de..21d8c4f64b 100644
--- a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
+++ b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
@@ -16,10 +16,7 @@
-
-
+
@@ -38,8 +35,9 @@
@@ -55,26 +53,23 @@
-
- {{ role.name }}
-
+
-
-
+
-
-
@@ -105,14 +100,16 @@
-
@@ -141,8 +138,9 @@
@@ -156,10 +154,12 @@
import {TokenKey} from "../../../../common/js/constants";
import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader";
+ import MsRolesTag from "../../common/components/MsRolesTag";
+ import MsTableOperator from "../../common/components/MsTableOperator";
export default {
name: "MsOrganizationWorkspace",
- components: {MsCreateBox, MsTablePagination, MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader, MsRolesTag, MsTableOperator},
mounted() {
this.list();
},
diff --git a/frontend/src/business/components/settings/personal/PersonSetting.vue b/frontend/src/business/components/settings/personal/PersonSetting.vue
index 38282cc692..a021e33f2c 100644
--- a/frontend/src/business/components/settings/personal/PersonSetting.vue
+++ b/frontend/src/business/components/settings/personal/PersonSetting.vue
@@ -27,8 +27,10 @@
-
-
+
+
@@ -44,8 +46,9 @@
@@ -68,7 +71,7 @@
rule: {
name: [
{required: true, message: this.$t('member.input_name'), trigger: 'blur'},
- { min: 2, max: 10, message: this.$t('commons.input_limit', [2, 10]), trigger: 'blur' },
+ {min: 2, max: 10, message: this.$t('commons.input_limit', [2, 10]), trigger: 'blur'},
{
required: true,
pattern: /^[\u4e00-\u9fa5_a-zA-Z0-9.·-]+$/,
@@ -85,7 +88,7 @@
}
],
email: [
- { required: true, message: this.$t('member.input_email'), trigger: 'blur' },
+ {required: true, message: this.$t('member.input_email'), trigger: 'blur'},
{
required: true,
pattern: /^([A-Za-z0-9_\-.])+@([A-Za-z0-9]+\.)+[A-Za-z]{2,6}$/,
@@ -112,7 +115,7 @@
updateUser(updateUserForm) {
this.$refs[updateUserForm].validate(valide => {
if (valide) {
- 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'));
localStorage.setItem(TokenKey, JSON.stringify(response.data));
this.updateVisible = false;
diff --git a/frontend/src/business/components/settings/system/Organization.vue b/frontend/src/business/components/settings/system/Organization.vue
index 6df8ccbebd..c840c6d01e 100644
--- a/frontend/src/business/components/settings/system/Organization.vue
+++ b/frontend/src/business/components/settings/system/Organization.vue
@@ -19,10 +19,7 @@
-
-
+
@@ -41,17 +38,12 @@
-
- {{ role.name }}
-
+
-
-
+
@@ -74,8 +66,9 @@
@@ -95,9 +88,9 @@
@@ -135,8 +128,9 @@
@@ -172,8 +166,9 @@
@@ -185,10 +180,12 @@
import MsCreateBox from "../CreateBox";
import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader";
+ import MsRolesTag from "../../common/components/MsRolesTag";
+ import MsTableOperator from "../../common/components/MsTableOperator";
export default {
name: "MsOrganization",
- components: {MsCreateBox, MsTablePagination, MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader, MsRolesTag, MsTableOperator},
data() {
return {
queryPath: '/organization/list',
diff --git a/frontend/src/business/components/settings/system/SystemWorkspace.vue b/frontend/src/business/components/settings/system/SystemWorkspace.vue
index 42b247a3ff..2a73b74da7 100644
--- a/frontend/src/business/components/settings/system/SystemWorkspace.vue
+++ b/frontend/src/business/components/settings/system/SystemWorkspace.vue
@@ -18,8 +18,7 @@
-
-
+
@@ -50,7 +49,7 @@
@@ -78,7 +77,7 @@
@@ -96,17 +95,12 @@
-
- {{ role.name }}
-
+
-
-
+
@@ -116,7 +110,8 @@
-
@@ -147,13 +142,16 @@
-
@@ -182,8 +180,9 @@
@@ -197,10 +196,12 @@
import {Message} from "element-ui";
import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader";
+ import MsRolesTag from "../../common/components/MsRolesTag";
+ import MsTableOperator from "../../common/components/MsTableOperator";
export default {
name: "MsSystemWorkspace",
- components: {MsCreateBox, MsTablePagination, MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader, MsRolesTag, MsTableOperator},
mounted() {
this.list();
},
diff --git a/frontend/src/business/components/settings/system/TestResourcePool.vue b/frontend/src/business/components/settings/system/TestResourcePool.vue
index 0ad35e9105..05a8cd4630 100644
--- a/frontend/src/business/components/settings/system/TestResourcePool.vue
+++ b/frontend/src/business/components/settings/system/TestResourcePool.vue
@@ -38,8 +38,7 @@
-
-
+
@@ -122,9 +121,10 @@
@@ -202,9 +202,10 @@
@@ -216,10 +217,11 @@
import MsCreateBox from "../CreateBox";
import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader";
+ import MsTableOperator from "../../common/components/MsTableOperator";
export default {
name: "MsTestResourcePool",
- components: {MsCreateBox, MsTablePagination, MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader, MsTableOperator},
data() {
return {
result: {},
@@ -413,9 +415,13 @@
this.form = {};
},
changeSwitch(row) {
- this.result = this.$post('/testresourcepool/update', row).then(() => {
- this.$success(this.$t('test_resource_pool.status_change_success'));
- })
+ this.result = this.$get('/testresourcepool/update/' + row.id + '/' + row.status)
+ .then(() => {
+ this.$success(this.$t('test_resource_pool.status_change_success'));
+ }).catch(() => {
+ this.$error(this.$t('test_resource_pool.status_change_failed'));
+ row.status = 'INVALID';
+ })
}
}
}
diff --git a/frontend/src/business/components/settings/system/User.vue b/frontend/src/business/components/settings/system/User.vue
index 44bffab1f6..279b85543e 100644
--- a/frontend/src/business/components/settings/system/User.vue
+++ b/frontend/src/business/components/settings/system/User.vue
@@ -30,8 +30,7 @@
-
-
+
@@ -59,8 +58,8 @@
@@ -83,8 +82,9 @@
@@ -96,10 +96,11 @@
import MsCreateBox from "../CreateBox";
import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader";
+ import MsTableOperator from "../../common/components/MsTableOperator";
export default {
name: "MsUser",
- components: {MsCreateBox, MsTablePagination, MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader, MsTableOperator},
data() {
return {
queryPath: '/user/special/list',
diff --git a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
index 0cb53f56bd..8bdeda0f97 100644
--- a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
+++ b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
@@ -9,19 +9,14 @@
-
+
-
- {{ role.name }}
-
+
-
-
+
@@ -29,9 +24,10 @@
:total="total"/>
-
+
-
+
-
+
-
+
@@ -77,7 +75,7 @@
-
+
@@ -104,10 +103,12 @@
import {TokenKey} from "../../../../common/js/constants";
import MsTablePagination from "../../common/pagination/TablePagination";
import MsTableHeader from "../../common/components/MsTableHeader";
+ import MsRolesTag from "../../common/components/MsRolesTag";
+ import MsTableOperator from "../../common/components/MsTableOperator";
export default {
name: "MsMember",
- components: {MsCreateBox, MsTablePagination, MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader, MsRolesTag, MsTableOperator},
data() {
return {
result: {},
diff --git a/frontend/src/business/components/track/case/components/TestCaseMove.vue b/frontend/src/business/components/track/case/components/TestCaseMove.vue
index 8d09f7ff1c..0240d2f6b3 100644
--- a/frontend/src/business/components/track/case/components/TestCaseMove.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseMove.vue
@@ -1,12 +1,12 @@
-
diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js
index 499f596490..2232c263ca 100644
--- a/frontend/src/i18n/en-US.js
+++ b/frontend/src/i18n/en-US.js
@@ -2,6 +2,7 @@ export default {
commons: {
'workspace': 'Workspace',
'organization': 'Organization',
+ 'setting': 'Setting',
'project': 'Project',
'name': 'Name',
'description': 'Description',
@@ -314,6 +315,7 @@ export default {
'fill_the_data': 'Please complete the data',
'delete_prompt': 'This operation will permanently delete the resource pool, continue?',
'status_change_success': 'Successfully changed the status!',
+ 'status_change_failed': 'Failed to change the status!',
},
i18n: {
'home': 'Home'
diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js
index a626cb2cd8..eda4519f39 100644
--- a/frontend/src/i18n/zh-CN.js
+++ b/frontend/src/i18n/zh-CN.js
@@ -2,6 +2,7 @@ export default {
commons: {
'workspace': '工作空间',
'organization': '组织',
+ 'setting': '设置',
'project': '项目',
'name': '名称',
'description': '描述',
@@ -186,6 +187,7 @@ export default {
},
api_test: {
save_and_run: "保存并执行",
+ running: "正在执行",
reset: "重置",
input_name: "请输入测试名称",
select_project: "请选择项目",
@@ -359,6 +361,7 @@ export default {
'fill_the_data': '请完善数据',
'delete_prompt': '此操作将永久删除该资源池, 是否继续?',
'status_change_success': '状态修改成功!',
+ 'status_change_failed': '状态修改失败!',
},
i18n: {
'home': '首页'