fix: modify
parent
75776a12c0
commit
db23e78c12
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue