| | |
| | | //新增设备档案 |
| | | export function addDocument(data) { |
| | | return request({ |
| | | url: "/deviceDocuments/addDocument", |
| | | url: "/documents/add", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | |
| | | // 获取相关文档数据的api-更新 |
| | | export function updateDocument(data) { |
| | | return request({ |
| | | url: "/deviceDocuments/updateDocument", |
| | | url: "/documents/updateDocument", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | |
| | | //删除设备档案 |
| | | export function deleteDocumentById(query) { |
| | | return request({ |
| | | url: "/deviceDocuments/deleteDocumentById", |
| | | url: "/documents/delete", |
| | | method: "delete", |
| | | params: query, |
| | | }); |
| | |
| | | } |
| | | |
| | | //查询设备档案列表 |
| | | export function getAllDocuments(query) { |
| | | export function getListByDId(query) { |
| | | return request({ |
| | | url: `/deviceDocuments/getAllDocuments`, |
| | | url: '/documents/getListByDId', |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | params: query, |
| | | }); |
| | | } |
| | | //设备预约接口 |
| | | // 设备运行总览-根据id获取设备故障数据 |
| | | export function device(query) { |
| | | return request({ |
| | | url: "/api/device-faults/device", |
| | | url: "/deviceFaults/device", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | updateDocument, |
| | | addDocument, |
| | | deleteDocumentById, |
| | | getAllDocuments, |
| | | selectDeviceByCode, |
| | | upDeviceParameter, |
| | | exportDeviceFile, |
| | | getInsProduction, |
| | | getInsProduction, getListByDId, |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { selectUserCondition } from "@/api/system/user"; |
| | | import { |
| | |
| | | }, |
| | | // 获取相关文档数据的api |
| | | getPage() { |
| | | getAllDocuments({ deviceId: this.clickNodeVal.value }).then(res => { |
| | | getListByDId({ id: this.clickNodeVal.value }).then(res => { |
| | | if (res.code == 200) |
| | | this.tableDataA = res.data |
| | | }) |
| | |
| | | <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" /> |
| | |
| | | isShowAll: true, |
| | | deviceName: "", // 侧边栏搜索 |
| | | loading: false, |
| | | tabListActiveName: '设备档案', |
| | | tabListActiveName: '设备运行总览', |
| | | menuListActiveName: '设备总览', |
| | | list: [], |
| | | clickNodeVal: {} |
| | |
| | | .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; |