feb56f72 by zhangmeng

看板

1 parent 980e109f
......@@ -219,8 +219,8 @@ let color1 = {
type: 'linear',
x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
colorStops: [
{offset: 0, color: 'rgba(0, 162, 255, .3)'}, // 顶部颜色
{offset: 1, color: 'rgba(34, 117, 255, .3)'} // 底部颜色
{offset: 0, color: 'rgba(0, 162, 255, .4)'}, // 顶部颜色
{offset: 1, color: 'rgba(34, 117, 255, .4)'} // 底部颜色
],
},
}
......@@ -240,7 +240,7 @@ let color3 = {
x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
colorStops: [
{offset: 0, color: 'rgba(0, 255, 190, .5)'}, // 顶部颜色
{offset: 1, color: 'rgba(8, 130, 160, .3)'} // 底部颜色
{offset: 1, color: 'rgba(8, 130, 160, .4)'} // 底部颜色
],
},
}
......@@ -301,7 +301,10 @@ async function handelGetYS007() {
})
arr3.push(val.EXERATIO)
}
setA(list7Y.value, arr1, arr2, arr3)
const firstAbove = list7Y.value.find(v => v.name >= 90);
setA(list7Y.value, arr1, arr2, arr3, firstAbove.value)
}
......@@ -330,7 +333,10 @@ function handelSelect7() {
})
arr3.push(val.EXERATIO)
}
setA(list7Y.value, arr1, arr2, arr3)
const firstAbove = list7Y.value.find(v => v.name >= 90);
setA(list7Y.value, arr1, arr2, arr3, firstAbove.value)
}
async function handelGetYS008() {
......@@ -415,8 +421,8 @@ const getA = () => {
}
const setA = (arrY, arr1, arr2, arr3) => {
console.log(arr1, arr2)
const setA = (arrY, arr1, arr2, arr3, markLineName) => {
// console.log(arr1, arr2)
chartA = echarts.init(zhuRef.value)
const option = {
......@@ -573,7 +579,7 @@ const setA = (arrY, arr1, arr2, arr3) => {
data: [
{
name: '',
yAxis: 4, // 在Y轴150的位置画垂直线
yAxis: markLineName, // 在Y轴150的位置画垂直线
lineStyle: {
color: 'rgba(255, 252, 40, 1)',
type: 'dashed',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!