fix: kafka创建模板 去掉创建 topic。实际任务时需要编辑
parent
47f0fa8b94
commit
75776a12c0
|
@ -34,13 +34,14 @@
|
|||
</basic-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-row v-if="!isTemplate">
|
||||
<el-col :span="24" class="line"></el-col>
|
||||
<el-col :span="24" class="title">
|
||||
创建topic
|
||||
<el-button :disabled="isPreview" class="m-l" type="primary" size="mini" @click="addTopic(itemData.topics)">新增</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<template v-if="!isTemplate">
|
||||
<div v-for="(item, index) in itemData.topics" :key="index" class="search-container">
|
||||
<el-button type="text" :disabled="isPreview" class="del_operate" @click="removeItem(itemData.topics, index, 'required')">
|
||||
<i class="el-icon-delete" />
|
||||
|
@ -57,15 +58,13 @@
|
|||
</basic-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<basic-form-item label="topic名称:" :prop="'topics.' + index + '.topic_name'" v-if="isTemplate" key="topicTemplate">
|
||||
<el-input v-model="item.topic_name"></el-input>
|
||||
</basic-form-item>
|
||||
<basic-form-item label="topic名称:" :prop="'topics.' + index + '.topic_name'" validate="required" :rules="topicRule" v-else key="topic">
|
||||
<basic-form-item label="topic名称:" :prop="'topics.' + index + '.topic_name'" validate="required" :rules="topicRule" key="topic">
|
||||
<el-input v-model="item.topic_name"></el-input>
|
||||
</basic-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</template>
|
||||
</basic-form>
|
||||
</template>
|
||||
<script>
|
||||
|
|
Loading…
Reference in New Issue