fix(接口自动化): 引用场景不能编辑,只能查看

This commit is contained in:
fit2-zhao 2021-01-28 16:41:50 +08:00
parent ed3dc1c25f
commit 3bbed97a09
1 changed files with 32 additions and 30 deletions

View File

@ -1,5 +1,7 @@
<template>
<el-card class="api-component">
<fieldset :disabled="data.disabled" class="ms-fieldset">
<div class="header" @click="active(data)">
<slot name="beforeHeaderLeft">
@ -17,7 +19,7 @@
@blur="isShowInput = false" :placeholder="$t('commons.input_name')" ref="nameEdit"/>
<span v-else>
{{data.name}}
<i class="el-icon-edit" style="cursor:pointer" @click="editName" v-tester v-if="data.referenced!='REF'"/>
<i class="el-icon-edit" style="cursor:pointer" @click="editName" v-tester v-if="data.referenced!='REF' && !data.disabled"/>
</span>
</slot>
<slot name="behindHeaderLeft"></slot>
@ -40,13 +42,12 @@
<div class="header">
<el-collapse-transition>
<div v-if="data.active && showCollapse" :draggable="draggable">
<fieldset :disabled="data.disabled" class="ms-fieldset">
<el-divider></el-divider>
<slot></slot>
</fieldset>
</div>
</el-collapse-transition>
</div>
</fieldset>
</el-card>
</template>
@ -150,6 +151,7 @@
.enable-switch {
margin-right: 10px;
}
fieldset {
padding: 0px;
margin: 0px;