fix: 修改 bug
parent
e5212dfcf0
commit
47f0fa8b94
|
@ -26,7 +26,10 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<basic-form-item label="ZK路径:" prop="manage_config.kafka_zookeeper_connection_string" :rules="isTemplate ? [] : rule">
|
<basic-form-item label="ZK路径:" prop="manage_config.kafka_zookeeper_connection_string" v-if="isTemplate" key="zkTemplate">
|
||||||
|
<el-input type="textarea" v-model="itemData.manage_config.kafka_zookeeper_connection_string" placeholder="192.168.1.1:2181,192.168.1.2:2181"></el-input>
|
||||||
|
</basic-form-item>
|
||||||
|
<basic-form-item label="ZK路径:" prop="manage_config.kafka_zookeeper_connection_string" :rules="rule" v-else key="zk">
|
||||||
<el-input type="textarea" v-model="itemData.manage_config.kafka_zookeeper_connection_string" placeholder="192.168.1.1:2181,192.168.1.2:2181"></el-input>
|
<el-input type="textarea" v-model="itemData.manage_config.kafka_zookeeper_connection_string" placeholder="192.168.1.1:2181,192.168.1.2:2181"></el-input>
|
||||||
</basic-form-item>
|
</basic-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -54,7 +57,10 @@
|
||||||
</basic-form-item>
|
</basic-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<basic-form-item label="topic名称:" :prop="'topics.' + index + '.topic_name'" validate="required" :rules="topicRule">
|
<basic-form-item label="topic名称:" :prop="'topics.' + index + '.topic_name'" v-if="isTemplate" key="topicTemplate">
|
||||||
|
<el-input v-model="item.topic_name"></el-input>
|
||||||
|
</basic-form-item>
|
||||||
|
<basic-form-item label="topic名称:" :prop="'topics.' + index + '.topic_name'" validate="required" :rules="topicRule" v-else key="topic">
|
||||||
<el-input v-model="item.topic_name"></el-input>
|
<el-input v-model="item.topic_name"></el-input>
|
||||||
</basic-form-item>
|
</basic-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -72,7 +78,7 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
itemData: {
|
itemData: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: function () {
|
default: function() {
|
||||||
return {
|
return {
|
||||||
install_jmx_exporter: false,
|
install_jmx_exporter: false,
|
||||||
manage_config: {
|
manage_config: {
|
||||||
|
@ -123,7 +129,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getVersion(value) {
|
getVersion(value) {
|
||||||
getDictChildren({ value: value }).then((data) => {
|
getDictChildren({ value: value }).then(data => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
if (value === 'KAFKA-VERSION') {
|
if (value === 'KAFKA-VERSION') {
|
||||||
this.versionData = data.data
|
this.versionData = data.data
|
||||||
|
|
Loading…
Reference in New Issue