修改分布图获取设备接口

This commit is contained in:
hzz 2023-08-14 11:40:23 +08:00
parent 84428dba0a
commit 0878434b03
14 changed files with 20 additions and 13 deletions

View File

@ -13,8 +13,8 @@ import {get,post,put} from "@/utils/http"
export function getSensorInfodata(){ export function getSensorInfodata(){
return get('/device/getSensorInfo') return get('/device/getSensorInfo')
} }
export function deviceDistributeInMachineryFactorydata(){ export function deviceDistributeInMachineryFactorydata(data){
return get('/device/deviceDistributeInMachineryFactory') return get('/device/deviceDistributeInMachineryFactory',data)
} }
export function getSensorInfoByType(data){ export function getSensorInfoByType(data){

View File

@ -311,5 +311,6 @@ export default {
'空闲时间':'空闲时间', '空闲时间':'空闲时间',
'智能货架物联管理系统':'智能货架物联管理系统', '智能货架物联管理系统':'智能货架物联管理系统',
'微工厂':'微工厂', '微工厂':'微工厂',
'微工厂环境实时监测系统':'微工厂环境实时监测系统',
} }
} }

View File

@ -311,5 +311,6 @@ export default {
'空闲时间':'空闲时间', '空闲时间':'空闲时间',
'智能货架物联管理系统':'智能货架物联管理系统', '智能货架物联管理系统':'智能货架物联管理系统',
'微工厂':'微工厂', '微工厂':'微工厂',
'微工厂环境实时监测系统':'微工厂环境实时监测系统',
} }
} }

View File

@ -263,6 +263,11 @@ const routes: Array<RouteRecordRaw> = [
name: "intelligentShelves", name: "intelligentShelves",
component: () => import("../views/intelligentShelves/index.vue"), component: () => import("../views/intelligentShelves/index.vue"),
}, },
{
path: "/MicEnvironment",
name: "MicEnvironment",
component: () => import("../views/MicEnvironment/index.vue"),
},

View File

@ -56,7 +56,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {
store.setdevList(result.data); store.setdevList(result.data);

View File

@ -48,7 +48,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,8,9,10,11'});
if (result.code == 200) { if (result.code == 200) {

View File

@ -48,7 +48,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,8,9,10,11'});
if (result.code == 200) { if (result.code == 200) {

View File

@ -60,7 +60,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {
// setTimeout(() => { // setTimeout(() => {

View File

@ -60,7 +60,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {
// setTimeout(() => { // setTimeout(() => {

View File

@ -60,7 +60,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {

View File

@ -58,7 +58,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {
store.setdevList({"焊接车间":result.data['焊接车间']}); store.setdevList({"焊接车间":result.data['焊接车间']});

View File

@ -58,7 +58,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {
store.setdevList({"机加车间":result.data['机加车间']}); store.setdevList({"机加车间":result.data['机加车间']});

View File

@ -56,7 +56,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {
store.setdevList({"精加车间":result.data['精加车间']}); store.setdevList({"精加车间":result.data['精加车间']});

View File

@ -59,7 +59,7 @@ async function getSensorInfodatafun() {
} }
// //
async function deviceDistributeInMachineryFactorydatafun() { async function deviceDistributeInMachineryFactorydatafun() {
let result: any = await deviceDistributeInMachineryFactorydata(); let result: any = await deviceDistributeInMachineryFactorydata({ids:'6,7,9,10,11'});
if (result.code == 200) { if (result.code == 200) {
store.setdevList({"精饰车间":result.data['精饰车间']}); store.setdevList({"精饰车间":result.data['精饰车间']});