【【接口测试】场景回收站全选批量恢复,只能恢复10条】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001006481;【【接口测试】全选框显示数据错误】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001006479
This commit is contained in:
parent
ab77348833
commit
738e9bfda7
|
@ -719,9 +719,15 @@ export default {
|
||||||
},
|
},
|
||||||
handleBatchRestore() {
|
handleBatchRestore() {
|
||||||
let ids = this.$refs.scenarioTable.selectIds;
|
let ids = this.$refs.scenarioTable.selectIds;
|
||||||
this.$post("/api/automation/reduction", ids, response => {
|
let params = {};
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.buildBatchParam(params);
|
||||||
this.search();
|
params.ids = ids;
|
||||||
|
this.$post("/api/automation/id/all", params, response => {
|
||||||
|
let idParams = response.data;
|
||||||
|
this.$post("/api/automation/reduction", idParams, response => {
|
||||||
|
this.$success(this.$t('commons.save_success'));
|
||||||
|
this.search();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDeleteBatch(row) {
|
handleDeleteBatch(row) {
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
<ms-table-header-select-popover v-if="enableSelection && showSelectAll" ref="selectPopover"
|
<ms-table-header-select-popover v-if="enableSelection && showSelectAll" ref="selectPopover"
|
||||||
:page-size="pageSize > total ? total : pageSize"
|
:page-size="pageSize > total ? total : pageSize"
|
||||||
:table-data-count-in-page="data.length"
|
:table-data-count-in-page="data.length"
|
||||||
|
:select-type="condition.selectAll"
|
||||||
:total="total"
|
:total="total"
|
||||||
@selectPageAll="isSelectDataAll(false)"
|
@selectPageAll="isSelectDataAll(false)"
|
||||||
@selectAll="isSelectDataAll(true)"/>
|
@selectAll="isSelectDataAll(true)"/>
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
name: "MsTableHeaderSelectPopover",
|
name: "MsTableHeaderSelectPopover",
|
||||||
// props: ['total', 'pageSize', 'selectDataCounts'],
|
// props: ['total', 'pageSize', 'selectDataCounts'],
|
||||||
props: {
|
props: {
|
||||||
|
selectType: String,
|
||||||
total: {
|
total: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default() {
|
default() {
|
||||||
|
@ -54,6 +55,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
total(){
|
||||||
|
this.reload();
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
if(this.keyIndex === 0){
|
if(this.keyIndex === 0){
|
||||||
this.keyIndex++;
|
this.keyIndex++;
|
||||||
|
@ -93,10 +99,14 @@
|
||||||
this.$emit(even);
|
this.$emit(even);
|
||||||
},
|
},
|
||||||
reload() {
|
reload() {
|
||||||
this.isShow = false;
|
if(!this.selectType){
|
||||||
this.$nextTick(() => {
|
this.selectAllFontColor.color = "gray";
|
||||||
this.isShow = true;
|
this.selectPageFontColor.color = "gray";
|
||||||
});
|
}
|
||||||
|
this.isShow = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.isShow = true;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue