riku
2026-04-02 3282e95db0207ee133d1e98d9771dec9d83b0fc4
pages/inspection/scene/util.wxs
@@ -1,30 +1,12 @@
module.exports = {
  // 设备运行状态
  runningStatus: function (s) {
    switch (parseInt(s)) {
      case 0:
        return '未联网';
      case 1:
        return '上线中';
      case 2:
        return '已下线';
      case 3:
      default:
        return '已拆除';
  // 设备信息更新时间样式
  updateTimeStyle: function (month) {
    if (month >= 3) {
      return 'type-error'
    } else if (month >= 2){
      return 'type-warning'
    } else {
      return 'type-success'
    }
  },
  // 设备类型
  runningStatus: function (s) {
    switch (parseInt(s)) {
      case 0:
        return '未联网';
      case 1:
        return '上线中';
      case 2:
        return '已下线';
      case 3:
      default:
        return '已拆除';
    }
  },
  }
};