From 86c77ee0b4a5b1ac05f419c6ff4d5ea145230f27 Mon Sep 17 00:00:00 2001 From: selia-zx <1771203023@qq.com> Date: Thu, 11 Jun 2026 16:04:50 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=B3=BB=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=202.=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=8F=B0=E8=B4=A6=E7=AE=A1=E7=90=86=E6=B7=BB=E5=8A=A0=E6=89=80?= =?UTF-8?q?=E5=B1=9E=E5=88=86=E5=8C=BAID=E3=80=81=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E3=80=81=E7=94=9F=E4=BA=A7=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E3=80=81=E8=B4=AD=E7=BD=AE=E6=97=A5=E6=9C=9F=E3=80=81=E5=93=81?= =?UTF-8?q?=E7=89=8C=E8=B4=A3=E4=BB=BB=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/project.js | 44 +++ src/views/device/ledger/index.vue | 92 ++++- src/views/system/project/index.vue | 576 +++++++++++++++++++++++++++++ 3 files changed, 706 insertions(+), 6 deletions(-) create mode 100644 src/api/system/project.js create mode 100644 src/views/system/project/index.vue diff --git a/src/api/system/project.js b/src/api/system/project.js new file mode 100644 index 0000000..f2d8eeb --- /dev/null +++ b/src/api/system/project.js @@ -0,0 +1,44 @@ +import request from "@/utils/request"; + +/** 查询项目信息列表 */ +export function projectList(query) { + return request({ + url: "/project/info/list", + method: "get", + params: query, + }); +} + +/** 根据id查询项目详情 */ +export function getProject(projectId) { + return request({ + url: "/project/info/" + projectId, + method: "get", + }); +} + +/** 新增项目信息 */ +export function addProject(data) { + return request({ + url: "/project/info", + method: "post", + data: data, + }); +} + +/** 修改项目信息 */ +export function updateProject(data) { + return request({ + url: "/project/info", + method: "put", + data: data, + }); +} + +/** 删除项目信息 */ +export function delProject(projectIds) { + return request({ + url: "/project/info/" + projectIds, + method: "delete", + }); +} diff --git a/src/views/device/ledger/index.vue b/src/views/device/ledger/index.vue index f1e33a5..d9c7bf1 100644 --- a/src/views/device/ledger/index.vue +++ b/src/views/device/ledger/index.vue @@ -150,11 +150,6 @@ - - - + + + + + + + + + + + + +