diff --git a/src/views/iot/ota/index.vue b/src/views/iot/ota/index.vue index f3a4c9aa..ceb700a8 100644 --- a/src/views/iot/ota/index.vue +++ b/src/views/iot/ota/index.vue @@ -449,11 +449,11 @@ export default { }, methods: { chenking_otaVersion(rule, value, callback){ - const regex = /^(\d{1,3}\.){3}\d{1,3}$/; + const regex = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/; if (!this.form.otaVersion) { callback(new Error('版本不能为空')) } else if(!regex.test(this.form.otaVersion)) { - callback(new Error('版本格式不正确: x.x.x.x (如: 0~999.0~999.0~999.0~999)')) + callback(new Error('版本格式不正确: x.x.x.x (如: 0~255.0~255.0~255.0~255)')) } else { callback(); } diff --git a/src/views/personal/device/profile/info.vue b/src/views/personal/device/profile/info.vue index dc6199bd..6ca34365 100644 --- a/src/views/personal/device/profile/info.vue +++ b/src/views/personal/device/profile/info.vue @@ -120,7 +120,11 @@
-
+
+
固件版本
+
{{ infoData.otaVersion || "--" }}
+
+
设备图片
--
diff --git a/src/views/profile/DeviceDetailsView/info.vue b/src/views/profile/DeviceDetailsView/info.vue index 06d36d12..64f703c6 100644 --- a/src/views/profile/DeviceDetailsView/info.vue +++ b/src/views/profile/DeviceDetailsView/info.vue @@ -193,7 +193,11 @@
-
+
+
固件版本
+
{{ infoData.otaVersion || "--" }}
+
+
设备图片
--
diff --git a/src/views/tenant/device/profile/info.vue b/src/views/tenant/device/profile/info.vue index 79b8e9c9..1a41a3fd 100644 --- a/src/views/tenant/device/profile/info.vue +++ b/src/views/tenant/device/profile/info.vue @@ -14,7 +14,7 @@
-
deviceKey
+
设备Key
{{infoData.deviceKey}} 复制 @@ -117,7 +117,11 @@
-
+
+
固件版本
+
{{ infoData.otaVersion || "--" }}
+
+
设备图片
--