fix(测试跟踪): 测试计划关联功能用例页面,再次打开没有清除排序的高亮

--bug=1025123 --user=陈建星 【测试跟踪】测试计划-关联功能用例-按ID升序-关联后关闭再次关联-仍显示按ID升序-实际列表数据恢复了默认排序(按ID降序) https://www.tapd.cn/55049933/s/1359363
This commit is contained in:
chenjianxing 2023-04-04 16:47:04 +08:00 committed by jianxing
parent 68229fe8fe
commit fed2526f9e
2 changed files with 5 additions and 0 deletions

View File

@ -567,6 +567,10 @@ export default {
clearSelection() { clearSelection() {
this.clearSelectRows(); this.clearSelectRows();
}, },
clearSort() {
this.defaultSort = {};
this.setDefaultOrders();
},
getSelectRows() { getSelectRows() {
return this.selectRows; return this.selectRows;
}, },

View File

@ -235,6 +235,7 @@ export default {
this.$refs.baseRelevance.open(); this.$refs.baseRelevance.open();
if (this.$refs.table) { if (this.$refs.table) {
this.$refs.table.clear(); this.$refs.table.clear();
this.$refs.table.clearSort();
} }
if (this.projectId) { if (this.projectId) {
this.getProjectNode(this.projectId); this.getProjectNode(this.projectId);