fix: kafka创建模板 去掉创建 topic。实际任务时需要编辑

catl
时启龙 2024-11-15 09:43:15 +08:00
parent 47f0fa8b94
commit 75776a12c0
1 changed files with 25 additions and 26 deletions

View File

@ -34,38 +34,37 @@
</basic-form-item> </basic-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row v-if="!isTemplate">
<el-col :span="24" class="line"></el-col> <el-col :span="24" class="line"></el-col>
<el-col :span="24" class="title"> <el-col :span="24" class="title">
创建topic 创建topic
<el-button :disabled="isPreview" class="m-l" type="primary" size="mini" @click="addTopic(itemData.topics)"></el-button> <el-button :disabled="isPreview" class="m-l" type="primary" size="mini" @click="addTopic(itemData.topics)"></el-button>
</el-col> </el-col>
</el-row> </el-row>
<div v-for="(item, index) in itemData.topics" :key="index" class="search-container"> <template v-if="!isTemplate">
<el-button type="text" :disabled="isPreview" class="del_operate" @click="removeItem(itemData.topics, index, 'required')"> <div v-for="(item, index) in itemData.topics" :key="index" class="search-container">
<i class="el-icon-delete" /> <el-button type="text" :disabled="isPreview" class="del_operate" @click="removeItem(itemData.topics, index, 'required')">
</el-button> <i class="el-icon-delete" />
<el-row> </el-button>
<el-col :span="12"> <el-row>
<basic-form-item label="复本数:" :prop="'topics.' + index + '.replication'" validate="required" required-message=""> <el-col :span="12">
<el-input-number v-model="item.replication" :min="1" :step-strictly="true" :precision="0"></el-input-number> <basic-form-item label="复本数:" :prop="'topics.' + index + '.replication'" validate="required" required-message="">
</basic-form-item> <el-input-number v-model="item.replication" :min="1" :step-strictly="true" :precision="0"></el-input-number>
</el-col> </basic-form-item>
<el-col :span="12"> </el-col>
<basic-form-item label="分片数:" :prop="'topics.' + index + '.partitions'" validate="required" required-message=""> <el-col :span="12">
<el-input-number v-model="item.partitions" :min="1" :step-strictly="true" :precision="0"></el-input-number> <basic-form-item label="分片数:" :prop="'topics.' + index + '.partitions'" validate="required" required-message="">
</basic-form-item> <el-input-number v-model="item.partitions" :min="1" :step-strictly="true" :precision="0"></el-input-number>
</el-col> </basic-form-item>
<el-col :span="12"> </el-col>
<basic-form-item label="topic名称" :prop="'topics.' + index + '.topic_name'" v-if="isTemplate" key="topicTemplate"> <el-col :span="12">
<el-input v-model="item.topic_name"></el-input> <basic-form-item label="topic名称" :prop="'topics.' + index + '.topic_name'" validate="required" :rules="topicRule" key="topic">
</basic-form-item> <el-input v-model="item.topic_name"></el-input>
<basic-form-item label="topic名称" :prop="'topics.' + index + '.topic_name'" validate="required" :rules="topicRule" v-else key="topic"> </basic-form-item>
<el-input v-model="item.topic_name"></el-input> </el-col>
</basic-form-item> </el-row>
</el-col> </div>
</el-row> </template>
</div>
</basic-form> </basic-form>
</template> </template>
<script> <script>