diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue
index b94af20090..4f1d0138fc 100644
--- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue
+++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue
@@ -19,7 +19,7 @@
@filter-change="filter"
@sort-change="sort"
@select="handleSelect" :height="screenHeight">
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
-
-
+ v-if="item.id == 'num'"
+ prop="customNum"
+ sortable="custom"
+ :label="$t('commons.id')"
+ min-width="120px"
+ show-overflow-tooltip
+ :key="index">
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
- {{ $t('test_track.issue.preview') }}
-
-
-
-
-
- {{ scope.row.issuesSize }}
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ $t('test_track.issue.preview') }}
+
+
+
+
+
+ {{ scope.row.issuesSize }}
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
@@ -207,51 +207,51 @@
-
-
-
-
-
- {{ scope.row.updateTime | timestampFormatDate }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ -->
+ sortable
+ prop="updateTime"
+ :label="$t('commons.update_time')"
+ min-width="120px"
+ :key="index"
+ show-overflow-tooltip>
+
+ {{ scope.row.updateTime | timestampFormatDate }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -270,12 +270,11 @@ import NodeBreadcrumb from '../../../../common/NodeBreadcrumb';
import {
ROLE_TEST_MANAGER,
ROLE_TEST_USER,
- TEST_CASE_LIST,
TEST_PLAN_FUNCTION_TEST_CASE,
TokenKey,
WORKSPACE_ID
} from "@/common/js/constants";
-import {checkoutTestManagerOrTestUser, getCurrentUser, hasRoles} from "@/common/js/utils";
+import {checkoutTestManagerOrTestUser, hasRoles} from "@/common/js/utils";
import PriorityTableItem from "../../../../common/tableItems/planview/PriorityTableItem";
import StatusTableItem from "../../../../common/tableItems/planview/StatusTableItem";
import TypeTableItem from "../../../../common/tableItems/planview/TypeTableItem";
@@ -293,7 +292,8 @@ import {
_handleSelect,
_handleSelectAll,
_sort,
- buildBatchParam, deepClone,
+ buildBatchParam,
+ deepClone,
getLabel,
getSelectDataCounts,
initCondition,
@@ -318,7 +318,7 @@ export default {
StatusTableItem,
PriorityTableItem, StatusEdit, ExecutorEdit, MsTipButton, MsTablePagination,
MsTableHeader, NodeBreadcrumb, MsTableButton, ShowMoreBtn,
- BatchEdit, MsTag,MsTableHeaderSelectPopover
+ BatchEdit, MsTag, MsTableHeaderSelectPopover
},
data() {
return {
@@ -395,7 +395,7 @@ export default {
},
selectDataCounts: 0,
selectDataRange: "all"
- }
+ };
},
props: {
planId: {
@@ -473,7 +473,7 @@ export default {
description: '获取缺陷失败',
platform: '获取缺陷失败'
}]);
- })
+ });
}
}
this.selectRows.clear();
@@ -483,7 +483,7 @@ export default {
this.$nextTick(() => {
this.checkTableRowIsSelect();
- })
+ });
});
}
getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE);
@@ -553,13 +553,13 @@ export default {
callback: (action) => {
if (action === 'confirm') {
if (this.selectRows.size > 0) {
- if(this.condition.selectAll){
+ if (this.condition.selectAll) {
let param = buildBatchParam(this);
this.$post('/test/plan/case/idList/all', param, res => {
let ids = res.data;
this._handleBatchDelete(ids);
- })
- }else {
+ });
+ } else {
let ids = Array.from(this.selectRows).map(row => row.id);
this._handleBatchDelete(ids);
}
@@ -575,7 +575,7 @@ export default {
let data = res.data;
let ids = data.map(d => d.id);
this._handleBatchDelete(ids);
- })
+ });
}
}
}
@@ -688,7 +688,7 @@ export default {
this.$post('/user/ws/member/tester/list', {workspaceId: workspaceId}, response => {
this.valueArr.executor = response.data;
this.executorFilters = response.data.map(u => {
- return {text: u.name, value: u.id}
+ return {text: u.name, value: u.id};
});
this.maintainerFilters = response.data.map(u => {
return {text: u.id + '(' + u.name + ')', value: u.id};
@@ -715,7 +715,7 @@ export default {
this.selectRows.delete(row);
}
}
- })
+ });
}
},
isSelectDataAll(data) {
@@ -730,7 +730,7 @@ export default {
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
},
}
-}
+};