feat(测试跟踪): 关联接口和场景用例模块树不显示数量
--story=1008184 --user=陈建星 测试计划优化 https://www.tapd.cn/55049933/s/1198664
This commit is contained in:
parent
2bda25e0a9
commit
f08f30456f
|
@ -13,6 +13,7 @@
|
|||
:update-permission="['PROJECT_API_SCENARIO:READ+EDIT']"
|
||||
:default-label="$t('api_test.automation.unplanned_scenario')"
|
||||
local-suffix="api_scenario"
|
||||
:show-case-num="showCaseNum"
|
||||
@add="add"
|
||||
@edit="edit"
|
||||
@drag="drag"
|
||||
|
@ -75,6 +76,12 @@ export default {
|
|||
planId: String,
|
||||
pageSource: String,
|
||||
total: Number,
|
||||
showCaseNum: {
|
||||
type: Boolean,
|
||||
default() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isPlanModel() {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
@remove="remove"
|
||||
@refresh="list"
|
||||
@filter="filter"
|
||||
:show-case-num="showCaseNum"
|
||||
:delete-permission="['PROJECT_API_DEFINITION:READ+DELETE_API']"
|
||||
:add-permission="['PROJECT_API_DEFINITION:READ+CREATE_API']"
|
||||
:update-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"
|
||||
|
@ -83,6 +84,12 @@ export default {
|
|||
return false;
|
||||
}
|
||||
},
|
||||
showCaseNum: {
|
||||
type: Boolean,
|
||||
default() {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
showOperator: Boolean,
|
||||
planId: String,
|
||||
currentVersion: String,
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
@protocolChange="handleProtocolChange"
|
||||
@refreshTable="refresh"
|
||||
@setModuleOptions="setModuleOptions"
|
||||
:show-case-num="false"
|
||||
:is-read-only="true"
|
||||
ref="nodeTree"/>
|
||||
</template>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
@setModuleOptions="setModuleOptions"
|
||||
@enableTrash="false"
|
||||
:is-read-only="true"
|
||||
:show-case-num="false"
|
||||
ref="nodeTree"/>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<span v-if="!data.isEdit" class="node-title" v-text="isDefault(data) ? getLocalDefaultName() : data.name"/>
|
||||
</el-tooltip>
|
||||
|
||||
<span class="count-title" v-if="data.caseNum !== null && data.caseNum !== undefined">
|
||||
<span class="count-title" v-if="showCaseNum && data.caseNum !== null && data.caseNum !== undefined">
|
||||
<span style="color: #6C317C">{{ data.caseNum }}</span>
|
||||
</span>
|
||||
<span v-if="!disabled" class="node-operate child">
|
||||
|
@ -151,6 +151,12 @@ export default {
|
|||
return true;
|
||||
}
|
||||
},
|
||||
showCaseNum: {
|
||||
type: Boolean,
|
||||
default() {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
updatePermission: Array,
|
||||
addPermission: Array,
|
||||
deletePermission: Array,
|
||||
|
@ -372,7 +378,7 @@ export default {
|
|||
this.getChildNodeId(node.data, nodeIds);
|
||||
this.$emit('remove', nodeIds, data);
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
handleDragEnd(draggingNode, dropNode, dropType, ev) {
|
||||
if (dropType === "none" || dropType === undefined) {
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
@protocolChange="handleProtocolChange"
|
||||
@refreshTable="refresh"
|
||||
@setModuleOptions="setModuleOptions"
|
||||
:show-case-num="false"
|
||||
:is-read-only="true"
|
||||
ref="nodeTree"/>
|
||||
</template>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
@nodeSelectEvent="nodeChange"
|
||||
@refreshTable="refresh"
|
||||
@setModuleOptions="setModuleOptions"
|
||||
:show-case-num="false"
|
||||
:relevance-project-id="projectId"
|
||||
:is-read-only="true"
|
||||
ref="nodeTree"/>
|
||||
|
|
Loading…
Reference in New Issue