refactor: 环境配置 通用配置 全局变量新增一列备注

This commit is contained in:
wenyann 2021-06-07 14:55:40 +08:00 committed by 刘瑞斌
parent f4d4109a2d
commit 926afe14bb
2 changed files with 7 additions and 1 deletions

View File

@ -11,13 +11,18 @@
</el-col>
<el-col>
<ms-api-variable-input :show-copy="showCopy" :show-variable="showVariable" :is-read-only="isReadOnly" v-model="item.name" size="small" maxlength="200" @change="change"
<ms-api-variable-input :show-copy="showCopy" :show-variable="showVariable" :is-read-only="isReadOnly"
v-model="item.name" size="small" maxlength="200" @change="change"
:placeholder="$t('api_test.variable_name')" show-word-limit/>
</el-col>
<el-col>
<el-input :disabled="isReadOnly" v-model="item.value" size="small" @change="change"
:placeholder="$t('api_test.value')" show-word-limit/>
</el-col>
<el-col>
<el-input :disabled="isReadOnly" v-model="item.remark" size="small" @change="change"
:placeholder="$t('commons.remark')" show-word-limit/>
</el-col>
<el-col class="kv-delete">
<el-button size="mini" class="el-icon-delete-solid" circle @click="remove(index)"
:disabled="isDisable(index) || isReadOnly"/>

View File

@ -734,6 +734,7 @@ export class KeyValue extends BaseConfig {
this.enable = undefined;
this.uuid = undefined;
this.contentType = undefined;
this.remark = undefined;
this.set(options);
}