diff --git a/backend/src/main/resources/db/migration/V78__v1.8_release.sql b/backend/src/main/resources/db/migration/V78__v1.8_release.sql index bb4704ecb4..c75d13da28 100644 --- a/backend/src/main/resources/db/migration/V78__v1.8_release.sql +++ b/backend/src/main/resources/db/migration/V78__v1.8_release.sql @@ -33,7 +33,7 @@ alter table swagger_url_project -- add_test_case alter table test_case - add demand_id varchar(50) null; + add demand_id varchar(120) null; alter table test_case add demand_name varchar(999) null; diff --git a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue index ea2aceb4f9..7e631ce3a3 100644 --- a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue +++ b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue @@ -231,14 +231,6 @@ export default { let data = response.data; this.total = data.itemCount; this.tableData = data.listObject; - for (let i = 0; i < this.tableData.length; i++) { - let path = "/test/plan/project"; - this.$post(path, {planId: this.tableData[i].id}, res => { - let arr = res.data; - let projectIds = arr.map(data => data.id); - this.$set(this.tableData[i], "projectIds", projectIds); - }) - } }); }, buildPagePath(path) { diff --git a/frontend/src/business/components/common/model/JsonData.js b/frontend/src/business/components/common/model/JsonData.js index d9dd6eae95..c6ae8d8dee 100644 --- a/frontend/src/business/components/common/model/JsonData.js +++ b/frontend/src/business/components/common/model/JsonData.js @@ -63,11 +63,16 @@ export const Api_Case_List = [ export const Api_Scenario_List = [ {id: 'num', label: "ID"}, {id: 'name', label: i18n.t('test_track.case.name')}, - {id: 'priority', label: i18n.t('test_track.case.priority')}, - {id: 'path', label: i18n.t('api_test.definition.api_path')}, + {id: 'level', label: i18n.t('api_test.automation.case_level')}, + {id: 'status', label: i18n.t('test_track.plan.plan_status')}, {id: 'tags', label: i18n.t('commons.tag')}, - {id: 'createUser', label: '创建人'}, + {id: 'userId', label: i18n.t('api_test.automation.creator')}, {id: 'updateTime', label: i18n.t('api_test.definition.api_last_time')}, + {id: 'stepTotal', label: i18n.t('api_test.automation.step')}, + {id: 'lastResult', label: i18n.t('api_test.automation.last_result')}, + {id: 'passRate', label: i18n.t('api_test.automation.passing_rate')}, + + ] //测试评审-测试用例 export const Test_Case_Review_Case_List = [ diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index ee971a3524..a767856738 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -134,7 +134,6 @@ export default { plannedStartTime: '', plannedEndTime: '' }, - dbProjectIds: [], rules: { name: [ {required: true, message: this.$t('test_track.plan.input_plan_name'), trigger: 'blur'}, @@ -160,7 +159,6 @@ export default { let tmp = {}; Object.assign(tmp, testPlan); Object.assign(this.form, tmp); - this.dbProjectIds = JSON.parse(JSON.stringify(this.form.projectIds)); } listenGoBack(this.close); this.dialogFormVisible = true; diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index 7677da6ffd..033109e521 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -279,14 +279,6 @@ export default { let data = response.data; this.total = data.itemCount; this.tableData = data.listObject; - for (let i = 0; i < this.tableData.length; i++) { - let path = "/test/plan/project"; - this.$post(path, {planId: this.tableData[i].id}, res => { - let arr = res.data; - let projectIds = arr.filter(d => d.id !== this.tableData[i].projectId).map(data => data.id); - this.$set(this.tableData[i], "projectIds", projectIds); - }) - } }); }, buildPagePath(path) { diff --git a/frontend/src/login/Login.vue b/frontend/src/login/Login.vue index 6dec041ed8..6bf4035b18 100644 --- a/frontend/src/login/Login.vue +++ b/frontend/src/login/Login.vue @@ -187,7 +187,7 @@ export default {