@@ -175,7 +175,7 @@ export default {
});
},
deleteNode(id) {
- this.$confirm('是否确认删除该节点?', '提示', {
+ this.$confirm('是否确认删除该节点及其后代节点?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
@@ -15,7 +15,9 @@
</ElCard>
</div>
<div class="node-postfix">
- <div class="icon" target="delete" @click="deleteNode(id)"></div>
+ <template v-if="depth!==1">
+ <div class="icon" target="delete" @click="deleteNode(id)"></div>
+ </template>
<template v-if="depth!==4">
<div class="icon" target="add" @click="addChild(id)"></div>
</template>
@@ -174,7 +174,7 @@
v-model="showAPITestCreateModel"
width="600px"
:before-close="(done) => {$refs['createAPITestForm'].resetFields();done();}"
- destroy-on-close>
+ >
<template #title>创建测试任务</template>
<el-form
:model="createAPITestForm"
@@ -196,7 +196,7 @@
:height="'400px'"
v-model="createAPITestForm.params"
:show-btns="false"
- :mode="'code'"
+ mode="code"
:modes="['code']"
lang="zh"
@json-change="onJsonChange"