1、之前解决的问题上传

20245024-wz
qiuyt 6 months ago
parent fcee2c8069
commit 69ca5ac10f

@ -161,7 +161,7 @@ export default {
this.getGeojson(code, res.data.data); this.getGeojson(code, res.data.data);
this.mapclick(); this.mapclick();
} else { } else {
this.$Message.warning(res.msg); this.$Message.warning(res.data.msg);
} }
}); });
}, },
@ -448,7 +448,7 @@ export default {
margin-bottom: 30px; margin-bottom: 30px;
.maptitle { .maptitle {
height: 60px; //height: 60px;
display: flex; display: flex;
justify-content: center; justify-content: center;
padding-top: 30px; padding-top: 30px;

@ -8,7 +8,7 @@
<template> <template>
<div> <div>
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">--> <!-- <el-tabs v-model="activeName" @tab-click="handleClick">-->
<el-table v-loading="loading" :data="manuList" <el-table v-loading="loading" :data="list"
style="width: 100%;margin-top: 1px" :row-style="{height:'38px'}" style="width: 100%;margin-top: 1px" :row-style="{height:'38px'}"
:cell-style="{ color: '#fff' }" :cell-style="{ color: '#fff' }"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
@ -48,6 +48,7 @@ export default {
manuList: [], manuList: [],
hospList: [], hospList: [],
supList: [], supList: [],
list:[]
}; };
}, },
@ -103,23 +104,24 @@ export default {
currentGET('offlineCorp', {regionCode: this.regionCode}).then(res => { currentGET('offlineCorp', {regionCode: this.regionCode}).then(res => {
console.log("单位离线总时长/小时返回的数据{}",res) console.log("单位离线总时长/小时返回的数据{}",res)
if (res.data.code == 20000) { if (res.data.code == 20000) {
for (let value of res.data.data) { this.list = res.data.data
if (value.bussinessStatus == "1") { // for (let value of res.data.data) {
// // if (value.bussinessStatus == "1") {
this.manuList.push(value); // //
} else if (value.bussinessStatus == "2") { // this.manuList.push(value);
// // } else if (value.bussinessStatus == "2") {
this.supList.push(value); // //
} else if (value.bussinessStatus == "3") { // this.supList.push(value);
// // } else if (value.bussinessStatus == "3") {
this.hospList.push(value); // //
} // this.hospList.push(value);
} // }
// }
} else { } else {
this.pageflag = false this.pageflag = false
this.srcList = [] this.srcList = []
this.$Message({ this.$Message({
text: res.msg, text: res.data.msg,
type: 'warning' type: 'warning'
}) })
} }

Loading…
Cancel
Save