feb56f72 by zhangmeng

看板

1 parent 980e109f
...@@ -219,8 +219,8 @@ let color1 = { ...@@ -219,8 +219,8 @@ let color1 = {
219 type: 'linear', 219 type: 'linear',
220 x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变 220 x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
221 colorStops: [ 221 colorStops: [
222 {offset: 0, color: 'rgba(0, 162, 255, .3)'}, // 顶部颜色 222 {offset: 0, color: 'rgba(0, 162, 255, .4)'}, // 顶部颜色
223 {offset: 1, color: 'rgba(34, 117, 255, .3)'} // 底部颜色 223 {offset: 1, color: 'rgba(34, 117, 255, .4)'} // 底部颜色
224 ], 224 ],
225 }, 225 },
226 } 226 }
...@@ -240,7 +240,7 @@ let color3 = { ...@@ -240,7 +240,7 @@ let color3 = {
240 x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变 240 x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
241 colorStops: [ 241 colorStops: [
242 {offset: 0, color: 'rgba(0, 255, 190, .5)'}, // 顶部颜色 242 {offset: 0, color: 'rgba(0, 255, 190, .5)'}, // 顶部颜色
243 {offset: 1, color: 'rgba(8, 130, 160, .3)'} // 底部颜色 243 {offset: 1, color: 'rgba(8, 130, 160, .4)'} // 底部颜色
244 ], 244 ],
245 }, 245 },
246 } 246 }
...@@ -301,7 +301,10 @@ async function handelGetYS007() { ...@@ -301,7 +301,10 @@ async function handelGetYS007() {
301 }) 301 })
302 arr3.push(val.EXERATIO) 302 arr3.push(val.EXERATIO)
303 } 303 }
304 setA(list7Y.value, arr1, arr2, arr3) 304
305
306 const firstAbove = list7Y.value.find(v => v.name >= 90);
307 setA(list7Y.value, arr1, arr2, arr3, firstAbove.value)
305 308
306 } 309 }
307 310
...@@ -330,7 +333,10 @@ function handelSelect7() { ...@@ -330,7 +333,10 @@ function handelSelect7() {
330 }) 333 })
331 arr3.push(val.EXERATIO) 334 arr3.push(val.EXERATIO)
332 } 335 }
333 setA(list7Y.value, arr1, arr2, arr3) 336 const firstAbove = list7Y.value.find(v => v.name >= 90);
337
338
339 setA(list7Y.value, arr1, arr2, arr3, firstAbove.value)
334 } 340 }
335 341
336 async function handelGetYS008() { 342 async function handelGetYS008() {
...@@ -415,8 +421,8 @@ const getA = () => { ...@@ -415,8 +421,8 @@ const getA = () => {
415 } 421 }
416 422
417 423
418 const setA = (arrY, arr1, arr2, arr3) => { 424 const setA = (arrY, arr1, arr2, arr3, markLineName) => {
419 console.log(arr1, arr2) 425 // console.log(arr1, arr2)
420 426
421 chartA = echarts.init(zhuRef.value) 427 chartA = echarts.init(zhuRef.value)
422 const option = { 428 const option = {
...@@ -573,7 +579,7 @@ const setA = (arrY, arr1, arr2, arr3) => { ...@@ -573,7 +579,7 @@ const setA = (arrY, arr1, arr2, arr3) => {
573 data: [ 579 data: [
574 { 580 {
575 name: '', 581 name: '',
576 yAxis: 4, // 在Y轴150的位置画垂直线 582 yAxis: markLineName, // 在Y轴150的位置画垂直线
577 lineStyle: { 583 lineStyle: {
578 color: 'rgba(255, 252, 40, 1)', 584 color: 'rgba(255, 252, 40, 1)',
579 type: 'dashed', 585 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!