diff --git a/backend/src/main/java/io/metersphere/service/TestCaseService.java b/backend/src/main/java/io/metersphere/service/TestCaseService.java index dc167c2a55..1edab7a634 100644 --- a/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -224,7 +224,7 @@ public class TestCaseService { } private List generateExportTemplate() { - List list = new ArrayList(); + List list = new ArrayList<>(); StringBuilder path = new StringBuilder(""); List types = Arrays.asList("functional", "performance", "api"); List methods = Arrays.asList("manual", "auto"); diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index d87ed3f552..3840c28ee4 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -89,23 +89,8 @@ -
- - -
- - -
-
-
-
+ @@ -116,22 +101,21 @@ import MsCreateBox from '../../../settings/CreateBox'; import TestCaseImport from '../components/TestCaseImport'; import TestCaseExport from '../components/TestCaseExport'; + import MsTablePagination from '../../../../components/common/pagination/TablePagination'; + export default { name: "TestCaseList", - components: {MsCreateBox, TestCaseImport, TestCaseExport}, + components: {MsCreateBox, TestCaseImport, TestCaseExport, MsTablePagination}, data() { return { result: {}, deletePath: "/test/case/delete", condition: "", tableData: [], - multipleSelection: [], currentPage: 1, pageSize: 5, total: 0, - loadingRequire: {project: true, testCase: true}, - testId: null } }, props: { @@ -157,7 +141,6 @@ if (this.currentProject) { param.projectId = this.currentProject.id; this.result = this.$post(this.buildPagePath('/test/case/list'), param, response => { - this.loadingRequire.testCase = false; let data = response.data; this.total = data.itemCount; this.tableData = data.listObject; @@ -173,17 +156,6 @@ testCaseCreate() { this.$emit('openTestCaseEditDialog'); }, - handleSizeChange(size) { - this.pageSize = size; - this.initTableData(); - }, - handleCurrentChange(current) { - this.currentPage = current; - this.initTableData(); - }, - handleSelectionChange(val) { - this.multipleSelection = val; - }, handleEdit(testCase) { this.$emit('testCaseEdit', testCase); }, diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index d6a4c1b6d3..006e28bffa 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -16,7 +16,7 @@ + v-model="condition" @change="initTableData" clearable/> @@ -88,23 +88,25 @@ -
- - -
- - -
-
-
-
+ + + + + + + + + + + + + + + + + + @@ -113,22 +115,21 @@