Commit 60513e7b authored by 张牧越's avatar 张牧越

styleFix

parent 2012c653
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
} }
.el-loading-text { .el-loading-text {
font-size: 24px !important; font-size: 20px !important;
} }
.amap-logo { .amap-logo {
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
.el-loading-mask { .el-loading-mask {
z-index: 99999 !important; z-index: 99999 !important;
position: fixed !important;
} }
</style> </style>
</head> </head>
......
...@@ -198,21 +198,21 @@ export function getCurrentTowerStatis(params) { ...@@ -198,21 +198,21 @@ export function getCurrentTowerStatis(params) {
}) })
} }
export function getDeviceDetail(deviceId) { export function getDeviceDetail(deviceId) {
return request({ return noLoadingrequest({
url: `/pweb/s/towercrane/device/${deviceId}`, url: `/pweb/s/towercrane/device/${deviceId}`,
method: 'get', method: 'get',
}) })
} }
export function getDeviceTodayChart(deviceId) { export function getDeviceTodayChart(deviceId) {
return request({ return noLoadingrequest({
url: `/pweb/s/towercrane/device/realtime/statis/${deviceId}`, url: `/pweb/s/towercrane/device/realtime/statis/${deviceId}`,
method: 'get', method: 'get',
}) })
} }
export function getTowerLiveUrl(cameraId) { export function getTowerLiveUrl(cameraId) {
return request({ return noLoadingrequest({
url: `/pweb/s/towercrane/camera/liveaddress/${cameraId}`, url: `/pweb/s/towercrane/camera/liveaddress/${cameraId}`,
method: 'get', method: 'get',
}) })
...@@ -340,7 +340,7 @@ export function getFallWarningTableList(params) { ...@@ -340,7 +340,7 @@ export function getFallWarningTableList(params) {
} }
export function getDeviceCurrentStatus(params) { export function getDeviceCurrentStatus(params) {
return request({ return noLoadingrequest({
url: '/pweb/s/linbian/device/realdata', url: '/pweb/s/linbian/device/realdata',
method: 'get', method: 'get',
params params
...@@ -358,14 +358,14 @@ export function getUnloadingPlatformList() { ...@@ -358,14 +358,14 @@ export function getUnloadingPlatformList() {
}) })
} }
export function getPlatformCurrentStatus(params) { export function getPlatformCurrentStatus(params) {
return request({ return noLoadingrequest({
url: '/pweb/s/unload/device/realdata', url: '/pweb/s/unload/device/realdata',
method: 'get', method: 'get',
params params
}) })
} }
export function getPlatformRunningAnalysis(params) { export function getPlatformRunningAnalysis(params) {
return request({ return noLoadingrequest({
url: '/pweb/s/unload/device/statistics', url: '/pweb/s/unload/device/statistics',
method: 'get', method: 'get',
params params
...@@ -410,7 +410,7 @@ export function getElevatorWarningStatus() { ...@@ -410,7 +410,7 @@ export function getElevatorWarningStatus() {
export function getElevatorRealData(params) { export function getElevatorRealData(params) {
return request({ return noLoadingrequest({
url: '/pweb/s/elevator/device/realdata', url: '/pweb/s/elevator/device/realdata',
method: 'get', method: 'get',
params params
......
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</ShadowContainer> </ShadowContainer>
<Title text="AI预警"> </Title> <Title text="AI预警"> </Title>
<ShadowContainer class="short-container"> <ShadowContainer class="short-container">
<div style="display: flex"> <div style="display: flex; justify-content: center">
<div class="chart-container"> <div class="chart-container">
<div ref="qualityChart" id="quality-chart"></div> <div ref="qualityChart" id="quality-chart"></div>
<div class="title"> <div class="title">
...@@ -472,11 +472,12 @@ export default { ...@@ -472,11 +472,12 @@ export default {
padding-bottom: 0; padding-bottom: 0;
} }
.side-area { .side-area {
width: 400px; min-width: 400px;
width: 25%;
height: 100%; height: 100%;
} }
.mid-area { .mid-area {
width: calc(100% - 824px); width: calc(50% - 24px);
height: 100%; height: 100%;
} }
.divider { .divider {
...@@ -729,7 +730,7 @@ table { ...@@ -729,7 +730,7 @@ table {
width: calc(100% / 3); width: calc(100% / 3);
padding: 30px 0px; padding: 30px 0px;
.status-img { .status-img {
width: 40%; width: 50px;
} }
.status-detail { .status-detail {
display: inline-block; display: inline-block;
...@@ -827,7 +828,6 @@ table { ...@@ -827,7 +828,6 @@ table {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
width: calc(100% - 200px);
& > div { & > div {
padding: 0 20px; padding: 0 20px;
font-size: 14px; font-size: 14px;
......
...@@ -667,8 +667,8 @@ export default { ...@@ -667,8 +667,8 @@ export default {
.chart-container { .chart-container {
position: relative; position: relative;
width: 200px; width: 250px;
height: 200px; height: 250px;
.title { .title {
position: absolute; position: absolute;
top: 50%; top: 50%;
......
...@@ -115,7 +115,11 @@ ...@@ -115,7 +115,11 @@
</div> </div>
</ShadowContainer> </ShadowContainer>
</div> </div>
<div class="elevator-container"> <div
class="elevator-container"
v-loading="elevatorLoading"
element-loading-background="rgba(0, 0, 0, 0.8)"
>
<ShadowContainerRect class="long-container"> <ShadowContainerRect class="long-container">
<div id="elevator-detail"> <div id="elevator-detail">
<div class="left-detail"> <div class="left-detail">
...@@ -130,7 +134,14 @@ ...@@ -130,7 +134,14 @@
<div class="tower-title">左侧运行情况</div> <div class="tower-title">左侧运行情况</div>
<div class="driver-info"> <div class="driver-info">
<div class="driver-icon"> <div class="driver-icon">
<img :src="leftElevator.person.head_img" alt="" /> <img
:src="
leftElevator.person.head_img
? leftElevator.person.head_img
: require('@/assets/elevator/portrait.png')
"
alt=""
/>
</div> </div>
<div class="driver-description"> <div class="driver-description">
<div <div
...@@ -219,7 +230,14 @@ ...@@ -219,7 +230,14 @@
<div class="tower-title">右侧运行情况</div> <div class="tower-title">右侧运行情况</div>
<div class="driver-info"> <div class="driver-info">
<div class="driver-icon"> <div class="driver-icon">
<img :src="rightElevator.person.head_img" alt="" /> <img
:src="
rightElevator.person.head_img
? rightElevator.person.head_img
: require('@/assets/elevator/portrait.png')
"
alt=""
/>
</div> </div>
<div class="driver-description"> <div class="driver-description">
<div <div
...@@ -283,6 +301,7 @@ export default { ...@@ -283,6 +301,7 @@ export default {
leftBottom: 0, leftBottom: 0,
rightBottom: 0, rightBottom: 0,
interval1: null, interval1: null,
elevatorLoading: false,
}; };
}, },
methods: { methods: {
...@@ -344,6 +363,7 @@ export default { ...@@ -344,6 +363,7 @@ export default {
}); });
}, },
getCurrentElevatorStatus(tower) { getCurrentElevatorStatus(tower) {
this.elevatorLoading = true;
this.leftBottom = 0; this.leftBottom = 0;
this.rightBottom = 0; this.rightBottom = 0;
this.leftElevator = null; this.leftElevator = null;
...@@ -357,6 +377,7 @@ export default { ...@@ -357,6 +377,7 @@ export default {
} }
getElevatorRealData({ device_ids: elevatorArray.join(",") }).then( getElevatorRealData({ device_ids: elevatorArray.join(",") }).then(
(res) => { (res) => {
this.elevatorLoading = false;
this.leftElevator = tower.left_elevator this.leftElevator = tower.left_elevator
? { ? {
...tower.left_elevator, ...tower.left_elevator,
...@@ -562,6 +583,7 @@ export default { ...@@ -562,6 +583,7 @@ export default {
background: rgba(44, 96, 162, 0.2); background: rgba(44, 96, 162, 0.2);
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
font-weight: bold;
} }
.warning-table-column { .warning-table-column {
padding: 12px 0; padding: 12px 0;
......
...@@ -37,7 +37,11 @@ ...@@ -37,7 +37,11 @@
<div id="today-warning-chart" ref="today24hourWarningChart"></div> <div id="today-warning-chart" ref="today24hourWarningChart"></div>
</ShadowContainer> </ShadowContainer>
</div> </div>
<div class="mid-area"> <div
class="mid-area"
v-loading="mapLoading"
element-loading-background="rgba(0, 0, 0, 0.8)"
>
<div class="cover-area"></div> <div class="cover-area"></div>
<div class="buildingwindow" v-if="buildingWindowVisible"> <div class="buildingwindow" v-if="buildingWindowVisible">
<div class="building-description"> <div class="building-description">
...@@ -198,6 +202,7 @@ export default { ...@@ -198,6 +202,7 @@ export default {
windowData: {}, windowData: {},
page: 1, page: 1,
interval1: null, interval1: null,
mapLoading: false,
}; };
}, },
methods: { methods: {
...@@ -218,7 +223,7 @@ export default { ...@@ -218,7 +223,7 @@ export default {
mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7", mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7",
}); });
this.$nextTick(() => { this.$nextTick(() => {
var scale = window.screen.height / 1080; var scale = window.innerHeight / 1080;
console.log(document.getElementById("amap-container").style); console.log(document.getElementById("amap-container").style);
document.getElementById("amap-container").style.zoom = 1 / scale; document.getElementById("amap-container").style.zoom = 1 / scale;
}); });
...@@ -268,9 +273,11 @@ export default { ...@@ -268,9 +273,11 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
}, },
showDeviceInfo(device) { showDeviceInfo(device) {
this.mapLoading = true;
this.buildingWindowVisible = false; this.buildingWindowVisible = false;
this.map.setCenter([device.longitude, device.latitude]); this.map.setCenter([device.longitude, device.latitude]);
getDeviceCurrentStatus({ device_id: device.id }).then((res) => { getDeviceCurrentStatus({ device_id: device.id }).then((res) => {
this.mapLoading = false;
this.windowData = { ...device, ...res.data }; this.windowData = { ...device, ...res.data };
console.log(this.windowData); console.log(this.windowData);
this.$nextTick(() => { this.$nextTick(() => {
...@@ -612,6 +619,7 @@ export default { ...@@ -612,6 +619,7 @@ export default {
background: rgba(44, 96, 162, 0.2); background: rgba(44, 96, 162, 0.2);
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
font-weight: bold;
} }
.warning-table-column { .warning-table-column {
padding: 12px 0; padding: 12px 0;
......
...@@ -241,7 +241,7 @@ export default { ...@@ -241,7 +241,7 @@ export default {
}); });
this.map.on("click", () => {}); this.map.on("click", () => {});
this.$nextTick(() => { this.$nextTick(() => {
var scale = window.screen.height / 1080; var scale = window.innerHeight / 1080;
document.getElementById("amap-container").style.zoom = 1 / scale; document.getElementById("amap-container").style.zoom = 1 / scale;
}); });
}) })
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7", mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7",
}); });
this.$nextTick(() => { this.$nextTick(() => {
var scale = window.screen.height / 1080; var scale = window.innerHeight / 1080;
document.getElementById("sample-map-container").style.zoom = document.getElementById("sample-map-container").style.zoom =
1 / scale; 1 / scale;
}); });
......
...@@ -101,12 +101,12 @@ ...@@ -101,12 +101,12 @@
</div> </div>
<div class="mid-area"> <div class="mid-area">
<Title text="实时监测" type="long"></Title> <Title text="实时监测" type="long"></Title>
<ShadowContainer class="long-container"> <ShadowContainer
<div class="long-container"
id="stats-container"
v-loading="loading" v-loading="loading"
element-loading-background="rgba(0, 0, 0, 0.8)" element-loading-background="rgba(0, 0, 0, 0.8)"
> >
<div id="stats-container">
<div class="temp"> <div class="temp">
<div class="text">温度/℃</div> <div class="text">温度/℃</div>
<div class="value" style="color: #ff6151"> <div class="value" style="color: #ff6151">
...@@ -847,6 +847,7 @@ export default { ...@@ -847,6 +847,7 @@ export default {
background: rgba(44, 96, 162, 0.2); background: rgba(44, 96, 162, 0.2);
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
font-weight: bold;
} }
.warning-table-column { .warning-table-column {
padding: 12px 0; padding: 12px 0;
......
...@@ -828,6 +828,7 @@ export default { ...@@ -828,6 +828,7 @@ export default {
background: rgba(44, 96, 162, 0.2); background: rgba(44, 96, 162, 0.2);
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
font-weight: bold;
} }
.warning-table-column { .warning-table-column {
padding: 12px 0; padding: 12px 0;
...@@ -867,6 +868,7 @@ export default { ...@@ -867,6 +868,7 @@ export default {
background: rgba(44, 96, 162, 0.2); background: rgba(44, 96, 162, 0.2);
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
font-weight: bold;
} }
.warning-table-column { .warning-table-column {
padding: 12px 0; padding: 12px 0;
...@@ -933,7 +935,7 @@ export default { ...@@ -933,7 +935,7 @@ export default {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
width: calc(100% - 260px); width: calc(100% - 300px);
& > div { & > div {
padding: 0 20px; padding: 0 20px;
font-size: 14px; font-size: 14px;
...@@ -952,8 +954,8 @@ export default { ...@@ -952,8 +954,8 @@ export default {
.chart-container { .chart-container {
position: relative; position: relative;
width: 260px; width: 300px;
height: 260px; height: 300px;
.title { .title {
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -983,12 +985,12 @@ export default { ...@@ -983,12 +985,12 @@ export default {
text-align: center; text-align: center;
transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%);
.main-title { .main-title {
font-size: 30px; font-size: 18px;
font-weight: bold; font-weight: bold;
color: #00fcff; color: #00fcff;
} }
.sub-title { .sub-title {
font-size: 16px; font-size: 12px;
font-weight: bold; font-weight: bold;
color: rgba(255, 255, 255, 0.7); color: rgba(255, 255, 255, 0.7);
} }
......
...@@ -1015,7 +1015,7 @@ export default { ...@@ -1015,7 +1015,7 @@ export default {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
width: calc(100% - 200px); width: calc(100% - 300px);
& > div { & > div {
padding: 0 20px; padding: 0 20px;
font-size: 14px; font-size: 14px;
...@@ -1033,8 +1033,8 @@ export default { ...@@ -1033,8 +1033,8 @@ export default {
.chart-container { .chart-container {
position: relative; position: relative;
width: 200px; width: 300px;
height: 200px; height: 300px;
.title { .title {
position: absolute; position: absolute;
top: 50%; top: 50%;
......
...@@ -274,7 +274,7 @@ export default { ...@@ -274,7 +274,7 @@ export default {
this.capWindowVisible = false; this.capWindowVisible = false;
}); });
this.$nextTick(() => { this.$nextTick(() => {
var scale = window.screen.height / 1080; var scale = window.innerHeight / 1080;
document.getElementById("amap-container").style.zoom = 1 / scale; document.getElementById("amap-container").style.zoom = 1 / scale;
}); });
this.getSafeCapDeviceList(); this.getSafeCapDeviceList();
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7", mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7",
}); });
this.$nextTick(() => { this.$nextTick(() => {
var scale = window.screen.height / 1080; var scale = window.innerHeight / 1080;
document.getElementById("route-map-container").style.zoom = 1 / scale; document.getElementById("route-map-container").style.zoom = 1 / scale;
}); });
this.search(); this.search();
......
...@@ -53,7 +53,11 @@ ...@@ -53,7 +53,11 @@
<div id="dip-chart" ref="dipChart"></div> <div id="dip-chart" ref="dipChart"></div>
</ShadowContainer> </ShadowContainer>
</div> </div>
<div id="mid-area"> <div
id="mid-area"
v-loading="mapLoading"
element-loading-background="rgba(0, 0, 0, 0.8)"
>
<div class="cover-area"></div> <div class="cover-area"></div>
<div class="towerwindow" v-if="towerWindowVisible"> <div class="towerwindow" v-if="towerWindowVisible">
<div class="tower-description" @click="openDetailDialog"> <div class="tower-description" @click="openDetailDialog">
...@@ -209,6 +213,7 @@ export default { ...@@ -209,6 +213,7 @@ export default {
page: 1, page: 1,
deviceTotal: 0, deviceTotal: 0,
interval1: null, interval1: null,
mapLoading: false,
}; };
}, },
methods: { methods: {
...@@ -442,7 +447,7 @@ export default { ...@@ -442,7 +447,7 @@ export default {
mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7", mapStyle: "amap://styles/1dda787b3ac1ce28f171d2f153726eb7",
}); });
this.$nextTick(() => { this.$nextTick(() => {
var scale = window.screen.height / 1080; var scale = window.innerHeight / 1080;
document.getElementById("amap-container").style.zoom = 1 / scale; document.getElementById("amap-container").style.zoom = 1 / scale;
}); });
this.map.on("click", (e) => { this.map.on("click", (e) => {
...@@ -500,7 +505,9 @@ export default { ...@@ -500,7 +505,9 @@ export default {
this.towerWindowVisible = true; this.towerWindowVisible = true;
}, },
openDetailDialog() { openDetailDialog() {
this.mapLoading = true;
getDeviceDetail(this.windowData.id).then((res) => { getDeviceDetail(this.windowData.id).then((res) => {
this.mapLoading = false;
this.deviceData = res.data; this.deviceData = res.data;
this.$nextTick(() => { this.$nextTick(() => {
this.deviceDialogVisible = true; this.deviceDialogVisible = true;
...@@ -941,6 +948,7 @@ export default { ...@@ -941,6 +948,7 @@ export default {
background: rgba(44, 96, 162, 0.2); background: rgba(44, 96, 162, 0.2);
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
font-weight: bold;
} }
.warning-table-column { .warning-table-column {
padding: 12px 0; padding: 12px 0;
...@@ -987,7 +995,7 @@ export default { ...@@ -987,7 +995,7 @@ export default {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
width: calc(100% - 200px); width: calc(100% - 250px);
& > div { & > div {
padding: 0 20px; padding: 0 20px;
font-size: 14px; font-size: 14px;
...@@ -1005,8 +1013,8 @@ export default { ...@@ -1005,8 +1013,8 @@ export default {
.chart-container { .chart-container {
position: relative; position: relative;
width: 200px; width: 250px;
height: 200px; height: 250px;
.title { .title {
position: absolute; position: absolute;
top: 50%; top: 50%;
......
...@@ -57,7 +57,12 @@ ...@@ -57,7 +57,12 @@
<div class="status-text">风速百分比/%</div> <div class="status-text">风速百分比/%</div>
</div> </div>
</div> </div>
<div id="video-container" v-if="deviceData.is_camera == 1"></div> <div
id="video-container"
v-if="deviceData.is_camera == 1"
v-loading="videoLoading"
element-loading-background="rgba(0, 0, 0, 0.8)"
></div>
<div id="video-container-img" v-else> <div id="video-container-img" v-else>
<img src="@/assets/tower/no_camera.png" alt="" /> <img src="@/assets/tower/no_camera.png" alt="" />
<div>暂无监控信息</div> <div>暂无监控信息</div>
...@@ -100,6 +105,7 @@ export default { ...@@ -100,6 +105,7 @@ export default {
return { return {
todayData: [], todayData: [],
player: null, player: null,
videoLoading: false,
}; };
}, },
methods: { methods: {
...@@ -183,6 +189,7 @@ export default { ...@@ -183,6 +189,7 @@ export default {
}, },
openedEvents() { openedEvents() {
if (this.deviceData.is_camera == 1) { if (this.deviceData.is_camera == 1) {
this.videoLoading = true;
getTowerLiveUrl(this.deviceData.camera_id).then((res) => { getTowerLiveUrl(this.deviceData.camera_id).then((res) => {
const myVideoDiv = document.getElementById(`video-container`); const myVideoDiv = document.getElementById(`video-container`);
myVideoDiv.innerHTML = `<video myVideoDiv.innerHTML = `<video
...@@ -202,6 +209,7 @@ export default { ...@@ -202,6 +209,7 @@ export default {
}); });
singlePlayer.play(); singlePlayer.play();
this.player = singlePlayer; this.player = singlePlayer;
this.videoLoading = false;
getDeviceTodayChart(this.deviceId).then((result) => { getDeviceTodayChart(this.deviceId).then((result) => {
this.todayData = result.data; this.todayData = result.data;
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -22,7 +22,11 @@ ...@@ -22,7 +22,11 @@
</div> </div>
</ShadowContainer> </ShadowContainer>
<Title text="各平台运行分析"></Title> <Title text="各平台运行分析"></Title>
<ShadowContainer class="long-2-container"> <ShadowContainer
class="long-2-container"
v-loading="chartLoading"
element-loading-background="rgba(0, 0, 0, 0.8)"
>
<div class="filters"> <div class="filters">
<div <div
:class="['filter', activeType == '0' ? 'active' : '']" :class="['filter', activeType == '0' ? 'active' : '']"
...@@ -42,7 +46,11 @@ ...@@ -42,7 +46,11 @@
<div id="weight-chart" ref="weightChart"></div> <div id="weight-chart" ref="weightChart"></div>
</ShadowContainer> </ShadowContainer>
</div> </div>
<div class="mid-area"> <div
class="mid-area"
v-loading="mapLoading"
element-loading-background="rgba(0, 0, 0, 0.8)"
>
<div class="cover-area"></div> <div class="cover-area"></div>
<div class="buildingwindow" v-if="platformWindowVisible"> <div class="buildingwindow" v-if="platformWindowVisible">
<div class="building-description"> <div class="building-description">
...@@ -188,6 +196,8 @@ export default { ...@@ -188,6 +196,8 @@ export default {
weightChart: null, weightChart: null,
page: 1, page: 1,
interval1: null, interval1: null,
chartLoading: false,
mapLoading: false,
}; };
}, },
methods: { methods: {
...@@ -209,7 +219,7 @@ export default { ...@@ -209,7 +219,7 @@ export default {
}); });
this.$nextTick(() => { this.$nextTick(() => {
var scale = window.screen.height / 1080; var scale = window.innerHeight / 1080;
document.getElementById("amap-container").style.zoom = 1 / scale; document.getElementById("amap-container").style.zoom = 1 / scale;
}); });
this.map.on("click", () => { this.map.on("click", () => {
...@@ -258,9 +268,11 @@ export default { ...@@ -258,9 +268,11 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
}, },
showDeviceInfo(device) { showDeviceInfo(device) {
this.mapLoading = true;
this.platformWindowVisible = false; this.platformWindowVisible = false;
this.map.setCenter([device.longitude, device.latitude]); this.map.setCenter([device.longitude, device.latitude]);
getPlatformCurrentStatus({ device_id: device.id }).then((res) => { getPlatformCurrentStatus({ device_id: device.id }).then((res) => {
this.mapLoading = false;
this.windowData = { ...device, ...res.data }; this.windowData = { ...device, ...res.data };
console.log(this.windowData); console.log(this.windowData);
this.$nextTick(() => { this.$nextTick(() => {
...@@ -419,7 +431,9 @@ export default { ...@@ -419,7 +431,9 @@ export default {
this.activeType = type; this.activeType = type;
this.batteryChart.dispose(); this.batteryChart.dispose();
this.weightChart.dispose(); this.weightChart.dispose();
this.chartLoading = true;
getPlatformRunningAnalysis({ date_type: type }).then((res) => { getPlatformRunningAnalysis({ date_type: type }).then((res) => {
this.chartLoading = false;
this.platformRunningData = res.data; this.platformRunningData = res.data;
this.$nextTick(() => { this.$nextTick(() => {
this.renderBatteryChart(); this.renderBatteryChart();
...@@ -687,6 +701,7 @@ export default { ...@@ -687,6 +701,7 @@ export default {
background: rgba(44, 96, 162, 0.2); background: rgba(44, 96, 162, 0.2);
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
font-weight: bold;
} }
.warning-table-column { .warning-table-column {
padding: 12px 0; padding: 12px 0;
......
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