Commit 2f9c2a35 authored by xinzhedeai's avatar xinzhedeai

实时监控

parent 8cbacd6d
......@@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"
......
......@@ -268,3 +268,19 @@ export function wzEvent(query) {
})
}
//微震实时数据下拉
export function microseismequipmentGetName() {
return request({
url: '/business/microseismequipment/getName',
method: 'get',
})
}
//实时曲线接口
export function monBlastingCurve(seneorname) {
return request({
url: '/business/monBlasting/curve',
method: 'get',
params: {seneorname}
})
}
\ No newline at end of file
......@@ -197,6 +197,7 @@ export default {
myChart.resize();
});
myChart.setOption({
backgroundColor: "#fff",
grid: {
x: 30, // 左间距
y: 40, // 上间距
......@@ -213,14 +214,15 @@ export default {
// end: 100//80
// }
// ],
color: ["#2e98eb", "#7B3FF6", "#1F6DFE", "#34A6FE"],
color: ["ff0000","#2e98eb", "#7B3FF6", "#1F6DFE", "#34A6FE"],
title: {
text: "通道" + item[i].blasting_id,
left: 15,
bottom: 5,
top: 5,
textStyle: {
color: "#06e7f6",
// color: "#06e7f6",
color: "#000",
fontSize: 16,
},
},
......@@ -251,7 +253,8 @@ export default {
{
type: "value", // 坐标轴类型, 'value' 数值轴,适用于连续数据
nameTextStyle: {
color: "#fff",
// color: "#fff",
color: "#000",
},
scale: true,
min: (value) => {
......@@ -278,7 +281,7 @@ export default {
},
axisLabel: {
show: true, // 是否显示刻度标签 默认显示
color: "#fff", // 刻度标签文字的颜色
color: "#000", // 刻度标签文字的颜色
fontSize: 12, // 文字的字体大小
margin: 10, // 刻度标签与轴线之间的距离 默认值 8
formatter: "{value}",
......@@ -290,6 +293,7 @@ export default {
data: item[i].blasting_value,
type: "line",
showSymbol: false,
color:"#ff0000"
},
],
});
......
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