fix: modify

catl
时启龙 2024-11-15 10:43:32 +08:00
parent 75776a12c0
commit db23e78c12
1 changed files with 56 additions and 66 deletions

View File

@ -23,18 +23,19 @@
</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">
创建用户
<el-button v-if="!isPreview" class="m-l" type="primary" size="mini" @click="addUser(itemData.rabbitmq_users)"></el-button>
</el-col>
</el-row>
<template v-if="!isTemplate">
<div v-for="(item, index) in itemData.rabbitmq_users" :key="index" class="search-container">
<el-button type="text" v-if="!isPreview" class="del_operate" @click="removeItem(itemData.rabbitmq_users, index, 'required')">
<i class="el-icon-delete" />
</el-button>
<el-row v-if="isTaskInstance" key="edit">
<el-row>
<el-col :span="12">
<basic-form-item label="用户:" :prop="'rabbitmq_users.' + index + '.user'" validate="required">
<el-input v-model="item.user"></el-input>
@ -46,18 +47,6 @@
</basic-form-item>
</el-col>
</el-row>
<el-row v-else key="template">
<el-col :span="12">
<basic-form-item label="用户:" :prop="'rabbitmq_users.' + index + '.user'">
<el-input v-model="item.user"></el-input>
</basic-form-item>
</el-col>
<el-col :span="12">
<basic-form-item label="密码:" :prop="'rabbitmq_users.' + index + '.password'" required-message="">
<el-input type="password" v-model="item.password" show-password></el-input>
</basic-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<basic-form-item label="标签:" prop="tags">
@ -95,6 +84,7 @@
</el-col>
</el-row>
</div>
</template>
<el-row>
<el-col :span="24" class="line"></el-col>
<el-col :span="24" class="title">