From 38c547c00c595dd2750ac267f239ba8f829a3b47 Mon Sep 17 00:00:00 2001
From: fanluyan <754122931@qq.com>
Date: Thu, 20 Jun 2024 15:05:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0i2=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Sidebar.vue | 4 +
src/router/index.js | 41 +++
src/utils/api/index.js | 32 ++
src/views/I2config/exportType/index.vue | 43 +++
.../filed/components/addfiledDialog.vue | 344 ++++++++++++++++++
src/views/I2config/filed/index.vue | 155 ++++++++
src/views/I2config/index.vue | 181 +++++++++
src/views/I2config/record/index.vue | 43 +++
src/views/alarmRules/index.vue | 35 +-
src/views/dataReport/index.vue | 6 +-
.../warnMessage/components/warnDialog.vue | 12 +-
src/views/paramBinding/index.vue | 35 +-
vue.config.js | 5 +-
13 files changed, 927 insertions(+), 9 deletions(-)
create mode 100644 src/views/I2config/exportType/index.vue
create mode 100644 src/views/I2config/filed/components/addfiledDialog.vue
create mode 100644 src/views/I2config/filed/index.vue
create mode 100644 src/views/I2config/index.vue
create mode 100644 src/views/I2config/record/index.vue
diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue
index 0fe68dba..7d42c251 100644
--- a/src/components/Sidebar.vue
+++ b/src/components/Sidebar.vue
@@ -46,6 +46,10 @@ export default {
path: "/alarmRules",
name: "告警规则",
},
+ {
+ path: "/I2config",
+ name: "I2配置",
+ },
],
};
},
diff --git a/src/router/index.js b/src/router/index.js
index fbb0fcfb..e4fb1d18 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -138,6 +138,47 @@ const routes = [
title: "告警规则",
},
},
+ {
+ path: "/I2config",
+ component: () => import("../views/I2config/index.vue"),
+ name: "I2config",
+ meta: {
+ title: "I2配置",
+ },
+ path: "/I2config",
+ component: () => import("../views/I2config/index.vue"),
+ name: "I2config",
+ redirect: "/I2config/filed",
+ meta: {
+ title: "I2配置管理",
+ },
+ children: [
+ {
+ path: "/I2config/filed",
+ component: () => import("../views/I2config/filed/index.vue"),
+ name: "filed",
+ meta: {
+ title: "字段映射",
+ },
+ },
+ {
+ path: "/I2config/exportType",
+ component: () => import("../views/I2config/exportType/index.vue"),
+ name: "exportType",
+ meta: {
+ title: "导出类型",
+ },
+ },
+ {
+ path: "/I2config/record",
+ component: () => import("../views/I2config/record/index.vue"),
+ name: "record",
+ meta: {
+ title: "导出记录",
+ },
+ },
+ ],
+ },
],
},
];
diff --git a/src/utils/api/index.js b/src/utils/api/index.js
index e4af0b43..1aad4862 100644
--- a/src/utils/api/index.js
+++ b/src/utils/api/index.js
@@ -707,3 +707,35 @@ export function warningListApi(data) {
},
});
}
+
+//I2配置
+//字段映射列表
+export function listFieldConfigApi(data) {
+ return request({
+ url: "/i2sync/listFieldConfig",
+ method: "get",
+ params: data,
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
+ },
+ });
+}
+//修改字段映射表
+
+export function updateFieldConfigApi(data) {
+ return request({
+ url: "/i2sync/updateFieldConfig",
+ method: "post",
+ data,
+ });
+}
+
+//删除字段映射表
+
+export function delFieldConfigApi(data) {
+ return request({
+ url: "/i2sync/delFieldConfig",
+ method: "post",
+ data,
+ });
+}
diff --git a/src/views/I2config/exportType/index.vue b/src/views/I2config/exportType/index.vue
new file mode 100644
index 00000000..79be8967
--- /dev/null
+++ b/src/views/I2config/exportType/index.vue
@@ -0,0 +1,43 @@
+
+ 导出类型
+ 字段映射
+ I2配置
+
+ 导出记录
+