+
@@ -149,9 +154,10 @@ export default {
props: {
itemData: {
type: Object,
- default: function () {
+ default: function() {
return {
cluster_install: false,
+ config_ssl: false,
rabbitmq_users: [
{
user: '',
@@ -182,14 +188,14 @@ export default {
// 加密解密处理
handleCrypto(itemData, fun = encrypt) {
const { rabbitmq_users } = itemData
- rabbitmq_users.forEach((item) => {
+ rabbitmq_users.forEach(item => {
if (item.password) {
item.password = fun(item.password)
}
})
},
getVersion() {
- getDictChildren({ value: 'RABBITMQ-VERSION' }).then((data) => {
+ getDictChildren({ value: 'RABBITMQ-VERSION' }).then(data => {
if (data.success) {
this.versionData = data.data
}
@@ -217,7 +223,7 @@ export default {
},
getPostData() {
let data = false
- this.$refs.form.validate((valid) => {
+ this.$refs.form.validate(valid => {
if (valid) {
const itemData = cloneDeep(this.itemData)
this.handleCrypto(itemData, encrypt)