From b0abb5f47b2043608a777b859cecaca26d641ea1 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Fri, 29 Aug 2025 16:51:40 +0800 Subject: [PATCH] =?UTF-8?q?hse=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/api/system/post/index.ts | 4 ++-- src/views/safety/violationLevel/index.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.development b/.env.development index ab16fab..6f65255 100644 --- a/.env.development +++ b/.env.development @@ -6,11 +6,11 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -# VITE_APP_BASE_API = 'http://192.168.110.209:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 -VITE_APP_BASE_API = 'http://192.168.110.188:8899' +# VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 朱银 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 54a64b2..9f028ab 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -12,9 +12,9 @@ export function listPost(query: { pageNum: number; pageSize: number }): AxiosPro } // 查询岗位列表 -export function listTreeByProject(projectId: string): AxiosPromise { +export function listTreeByProject(): AxiosPromise { return request({ - url: '/system/dept/list/treeByProjectId/' + projectId, + url: '/system/dept/list/tree', method: 'get' }); } diff --git a/src/views/safety/violationLevel/index.vue b/src/views/safety/violationLevel/index.vue index 0e02a41..b954995 100644 --- a/src/views/safety/violationLevel/index.vue +++ b/src/views/safety/violationLevel/index.vue @@ -145,7 +145,7 @@ const state = reactive({ }); const postList = () => { - listTreeByProject(currentProject.value?.id).then((res) => { + listTreeByProject().then((res) => { console.log('🚀 ~ listTreeByProject ~ res:', res); state.postListAll = res.data ?? []; });