fix: 测试用例更多操作按钮 (#2187)

Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-04-22 18:01:55 +08:00 committed by GitHub
parent bee475235a
commit c6a09e3751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,10 @@
:label="'名称'"
:fields="fields"
prop="name">
<template v-slot="scope">
<span v-if="scope.row.system">{{ scope.row.name }}(默认模板)</span>
<span v-else>{{ scope.row.name }}</span>
</template>
</ms-table-column>
<ms-table-column

View File

@ -20,6 +20,10 @@
:label="'名称'"
:fields="fields"
prop="name">
<template v-slot="scope">
<span v-if="scope.row.system">{{ scope.row.name }}(默认模板)</span>
<span v-else>{{ scope.row.name }}</span>
</template>
</ms-table-column>
<ms-table-column

View File

@ -8,6 +8,7 @@
@setTreeNodes="setTreeNodes"
@exportTestCase="exportTestCase"
@saveAsEdit="editTestCase"
:show-operator="true"
@createCase="handleCaseSimpleCreate($event, 'add')"
@refreshAll="refreshAll"
:type="'edit'"

View File

@ -15,6 +15,7 @@
ref="nodeTree">
<template v-slot:header>
<ms-search-bar
:show-operator="showOperator"
:condition="condition"
:commands="operators"/>
</template>
@ -76,6 +77,7 @@ export default {
type: String,
default: "view"
},
showOperator: Boolean,
},
watch: {
treeNodes() {