董国庆
2026-01-24 860d127a3c8154fc3432fc97b209ffa265ae4434
修改项目列表接口
4个文件已修改
34 ■■■■■ 已修改文件
screen/src/view/equipmentList/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/src/view/equipmentList/service.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/src/view/hiddenDanger/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/src/view/hiddenDanger/service.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen/src/view/equipmentList/index.vue
@@ -196,7 +196,7 @@
import moment from "moment";
import {
  deviceTypes,
  getLoginNameVoList,
  getProjectList,
  getDeviceListByType,
  getDeviceDetailCheckListByType
} from './service.js'
@@ -309,14 +309,14 @@
        }
        const userInfo = JSON.parse(userInfoStr);
        const userId = userInfo.userId;
        const clientId = userInfo.userId;
        if (!userId) {
          console.error("用户信息中未找到 userId");
        if (!clientId) {
          console.error("用户信息中未找到 clientId");
          return;
        }
        const res = await getLoginNameVoList({ userId });
        const res = await getProjectList({ clientId });
        if (res && res) {
          this.projectList = res.map((item) => ({
            label: item.name,
screen/src/view/equipmentList/service.js
@@ -1,7 +1,13 @@
import request from '@/utils/request'
// ==================== 项目端接口 ====================
// 获取项目-委托方列表
// 获取项目列表
export const getProjectList = async (params) => {
  return request(`/project/list`, {
    method: 'get', params
  })
}
// 获取项目-委托方列表(旧接口,已废弃)
export const getLoginNameVoList = async (params) => {
  return request(`/project/getLoginNameVoList`, {
    method: 'get', params
screen/src/view/hiddenDanger/index.vue
@@ -581,7 +581,7 @@
import HeaderBox from "../header/index.vue";
import moment from "moment";
import {
  getLoginNameVoList,
  getProjectList,
  getHiddenDangerListByType,
  getHiddenDangerDetailByType,
  editResponsiblePersonByType,
@@ -788,14 +788,14 @@
        }
        const userInfo = JSON.parse(userInfoStr);
        const userId = userInfo.userId;
        const clientId = userInfo.userId;
        if (!userId) {
          console.error("用户信息中未找到 userId");
        if (!clientId) {
          console.error("用户信息中未找到 clientId");
          return;
        }
        const res = await getLoginNameVoList({ userId });
        const res = await getProjectList({ clientId });
        if (res && res) {
          this.projectList = res.map((item) => ({
            label: item.name,
screen/src/view/hiddenDanger/service.js
@@ -1,9 +1,9 @@
import request from '@/utils/request'
// ==================== 项目端接口 ====================
// 获取项目-委托方列表
export const getLoginNameVoList = async (params) => {
  return request(`/project/getLoginNameVoList`, {
// 获取项目列表
export const getProjectList = async (params) => {
  return request(`/project/list`, {
    method: 'get', params
  })
}