src/views/mdc/base/modules/OEEAnalysis/ComputeOeeModal.vue
@@ -6,7 +6,7 @@
        <a-row>
          <a-col :span="24">
            <a-form-model-item label="日期">
              <a-range-picker v-model="dates" style="width: 100%" value-format="YYYY-MM-DD"
              <a-range-picker v-model="dates" :disabledDate="disabledDate" style="width: 100%" value-format="YYYY-MM-DD"
                              @change="dateParamChange"></a-range-picker>
            </a-form-model-item>
          </a-col>
@@ -18,6 +18,7 @@
<script>
  import mdcApi from '@/api/mdc'
  import moment from 'moment'
  export default {
    name: 'ComputeOeeModal',
@@ -82,6 +83,11 @@
        this.model.endTime = value2[1]
      },
      disabledDate(current) {
        // 不能选择当天及当天以后的日期
        return current && current > moment().startOf('days')
      },
      handleModalClose() {
        this.visible = false
        this.model = {}