Commit b9c7f8ab by 匡雅琴

提交

1 parent 7f757649
...@@ -35,8 +35,6 @@ export default { ...@@ -35,8 +35,6 @@ export default {
}, },
methods: { methods: {
drawBarLine() { drawBarLine() {
console.log(this.xAxisData);
console.log(this.dataList);
this.barLineOptions = { this.barLineOptions = {
xAxis: { xAxis: {
type: 'category', type: 'category',
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
console.log(this.list); console.log(this.list);
// 指定图表的配置项和数据 // 指定图表的配置项和数据
var storedList = this.list; var storedList = this.list;
const pointerData = this.list.length ? this.list[0].alarmLevel : 0 const pointerData = this.list.length ? this.list[0].value : 0
this.option = { this.option = {
backgroundColor: "", backgroundColor: "",
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
if (!storedList.length) { if (!storedList.length) {
return `{无警情<br/>无风险}`; return `{无警情<br/>无风险}`;
} else { } else {
return `${storedList[0].alarmLevel}级警情`; return `${storedList[0].alarmLevel / 1}级警情`;
} }
}, },
textStyle: { textStyle: {
......
...@@ -506,6 +506,7 @@ MapService.prototype = { ...@@ -506,6 +506,7 @@ MapService.prototype = {
riskBtn.classList.add('resident_btn_hidden'); riskBtn.classList.add('resident_btn_hidden');
} }
riskBtn.onclick = function() { riskBtn.onclick = function() {
console.log(info);
queryCode = `vehicleId=${info.vidCode}` queryCode = `vehicleId=${info.vidCode}`
mapService.openPage(`#/monitor/alarmAnalysis?${queryCode}`) mapService.openPage(`#/monitor/alarmAnalysis?${queryCode}`)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!