| | |
| | | <div class="page-title"> |
| | | |
| | | <div style="position: relative"> |
| | | <img src="../../../assets/image/logo.jpg"> |
| | | <img src="@/assets/logo-yt.png"> |
| | | <span style="cursor: pointer" |
| | | @dblclick="modalVisible=true">{{isFakeData?fakeData.title:'一拖大拖装配厂'}}</span> |
| | | </div> |
| | |
| | | |
| | | <div class="switch-container"> |
| | | <div class="switch-item" v-for="(item,index) in switchList" :key="index" @click="navigateToOthers(item,index)" |
| | | :style="{backgroundColor:activeIndex===index?'#848284':'#6B6D6B',color:activeIndex==index?'#27A2DB':'#000'}"> |
| | | {{item.label}} |
| | | :style="{color:activeIndex==index?'#27A2DB':'#000'}"> |
| | | <img src="@/assets/navigateImg.png"> |
| | | <span>{{item.label}}</span> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | this.leftColChart1Data = [ |
| | | { |
| | | 'name': '产品合格率', |
| | | 'count': res.result.passRate ? res.result.passRate : 0 |
| | | 'count': res.result.passRate ? res.result.passRate / 100 : 0 |
| | | }, |
| | | { |
| | | 'name': '设备利用率', |
| | | 'count': res.result.utilizationRate ? res.result.utilizationRate : 0 |
| | | 'count': res.result.utilizationRate ? res.result.utilizationRate / 100 : 0 |
| | | }, |
| | | { |
| | | 'name': '计划完成率', |
| | | 'count': res.result.planCompleteRate ? res.result.planCompleteRate : 0 |
| | | 'count': res.result.planCompleteRate ? res.result.planCompleteRate / 100 : 0 |
| | | } |
| | | ] |
| | | this.drawLeftColChart1() |
| | |
| | | } |
| | | }, |
| | | |
| | | |
| | | /** |
| | | * 窗口尺寸变化时触发 |
| | | * 调整图表尺寸以适应分辨率 |
| | |
| | | text-align: center; |
| | | |
| | | img { |
| | | height: 100%; |
| | | width: 10%; |
| | | position: absolute; |
| | | width: 12%; |
| | | left: 12%; |
| | | } |
| | | } |
| | |
| | | flex: 1; |
| | | text-align: center; |
| | | cursor: pointer; |
| | | position: relative; |
| | | |
| | | span { |
| | | position: relative; |
| | | z-index: 1; |
| | | } |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .page-description { |
| | | text-align: center; |
| | | color: #fff; |
| | | font-size: 14px; |
| | | font-size: 0.7vw; |
| | | } |
| | | } |
| | | |