fix(测试跟踪): 列表批量操作提示不消失,且不是勾选第一个元素没有提示批量操作

--bug=1013597 --user=陈建星 【测试跟踪】功能列表页 选择批量操作后,弹出提示,进入到编辑页面,建议提示消失 https://www.tapd.cn/55049933/s/1175873
This commit is contained in:
chenjianxing 2022-06-08 11:21:47 +08:00 committed by f2c-ci-robot[bot]
parent 7f94cc27e9
commit 9e512102c0
3 changed files with 7 additions and 15 deletions

View File

@ -45,7 +45,7 @@
<template v-slot:default="scope">
<!-- 选中记录后浮现的按钮提供对记录的批量操作 -->
<show-more-btn :has-showed="!scope.row.showBatchTip"
<show-more-btn :has-showed="hasBatchTipShow"
:is-show="scope.row.showMore"
:buttons="batchOperators"
:size="selectDataCounts"/>
@ -165,7 +165,7 @@ export default {
selectDataCounts: 0,
selectRows: new Set(),
selectIds: [],
// hasBatchTipShow: false,
hasBatchTipShow: false,
defaultSort: {},
tableActive: true
};
@ -295,7 +295,6 @@ export default {
this.doLayout();
this.checkTableRowIsSelect();
this.listenRowDrop();
this.initData();
});
}
},
@ -304,14 +303,6 @@ export default {
}
},
methods: {
initData(){
//
if(this.data && this.data.length > 0){
this.$nextTick(() => {
this.data[0].showBatchTip = true;
});
}
},
// , ,
// batch-popper , ,
removeBatchPopper() {
@ -332,8 +323,7 @@ export default {
if (i == index) {
elements[i].classList.remove('batch-popper');
setTimeout(() => {
// this.hasBatchTipShow = true;
this.initData();
this.hasBatchTipShow = true;
}, 1500);
}
}

View File

@ -934,7 +934,9 @@ export default {
this.currentProjectId = getCurrentProjectID();
}
this.versionData = response.data;
this.$refs.versionHistory.loading = false;
if (this.$refs.versionHistory) {
this.$refs.versionHistory.loading = false;
}
});
},
setSpecialPropForCompare: function (that) {

View File

@ -340,7 +340,7 @@ export function appendNextPageNode(parent) {
}
}
let minderPageInfo = minderPageInfoMap.get(parent.data.id === 'root' ? '' : parent.data.id);
let total = minderPageInfo.total;
let total = minderPageInfo ? minderPageInfo.total : 0;
if (total > caseNum) {
let nexPageNode = {
text: '...',