zhaowei
12 小时以前 d7d5760fba228083cec7bc3323266f298ef4b4dc
倍率报表页面日期范围调整为一周
已修改1个文件
41 ■■■■■ 文件已修改
src/views/mdc/base/modules/MagnificationReport/MagnificationReportList.vue 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/MagnificationReport/MagnificationReportList.vue
@@ -121,48 +121,13 @@
    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'
        }
@@ -320,7 +285,7 @@
            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
@@ -358,7 +323,7 @@
      },
      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')