| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import {
- get,
- put,
- putJ,
- postJ,
- deleteApi
- } from "@/utils/request";
- import Vue from "vue";
- // 查询实例详情
- export async function getPhysicalModel(id) {
- const res = await get(Vue.prototype.apiUrl + `/main/asset/getPhysicalModel/${id}`, {});
- if (res.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.message));
- }
- // 查询实例详情
- export async function getRealData(id) {
- const res = await get(Vue.prototype.apiUrl + `/main/asset/getRealData/${id}`, {});
- if (res.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.message));
- }
- // 查询实例详情
- export async function getHistoryData(data) {
- const res = await postJ(Vue.prototype.apiUrl + `/main/asset/getHistoryData`, data);
- if (res.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.message));
- }
|