fix: kafka创建模板 去掉创建 topic。实际任务时需要编辑
parent
47f0fa8b94
commit
75776a12c0
|
@ -34,38 +34,37 @@
|
|||
</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>
|
||||
<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" />
|
||||
</el-button>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<basic-form-item label="复本数:" :prop="'topics.' + index + '.replication'" validate="required" required-message="请输入复本数">
|
||||
<el-input-number v-model="item.replication" :min="1" :step-strictly="true" :precision="0"></el-input-number>
|
||||
</basic-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<basic-form-item label="分片数:" :prop="'topics.' + index + '.partitions'" validate="required" required-message="请输入分片数">
|
||||
<el-input-number v-model="item.partitions" :min="1" :step-strictly="true" :precision="0"></el-input-number>
|
||||
</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">
|
||||
<el-input v-model="item.topic_name"></el-input>
|
||||
</basic-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<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" />
|
||||
</el-button>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<basic-form-item label="复本数:" :prop="'topics.' + index + '.replication'" validate="required" required-message="请输入复本数">
|
||||
<el-input-number v-model="item.replication" :min="1" :step-strictly="true" :precision="0"></el-input-number>
|
||||
</basic-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<basic-form-item label="分片数:" :prop="'topics.' + index + '.partitions'" validate="required" required-message="请输入分片数">
|
||||
<el-input-number v-model="item.partitions" :min="1" :step-strictly="true" :precision="0"></el-input-number>
|
||||
</basic-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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