40
40
/>
41
41
<KafkaMQConfigForm
42
42
v-if =" showConfig(IoTDataBridgeConfigType.KAFKA)"
43
- v-model =" formData.config! "
43
+ v-model =" formData.config"
44
44
/>
45
45
<RabbitMQConfigForm
46
46
v-if =" showConfig(IoTDataBridgeConfigType.RABBITMQ)"
47
- v-model =" formData.config! "
47
+ v-model =" formData.config"
48
48
/>
49
49
<RedisStreamMQConfigForm
50
50
v-if =" showConfig(IoTDataBridgeConfigType.REDIS_STREAM)"
51
- v-model =" formData.config! "
51
+ v-model =" formData.config"
52
52
/>
53
53
<el-form-item label =" 桥梁状态" prop =" status" >
54
54
<el-radio-group v-model =" formData.status" >
@@ -100,28 +100,28 @@ const formData = ref<DataBridgeVO>({
100
100
config: {} as any
101
101
})
102
102
const formRules = reactive ({
103
- // 通用字段
103
+ /** 通用字段 */
104
104
name: [{ required: true , message: ' 桥梁名称不能为空' , trigger: ' blur' }],
105
105
status: [{ required: true , message: ' 桥梁状态不能为空' , trigger: ' blur' }],
106
106
direction: [{ required: true , message: ' 桥梁方向不能为空' , trigger: ' blur' }],
107
107
type: [{ required: true , message: ' 桥梁类型不能为空' , trigger: ' change' }],
108
- // HTTP 配置
108
+ /** HTTP 配置 */
109
109
' config.url' : [{ required: true , message: ' 请求地址不能为空' , trigger: ' blur' }],
110
110
' config.method' : [{ required: true , message: ' 请求方法不能为空' , trigger: ' blur' }],
111
- // MQTT 配置
111
+ /** MQTT 配置 */
112
112
' config.username' : [{ required: true , message: ' 用户名不能为空' , trigger: ' blur' }],
113
113
' config.password' : [{ required: true , message: ' 密码不能为空' , trigger: ' blur' }],
114
114
' config.clientId' : [{ required: true , message: ' 客户端ID不能为空' , trigger: ' blur' }],
115
115
' config.topic' : [{ required: true , message: ' 主题不能为空' , trigger: ' blur' }],
116
- // RocketMQ 配置
116
+ /** RocketMQ 配置 */
117
117
' config.nameServer' : [{ required: true , message: ' NameServer 地址不能为空' , trigger: ' blur' }],
118
118
' config.accessKey' : [{ required: true , message: ' AccessKey 不能为空' , trigger: ' blur' }],
119
119
' config.secretKey' : [{ required: true , message: ' SecretKey 不能为空' , trigger: ' blur' }],
120
120
' config.group' : [{ required: true , message: ' 消费组不能为空' , trigger: ' blur' }],
121
- // Kafka 配置
121
+ /** Kafka 配置 */
122
122
' config.bootstrapServers' : [{ required: true , message: ' 服务地址不能为空' , trigger: ' blur' }],
123
123
' config.ssl' : [{ required: true , message: ' SSL 配置不能为空' , trigger: ' change' }],
124
- // RabbitMQ 配置
124
+ /** RabbitMQ 配置 */
125
125
' config.host' : [{ required: true , message: ' 主机地址不能为空' , trigger: ' blur' }],
126
126
' config.port' : [
127
127
{ required: true , message: ' 端口不能为空' , trigger: ' blur' },
@@ -131,7 +131,7 @@ const formRules = reactive({
131
131
' config.exchange' : [{ required: true , message: ' 交换机不能为空' , trigger: ' blur' }],
132
132
' config.routingKey' : [{ required: true , message: ' 路由键不能为空' , trigger: ' blur' }],
133
133
' config.queue' : [{ required: true , message: ' 队列不能为空' , trigger: ' blur' }],
134
- // Redis Stream 配置
134
+ /** Redis Stream 配置 */
135
135
' config.database' : [
136
136
{ required: true , message: ' 数据库索引不能为空' , trigger: ' blur' },
137
137
{ type: ' number' , min: 0 , message: ' 数据库索引必须是非负整数' , trigger: ' blur' }
0 commit comments