zhaowei
2025-04-28 92c8ebd688d55cdd803992061ff09ad9e92d18bc
OEE计算新增loading等待提示以及计算OEE后刷新OEE表格功能
已修改2个文件
18 ■■■■ 文件已修改
src/views/mdc/base/modules/OEEAnalysis/ComputeOeeModal.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/OEEAnalysis/ComputeOeeModal.vue
@@ -1,6 +1,7 @@
<template>
  <a-modal title="计算OEE" :visible="visible" :width="550" @cancel="handleModalClose" @ok="handleComputeOee"
           :maskClosable="false">
  <j-modal title="计算OEE" :visible="visible" :width="550" @cancel="handleModalClose" @ok="handleComputeOee"
           :maskClosable="false" :confirmLoading="confirmLoading">
    <a-spin :spinning="confirmLoading">
    <a-form-model :model="model" :labelCol="labelColLong" :wrapperCol="wrapperColLong">
      <a-row>
        <a-col :span="24">
@@ -11,7 +12,8 @@
        </a-col>
      </a-row>
    </a-form-model>
  </a-modal>
    </a-spin>
  </j-modal>
</template>
<script>
@@ -23,6 +25,7 @@
    data() {
      return {
        visible: false,
        confirmLoading: false,
        model: {},
        dates: [],
        labelColLong: {
@@ -46,6 +49,7 @@
          return
        }
        this.confirmLoading = true
        mdcApi.computeOeeApi(this.model)
          .then(res => {
            if (res.success) {
@@ -53,7 +57,8 @@
                message: '消息',
                description: res.message
              })
              this.visible = false
              this.$emit('ok')
              this.handleModalClose()
            } else {
              this.$notification.error({
                message: '消息',
@@ -67,6 +72,9 @@
              description: '计算失败'
            })
          })
          .finally(() => {
            this.confirmLoading = false
          })
      },
      dateParamChange(value1, value2) {
src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue
@@ -49,7 +49,7 @@
      </a-table>
    </div>
    <ComputeOeeModal ref="computeOeeModalRef"/>
    <ComputeOeeModal ref="computeOeeModalRef" @ok="modalFormOk"/>
  </div>
</template>