diff --git a/src/views/Home.vue b/src/views/Home.vue index 185abd8..e40f852 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -221,17 +221,46 @@ + + +
+ +

+ 车道默认设置 +

+ +
+ + + + + + +
+ +
+ 保存设置 +
+
+ + +
+
+
+
+ + + - @@ -242,7 +271,7 @@ - + -->
@@ -946,7 +975,7 @@ export default { try { const statusData = { JSON_id: getNextJsonId(), - command: "add_scheme_status", + command: "modify_scheme_status", parameters: { id: row.id, enabled: val diff --git a/src/views/Login.vue b/src/views/Login.vue index 17a203e..e76f304 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -72,7 +72,7 @@ export default { axios.post(`/communication`, loginData, { headers: { "content-type": "application/json" - } + } }) .then((response) => { console.log('收到登录响应 <<<<<<<<<<'); diff --git a/可变车道JSON协议.json b/可变车道JSON协议.json index 8418a0a..eb90978 100644 --- a/可变车道JSON协议.json +++ b/可变车道JSON协议.json @@ -175,7 +175,7 @@ json{ (Web → 单片机) json{ "JSON_id": 30, - "command": "set_scheme_status", + "command": "modify_scheme_status", "parameters": { "id": 1, "enable": false @@ -183,10 +183,10 @@ json{ } (单片机 → Web) json{ - "command": "set_scheme_status_response", + "command": "modify_scheme_status_response", "parameters": { "status": 0, // 0: 成功, 1: 失败 - "message": "Set successfully" + "message": "Modify successfully" } } 删除方案