From b34d0a4914481dbed20cdbcf838522abca01375c Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 9 Jan 2024 17:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 2 +- src/components/Sidebar.vue | 4 + src/router/index.js | 8 + src/utils/api/index.js | 33 +++ src/views/icdConfig/colDialog.vue | 13 +- src/views/paramBinding/index.vue | 327 ++++++++++++++++++++++++++++++ 6 files changed, 381 insertions(+), 6 deletions(-) create mode 100644 src/views/paramBinding/index.vue diff --git a/dist/index.html b/dist/index.html index 42b1380f..9501c103 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -cacfrontend
\ No newline at end of file +cacfrontend
\ No newline at end of file diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 6671ada3..a1522ef5 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -38,6 +38,10 @@ export default { path: "/icdConfig", name: "icd配置", }, + { + path: "/paramBinding", + name: "参数绑定", + }, ], }; }, diff --git a/src/router/index.js b/src/router/index.js index b5df92ae..6a8bc034 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -105,6 +105,14 @@ const routes = [ title: "icd配置", }, }, + { + path: "/paramBinding", + component: () => import("../views/paramBinding/index.vue"), + name: "paramBinding", + meta: { + title: "参数绑定", + }, + }, ], }, ]; diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 343ba345..3b721082 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -358,3 +358,36 @@ export function modevListAllApi(data) { }, }); } + +//参数绑定相关接口 +//获取树结构 +export function getParamTreeApi(data) { + return request({ + url: "/parambind/getTree", + method: "get", + data, + }); +} + +//查询逻辑设备实例列表 +export function getinstListApi(data) { + return request({ + url: "/parambind/instList", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} +//查询绑定信息 +export function getBindApi(data) { + return request({ + url: "/parambind/getBind", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} diff --git a/src/views/icdConfig/colDialog.vue b/src/views/icdConfig/colDialog.vue index ad7ff6bd..c333f0bf 100644 --- a/src/views/icdConfig/colDialog.vue +++ b/src/views/icdConfig/colDialog.vue @@ -28,10 +28,13 @@ > + :key="item.name" + :label="item.name" + :value="item.name" + > + {{ item.name + }}({{ item.comment }}) + {{ scope.row.colName @@ -71,7 +74,7 @@ diff --git a/src/views/paramBinding/index.vue b/src/views/paramBinding/index.vue new file mode 100644 index 00000000..0285cc73 --- /dev/null +++ b/src/views/paramBinding/index.vue @@ -0,0 +1,327 @@ + + +