| | |
| | | <template> |
| | | <view> |
| | | <u-grid :col="3" @click="gotoPage" border> |
| | | <u-grid-item v-for="item in grid" :index="item[0]"> |
| | | <u-grid-item v-for="item in grid" :index="item[0]" class="grid-box"> |
| | | <u-icon name="play-right-fill" :size="46" color="#FF8000"></u-icon> |
| | | <view class="grid-text">{{item.name}}</view> |
| | | </u-grid-item> |
| | |
| | | data() { |
| | | return { |
| | | grid: [], |
| | | filter: [{ |
| | | name: '巡检检验', |
| | | src: '/pages/inspection/inspectionList', |
| | | icon:'' |
| | | }] |
| | | filter: [ |
| | | { |
| | | name: '巡检检验', |
| | | src: '/pages/inspection/inspectionList', |
| | | icon:'' |
| | | }, |
| | | { |
| | | name: '首检检验', |
| | | src: '/pages/inspection/firstInspectionList', |
| | | icon:'' |
| | | }, |
| | | { |
| | | name :'机台报工', |
| | | src:'/pages/work_reporting/work_reporting', |
| | | icon:'' |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | this.grid.push(item) |
| | | } |
| | | } |
| | | console.log(this.grid); |
| | | }) |
| | | }, |
| | | methods: { |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | .grid-box{ |
| | | border-bottom: 1upx solid #dadbde; |
| | | border-right: 1upx solid #dadbde; |
| | | background-color: #f1f2f4; |
| | | height: 100upx; |
| | | } |
| | | </style> |