From e3f3a1f9a9a073959c49df551e18b894d6c753e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?=
<14103883+leaf-phos@user.noreply.gitee.com>
Date: Tue, 20 May 2025 10:29:12 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9E=8B=E5=8F=B7=E5=9D=90=E5=9E=AB=E9=94=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../HardwareVersion/HardwareVersionSelect.vue | 5 ++++
src/views/bst/device/index.vue | 21 +++++++++++++++-
.../bst/model/components/ModelEditDialog.vue | 25 ++++++++++++-------
src/views/bst/model/index.vue | 12 ++++++---
4 files changed, 49 insertions(+), 14 deletions(-)
diff --git a/src/components/Business/HardwareVersion/HardwareVersionSelect.vue b/src/components/Business/HardwareVersion/HardwareVersionSelect.vue
index 54880d1..54f3c04 100644
--- a/src/components/Business/HardwareVersion/HardwareVersionSelect.vue
+++ b/src/components/Business/HardwareVersion/HardwareVersionSelect.vue
@@ -7,6 +7,7 @@
style="width: 100%;"
:options="options"
:show-all-levels="false"
+ :clearable="clearable"
:props="{
emitPath: false,
multiple: multiple,
@@ -44,6 +45,10 @@ export default {
checkStrictly: {
type: Boolean,
default: false
+ },
+ clearable: {
+ type: Boolean,
+ default: null
}
},
data() {
diff --git a/src/views/bst/device/index.vue b/src/views/bst/device/index.vue
index 6ff2b68..e18a8f6 100644
--- a/src/views/bst/device/index.vue
+++ b/src/views/bst/device/index.vue
@@ -78,6 +78,12 @@
/>
+
+
+
+
+
+
搜索
重置
@@ -406,6 +412,7 @@ import BooleanTag from '@/components/BooleanTag/index.vue';
import AreaLink from '@/components/Business/Area/AreaLink.vue';
import AreaRemoteSelect from '@/components/Business/Area/AreaRemoteSelect.vue';
import DeviceLink from '@/components/Business/Device/DeviceLink.vue';
+import HardwareVersionSelect from '@/components/Business/HardwareVersion/HardwareVersionSelect.vue';
import UserLink from '@/components/Business/User/UserLink.vue';
import FormCol from "@/components/FormCol/index.vue";
import { DeviceStatus } from '@/utils/enums';
@@ -425,7 +432,18 @@ export default {
name: "Device",
mixins: [$showColumns, $device],
dicts: ['device_status', 'device_lock_status', 'device_iot_status', 'device_online_status', 'device_quality', 'device_music'],
- components: {FormCol, DeviceEditDialog, BooleanTag, DeviceTransferDialog, DeviceSn, UserLink, DeviceLink, AreaRemoteSelect, AreaLink},
+ components: {
+ FormCol,
+ DeviceEditDialog,
+ BooleanTag,
+ DeviceTransferDialog,
+ DeviceSn,
+ UserLink,
+ DeviceLink,
+ AreaRemoteSelect,
+ AreaLink,
+ HardwareVersionSelect
+ },
props: {
query: {
type: Object,
@@ -493,6 +511,7 @@ export default {
gps: null,
lastLocationTime: null,
hardwareVersionId: null,
+ softwareVersion: null,
mchId: null,
iotStatus: null,
isSound: null
diff --git a/src/views/bst/model/components/ModelEditDialog.vue b/src/views/bst/model/components/ModelEditDialog.vue
index ef5a298..fa7043e 100644
--- a/src/views/bst/model/components/ModelEditDialog.vue
+++ b/src/views/bst/model/components/ModelEditDialog.vue
@@ -37,14 +37,17 @@
-
-
-
-
+
+
+
+
%
+
+
+