fix(测试跟踪): 测试计划关联功能用例,修改每页显示数量,多次关联会重复关联用例
--bug=1032462 --user=陈建星 【测试跟踪】github#27277,高级搜索后再添加关联用例,发现有重复 https://www.tapd.cn/55049933/s/1435602
This commit is contained in:
parent
4a2694e77e
commit
b42d9a1399
|
@ -39,16 +39,28 @@ export default {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 0
|
default: 0
|
||||||
},
|
},
|
||||||
change: Function
|
change: Function,
|
||||||
|
changeSize: Function,
|
||||||
|
changeCurrent: Function
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSizeChange: function (size) {
|
handleSizeChange: function (size) {
|
||||||
this.$emit('update:pageSize', size)
|
this.$emit('update:pageSize', size)
|
||||||
this.change('size');
|
if (this.change) {
|
||||||
|
this.change();
|
||||||
|
}
|
||||||
|
if (this.changeSize) {
|
||||||
|
this.changeSize();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleCurrentChange(current) {
|
handleCurrentChange(current) {
|
||||||
this.$emit('update:currentPage', current)
|
this.$emit('update:currentPage', current)
|
||||||
this.change('current');
|
if (this.change) {
|
||||||
|
this.change();
|
||||||
|
}
|
||||||
|
if (this.changeCurrent) {
|
||||||
|
this.changeCurrent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,9 @@
|
||||||
|
|
||||||
</ms-table>
|
</ms-table>
|
||||||
|
|
||||||
<ms-table-pagination :change="pageChange" :current-page.sync="page.currentPage" :page-size.sync="page.pageSize"
|
<ms-table-pagination :change-current="currentPageChange"
|
||||||
|
:change-size="pageSizeChange"
|
||||||
|
:current-page.sync="page.currentPage" :page-size.sync="page.pageSize"
|
||||||
:total="page.total"/>
|
:total="page.total"/>
|
||||||
</test-case-relevance-base>
|
</test-case-relevance-base>
|
||||||
|
|
||||||
|
@ -285,8 +287,11 @@ export default {
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pageChange(type) {
|
pageSizeChange() {
|
||||||
this.getTestCases(type === 'current' ? "page" : null)
|
this.getTestCases()
|
||||||
|
},
|
||||||
|
currentPageChange() {
|
||||||
|
this.getTestCases("page")
|
||||||
},
|
},
|
||||||
saveCaseRelevance(item) {
|
saveCaseRelevance(item) {
|
||||||
this.isSaving = true;
|
this.isSaving = true;
|
||||||
|
|
Loading…
Reference in New Issue