fix(测试跟踪): 计划根据定时任务筛选报错问题

--bug=1033852 --user=宋昌昌 【测试跟踪】测试计划列表-按定时任务筛选-模块树一直加载中 https://www.tapd.cn/55049933/s/1447214
This commit is contained in:
song-cc-rock 2023-12-21 19:29:45 +08:00 committed by Craftsman
parent 7eb215321d
commit 1b6ee975ab
3 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,7 @@
from test_plan from test_plan
left join test_plan_node tpn on test_plan.node_id = tpn.id left join test_plan_node tpn on test_plan.node_id = tpn.id
left join project on tpn.project_id = project.id left join project on tpn.project_id = project.id
left join schedule ON schedule.resource_id = test_plan.id
<include refid="queryWhereCondition"/> <include refid="queryWhereCondition"/>
group by tpn.id group by tpn.id
</select> </select>

View File

@ -417,7 +417,7 @@
</template> </template>
</ms-table> </ms-table>
<ms-table-pagination <ms-table-pagination
:change="initTableData" :change="pageSearch"
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size.sync="pageSize" :page-size.sync="pageSize"
:total="total" :total="total"
@ -760,6 +760,9 @@ export default {
this.currentPage = 1; this.currentPage = 1;
this.initTableData(); this.initTableData();
}, },
pageSearch() {
this.initTableData(this.currentSelectNodes);
},
initTableData(nodeIds) { initTableData(nodeIds) {
this.cardLoading = true; this.cardLoading = true;
this.condition.nodeIds = []; this.condition.nodeIds = [];

View File

@ -120,7 +120,7 @@
</ms-table> </ms-table>
<ms-table-pagination :change="initTableData" :current-page.sync="page.currentPage" :page-size.sync="page.pageSize" <ms-table-pagination :change="pageSearch" :current-page.sync="page.currentPage" :page-size.sync="page.pageSize"
:total="page.total"/> :total="page.total"/>
<ms-delete-confirm :title="$t('test_track.review.delete')" @delete="_handleDelete" ref="deleteConfirm"/> <ms-delete-confirm :title="$t('test_track.review.delete')" @delete="_handleDelete" ref="deleteConfirm"/>
@ -399,6 +399,9 @@ export default {
this.page.currentPage = 1; this.page.currentPage = 1;
this.initTableData(this.currentSelectNodes); this.initTableData(this.currentSelectNodes);
}, },
pageSearch() {
this.initTableData(this.currentSelectNodes);
},
saveFollow(row) { saveFollow(row) {
let param = {}; let param = {};
param.id = row.id; param.id = row.id;