|
|
@ -1,6 +1,12 @@ |
|
|
|
<template> |
|
|
|
<div v-loading="loading"> |
|
|
|
<div :id="idName" ref="yanyaRef" :style="{ height: height, width: width }" /> |
|
|
|
<div v-if="this.chartData.length" :id="idName" ref="yanyaRef" :style="{ height: height, width: width }" /> |
|
|
|
<div |
|
|
|
v-else |
|
|
|
style="height: 100%;background: #fff;display: flex;align-items: center;justify-content: center" |
|
|
|
> |
|
|
|
<img src="@/assets/img/nodata.png" alt=""> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -59,8 +65,8 @@ export default { |
|
|
|
if (this.chartData && this.chartData.length > 0) { |
|
|
|
this.disabled = false |
|
|
|
this.chartData.forEach(item => { |
|
|
|
item.osIol = item.osIol.replace('mm', '') |
|
|
|
item.odIol = item.odIol.replace('mm', '') |
|
|
|
item.osIol = item.osIol && item.osIol.replace('mm', '') |
|
|
|
item.odIol = item.odIol && item.odIol.replace('mm', '') |
|
|
|
this.date.push(moment(item.examTime).format('l')) |
|
|
|
this.typeList.OD.push([item.examTime, item.odIol]) |
|
|
|
this.legendData[0] = 'OD' |
|
|
|