|
@@ -63,18 +63,18 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="fxc_left_con1">
|
|
<div class="fxc_left_con1">
|
|
|
<div class="fxc_left_ctit">标签类型</div>
|
|
<div class="fxc_left_ctit">标签类型</div>
|
|
|
- <div class="fxc_left_ch1">
|
|
|
|
|
- <pie4Chart :warningState="warningState"></pie4Chart>
|
|
|
|
|
|
|
+ <div class="fxc_left_ch1" @click="viewChipType(1)">
|
|
|
|
|
+ <pie4Chart :warningState="warningState" :id="'pie4ChartCon'"></pie4Chart>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="fxc_left_cline"></div>
|
|
<div class="fxc_left_cline"></div>
|
|
|
<div class="fxc_left_con2">
|
|
<div class="fxc_left_con2">
|
|
|
<div class="fxc_left_ctit">预警情况</div>
|
|
<div class="fxc_left_ctit">预警情况</div>
|
|
|
<div class="fxc_left_ch2">
|
|
<div class="fxc_left_ch2">
|
|
|
- <div>
|
|
|
|
|
|
|
+ <div @click="viewChipType(2)">
|
|
|
<pie2Chart :warningState="warningState" :id="'pie2Chart20'"></pie2Chart>
|
|
<pie2Chart :warningState="warningState" :id="'pie2Chart20'"></pie2Chart>
|
|
|
</div>
|
|
</div>
|
|
|
- <div>
|
|
|
|
|
|
|
+ <div @click="viewChipType(3)">
|
|
|
<pie2Chart :warningState="warningState" :id="'pie2Chart11'"></pie2Chart>
|
|
<pie2Chart :warningState="warningState" :id="'pie2Chart11'"></pie2Chart>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -129,25 +129,25 @@
|
|
|
更新时间:{{markerInfo.updateTime||"--"}}
|
|
更新时间:{{markerInfo.updateTime||"--"}}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="fxc_mid_con2" v-if="chaintemp">
|
|
|
|
|
|
|
+ <div class="fxc_mid_con2" v-if="chaintemp.length">
|
|
|
<div class="fxc_win_icon1"></div>
|
|
<div class="fxc_win_icon1"></div>
|
|
|
<div class="fxc_win_icon2"></div>
|
|
<div class="fxc_win_icon2"></div>
|
|
|
<div class="fxc_win_icon3"></div>
|
|
<div class="fxc_win_icon3"></div>
|
|
|
<div class="fxc_win_icon4"></div>
|
|
<div class="fxc_win_icon4"></div>
|
|
|
- <div class="fxc_mc2_con">
|
|
|
|
|
- <lineChart :chaintemp="chaintemp"></lineChart>
|
|
|
|
|
|
|
+ <div class="fxc_mc2_con" @click.stop="viewChipType(4)">
|
|
|
|
|
+ <lineChart :chaintemp="chaintemp" :id="'lineChartCon'"></lineChart>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="fxc_right1">
|
|
<div class="fxc_right1">
|
|
|
<div class="fxc_tit">储运状态</div>
|
|
<div class="fxc_tit">储运状态</div>
|
|
|
- <div class="fxc_right1_con">
|
|
|
|
|
- <barChart :chipStates="chipStates"></barChart>
|
|
|
|
|
|
|
+ <div class="fxc_right1_con" @click="viewChipType(5)">
|
|
|
|
|
+ <barChart :chipStates="chipStates" :id="'barchartCon'"></barChart>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="fxc_right2">
|
|
<div class="fxc_right2">
|
|
|
<div class="fxc_tit">监测数量</div>
|
|
<div class="fxc_tit">监测数量</div>
|
|
|
- <div class="fxc_right2_con">
|
|
|
|
|
|
|
+ <div class="fxc_right2_con" @click="viewChipType(6)">
|
|
|
<!-- <huan2d :id="'huan2d1'" :chipCountData="chipCountData"></huan2d> -->
|
|
<!-- <huan2d :id="'huan2d1'" :chipCountData="chipCountData"></huan2d> -->
|
|
|
<huan2d :id="'huan2d1'" :chipCountData="chipCountData" :value1="1220" :value2="1000" :value3="1200"></huan2d>
|
|
<huan2d :id="'huan2d1'" :chipCountData="chipCountData" :value1="1220" :value2="1000" :value3="1200"></huan2d>
|
|
|
</div>
|
|
</div>
|
|
@@ -155,6 +155,21 @@
|
|
|
<div class="no_login" @click="goLogin" v-if="!token">
|
|
<div class="no_login" @click="goLogin" v-if="!token">
|
|
|
<div>去登录</div>
|
|
<div>去登录</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="chart_view" v-if="view" @click="hideView">
|
|
|
|
|
+ <pie4Chart :warningState="warningState" :id="'bigChipType'" :big="true" v-if="view == 1"></pie4Chart>
|
|
|
|
|
+ <pie2Chart :warningState="warningState" :id="'pie2Chart21'" :big="true" v-if="view == 2"></pie2Chart>
|
|
|
|
|
+ <pie2Chart :warningState="warningState" :id="'pie2Chart12'" :big="true" v-if="view == 3"></pie2Chart>
|
|
|
|
|
+ <lineChart :chaintemp="chaintemp" :id="'lineChartCon1'" :big="true" v-if="view == 4"></lineChart>
|
|
|
|
|
+ <barChart :chipStates="chipStates" :id="'barchartCon1'" :big="true" v-if="view == 5"></barChart>
|
|
|
|
|
+ <huan2d :id="'huan2d2'" :chipCountData="chipCountData" :big="true" v-if="view == 6"></huan2d>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="idx_nav">
|
|
|
|
|
+ <span>菜单</span>
|
|
|
|
|
+ <div class="idx_nav_list">
|
|
|
|
|
+ <div class="idx_nav_item" @click="goPage('/')">首页</div>
|
|
|
|
|
+ <div class="idx_nav_item" @click="goPage('/SignIn')">退出</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -194,11 +209,12 @@ export default({
|
|
|
token:"",
|
|
token:"",
|
|
|
markers:[],
|
|
markers:[],
|
|
|
markerInfo:"",
|
|
markerInfo:"",
|
|
|
- chaintemp:"",
|
|
|
|
|
|
|
+ chaintemp:[],
|
|
|
chainStatus:{},
|
|
chainStatus:{},
|
|
|
warningState:{},
|
|
warningState:{},
|
|
|
chipCountData:[],
|
|
chipCountData:[],
|
|
|
chipStates:[],
|
|
chipStates:[],
|
|
|
|
|
+ view:"",
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
@@ -222,6 +238,17 @@ export default({
|
|
|
// })
|
|
// })
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ goPage(path){
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path,
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ viewChipType(type){
|
|
|
|
|
+ this.view = type
|
|
|
|
|
+ },
|
|
|
|
|
+ hideView(){
|
|
|
|
|
+ this.view = null
|
|
|
|
|
+ },
|
|
|
// getLoginToken(){
|
|
// getLoginToken(){
|
|
|
// getFxcToken().then(response => {
|
|
// getFxcToken().then(response => {
|
|
|
// var fxcToken = response.token
|
|
// var fxcToken = response.token
|
|
@@ -281,12 +308,12 @@ export default({
|
|
|
getChainTemperature(id){
|
|
getChainTemperature(id){
|
|
|
getFxcChainTemperature({id}).then(response => {
|
|
getFxcChainTemperature({id}).then(response => {
|
|
|
var data = response.data
|
|
var data = response.data
|
|
|
- this.chaintemp = data.length && data
|
|
|
|
|
|
|
+ this.chaintemp =data
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
hideInfo(){
|
|
hideInfo(){
|
|
|
this.markerInfo = null
|
|
this.markerInfo = null
|
|
|
- this.chaintemp = null
|
|
|
|
|
|
|
+ this.chaintemp = []
|
|
|
},
|
|
},
|
|
|
changeNum(){
|
|
changeNum(){
|
|
|
const that = this
|
|
const that = this
|
|
@@ -374,4 +401,11 @@ background-image:-webkit-linear-gradient(bottom,#53A0FF,#ffffff);-webkit-backgro
|
|
|
.fxc_left_ch2 div{ height: 100%; width: 100%; position: relative;}
|
|
.fxc_left_ch2 div{ height: 100%; width: 100%; position: relative;}
|
|
|
.fxc_left_cline{ width: 21.8vw; height: 1px; background: #0653AF; margin: auto;}
|
|
.fxc_left_cline{ width: 21.8vw; height: 1px; background: #0653AF; margin: auto;}
|
|
|
|
|
|
|
|
|
|
+.chart_view{ position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(3,25,52, 0.95); z-index: 2;}
|
|
|
|
|
+.idx_nav{ cursor: pointer; position: fixed; right: 0; bottom: 10px; z-index: 3; color: #ffffff; background: #F1950B; font-size: 14px; display: flex; justify-content: center; align-items: center; border-radius: 100px; width:40px; height: 40px;}
|
|
|
|
|
+.idx_nav_list{ position: absolute; bottom: 44px; right: 0; width: 100px; text-align: center; transition: all 0.5s ease 0s; transform: scale(0); opacity: 0; transform-origin: right bottom;}
|
|
|
|
|
+.idx_nav_list::before{ content: ""; width: 0; height: 0; position: absolute; bottom: -5px; right: 15px; border-top: 5px solid #F1950B; border-left: 5px solid transparent; border-right: 5px solid transparent;}
|
|
|
|
|
+.idx_nav:hover .idx_nav_list{ transform: scale(1); opacity: 1;}
|
|
|
|
|
+.idx_nav_item{ line-height: 30px; border-top: 1px solid #ffffff; background: #F1950B;}
|
|
|
|
|
+.idx_nav_item:first-child{ border:none;}
|
|
|
</style>
|
|
</style>
|