fix: mq 添加参数
							parent
							
								
									919df1c281
								
							
						
					
					
						commit
						428cc5214f
					
				| 
						 | 
				
			
			@ -17,6 +17,11 @@
 | 
			
		|||
          </el-select>
 | 
			
		||||
        </basic-form-item>
 | 
			
		||||
      </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-col :span="24" class="line"></el-col>
 | 
			
		||||
| 
						 | 
				
			
			@ -90,13 +95,13 @@
 | 
			
		|||
            <el-input v-model="item.name"></el-input>
 | 
			
		||||
          </basic-form-item>
 | 
			
		||||
        </el-col>
 | 
			
		||||
        <el-col :span="12">
 | 
			
		||||
        <!-- <el-col :span="12">
 | 
			
		||||
          <basic-form-item label="节点:" prop="node">
 | 
			
		||||
            <el-input v-model="item.node"></el-input>
 | 
			
		||||
          </basic-form-item>
 | 
			
		||||
        </el-col>
 | 
			
		||||
        </el-col> -->
 | 
			
		||||
      </el-row>
 | 
			
		||||
      <el-row>
 | 
			
		||||
      <!-- <el-row>
 | 
			
		||||
        <el-col :span="12">
 | 
			
		||||
          <basic-form-item label="跟踪:">
 | 
			
		||||
            <el-select class="search-item" v-model="item.tracing" :disabled="isPreview">
 | 
			
		||||
| 
						 | 
				
			
			@ -104,15 +109,15 @@
 | 
			
		|||
            </el-select>
 | 
			
		||||
          </basic-form-item>
 | 
			
		||||
        </el-col>
 | 
			
		||||
      </el-row>
 | 
			
		||||
      </el-row> -->
 | 
			
		||||
    </div>
 | 
			
		||||
    <el-row>
 | 
			
		||||
    <!-- <el-row>
 | 
			
		||||
      <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="addItem(itemData.rabbitmq_plugins)">新增</el-button>
 | 
			
		||||
      </el-col>
 | 
			
		||||
    </el-row>
 | 
			
		||||
    </el-row> -->
 | 
			
		||||
    <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)">
 | 
			
		||||
        <i class="el-icon-delete" />
 | 
			
		||||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue