- 1. {{$t('organization.integration.use_tip_one')}}
+ 1. {{$t('organization.integration.use_tip_tapd')}}
- 2. {{$t('organization.integration.use_tip_two')}}
+ 2. {{$t('organization.integration.use_tip_jira')}}
+
+ 3. {{$t('organization.integration.use_tip_two')}}
{{$t('organization.integration.link_the_project_now')}}
@@ -85,6 +91,11 @@
required: true,
message: this.$t('organization.integration.input_jira_url'),
trigger: ['change', 'blur']
+ },
+ issuetype: {
+ required: true,
+ message: this.$t('organization.integration.input_jira_issuetype'),
+ trigger: ['change', 'blur']
}
},
}
@@ -105,6 +116,7 @@
this.$set(this.form, 'account', config.account);
this.$set(this.form, 'password', config.password);
this.$set(this.form, 'url', config.url);
+ this.$set(this.form, 'issuetype', config.issuetype);
} else {
this.clear();
}
@@ -149,17 +161,26 @@
this.$warning(this.$t('organization.integration.choose_platform'));
return;
}
- let param = {};
- let auth = {
- account: this.form.account,
- password: this.form.password,
- url: this.form.url
- };
- param.organizationId = getCurrentUser().lastOrganizationId;
- param.platform = this.platform;
- param.configuration = JSON.stringify(auth);
+
this.$refs[form].validate(valid => {
if (valid) {
+
+ let formatUrl = this.form.url;
+ if (!formatUrl.endsWith('/')) {
+ formatUrl = formatUrl + '/';
+ }
+
+ let param = {};
+ let auth = {
+ account: this.form.account,
+ password: this.form.password,
+ url: formatUrl,
+ issuetype: this.form.issuetype
+ };
+ param.organizationId = getCurrentUser().lastOrganizationId;
+ param.platform = this.platform;
+ param.configuration = JSON.stringify(auth);
+
this.result = this.$post("service/integration/save", param, () => {
this.show = true;
this.showEdit = true;
@@ -188,6 +209,7 @@
this.$set(this.form, 'account', config.account);
this.$set(this.form, 'password', config.password);
this.$set(this.form, 'url', config.url);
+ this.$set(this.form, 'issuetype', config.issuetype);
} else {
this.clear();
}
@@ -197,6 +219,7 @@
this.$set(this.form, 'account', '');
this.$set(this.form, 'password', '');
this.$set(this.form, 'url', '');
+ this.$set(this.form, 'issuetype', '');
this.$nextTick(() => {
this.$refs.form.clearValidate();
});
diff --git a/frontend/src/business/components/settings/organization/OrganizationMember.vue b/frontend/src/business/components/settings/organization/OrganizationMember.vue
index 0f22f54054..1d8c718001 100644
--- a/frontend/src/business/components/settings/organization/OrganizationMember.vue
+++ b/frontend/src/business/components/settings/organization/OrganizationMember.vue
@@ -25,7 +25,7 @@
:total="total"/>
-
-
diff --git a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
index 964f4d41b9..79abac6e22 100644
--- a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
+++ b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
@@ -24,7 +24,7 @@
:total="total"/>
-
+
@@ -39,7 +39,7 @@
@confirm="submit('form')"/>
-
+
@@ -56,7 +56,7 @@
-
@@ -82,7 +82,7 @@
-
-
diff --git a/frontend/src/business/components/settings/personal/PersonSetting.vue b/frontend/src/business/components/settings/personal/PersonSetting.vue
index dfc56780d0..bff2281cf7 100644
--- a/frontend/src/business/components/settings/personal/PersonSetting.vue
+++ b/frontend/src/business/components/settings/personal/PersonSetting.vue
@@ -32,7 +32,7 @@
-
@@ -57,7 +57,7 @@
-
diff --git a/frontend/src/business/components/settings/system/Organization.vue b/frontend/src/business/components/settings/system/Organization.vue
index 29cf3e4ee0..ab8cfc75c5 100644
--- a/frontend/src/business/components/settings/system/Organization.vue
+++ b/frontend/src/business/components/settings/system/Organization.vue
@@ -28,7 +28,7 @@
-
@@ -56,7 +56,7 @@
-
@@ -75,7 +75,7 @@
-
-
-
diff --git a/frontend/src/business/components/settings/system/SystemWorkspace.vue b/frontend/src/business/components/settings/system/SystemWorkspace.vue
index 099c8d4a59..ffac20b2f9 100644
--- a/frontend/src/business/components/settings/system/SystemWorkspace.vue
+++ b/frontend/src/business/components/settings/system/SystemWorkspace.vue
@@ -28,7 +28,7 @@
-
+
@@ -56,7 +56,7 @@
-
+
@@ -85,7 +85,7 @@
-
+
@@ -111,7 +111,7 @@
-
-
diff --git a/frontend/src/business/components/settings/system/TestResourcePool.vue b/frontend/src/business/components/settings/system/TestResourcePool.vue
index 90daac46c3..f1a20228c0 100644
--- a/frontend/src/business/components/settings/system/TestResourcePool.vue
+++ b/frontend/src/business/components/settings/system/TestResourcePool.vue
@@ -45,6 +45,7 @@
-
@@ -163,7 +163,7 @@
-
@@ -268,7 +268,7 @@
-
diff --git a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
index ce1a365fa0..db56275b42 100644
--- a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
+++ b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
@@ -26,7 +26,7 @@
:total="total"/>
-
@@ -65,7 +65,7 @@
-
diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue
index 6558a677c3..e43b8a8e06 100644
--- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue
@@ -2,9 +2,10 @@
-
+ :visible.sync="dialogFormVisible" width="65%">
@@ -268,8 +269,8 @@ export default {
type: [{required: true, message: this.$t('test_track.case.input_type'), trigger: 'change'}],
testId: [{required: true, message: this.$t('commons.please_select'), trigger: 'change'}],
method: [{required: true, message: this.$t('test_track.case.input_method'), trigger: 'change'}],
- prerequisite: [{max: 300, message: this.$t('test_track.length_less_than') + '300', trigger: 'blur'}],
- remark: [{max: 300, message: this.$t('test_track.length_less_than') + '300', trigger: 'blur'}]
+ prerequisite: [{max: 500, message: this.$t('test_track.length_less_than') + '500', trigger: 'blur'}],
+ remark: [{max: 500, message: this.$t('test_track.length_less_than') + '500', trigger: 'blur'}]
},
formLabelWidth: "120px",
operationType: '',
@@ -351,8 +352,8 @@ export default {
handleAddStep(index, data) {
let step = {};
step.num = data.num + 1;
- step.desc = null;
- step.result = null;
+ step.desc = "";
+ step.result = "";
this.form.steps.forEach(step => {
if (step.num > data.num) {
step.num++;
diff --git a/frontend/src/business/components/track/head/TrackHeaderMenus.vue b/frontend/src/business/components/track/head/TrackHeaderMenus.vue
index 98daea8241..7ee03d460a 100644
--- a/frontend/src/business/components/track/head/TrackHeaderMenus.vue
+++ b/frontend/src/business/components/track/head/TrackHeaderMenus.vue
@@ -100,12 +100,7 @@ export default {
},
mounted() {
this.init();
- let self = this;
- TrackEvent.$on(LIST_CHANGE, () => {
- self.$refs.projectRecent.recent();
- self.$refs.planRecent.recent();
- self.$refs.caseRecent.recent();
- });
+ this.registerEvents();
},
methods: {
reload() {
@@ -132,6 +127,13 @@ export default {
this.testCaseEditPath = path;
this.reload();
}
+ },
+ registerEvents() {
+ TrackEvent.$on(LIST_CHANGE, () => {
+ this.$refs.projectRecent.recent();
+ this.$refs.planRecent.recent();
+ this.$refs.caseRecent.recent();
+ });
}
}
}
diff --git a/frontend/src/business/components/track/home/TrackHome.vue b/frontend/src/business/components/track/home/TrackHome.vue
index 80254f5488..3a01d6b921 100644
--- a/frontend/src/business/components/track/home/TrackHome.vue
+++ b/frontend/src/business/components/track/home/TrackHome.vue
@@ -1,7 +1,7 @@
-
+
@@ -14,33 +14,34 @@
diff --git a/frontend/src/business/components/track/home/components/HomeBaseComponent.vue b/frontend/src/business/components/track/home/components/HomeBaseComponent.vue
index 508f44bb01..5bb8f5f5c1 100644
--- a/frontend/src/business/components/track/home/components/HomeBaseComponent.vue
+++ b/frontend/src/business/components/track/home/components/HomeBaseComponent.vue
@@ -1,8 +1,8 @@
-
+
- {{title}}
+ {{ title }}
@@ -10,27 +10,19 @@
diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue
index b51d0de096..a8a5cf7450 100644
--- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue
+++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue
@@ -2,7 +2,8 @@
-
diff --git a/frontend/src/business/components/track/plan/view/comonents/test/ApiTestDetail.vue b/frontend/src/business/components/track/plan/view/comonents/test/ApiTestDetail.vue
index a89f2015bf..10f7b30e93 100644
--- a/frontend/src/business/components/track/plan/view/comonents/test/ApiTestDetail.vue
+++ b/frontend/src/business/components/track/plan/view/comonents/test/ApiTestDetail.vue
@@ -23,22 +23,22 @@