gaoluyang
2025-03-12 7c168bb4deb77ff22f178e1b8091446fde674e29
设备搬迁-设备档案联调
已修改3个文件
25 ■■■■ 文件已修改
src/api/cnas/resourceDemand/device.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/CNAS/resourceDemand/device/component/files.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/CNAS/resourceDemand/device/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/cnas/resourceDemand/device.js
@@ -660,7 +660,7 @@
//新增设备档案
export function addDocument(data) {
  return request({
    url: "/deviceDocuments/addDocument",
    url: "/documents/add",
    method: "post",
    data: data,
  });
@@ -669,7 +669,7 @@
// 获取相关文档数据的api-更新
export function updateDocument(data) {
  return request({
    url: "/deviceDocuments/updateDocument",
    url: "/documents/updateDocument",
    method: "post",
    data: data,
  });
@@ -678,7 +678,7 @@
//删除设备档案
export function deleteDocumentById(query) {
  return request({
    url: "/deviceDocuments/deleteDocumentById",
    url: "/documents/delete",
    method: "delete",
    params: query,
  });
@@ -814,9 +814,9 @@
}
//查询设备档案列表
export function getAllDocuments(query) {
export function getListByDId(query) {
  return request({
    url: `/deviceDocuments/getAllDocuments`,
    url: '/documents/getListByDId',
    method: "get",
    params: query,
  });
@@ -1283,10 +1283,10 @@
    params: query,
  });
}
//设备预约接口
// 设备运行总览-根据id获取设备故障数据
export function device(query) {
  return request({
    url: "/api/device-faults/device",
    url: "/deviceFaults/device",
    method: "get",
    params: query,
  });
src/views/CNAS/resourceDemand/device/component/files.vue
@@ -470,11 +470,10 @@
  updateDocument,
  addDocument,
  deleteDocumentById,
  getAllDocuments,
  selectDeviceByCode,
  upDeviceParameter,
  exportDeviceFile,
  getInsProduction,
  getInsProduction, getListByDId,
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/system/user";
import {
@@ -719,7 +718,7 @@
    },
    // 获取相关文档数据的api
    getPage() {
      getAllDocuments({ deviceId: this.clickNodeVal.value }).then(res => {
      getListByDId({ id: this.clickNodeVal.value }).then(res => {
        if (res.code == 200)
          this.tableDataA = res.data
      })
src/views/CNAS/resourceDemand/device/index.vue
@@ -47,7 +47,7 @@
      <div v-if="!isShowAll" style="height: 100%;">
        <el-tabs v-model="tabListActiveName" class="main_right" type="border-card" @tab-click="handleClick">
          <el-tab-pane label="设备运行总览" name="设备运行总览">
            <operationOverview v-if="tabListActiveName == '设备运行总览'" :clickNodeVal="clickNodeVal"/>
            <operationOverview view v-if="tabListActiveName == '设备运行总览'" :clickNodeVal="clickNodeVal"/>
          </el-tab-pane>
          <el-tab-pane label="设备档案" name="设备档案">
            <files v-if="tabListActiveName == '设备档案'" :clickNodeVal="clickNodeVal" />
@@ -123,7 +123,7 @@
      isShowAll: true,
      deviceName: "", // 侧边栏搜索
      loading: false,
      tabListActiveName: '设备档案',
      tabListActiveName: '设备运行总览',
      menuListActiveName: '设备总览',
      list: [],
      clickNodeVal: {}
@@ -200,7 +200,7 @@
.device-right {
  background: #fff;
  width: calc(100% - 250px);
  height: calc(100vh - 100px);
  height: calc(100vh - 40px);
  border-radius: 16px;
  box-sizing: border-box;
  padding: 10px;