diff --git a/src/views/common/HJ.vue b/src/views/common/HJ.vue
new file mode 100644
index 0000000..8f70f74
--- /dev/null
+++ b/src/views/common/HJ.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/common/MQ.vue b/src/views/common/MQ.vue
index 90bf6e1..820b181 100644
--- a/src/views/common/MQ.vue
+++ b/src/views/common/MQ.vue
@@ -68,7 +68,7 @@ export default {
{ required: true, message: 'isstart不能为空', trigger: 'blur' }
],
virtualhost: [
- { required: true, message: 'isstart不能为空', trigger: 'blur' }
+ { required: true, message: 'virtualhost不能为空', trigger: 'blur' }
]
}
}
diff --git a/src/views/common/MQTT.vue b/src/views/common/MQTT.vue
new file mode 100644
index 0000000..e2a184e
--- /dev/null
+++ b/src/views/common/MQTT.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/common/home.vue b/src/views/common/home.vue
index 16fa190..8f21400 100644
--- a/src/views/common/home.vue
+++ b/src/views/common/home.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-11-21 09:51:45
* @LastEditors: zwq
- * @LastEditTime: 2023-11-23 15:22:37
+ * @LastEditTime: 2023-12-20 14:24:28
* @Description:
-->
@@ -21,9 +21,15 @@
查询
- 更新MQ配置
+ 更新HJ212配置
+ 更新MQTT配置
+
+
+
+
import AddOrUpdate from './MQ'
+import MQTT from './MQTT'
+import HJ from './HJ'
import plcCreate from './plc-create'
import Parameter from './parameter'
export default {
@@ -196,12 +216,16 @@ export default {
totalPage: 0,
dataListLoading: false,
addOrUpdateVisible: false,
+ HJVisible: false,
+ MQTTVisible: false,
plcCreate: false,
parameter: false
}
},
components: {
AddOrUpdate,
+ MQTT,
+ HJ,
plcCreate,
Parameter
},
@@ -243,12 +267,26 @@ export default {
this.getDataList()
},
// MQ
- addOrUpdateHandle () {
+ addOrUpdateMQ () {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init()
})
},
+ // HJ
+ addOrUpdateHJ () {
+ this.HJVisible = true
+ this.$nextTick(() => {
+ this.$refs.HJRef.init()
+ })
+ },
+ // MQTT
+ addOrUpdateMQTT () {
+ this.MQTTVisible = true
+ this.$nextTick(() => {
+ this.$refs.MQTTRef.init()
+ })
+ },
Edit (id, type) {
this.plcCreate = true
this.$nextTick(() => {