fix(测试跟踪): 列表批量操作提示不消失,且不是勾选第一个元素没有提示批量操作
--bug=1013597 --user=陈建星 【测试跟踪】功能列表页 选择批量操作后,弹出提示,进入到编辑页面,建议提示消失 https://www.tapd.cn/55049933/s/1175873
This commit is contained in:
parent
7f94cc27e9
commit
9e512102c0
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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: '...',
|
||||
|
|
Loading…
Reference in New Issue