bugfix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user