diff --git a/vue/src/components/Codemirror/index.vue b/vue/src/components/Codemirror/index.vue index 46610a4e..3dcd2e50 100644 --- a/vue/src/components/Codemirror/index.vue +++ b/vue/src/components/Codemirror/index.vue @@ -63,9 +63,6 @@ export default { this.editor.setValue(this.value); } }, - height(value) { - this.editor.setSize("auto", this.height); - }, }, mounted() { this.editor = CodeMirror.fromTextArea(this.$refs.textarea, { diff --git a/vue/src/views/iot/emqx/client.vue b/vue/src/views/iot/emqx/client.vue index 8baa3a1b..db27ff1e 100644 --- a/vue/src/views/iot/emqx/client.vue +++ b/vue/src/views/iot/emqx/client.vue @@ -53,78 +53,53 @@ - + 基本信息 - - - {{form.node }} - {{form.clientid}} - - - {{form.clean_start}} - {{form.expiry_interval}} - - - {{form.username}} - {{form.proto_ver}} - - - {{form.created_at}} - {{ form.subscriptions_cnt }}/{{form.max_subscriptions}} - - - {{form.ip_address }} - {{ form.port }} - - - {{ form.max_subscriptions}} - {{ form.inflight }}/{{ form.max_inflight }} - - - {{ form.keepalive }} - {{ form.is_bridge }} - - - {{ form.max_inflight }} - {{ form.mqueue_len }}/{{ form.max_mqueue }} - - - {{ form.connected_at}} - -
+ + + {{form.node }} + {{form.clientid}} + {{form.clean_start}} + {{form.expiry_interval}} + {{form.username}} + {{form.proto_ver}} + {{form.created_at}} + {{ form.subscriptions_cnt }}/{{form.max_subscriptions}} + {{form.ip_address}} + {{form.port}} + {{form.max_subscriptions}} + {{ form.inflight }}/{{ form.max_inflight }} + {{form.keepalive}} + {{form.is_bridge}} + {{form.max_inflight}} + {{ form.mqueue_len }}/{{ form.max_mqueue }} + {{form.connected_at}} + +
已连接
已断开
- - - - {{form.max_mqueue}} - {{ form.awaiting_rel}} - - - {{form.zone}} - - - {{ form.max_awaiting_rel}} - - - {{form.recv_cnt}} - {{form.recv_msg}} - {{form.recv_oct}} - {{form.recv_pkt}} - - - {{form.send_cnt }} - {{form.send_msg }} - {{form.send_oct }} - {{form.send_pkt}} - - +
+ {{form.max_mqueue}} + {{form.awaiting_rel}} + {{form.zone}} + {{form.max_awaiting_rel}} + {{form.recv_cnt}} + {{form.recv_msg}} + {{form.recv_oct}} + {{form.recv_pkt}} + + {{form.send_cnt}} + {{form.send_msg}} + {{form.send_oct}} + {{form.send_pkt}} + +
@@ -194,6 +169,8 @@ export default { name: "Category", data() { return { + // 非单个禁用 + single: true, // 遮罩层 loading: true, loadSubscribeing: true, diff --git a/vue/src/views/iot/emqx/resource.vue b/vue/src/views/iot/emqx/resource.vue index fd971900..1e850c38 100644 --- a/vue/src/views/iot/emqx/resource.vue +++ b/vue/src/views/iot/emqx/resource.vue @@ -32,7 +32,7 @@ - +
@@ -96,7 +96,7 @@ - + @@ -111,7 +111,7 @@ - +
@@ -335,7 +335,7 @@ - + diff --git a/vue/src/views/iot/emqx/rule.vue b/vue/src/views/iot/emqx/rule.vue index 99e378a0..67146f4c 100644 --- a/vue/src/views/iot/emqx/rule.vue +++ b/vue/src/views/iot/emqx/rule.vue @@ -107,7 +107,7 @@ - +
@@ -155,7 +155,7 @@ payload: - + 测 试 @@ -254,7 +254,7 @@ - + @@ -318,7 +318,7 @@ ) in data_to_mqtt_broker_Form.resources" :key="index" :label="resource.id" :value="resource.id"> - + 消息内容模板: - + 消息内容模板: { if (valid) { param.$resource = this.data_to_mqtt_broker_Form.resourceId; - param.payload_tmpl = + if(this.data_to_mqtt_broker_Form.params.payload_tmpl != null){ + param.payload_tmpl = this.data_to_mqtt_broker_Form.params.payload_tmpl.default; - action.param = param; + } + action.params = param; action.name = this.data_to_mqtt_broker_Form.name; this.actions.push(action); this.cancelAction(); @@ -686,9 +689,11 @@ export default { this.$refs[formName].validate((valid) => { if (valid) { param.$resource = this.data_to_webserver_Form.resourceId; - param.payload_tmpl = + if(this.data_to_webserver_Form.params.payload_tmpl != null){ + param.payload_tmpl = this.data_to_webserver_Form.params.payload_tmpl.default; - action.param = param; + } + action.params = param; action.name = this.data_to_webserver_Form.name; this.actions.push(action); this.cancelAction();