fix:测试计划中关联用例时部分数据查询不到

This commit is contained in:
wenyann 2021-05-31 16:04:57 +08:00 committed by 刘瑞斌
parent a0afd557f4
commit 46123004f1
5 changed files with 15 additions and 1 deletions

View File

@ -4,6 +4,7 @@
<slot name="header"></slot> <slot name="header"></slot>
<ms-node-tree <ms-node-tree
:is-display="openType"
v-loading="result.loading" v-loading="result.loading"
:tree-nodes="data" :tree-nodes="data"
:allLabel="$t('commons.all_module_title')" :allLabel="$t('commons.all_module_title')"
@ -82,6 +83,7 @@
}, },
data() { data() {
return { return {
openType: 'relevance',
result: {}, result: {},
condition: { condition: {
filterText: "", filterText: "",

View File

@ -4,6 +4,7 @@
<slot name="header"></slot> <slot name="header"></slot>
<ms-node-tree <ms-node-tree
:is-display="openType"
v-loading="result.loading" v-loading="result.loading"
:tree-nodes="data" :tree-nodes="data"
:type="isReadOnly ? 'view' : 'edit'" :type="isReadOnly ? 'view' : 'edit'"
@ -59,6 +60,7 @@
}, },
data() { data() {
return { return {
openType: 'relevance',
result: {}, result: {},
condition: { condition: {
protocol: OPTIONS[0].value, protocol: OPTIONS[0].value,

View File

@ -30,7 +30,7 @@
<i class="el-icon-folder"/> <i class="el-icon-folder"/>
</span> </span>
<span v-if="!data.isEdit" class="node-title" v-text="data.name"/> <span v-if="!data.isEdit" class="node-title" v-text="data.name"/>
<span class="node-title"> <span class="node-title" v-if="isDisplay!=='relevance'">
<span style="color: #6C317C">{{ data.caseNum }}</span> <span style="color: #6C317C">{{ data.caseNum }}</span>
</span> </span>
<span v-if="!disabled" class="node-operate child"> <span v-if="!disabled" class="node-operate child">
@ -108,6 +108,9 @@ export default {
}; };
}, },
props: { props: {
isDisplay: {
type: String,
},
type: { type: {
type: String, type: String,
default: "view" default: "view"
@ -139,6 +142,9 @@ export default {
this.filter(val); this.filter(val);
} }
}, },
created() {
console.log(this.isDisplay);
},
computed: { computed: {
disabled() { disabled() {
return this.type !== 'edit'; return this.type !== 'edit';

View File

@ -9,6 +9,7 @@
<template v-slot:aside> <template v-slot:aside>
<node-tree class="node-tree" <node-tree class="node-tree"
:is-display="openType"
v-loading="result.loading" v-loading="result.loading"
@nodeSelectEvent="nodeChange" @nodeSelectEvent="nodeChange"
:tree-nodes="treeNodes" :tree-nodes="treeNodes"
@ -119,6 +120,7 @@ export default {
}, },
data() { data() {
return { return {
openType: 'relevance',
result: {}, result: {},
treeNodes: [], treeNodes: [],
selectNodeIds: [], selectNodeIds: [],

View File

@ -14,6 +14,7 @@
:title="$t('test_track.switch_project')" :title="$t('test_track.switch_project')"
@dataChange="changeProject"/> @dataChange="changeProject"/>
<node-tree class="node-tree" <node-tree class="node-tree"
:is-display="openType"
:all-label="$t('commons.all_label.review')" :all-label="$t('commons.all_label.review')"
v-loading="result.loading" v-loading="result.loading"
@nodeSelectEvent="nodeChange" @nodeSelectEvent="nodeChange"
@ -129,6 +130,7 @@ export default {
}, },
data() { data() {
return { return {
openType: 'relevance',
checked: true, checked: true,
result: {}, result: {},
currentProject: {}, currentProject: {},