From f011be96b1587fd1933fa959dc10bb33e6abfdb1 Mon Sep 17 00:00:00 2001 From: lll Date: Mon, 6 Nov 2023 17:49:10 +0800 Subject: [PATCH] 12 --- src/api/user.js | 20 +- src/components/AddPolicy.vue | 192 ++++++++------ src/components/DataAcquire.vue | 331 ++++++++++++++---------- src/components/DataView.vue | 1 - src/components/GatewayConfiguration.vue | 107 ++++---- src/components/GatewayMaintenance.vue | 121 +++++---- src/components/PolicyManagement.vue | 1 - src/views/Cockpit.vue | 1 + src/views/StrategyManagement.vue | 24 +- vue.config.js | 2 +- 10 files changed, 465 insertions(+), 335 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index 048bb99..0a5f254 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -1,11 +1,17 @@ import axios from "axios"; export const GetDbwirldList = () => { - return axios.get("/wangguan?action=queryanswer&mark=DB-IotLite_yx") -} + return axios.get("/wangguan?action=queryanswer&mark=DB-IotLite_yx"); +}; export const SaveUserAnswer = (data) => { - return axios.post(`/wangguan?action=updatecache&mark=${data.mark}&user_id=${data.user_id}&mark_value=${data.mark_value}`, { - }) -} + return axios.post( + `/wangguan?action=updatecache&mark=${data.mark}&user_id=${data.user_id}&mark_value=${data.mark_value}`, + {} + ); +}; export const GetUserAnswer = (data) => { - return axios.get(`/wangguan?action=querycache&mark=${data.mark}&user_id=${data.user_id}`) -} \ No newline at end of file + return axios.get( + `/wangguan?action=querycache&mark=${data.mark}&user_id=${data.user_id}` + ); +}; + +//网关配置 diff --git a/src/components/AddPolicy.vue b/src/components/AddPolicy.vue index 0b9968c..311f73d 100644 --- a/src/components/AddPolicy.vue +++ b/src/components/AddPolicy.vue @@ -156,50 +156,41 @@ - - + . - + . - + . - + - + . - + . - + . - + @@ -235,13 +226,7 @@ 记录日志: - - +
- 保 存 + 保 存 取 消 @@ -365,44 +348,8 @@ - - - - 保存 + 保存 取 消 @@ -411,6 +358,7 @@ diff --git a/src/components/DataAcquire.vue b/src/components/DataAcquire.vue index da111cc..69d5f0f 100644 --- a/src/components/DataAcquire.vue +++ b/src/components/DataAcquire.vue @@ -1,161 +1,214 @@ \ No newline at end of file + diff --git a/src/components/DataView.vue b/src/components/DataView.vue index 04f2970..045312e 100644 --- a/src/components/DataView.vue +++ b/src/components/DataView.vue @@ -1,7 +1,6 @@