fix:测试计划中关联用例时部分数据查询不到
This commit is contained in:
parent
a0afd557f4
commit
46123004f1
|
@ -4,6 +4,7 @@
|
|||
<slot name="header"></slot>
|
||||
|
||||
<ms-node-tree
|
||||
:is-display="openType"
|
||||
v-loading="result.loading"
|
||||
:tree-nodes="data"
|
||||
:allLabel="$t('commons.all_module_title')"
|
||||
|
@ -82,6 +83,7 @@
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
openType: 'relevance',
|
||||
result: {},
|
||||
condition: {
|
||||
filterText: "",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<slot name="header"></slot>
|
||||
|
||||
<ms-node-tree
|
||||
:is-display="openType"
|
||||
v-loading="result.loading"
|
||||
:tree-nodes="data"
|
||||
:type="isReadOnly ? 'view' : 'edit'"
|
||||
|
@ -59,6 +60,7 @@
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
openType: 'relevance',
|
||||
result: {},
|
||||
condition: {
|
||||
protocol: OPTIONS[0].value,
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<i class="el-icon-folder"/>
|
||||
</span>
|
||||
<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>
|
||||
<span v-if="!disabled" class="node-operate child">
|
||||
|
@ -108,6 +108,9 @@ export default {
|
|||
};
|
||||
},
|
||||
props: {
|
||||
isDisplay: {
|
||||
type: String,
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: "view"
|
||||
|
@ -139,6 +142,9 @@ export default {
|
|||
this.filter(val);
|
||||
}
|
||||
},
|
||||
created() {
|
||||
console.log(this.isDisplay);
|
||||
},
|
||||
computed: {
|
||||
disabled() {
|
||||
return this.type !== 'edit';
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
<template v-slot:aside>
|
||||
<node-tree class="node-tree"
|
||||
:is-display="openType"
|
||||
v-loading="result.loading"
|
||||
@nodeSelectEvent="nodeChange"
|
||||
:tree-nodes="treeNodes"
|
||||
|
@ -119,6 +120,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
openType: 'relevance',
|
||||
result: {},
|
||||
treeNodes: [],
|
||||
selectNodeIds: [],
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
:title="$t('test_track.switch_project')"
|
||||
@dataChange="changeProject"/>
|
||||
<node-tree class="node-tree"
|
||||
:is-display="openType"
|
||||
:all-label="$t('commons.all_label.review')"
|
||||
v-loading="result.loading"
|
||||
@nodeSelectEvent="nodeChange"
|
||||
|
@ -129,6 +130,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
openType: 'relevance',
|
||||
checked: true,
|
||||
result: {},
|
||||
currentProject: {},
|
||||
|
|
Loading…
Reference in New Issue