From f4cfbec7df7fae74c1b2a7414c2cf93a0d3a0d48 Mon Sep 17 00:00:00 2001 From: "lj7788@126.com" Date: Fri, 11 Jul 2025 12:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=9C=BA=E7=AE=A1=E7=90=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-ui-vue3/src/api/manage/machConfig.js | 43 ++++++ yanzhu-ui-vue3/src/views/index.vue | 4 +- .../src/views/machmange/machConfig/index.vue | 137 ++++++++++++++++++ 3 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 yanzhu-ui-vue3/src/api/manage/machConfig.js create mode 100644 yanzhu-ui-vue3/src/views/machmange/machConfig/index.vue diff --git a/yanzhu-ui-vue3/src/api/manage/machConfig.js b/yanzhu-ui-vue3/src/api/manage/machConfig.js new file mode 100644 index 00000000..312079e4 --- /dev/null +++ b/yanzhu-ui-vue3/src/api/manage/machConfig.js @@ -0,0 +1,43 @@ +//物机配置 +import request from '@/utils/request' + +export function addCfg(data){ + return request({ + url: '/manage/api/project/machmater/addCfg', + method: 'post', + data: { + vo:data + } + }) +} + +export function updateCfg(data){ + return request({ + url: '/manage/api/project/machmater/updateCfg', + method: 'post', + data: { + vo:data + } + }) +} + +export function deleteCfg(id){ + return request({ + url: '/manage/api/project/machmater/deleteCfg', + method: 'get', + params: { + id: id + } + }) +} + +export function listCfg(projectId,cfgType){ + return request({ + url: '/manage/api/project/machmater/listCfg', + method: 'get', + params: { + projectId: projectId, + cfgType: cfgType + } + }) +} \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/views/index.vue b/yanzhu-ui-vue3/src/views/index.vue index d3b49a1c..a05406be 100644 --- a/yanzhu-ui-vue3/src/views/index.vue +++ b/yanzhu-ui-vue3/src/views/index.vue @@ -5,7 +5,7 @@ - + @@ -22,7 +22,7 @@ - + diff --git a/yanzhu-ui-vue3/src/views/machmange/machConfig/index.vue b/yanzhu-ui-vue3/src/views/machmange/machConfig/index.vue new file mode 100644 index 00000000..4b5cbdde --- /dev/null +++ b/yanzhu-ui-vue3/src/views/machmange/machConfig/index.vue @@ -0,0 +1,137 @@ + + + + +