fix: mq 添加参数

catl
时启龙 2024-11-12 14:35:13 +08:00
parent 919df1c281
commit 428cc5214f
1 changed files with 16 additions and 10 deletions

View File

@ -17,6 +17,11 @@
</el-select> </el-select>
</basic-form-item> </basic-form-item>
</el-col> </el-col>
<el-col :span="12">
<basic-form-item label="启用SSL" prop="config_ssl" validate="required">
<el-switch v-model="itemData.config_ssl"> </el-switch>
</basic-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24" class="line"></el-col> <el-col :span="24" class="line"></el-col>
@ -90,13 +95,13 @@
<el-input v-model="item.name"></el-input> <el-input v-model="item.name"></el-input>
</basic-form-item> </basic-form-item>
</el-col> </el-col>
<el-col :span="12"> <!-- <el-col :span="12">
<basic-form-item label="节点:" prop="node"> <basic-form-item label="节点:" prop="node">
<el-input v-model="item.node"></el-input> <el-input v-model="item.node"></el-input>
</basic-form-item> </basic-form-item>
</el-col> </el-col> -->
</el-row> </el-row>
<el-row> <!-- <el-row>
<el-col :span="12"> <el-col :span="12">
<basic-form-item label="跟踪:"> <basic-form-item label="跟踪:">
<el-select class="search-item" v-model="item.tracing" :disabled="isPreview"> <el-select class="search-item" v-model="item.tracing" :disabled="isPreview">
@ -104,15 +109,15 @@
</el-select> </el-select>
</basic-form-item> </basic-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
</div> </div>
<el-row> <!-- <el-row>
<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">
插件安装 插件安装
<el-button v-if="!isPreview" class="m-l" type="primary" size="mini" @click="addItem(itemData.rabbitmq_plugins)"></el-button> <el-button v-if="!isPreview" class="m-l" type="primary" size="mini" @click="addItem(itemData.rabbitmq_plugins)"></el-button>
</el-col> </el-col>
</el-row> </el-row> -->
<div v-for="(item, index) in itemData.rabbitmq_plugins" :key="'p' + index" class="search-container"> <div v-for="(item, index) in itemData.rabbitmq_plugins" :key="'p' + index" class="search-container">
<el-button v-if="!isPreview" type="text" class="del_operate" @click="removeItem(itemData.rabbitmq_plugins, index)"> <el-button v-if="!isPreview" type="text" class="del_operate" @click="removeItem(itemData.rabbitmq_plugins, index)">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
@ -152,6 +157,7 @@ export default {
default: function() { default: function() {
return { return {
cluster_install: false, cluster_install: false,
config_ssl: false,
rabbitmq_users: [ rabbitmq_users: [
{ {
user: '', user: '',
@ -182,14 +188,14 @@ export default {
// //
handleCrypto(itemData, fun = encrypt) { handleCrypto(itemData, fun = encrypt) {
const { rabbitmq_users } = itemData const { rabbitmq_users } = itemData
rabbitmq_users.forEach((item) => { rabbitmq_users.forEach(item => {
if (item.password) { if (item.password) {
item.password = fun(item.password) item.password = fun(item.password)
} }
}) })
}, },
getVersion() { getVersion() {
getDictChildren({ value: 'RABBITMQ-VERSION' }).then((data) => { getDictChildren({ value: 'RABBITMQ-VERSION' }).then(data => {
if (data.success) { if (data.success) {
this.versionData = data.data this.versionData = data.data
} }
@ -217,7 +223,7 @@ export default {
}, },
getPostData() { getPostData() {
let data = false let data = false
this.$refs.form.validate((valid) => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
const itemData = cloneDeep(this.itemData) const itemData = cloneDeep(this.itemData)
this.handleCrypto(itemData, encrypt) this.handleCrypto(itemData, encrypt)