Commit 420c510c authored by 纪泽龙's avatar 纪泽龙

Merge branch 'develop_jzl'

parents 910cf076 6a13fcc8
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:44:17 * @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-03-08 16:21:04 * @LastEditTime: 2022-03-08 17:27:26
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue * @FilePath: /test/hello-world/src/views/Home.vue
--> -->
<template> <template>
<div class="home bigwindow"> <div class="home bigwindow">
<div class="goSystem" @click="$router.push('/index')">进入管理系统</div> <div class="goSystem" @click="$router.push('/index')">进入管理系统</div>
<div id="map"></div> <div id="map"></div>
<!-- <Center :show="show" :centerData="centerData" /> --> <!-- <Center :show="show" :centerData="centerData" /> -->
...@@ -166,7 +164,7 @@ import { ...@@ -166,7 +164,7 @@ import {
getUser, getUser,
getEnterprise, getEnterprise,
userAlarm, userAlarm,
getTcqDevice getTcqDevice,
} from "@/api/bigWindow/getDevice"; } from "@/api/bigWindow/getDevice";
import Line from "@/components/bigWindow/Line.vue"; import Line from "@/components/bigWindow/Line.vue";
import VideoView from "@/components/bigWindow/VideoView.vue"; import VideoView from "@/components/bigWindow/VideoView.vue";
...@@ -194,7 +192,6 @@ export default { ...@@ -194,7 +192,6 @@ export default {
}, },
data() { data() {
return { return {
map: null, map: null,
show: false, show: false,
// centerData: null, // centerData: null,
...@@ -267,7 +264,7 @@ export default { ...@@ -267,7 +264,7 @@ export default {
// 其他设备的center数据 // 其他设备的center数据
// 除了这个值,用来显示隐藏,其他值与user共用 // 除了这个值,用来显示隐藏,其他值与user共用
otherCenterShow:false, otherCenterShow: false,
// 报警轮询timer // 报警轮询timer
alarmTimer: null, alarmTimer: null,
...@@ -325,7 +322,7 @@ export default { ...@@ -325,7 +322,7 @@ export default {
this.selarr = this.company.map((item) => item.conpanyId); this.selarr = this.company.map((item) => item.conpanyId);
this.selarr1 = this.arr.map((item) => item.val); this.selarr1 = this.arr.map((item) => item.val);
this.arr.forEach((item) => (item.ischeck = true)); this.arr.forEach((item) => (item.ischeck = true));
// getPipe() getTyx() getFm() getCz() getVideo() getUser() // getPipe() getTyx() getFm() getCz() getVideo() getUser()
await this.goMap(getEnterprise, this.addDevice, Company); await this.goMap(getEnterprise, this.addDevice, Company);
this.goMap(getPipe, this.addPipeLine, Line); this.goMap(getPipe, this.addPipeLine, Line);
...@@ -343,7 +340,6 @@ export default { ...@@ -343,7 +340,6 @@ export default {
// console.log("查询报警"); // console.log("查询报警");
}, alarmtime); }, alarmtime);
}); });
} }
this.currentTime(); this.currentTime();
this.$refs.mychild.choice(this.selarr); this.$refs.mychild.choice(this.selarr);
...@@ -371,7 +367,7 @@ export default { ...@@ -371,7 +367,7 @@ export default {
}, },
goMap(httpFunc, addFunc, component) { goMap(httpFunc, addFunc, component) {
return httpFunc().then((res) => { return httpFunc().then((res) => {
// 给用户加icontype // 给用户加icontype
if (res.data && !res.data[0].iconType) { if (res.data && !res.data[0].iconType) {
res.data.forEach((item) => { res.data.forEach((item) => {
item.iconType = 6; item.iconType = 6;
...@@ -390,7 +386,7 @@ export default { ...@@ -390,7 +386,7 @@ export default {
} else { } else {
config = { data: res.data }; config = { data: res.data };
} }
console.log("reresresresresresresresresress",config) console.log("reresresresresresresresresress", config);
addFunc(config, component); addFunc(config, component);
return config.iconType; return config.iconType;
...@@ -467,7 +463,7 @@ export default { ...@@ -467,7 +463,7 @@ export default {
this.map.allfilter(this.selarr, this.selarr1); this.map.allfilter(this.selarr, this.selarr1);
}, },
//用户的设备center //用户的设备center
getDetectorInfoList(httpFunc,queryParams, title) { getDetectorInfoList(httpFunc, queryParams, title) {
console.log(queryParams); console.log(queryParams);
return httpFunc(queryParams).then((res) => { return httpFunc(queryParams).then((res) => {
// console.log("queryParams", res); // console.log("queryParams", res);
...@@ -477,6 +473,7 @@ export default { ...@@ -477,6 +473,7 @@ export default {
// 总数据 // 总数据
this.centerTotal = res.total; this.centerTotal = res.total;
// this.$refs.userCenter.fade = "fade"; // this.$refs.userCenter.fade = "fade";
this.otherCenterShow = false;
this.userCenterShow = true; this.userCenterShow = true;
this.centerTitle = title; this.centerTitle = title;
// 传递回去 // 传递回去
...@@ -489,18 +486,19 @@ export default { ...@@ -489,18 +486,19 @@ export default {
console.log(queryParams); console.log(queryParams);
return getTcqDevice(queryParams).then((res) => { return getTcqDevice(queryParams).then((res) => {
// console.log("queryParams", res); // console.log("queryParams", res);
console.log("resresresresreszzzzzzzzzzzzzzz",res) console.log("resresresresreszzzzzzzzzzzzzzz", res);
this.detcetorList = res; this.detcetorList = res;
this.centerUserId = queryParams.devId; this.centerUserId = queryParams.devId;
// 总数据 // 总数据
this.centerTotal = res.length; this.centerTotal = res.length;
// this.$refs.userCenter.fade = "fade"; // this.$refs.userCenter.fade = "fade";
this.otherCenterShow = true; this.userCenterShow = false;
this.centerTitle = title;
// 传递回去
return res.code;
this.otherCenterShow = true;
this.centerTitle = title;
// 传递回去
return res.code;
}); });
}, },
currentTime() { currentTime() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment