| | |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="箱体编码" align="center" width="200" prop="sfcCode"></el-table-column> |
| | | <el-table-column label="工位" align="center" prop="locationCode"></el-table-column> |
| | | <el-table-column label="参数编码" align="center" prop="paramCode"></el-table-column> |
| | | <el-table-column label="参数名称" align="center" prop="paramName"></el-table-column> |
| | | <el-table-column label="参数编码" align="center" prop="paramCode"></el-table-column> |
| | | <el-table-column label="参数值" align="center" prop="paramValue"></el-table-column> |
| | | <el-table-column label="单位" align="center" prop="unit"></el-table-column> |
| | | <el-table-column label="结果" align="center" prop="state"></el-table-column> |
| | | <el-table-column label="采集时间" align="center" prop="collectionTime" width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.collectionTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" align="center" prop="state"></el-table-column> |
| | | <el-table-column label="单位" align="center" prop="unit"></el-table-column> |
| | | </el-table> |
| | | <el-empty v-else> |
| | | <span slot="description">暂无数据</span> |
| | |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }, |
| | | class: 'custom-shortcut' // 添加class属性 |
| | | }, { |
| | | text: '最近一个月', |
| | | onClick(picker) { |
| | |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }, |
| | | class: 'custom-shortcut' // 添加class属性 |
| | | }, { |
| | | text: '最近三个月', |
| | | onClick(picker) { |
| | |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }, |
| | | }] |
| | | }, |
| | | } |
| | |
| | | ::v-deep .el-card__body{ |
| | | padding: 15px 20px 0px 20px; |
| | | } |
| | | |
| | | /* 添加其他样式属性 */ |
| | | </style> |