fix(接口测试): 修复场景批量操作步骤显示选中项不准确的缺陷
--bug=1024993 --user=王孝刚 【接口测试】github#23298,接口参加批量操作选中后显示选中数不正确 https://www.tapd.cn/55049933/s/1358172
This commit is contained in:
parent
e651e8ed30
commit
b5c075edae
|
@ -281,7 +281,6 @@
|
|||
:empty-text="$t('api_test.scenario.step_info')"
|
||||
highlight-current
|
||||
:show-checkbox="isBatchProcess"
|
||||
@check-change="chooseHeadsUp"
|
||||
@node-drag-end="nodeDragEnd"
|
||||
@node-click="nodeClick"
|
||||
draggable
|
||||
|
@ -315,8 +314,8 @@
|
|||
<show-more-btn
|
||||
:is-show="node.checked"
|
||||
:buttons="batchOperators"
|
||||
:size="selectDataCounts"
|
||||
v-show="data.checkBox"
|
||||
:show-size="false"
|
||||
style="margin-right: 10px" />
|
||||
</span>
|
||||
<span style="width: calc(100% - 40px)">
|
||||
|
@ -760,27 +759,27 @@ export default {
|
|||
{
|
||||
name: this.$t('api_test.automation.bulk_activation_steps'),
|
||||
handleClick: this.enableAll,
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+DELETE'],
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+EDIT'],
|
||||
},
|
||||
{
|
||||
name: this.$t('api_test.automation.batch_disable_steps'),
|
||||
handleClick: this.disableAll,
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+DELETE'],
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+EDIT'],
|
||||
},
|
||||
{
|
||||
name: this.$t('api_test.automation.open_expansion'),
|
||||
handleClick: this.openExpansion,
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+DELETE'],
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+EDIT'],
|
||||
},
|
||||
{
|
||||
name: this.$t('api_test.automation.close_expansion'),
|
||||
handleClick: this.closeExpansion,
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+DELETE'],
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+EDIT'],
|
||||
},
|
||||
{
|
||||
name: this.$t('api_test.definition.request.batch_delete') + '步骤',
|
||||
handleClick: this.handleDeleteBatch,
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+DELETE'],
|
||||
permissions: ['PROJECT_API_SCENARIO:READ+EDIT'],
|
||||
},
|
||||
],
|
||||
reloadTree: '',
|
||||
|
@ -842,11 +841,6 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
chooseHeadsUp() {
|
||||
if (this.$refs.stepTree) {
|
||||
this.selectDataCounts = this.$refs.stepTree.getCheckedNodes().length;
|
||||
}
|
||||
},
|
||||
checkedAll(v) {
|
||||
if (this.$refs.stepTree && this.$refs.stepTree.root && this.$refs.stepTree.root.childNodes) {
|
||||
this.recursionChecked(v, this.$refs.stepTree.root.childNodes);
|
||||
|
@ -1417,6 +1411,7 @@ export default {
|
|||
return;
|
||||
}
|
||||
setComponent(type, this, plugin);
|
||||
store.forceRerenderIndex = getUUID();
|
||||
},
|
||||
nodeClick(data, node) {
|
||||
if (
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</el-tooltip>
|
||||
</div>
|
||||
<el-dropdown-menu slot="dropdown" class="dropdown-menu-class">
|
||||
<div class="show-more-btn-title">
|
||||
<div class="show-more-btn-title" v-if="showSize">
|
||||
{{ $t('test_track.case.batch_handle', [size]) }}
|
||||
</div>
|
||||
<span v-for="(btn, index) in buttons" :key="index">
|
||||
|
@ -45,6 +45,10 @@ export default {
|
|||
row: Object,
|
||||
size: Number,
|
||||
hasShowed: Boolean,
|
||||
showSize: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
created() {
|
||||
if (this.trashEnable) {
|
||||
|
|
Loading…
Reference in New Issue