Commit 4f6f2b5d authored by zhangjianqian's avatar zhangjianqian

Merge remote-tracking branch 'origin/master'

parents 656e77f1 686885e7
...@@ -303,51 +303,46 @@ public class TDetectorReportController extends BaseController ...@@ -303,51 +303,46 @@ public class TDetectorReportController extends BaseController
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation(value = "泽宏报警器更新数据推送接口") // @ApiOperation(value = "泽宏报警器更新数据推送接口")
@PostMapping("/reportZHDeviceStatus") // @PostMapping("/reportZHDeviceStatus")
public AjaxResult reportZHDeviceStatus(@RequestBody List<TDetectorInfoDTO> tDetectorInfoDTOList){ // public AjaxResult reportZHDeviceStatus(@RequestBody List<TDetectorInfoDTO> tDetectorInfoDTOList){
//
log.info(tDetectorInfoDTOList.toString()); // log.info(tDetectorInfoDTOList.toString());
//
List<TDetectorInfo> list = new ArrayList<>(); // List<TDetectorInfo> list = new ArrayList<>();
//
try { // try {
for(TDetectorInfoDTO dto : tDetectorInfoDTOList){ // for(TDetectorInfoDTO dto : tDetectorInfoDTOList){
TDetectorInfo tDetectorInfo = new TDetectorInfo(); // TDetectorInfo tDetectorInfo = new TDetectorInfo();
tDetectorInfo.setDetectorCode(dto.getDeviceCode()); // tDetectorInfo.setDetectorCode(dto.getDeviceCode());
//
// 1探测器 // // 1探测器
if(!StringUtils.isEmpty(dto.getDeviceType()) && dto.getDeviceType().equals("1")) { // if(!StringUtils.isEmpty(dto.getDeviceType()) && dto.getDeviceType().equals("1")) {
if (!StringUtils.isEmpty(dto.getDeviceStatus()) && dto.getDeviceStatus().equals("1")) { // if (!StringUtils.isEmpty(dto.getDeviceStatus()) && dto.getDeviceStatus().equals("1")) {
tDetectorInfo.setDetectorStatus("0"); // tDetectorInfo.setDetectorStatus("0");
tDetectorInfo.setAlarmTime(null);
} else if (new ArrayList<String>(Arrays.asList("7", "9")).contains(dto.getDeviceStatus())) {
tDetectorInfo.setDetectorStatus("1");
tDetectorInfo.setAlarmTime(dto.getAlarmTime());
} else {
tDetectorInfo.setDetectorStatus("2");
tDetectorInfo.setAlarmTime(dto.getAlarmTime());
}
tDetectorInfo.setUpdateTime(new Date());
}
// else{
// if(!StringUtils.isEmpty(dto.getDetectorStatus()) && dto.getDetectorStatus().equals("0")){
// tDetectorInfo.setAlarmTime(null); // tDetectorInfo.setAlarmTime(null);
// } else if (new ArrayList<String>(Arrays.asList("7", "9")).contains(dto.getDeviceStatus())) {
// tDetectorInfo.setDetectorStatus("1");
// tDetectorInfo.setAlarmTime(dto.getAlarmTime());
// } else {
// tDetectorInfo.setDetectorStatus("2");
// tDetectorInfo.setAlarmTime(dto.getAlarmTime());
// } // }
// tDetectorInfo.setUpdateTime(new Date());
// } // }
//
list.add(tDetectorInfo); // list.add(tDetectorInfo);
} // }
//
tDetectorInfoService.updateBatch(list); // tDetectorInfoService.updateBatch(list);
} catch (Exception e) { // } catch (Exception e) {
e.printStackTrace(); // e.printStackTrace();
log.error("【泽宏设备状态】操作出错,error={}",e.getMessage()); // log.error("【泽宏设备状态】操作出错,error={}",e.getMessage());
throw new IOCException(ResultEnum.OPERATION_FAIL); // throw new IOCException(ResultEnum.OPERATION_FAIL);
} // }
//
return AjaxResult.success(); // return AjaxResult.success();
} // }
@ApiOperation(value = "泽宏设备预警数据推送接口") @ApiOperation(value = "泽宏设备预警数据推送接口")
@PostMapping("/reportZHDeviceAlarmData") @PostMapping("/reportZHDeviceAlarmData")
......
...@@ -112,16 +112,16 @@ export default { ...@@ -112,16 +112,16 @@ export default {
visible: true, visible: true,
addStartNum: 3, addStartNum: 3,
filterList: [ filterList: [
{ value: "全部", count: 100, state: "all" }, { value: "全部", count: 17, state: "all" },
{ value: "正常", count: 100, state: 1 }, { value: "正常", count: 16, state: 1 },
{ value: "报警", count: 100, state: 2 }, { value: "报警", count: 0, state: 2 },
{ value: "离线", count: 100, state: 3 }, { value: "离线", count: 1, state: 3 },
], ],
typeState: ["正常", "报警", "离线"], typeState: ["正常", "报警", "离线"],
deviceTypeArr: [1, 2, 3], deviceTypeArr: [1, 2, 3],
czList: [ czList: [
{ {
companyName: "河北泽宏股份储罐", companyName: "中诚燃气门站储罐1",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -133,8 +133,8 @@ export default { ...@@ -133,8 +133,8 @@ export default {
popoVidible: true, popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "中诚燃气门站储罐2",
state: 2, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -142,11 +142,11 @@ export default { ...@@ -142,11 +142,11 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: false, popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "平山中燃气站储罐1",
state: 3, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -154,10 +154,10 @@ export default { ...@@ -154,10 +154,10 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: false, popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "平山中燃气站储罐2",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -166,11 +166,11 @@ export default { ...@@ -166,11 +166,11 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: false, popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "隆和气化站储罐1",
state: 2, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -178,10 +178,11 @@ export default { ...@@ -178,10 +178,11 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "隆和气化站储罐2",
state: 3, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -189,9 +190,10 @@ export default { ...@@ -189,9 +190,10 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "温塘气化站储罐1",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -200,10 +202,11 @@ export default { ...@@ -200,10 +202,11 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "温塘气化站储罐2",
state: 2, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -211,10 +214,11 @@ export default { ...@@ -211,10 +214,11 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "93701部队气化站储罐1",
state: 3, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -222,9 +226,10 @@ export default { ...@@ -222,9 +226,10 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "93701部队气化站储罐2",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -233,10 +238,71 @@ export default { ...@@ -233,10 +238,71 @@ export default {
e: 56, e: 56,
image: "", image: "",
show: true, show: true,
popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "隆城绿都气化站储罐1",
state: 2, state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "隆城绿都气化站储罐2",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "中诚燃气罐车1",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: false,
},
{
companyName: "中诚燃气罐车2",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: false,
},
{
companyName: "中诚燃气罐车3",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: false,
},
{
companyName: "中诚燃气罐车4",
state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -246,7 +312,7 @@ export default { ...@@ -246,7 +312,7 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份储罐", companyName: "中诚燃气罐车5",
state: 3, state: 3,
a: 25, a: 25,
b: 56, b: 56,
...@@ -465,4 +531,4 @@ $active: #06d7b1 !important; ...@@ -465,4 +531,4 @@ $active: #06d7b1 !important;
.paddingnone { .paddingnone {
padding: 0; padding: 0;
} }
</style> </style>
\ No newline at end of file
...@@ -52,99 +52,135 @@ export default { ...@@ -52,99 +52,135 @@ export default {
carHide: true, carHide: true,
addStartNum: 3, addStartNum: 3,
filterList: [ filterList: [
{ value: "全部", count: 100, type: "all" }, { value: "全部", count: 6, type: "all" },
{ value: "加气站", count: 100, type: 1 }, { value: "加气站", count: 2, type: 1 },
{ value: "门站", count: 100, type: 2 }, { value: "门站", count: 0, type: 2 },
{ value: "调压站", count: 100, type: 3 }, { value: "调压站", count: 0, type: 3 },
{ value: "储备站", count: 100, type: 4 }, { value: "储备站", count: 0, type: 4 },
{ value: "气化站", count: 100, type: 5 }, { value: "气化站", count: 4, type: 5 },
], ],
deviceTypeArr: [1, 2, 3, 4, 5], deviceTypeArr: [1, 2, 3, 4],
czList: [ czList: [
{ {
deviceName: "加气站", deviceName: "中诚燃气门站",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
d: 15, d: 15,
e: 56, // e: 56,
image: "", image: "",
show: true, show: true,
type: 1, type: 1,
}, },
{ {
deviceName: "门站", deviceName: "平山中燃气站",
state: 2,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
type: 2,
},
{
deviceName: "调压站",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
d: 15, d: 15,
e: 56, // e: 56,
image: "", image: "",
show: true, show: true,
type: 3, type: 1,
}, },
// {
// deviceName: "门站",
// state: 2,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 2,
// },
// {
// deviceName: "调压站",
// state: 1,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 3,
// },
// {
// deviceName: "储备站",
// state: 1,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 4,
// },
{ {
deviceName: "储备站", deviceName: "隆和气化站",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
d: 15, d: 15,
e: 56, // e: 56,
image: "", image: "",
show: true, show: true,
type: 4, type: 5,
}, },
{ {
deviceName: "气化站", deviceName: "温塘气化站",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
d: 15, d: 15,
e: 56, // e: 56,
image: "", image: "",
show: true, show: true,
type: 5, type: 5,
}, },
{ {
deviceName: "气化站", deviceName: "93701部队气化站",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
d: 15, d: 15,
e: 56, // e: 56,
image: "", image: "",
show: true, show: true,
type: 5, type: 5,
}, },
{ {
deviceName: "储备站", deviceName: "隆城绿都气化站",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
d: 15, d: 15,
e: 56, // e: 56,
image: "", image: "",
show: true, show: true,
type: 4, type: 5,
}, },
// {
// deviceName: "储备站",
// state: 1,
// a: 25,
// b: 56,
// c: 54,
// d: 15,
// e: 56,
// image: "",
// show: true,
// type: 4,
// },
], ],
}; };
}, },
...@@ -235,4 +271,4 @@ export default { ...@@ -235,4 +271,4 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
</style> </style>
\ No newline at end of file
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
<div> <div>
湿度:<span :class="{ active: list.d > 50 }">{{ list.d }}°C</span> 湿度:<span :class="{ active: list.d > 50 }">{{ list.d }}°C</span>
</div> </div>
<div> <!--<div>
水温:<span :class="{ active: list.e > 50 }">{{ list.e }}°C</span> 水温:<span :class="{ active: list.e > 50 }">{{ list.e }}°C</span>
</div> </div>-->
</div> </div>
</div> </div>
</template> </template>
...@@ -133,4 +133,4 @@ export default { ...@@ -133,4 +133,4 @@ export default {
padding-bottom:0 !important; padding-bottom:0 !important;
min-height:170px; min-height:170px;
} }
</style> </style>
\ No newline at end of file
...@@ -112,16 +112,16 @@ export default { ...@@ -112,16 +112,16 @@ export default {
visible: true, visible: true,
addStartNum: 3, addStartNum: 3,
filterList: [ filterList: [
{ value: "全部", count: 100, state: "all" }, { value: "全部", count: 20, state: "all" },
{ value: "正常", count: 100, state: 1 }, { value: "正常", count: 20, state: 1 },
{ value: "报警", count: 100, state: 2 }, { value: "报警", count: 0, state: 2 },
{ value: "离线", count: 100, state: 3 }, { value: "离线", count: 0, state: 3 },
], ],
typeState: ["正常", "报警", "离线"], typeState: ["正常", "报警", "离线"],
deviceTypeArr: [1, 2, 3], deviceTypeArr: [1, 2, 3],
czList: [ czList: [
{ {
companyName: "河北泽宏股份阀门井", companyName: "恒盛小区门口",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -133,8 +133,104 @@ export default { ...@@ -133,8 +133,104 @@ export default {
popoVidible: true, popoVidible: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "建安小区阀门井",
state: 2, state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "金辉花园4号阀门井",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "金水家园1号阀门井",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "上东区阀门井",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "圣地汇金港3号楼阀门井",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "圣地汇金港9号楼阀门井",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "舒房静居1期阀门井",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "舒房静居2期阀门井",
state: 1,
a: 25,
b: 56,
c: 54,
d: 15,
e: 56,
image: "",
show: true,
popoVidible: true,
},
{
companyName: "文昌苑小区阀门井",
state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -145,8 +241,8 @@ export default { ...@@ -145,8 +241,8 @@ export default {
popoVidible: false, popoVidible: false,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "花城小区阀门井",
state: 3, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -157,7 +253,7 @@ export default { ...@@ -157,7 +253,7 @@ export default {
popoVidible: false, popoVidible: false,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "御景国际阀门井",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -169,8 +265,8 @@ export default { ...@@ -169,8 +265,8 @@ export default {
popoVidible: false, popoVidible: false,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "龙博园小区阀门井",
state: 2, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -180,8 +276,8 @@ export default { ...@@ -180,8 +276,8 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "隆城绿都阀门井",
state: 3, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -191,7 +287,7 @@ export default { ...@@ -191,7 +287,7 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "隆和大酒店阀门井",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -202,8 +298,8 @@ export default { ...@@ -202,8 +298,8 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "西石桥阀门井",
state: 2, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -213,8 +309,8 @@ export default { ...@@ -213,8 +309,8 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "烟堡村1号阀门井",
state: 3, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -224,7 +320,7 @@ export default { ...@@ -224,7 +320,7 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "烟堡村2号阀门井",
state: 1, state: 1,
a: 25, a: 25,
b: 56, b: 56,
...@@ -235,8 +331,8 @@ export default { ...@@ -235,8 +331,8 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "烟堡村3号阀门井",
state: 2, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -246,8 +342,8 @@ export default { ...@@ -246,8 +342,8 @@ export default {
show: true, show: true,
}, },
{ {
companyName: "河北泽宏股份阀门井", companyName: "烟堡村4号阀门井",
state: 3, state: 1,
a: 25, a: 25,
b: 56, b: 56,
c: 54, c: 54,
...@@ -466,4 +562,4 @@ $active: #06d7b1 !important; ...@@ -466,4 +562,4 @@ $active: #06d7b1 !important;
.paddingnone { .paddingnone {
padding: 0; padding: 0;
} }
</style> </style>
\ No newline at end of file
...@@ -42,16 +42,22 @@ ...@@ -42,16 +42,22 @@
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="first">1234</div> <div class="first" v-if="index != 2">8</div>
<div class="first" v-if="index == 2">1238</div>
<!-- 2是探测器,探测器只有报警,没有高低报 --> <!-- 2是探测器,探测器只有报警,没有高低报 -->
<template v-if="index != 2"> <template v-if="index == 0">
<div>123321</div> <div>2</div>
<div>12321</div> <div>1</div>
</template> </template>
<template v-else> <template v-if="index == 1">
<div>12312</div> <div>0</div>
<div>0</div>
</template>
<template v-if="index == 2">
<div>0</div>
</template> </template>
<div class="last">534534</div> <div class="last" v-if="index != 1">0</div>
<div class="last" v-if="index == 1">1</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -152,4 +158,4 @@ export default { ...@@ -152,4 +158,4 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
</style> </style>
\ No newline at end of file
...@@ -34,9 +34,9 @@ export default { ...@@ -34,9 +34,9 @@ export default {
data() { data() {
return { return {
cardList: [ cardList: [
{ deviceName: "压力表", count: 123123 }, { deviceName: "压力表", count: 11 },
{ deviceName: "流量计", count: 123123 }, { deviceName: "流量计", count: 9 },
{ deviceName: "探测器", count: 123123 }, { deviceName: "探测器", count: 1238 },
], ],
deviceIconList: ["ylb", "llj", "tcq"], deviceIconList: ["ylb", "llj", "tcq"],
}; };
...@@ -50,4 +50,4 @@ export default { ...@@ -50,4 +50,4 @@ export default {
padding: 20px; padding: 20px;
padding-right: 50px; padding-right: 50px;
} }
</style> </style>
\ No newline at end of file
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:25:12 * @LastEditTime: 2022-04-28 13:34:42
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -79,6 +79,8 @@ export default { ...@@ -79,6 +79,8 @@ export default {
this.options = { this.options = {
color: colors, color: colors,
tooltip: { tooltip: {
// show:false,
formatter: "{a}: {c}(件)",
// trigger: "axis", // trigger: "axis",
// axisPointer: { // axisPointer: {
// type: "cross", // type: "cross",
...@@ -144,7 +146,7 @@ export default { ...@@ -144,7 +146,7 @@ export default {
], ],
series: [ series: [
{ {
name: "Evaporation", name: "隐患数量",
type: "bar", type: "bar",
data: this.charData[0], data: this.charData[0],
yAxisIndex: 0, yAxisIndex: 0,
...@@ -158,7 +160,7 @@ export default { ...@@ -158,7 +160,7 @@ export default {
barGap: "0%", barGap: "0%",
}, },
{ {
name: "Temperature", name: "已整改",
type: "bar", type: "bar",
data: this.charData[1], data: this.charData[1],
yAxisIndex: 0, yAxisIndex: 0,
...@@ -186,7 +188,6 @@ export default { ...@@ -186,7 +188,6 @@ export default {
font-size: 16px; font-size: 16px;
margin: 22px 0 11px 19px; margin: 22px 0 11px 19px;
font-weight: 600; font-weight: 600;
} }
.btn-wrapper { .btn-wrapper {
display: flex; display: flex;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:24:56 * @LastEditTime: 2022-04-28 13:35:16
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -74,6 +74,8 @@ export default { ...@@ -74,6 +74,8 @@ export default {
// axisPointer: { // axisPointer: {
// type: "cross", // type: "cross",
// }, // },
formatter: "{b}: {c}(个)",
}, },
grid: { grid: {
top: "30", top: "30",
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:25:10 * @LastEditTime: 2022-04-28 13:41:12
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -102,6 +102,14 @@ export default { ...@@ -102,6 +102,14 @@ export default {
rich[`dataIndex${index}`] = item; rich[`dataIndex${index}`] = item;
}); });
this.options = { this.options = {
tooltip: {
// show:false,
formatter: "{b}: {c}(件)",
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
series: { series: {
type: "pie", type: "pie",
radius: ["68%", "80%"], radius: ["68%", "80%"],
...@@ -113,6 +121,7 @@ export default { ...@@ -113,6 +121,7 @@ export default {
borderRadius: 10, borderRadius: 10,
borderColor: "#fff", borderColor: "#fff",
}, },
label: { label: {
alignTo: "edge", alignTo: "edge",
// formatter: "{name|{b}}\n{num|{c} 个}", // formatter: "{name|{b}}\n{num|{c} 个}",
...@@ -145,7 +154,6 @@ export default { ...@@ -145,7 +154,6 @@ export default {
font-size: 16px; font-size: 16px;
margin: 22px 0 11px 19px; margin: 22px 0 11px 19px;
font-weight: 600; font-weight: 600;
} }
.btn-wrapper { .btn-wrapper {
display: flex; display: flex;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-04-19 14:38:28 * @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-21 17:25:21 * @LastEditTime: 2022-04-28 13:40:47
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...@@ -52,13 +52,13 @@ export default { ...@@ -52,13 +52,13 @@ export default {
], ],
}; };
}, },
mounted() { mounted() {
this.bottomOptions(); this.bottomOptions();
}, },
methods: { methods: {
active(index){ active(index) {
return "active"+index return "active" + index;
}, },
btnClick(index) { btnClick(index) {
const ind = this.activeArr.indexOf(index); const ind = this.activeArr.indexOf(index);
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
this.options = { this.options = {
color: colors, color: colors,
tooltip: { tooltip: {
show:false, show: false,
// trigger: "axis", // trigger: "axis",
// axisPointer: { // axisPointer: {
// type: "cross", // type: "cross",
...@@ -94,6 +94,14 @@ export default { ...@@ -94,6 +94,14 @@ export default {
containLabel: true, containLabel: true,
}, },
toolbox: {}, toolbox: {},
tooltip: {
// show:false,
formatter: "{a}: {c}(起)",
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
legend: { legend: {
// data: ['Evaporation', 'Temperature'], // data: ['Evaporation', 'Temperature'],
// left: 'right' // left: 'right'
...@@ -242,6 +250,14 @@ export default { ...@@ -242,6 +250,14 @@ export default {
}, },
barWidth: 6, barWidth: 6,
barGap: "0%", barGap: "0%",
tooltip: {
// show:false,
formatter: "{a}: {c}(个)",
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
}, },
], ],
}; };
...@@ -275,15 +291,15 @@ export default { ...@@ -275,15 +291,15 @@ export default {
// background-color: red; // background-color: red;
// } // }
cursor: pointer; cursor: pointer;
&.active0:hover{ &.active0:hover {
background:#4e9de7 !important; background: #4e9de7 !important;
border-color:#4e9de7; border-color: #4e9de7;
color:#fff color: #fff;
} }
&.active1:hover{ &.active1:hover {
background:#f0cb6d !important; background: #f0cb6d !important;
border-color:#f0cb6d; border-color: #f0cb6d;
color:#fff color: #fff;
} }
} }
} }
......
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