|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<!-- <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'}"
|
|
|
|
|
:cell-style="{ color: '#fff' }"
|
|
|
|
|
:row-class-name="tableRowClassName"
|
|
|
|
@ -48,6 +48,7 @@ export default {
|
|
|
|
|
manuList: [],
|
|
|
|
|
hospList: [],
|
|
|
|
|
supList: [],
|
|
|
|
|
list:[]
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
@ -103,23 +104,24 @@ export default {
|
|
|
|
|
currentGET('offlineCorp', {regionCode: this.regionCode}).then(res => {
|
|
|
|
|
console.log("单位离线总时长/小时返回的数据{}",res)
|
|
|
|
|
if (res.data.code == 20000) {
|
|
|
|
|
for (let value of res.data.data) {
|
|
|
|
|
if (value.bussinessStatus == "1") {
|
|
|
|
|
//生产企业
|
|
|
|
|
this.manuList.push(value);
|
|
|
|
|
} else if (value.bussinessStatus == "2") {
|
|
|
|
|
//流通企业
|
|
|
|
|
this.supList.push(value);
|
|
|
|
|
} else if (value.bussinessStatus == "3") {
|
|
|
|
|
//医疗机构
|
|
|
|
|
this.hospList.push(value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.list = res.data.data
|
|
|
|
|
// for (let value of res.data.data) {
|
|
|
|
|
// if (value.bussinessStatus == "1") {
|
|
|
|
|
// //生产企业
|
|
|
|
|
// this.manuList.push(value);
|
|
|
|
|
// } else if (value.bussinessStatus == "2") {
|
|
|
|
|
// //流通企业
|
|
|
|
|
// this.supList.push(value);
|
|
|
|
|
// } else if (value.bussinessStatus == "3") {
|
|
|
|
|
// //医疗机构
|
|
|
|
|
// this.hospList.push(value);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
} else {
|
|
|
|
|
this.pageflag = false
|
|
|
|
|
this.srcList = []
|
|
|
|
|
this.$Message({
|
|
|
|
|
text: res.msg,
|
|
|
|
|
text: res.data.msg,
|
|
|
|
|
type: 'warning'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|