|
@@ -61,7 +61,25 @@
|
|
|
<div class="fxc_lt_type">报警</div>
|
|
<div class="fxc_lt_type">报警</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="fxc_left_btm">
|
|
|
|
|
|
|
+ <div class="fxc_left_con1">
|
|
|
|
|
+ <div class="fxc_left_ctit">标签类型</div>
|
|
|
|
|
+ <div class="fxc_left_ch1">
|
|
|
|
|
+ <pie4Chart :warningState="warningState"></pie4Chart>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="fxc_left_cline"></div>
|
|
|
|
|
+ <div class="fxc_left_con2">
|
|
|
|
|
+ <div class="fxc_left_ctit">预警情况</div>
|
|
|
|
|
+ <div class="fxc_left_ch2">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <pie2Chart :warningState="warningState" :id="'pie2Chart20'"></pie2Chart>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <pie2Chart :warningState="warningState" :id="'pie2Chart11'"></pie2Chart>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- <div class="fxc_left_btm">
|
|
|
<img class="fxc_left_btm_img" src="../../assets/images/fxc_img11.png">
|
|
<img class="fxc_left_btm_img" src="../../assets/images/fxc_img11.png">
|
|
|
<pie3d :id="'pie3d1'" :value1="1220" :value2="1000" :value3="1200"></pie3d>
|
|
<pie3d :id="'pie3d1'" :value1="1220" :value2="1000" :value3="1200"></pie3d>
|
|
|
<div class="fxc_left_btm_txt">预警</div>
|
|
<div class="fxc_left_btm_txt">预警</div>
|
|
@@ -92,7 +110,7 @@
|
|
|
<i></i>追溯标签<span>{{1200}}</span>
|
|
<i></i>追溯标签<span>{{1200}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
</div>
|
|
</div>
|
|
|
<div class="fxc_mid" @click="hideInfo">
|
|
<div class="fxc_mid" @click="hideInfo">
|
|
|
<div class="fxc_map">
|
|
<div class="fxc_map">
|
|
@@ -141,13 +159,15 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import NumCard from "../../components/fangxincha/numberCard"//
|
|
import NumCard from "../../components/fangxincha/numberCard"//
|
|
|
|
|
+import pie4Chart from "../../components/fangxincha/huan4"//
|
|
|
|
|
+import pie2Chart from "../../components/fangxincha/huan2"//
|
|
|
import Pie3d from "../../components/fangxincha/pie3d2"//
|
|
import Pie3d from "../../components/fangxincha/pie3d2"//
|
|
|
import Huan3d from "../../components/fangxincha/huan3d"//
|
|
import Huan3d from "../../components/fangxincha/huan3d"//
|
|
|
import Huan2d from "../../components/fangxincha/huan2d"//
|
|
import Huan2d from "../../components/fangxincha/huan2d"//
|
|
|
import MapPage from "../../components/fangxincha/map"//高德地图
|
|
import MapPage from "../../components/fangxincha/map"//高德地图
|
|
|
import LineChart from "../../components/fangxincha/lineChart"//
|
|
import LineChart from "../../components/fangxincha/lineChart"//
|
|
|
import BarChart from "../../components/fangxincha/barChart"//
|
|
import BarChart from "../../components/fangxincha/barChart"//
|
|
|
-import { getFxcToken,getFxclistChainLocal,getFxcProductTypeChipCount,getFxcProductChipState,getFxcChainStatus,getFxcChainInfo,getFxcChainTemperature } from '@/api/screen'
|
|
|
|
|
|
|
+import { getFxcToken,getFxclistChainLocal,getFxcProductTypeChipCount,getFxcWarningState,getFxcProductChipState,getFxcChainStatus,getFxcChainInfo,getFxcChainTemperature } from '@/api/screen'
|
|
|
export default({
|
|
export default({
|
|
|
name:"Shop",
|
|
name:"Shop",
|
|
|
components: {
|
|
components: {
|
|
@@ -158,6 +178,8 @@ export default({
|
|
|
BarChart,
|
|
BarChart,
|
|
|
Huan3d,
|
|
Huan3d,
|
|
|
Huan2d,
|
|
Huan2d,
|
|
|
|
|
+ pie4Chart,
|
|
|
|
|
+ pie2Chart,
|
|
|
},
|
|
},
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
@@ -174,6 +196,7 @@ export default({
|
|
|
markerInfo:"",
|
|
markerInfo:"",
|
|
|
chaintemp:"",
|
|
chaintemp:"",
|
|
|
chainStatus:{},
|
|
chainStatus:{},
|
|
|
|
|
+ warningState:{},
|
|
|
chipCountData:[],
|
|
chipCountData:[],
|
|
|
chipStates:[],
|
|
chipStates:[],
|
|
|
}
|
|
}
|
|
@@ -185,6 +208,7 @@ export default({
|
|
|
this.getProductTypeChipCount()
|
|
this.getProductTypeChipCount()
|
|
|
this.getProductChipState()
|
|
this.getProductChipState()
|
|
|
this.getChainStatus()
|
|
this.getChainStatus()
|
|
|
|
|
+ this.getWarningState()
|
|
|
}else{
|
|
}else{
|
|
|
this.changeNum()
|
|
this.changeNum()
|
|
|
}
|
|
}
|
|
@@ -212,6 +236,11 @@ export default({
|
|
|
this.markers = response.data
|
|
this.markers = response.data
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ getWarningState(){
|
|
|
|
|
+ getFxcWarningState().then(response => {
|
|
|
|
|
+ this.warningState = response.data
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
getProductChipState(){
|
|
getProductChipState(){
|
|
|
getFxcProductChipState().then(response => {
|
|
getFxcProductChipState().then(response => {
|
|
|
this.chipStates = response.data
|
|
this.chipStates = response.data
|
|
@@ -336,4 +365,13 @@ background-image:-webkit-linear-gradient(bottom,#53A0FF,#ffffff);-webkit-backgro
|
|
|
|
|
|
|
|
.no_login{ position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 1; display: flex; justify-content: center; align-items: center;}
|
|
.no_login{ position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 1; display: flex; justify-content: center; align-items: center;}
|
|
|
.no_login>div{ width: auto; padding: 20px; background: #ffffff; font-size: 20px; line-height: 36px; border-radius: 5px; color: #2DC1FF;}
|
|
.no_login>div{ width: auto; padding: 20px; background: #ffffff; font-size: 20px; line-height: 36px; border-radius: 5px; color: #2DC1FF;}
|
|
|
|
|
+
|
|
|
|
|
+.fxc_left_con1{ width: 23vw; height: 1.5rem; margin: auto; position: relative;}
|
|
|
|
|
+.fxc_left_con2{ width: 23vw; height: 1.66rem; margin: auto; position: relative;}
|
|
|
|
|
+.fxc_left_ctit{ font-size: 0.7vw; line-height: 0.28rem; color:#ffffff; position: relative; z-index: 1;}
|
|
|
|
|
+.fxc_left_ch1{ position: absolute; top: 0; left: 0; right: 0; bottom: 0;}
|
|
|
|
|
+.fxc_left_ch2{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch;}
|
|
|
|
|
+.fxc_left_ch2 div{ height: 100%; width: 100%; position: relative;}
|
|
|
|
|
+.fxc_left_cline{ width: 21.8vw; height: 1px; background: #0653AF; margin: auto;}
|
|
|
|
|
+
|
|
|
</style>
|
|
</style>
|