This commit is contained in:
lb
2023-09-25 15:47:39 +08:00
parent 56f209a27e
commit bbbfa9644d
10 changed files with 296 additions and 43 deletions

View File

@@ -25,6 +25,8 @@
</template>
<script>
import moment from 'moment';
export default {
name: 'QualityRecentHours',
components: {},
@@ -62,7 +64,8 @@ export default {
for (const key of Object.keys(hourData).sort()) {
const subprop = {
label: key,
// label: 'key',
label: moment(key).format('YYYY-MM-DD HH:mm:ss'),
children: [
{ prop: key + '__in', label: '进数据' },
{ prop: key + '__out', label: '出数据' },
@@ -85,7 +88,11 @@ export default {
this.list.splice(0);
let rowIndex = 0;
for (const line of list) {
const { productLine, specification, data } = line;
const {
productLine,
specification = [],
data,
} = line;
// 设置span的行数
this.spanInfo[rowIndex] = data.length;