diff --git a/vue/src/components/Codemirror/index.vue b/vue/src/components/Codemirror/index.vue index 46610a4e16908211951f183b6c1cfa52e8c0acdf..3dcd2e5021d19c935551e20814129e5937580a1d 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 8baa3a1ba7536353311ffa2c37d24323d879c43a..db27ff1ef991940d2423f6ed0aebca7f5675dfd2 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 fd9719009945333c1536d621ca720209f406a306..1e850c38a6ec07e4577fd64834f70805a5c29e8a 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 99e378a03e8a4eaef17c9d06db9d61b1dcc1d1d8..67146f4c542d37723326966cef3bfee6436b91f2 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();