| | |
| | | props: { nodeTree: '', Type: '', nodePeople: '' }, |
| | | data() { |
| | | return { |
| | | disableMixinCreated: true, |
| | | tableHeads: [], |
| | | dataList: [], |
| | | spinning: false, |
| | | /* 分页参数 */ |
| | | queryParam: {}, |
| | | dates: [moment().subtract(1, 'day').startOf('day'), moment().subtract(1, 'day').endOf('day')], |
| | | dates: [moment().subtract(7, 'day').startOf('day'), moment().subtract(1, 'day').endOf('day')], |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: '设备编号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId', |
| | | width: 300 |
| | | }, |
| | | { |
| | | title: '主轴倍率平均值', |
| | | align: 'center', |
| | | dataIndex: 'spindlebeilv' |
| | | }, |
| | | { |
| | | title: '进给倍率平均值', |
| | | align: 'center', |
| | | dataIndex: 'feedbeilv' |
| | | }, |
| | | { |
| | | title: '日期', |
| | | align: 'center', |
| | | dataIndex: 'theDate', |
| | | width: 300 |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/mdc/magnification/beilvList' |
| | | } |
| | |
| | | list[k][field + 'span'] = 1 |
| | | list[k][field + 'dis'] = false |
| | | for (var i = k + 1; i <= list.length - 1; i++) { |
| | | if (list[k][field] == list[i][field] && list[k][field] != '') { |
| | | if (list[k][field] === list[i][field] && list[k][field] !== '') { |
| | | list[k][field + 'span']++ |
| | | list[k][field + 'dis'] = false |
| | | list[i][field + 'span'] = 1 |
| | |
| | | }, |
| | | |
| | | searchReset() { |
| | | this.dates = [moment().subtract(1, 'day').startOf('day'), moment().subtract(1, 'day').endOf('day')] |
| | | this.dates = [moment().subtract(7, 'day').startOf('day'), moment().subtract(1, 'day').endOf('day')] |
| | | this.queryParam = { |
| | | startTime: moment(this.dates[0]).format('YYYY-MM-DD'), |
| | | endTime: moment(this.dates[1]).format('YYYY-MM-DD') |