qushaowei
2023-11-21 e9ad171baa8ae05e47fb3698d2f2bc6fd9fc3124
src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderReportList.vue
@@ -101,6 +101,7 @@
  data() {
    return {
      description: '检定报告',
      disableMixinCreated: true,
      columns: [
        {
          title: '#',
@@ -134,11 +135,11 @@
          dataIndex: 'size',
          scopedSlots: { customRender: 'size' },
        },
        {
          title: '判定结果',
          align: 'center',
          dataIndex: 'judgmentResultName'
        },
        // {
        //   title: '判定结果',
        //   align: 'center',
        //   dataIndex: 'judgmentResultName'
        // },
        {
          title: '操作',
          align: 'center',
@@ -153,18 +154,28 @@
        urlDownload: window._CONFIG['staticDomainURL'],
        download: '/sys/upload/downloadFile',
      },
      // partRoute: {},
      // equipmentSelectionRows: [],
      calibrationOrderId: '',
    }
  },
  props: {
    calibrationOrderId: {
      type: String,
      default: '',
      required: false
    }
  },
  watch: {
    calibrationOrderId() {
      this.queryParam = {};
      this.queryParam.calibrationOrderId = this.calibrationOrderId;
      this.loadData(1);
    },
    calibrationOrderId: {
      immediate: true,
      handler(val) {
        if (!this.calibrationOrderId) {
          // this.clearList()
        } else {
          this.queryParam['calibrationOrderId'] = val;
          this.queryParam['delFlag'] = 0;
          this.loadData(1);
        }
      }
    }
  },
  // mounted() {
  //   this.$bus.$on('equipmentSelectionRows', (data) => {