车间能级提升-智能设备管理系统
refactor(lb-eims):调整代码和更新配置- 注释掉 EimsEquImportVo 中的 @ExcelProperty 注解
- 优化 EimsEquImportListener 中的异常日志输出- 更新 snailjob 监控页面的 iframe 源地址- 修改移动端项目的 API 基础 URL
- 优化移动端页面跳转逻辑
- 改进维修请求列表的接单操作流程
已修改7个文件
37 ■■■■■ 文件已修改
eims-ui-mobile/env/.env 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims-ui-mobile/src/pages/inspect/insp-record.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims-ui-mobile/src/pages/maint/order-detail.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims-ui-mobile/src/pages/repair/req-list.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims-ui/apps/web-antd/src/views/monitor/snailjob/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/domain/vo/EimsEquImportVo.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/listener/EimsEquImportListener.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims-ui-mobile/env/.env
@@ -7,8 +7,8 @@
# h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base
VITE_APP_PUBLIC_BASE=/
VITE_SERVER_BASEURL = 'http://192.168.12.33:8080'
VITE_UPLOAD_BASEURL = 'http://192.168.12.33:8080/resource/oss/upload'
VITE_SERVER_BASEURL = 'http://lanpucloud.cn:8091'
VITE_UPLOAD_BASEURL = 'http://lanpucloud.cn:8091/resource/oss/upload'
# 有些同学可能需要在微信小程序里面根据 develop、trial、release 分别设置上传地址,参考代码如下。
# 下面的变量如果没有设置,会默认使用 VITE_SERVER_BASEURL or VITE_UPLOAD_BASEURL
eims-ui-mobile/src/pages/inspect/insp-record.vue
@@ -269,7 +269,9 @@
        updateData(resolve)
      },
    })
    .then(() => {})
    .then(() => {
      goBack()
    })
    .catch((error) => {
      console.log(error)
    })
eims-ui-mobile/src/pages/maint/order-detail.vue
@@ -204,7 +204,9 @@
        updateOrder(data, resolve)
      },
    })
    .then(() => {})
    .then(() => {
      goBack()
    })
    .catch((error) => {
      console.log(error)
    })
eims-ui-mobile/src/pages/repair/req-list.vue
@@ -120,7 +120,7 @@
            </view>
            <view v-if="isSelectReq">
              <wd-button size="small" icon="edit-outline" @click.stop="handleSelectReq(item)">
                选中
                接单
              </wd-button>
            </view>
          </view>
@@ -263,10 +263,19 @@
 * @param item
 */
function handleSelectReq(item: any) {
  if (isSelectReq.value) {
    emitSelectReq(item)
    uni.navigateBack()
  }
  // 弹出确认是否接单弹窗
  message.confirm({
    msg: '确定接单?',
    title: '提示',
    beforeConfirm: ({ resolve }) => {
      resolve(true)
      // 接单逻辑处理
      if (isSelectReq.value) {
        emitSelectReq(item)
        uni.navigateBack()
      }
    },
  })
}
/**
eims-ui/apps/web-antd/src/views/monitor/snailjob/index.vue
@@ -1,3 +1,3 @@
<template>
  <iframe class="size-full" src="http://localhost:8800/snail-job"></iframe>
  <iframe class="size-full" src="http://lanpucloud.cn:8092/snail-job"></iframe>
</template>
eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/domain/vo/EimsEquImportVo.java
@@ -129,7 +129,7 @@
    /**
     * 附件
     */
    @ExcelProperty(value = "附件")
//    @ExcelProperty(value = "附件")
    private Long attachId;
    /**
eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/listener/EimsEquImportListener.java
@@ -156,7 +156,7 @@
        if (exception instanceof ExcelDataConvertException) {
            ExcelDataConvertException excelDataConvertException = (ExcelDataConvertException) exception;
            log.error("第{}行,第{}列解析异常,数据为:{}", excelDataConvertException.getRowIndex(),
                excelDataConvertException.getColumnIndex(), excelDataConvertException.getCellData());
                excelDataConvertException.getColumnIndex(), excelDataConvertException.getCellData().getData());
        }
    }