+
+
+
+
>({
startDay: false,
+ categoryId: false,
endDay: false,
status: true,
sn: false,
@@ -138,6 +156,7 @@ const placeholderMap = {
endDay: '终止时间',
sn: '设备SN',
customerId: '客户',
+ categoryId: '设备分类',
}
function validate() {
@@ -176,6 +195,7 @@ function onReset() {
status: 3,
sn: '',
customerId: '',
+ categoryId: '',
}
checkbox.value = {
startDay: false,
@@ -183,11 +203,19 @@ function onReset() {
status: true,
sn: false,
customerId: false,
+ categoryId: false,
}
onSearch()
}
-
+const categoryTreeData = ref([])
+async function loadDeviceTypeTree() {
+ const res = await getCategoryTree()
+ if (!isResError(res)) {
+ categoryTreeData.value = res.data
+ }
+}
onMounted(() => {
+ loadDeviceTypeTree()
onSearch()
})
diff --git a/src/pages/deviceStorage/index.vue b/src/pages/deviceStorage/index.vue
index 4c9d3a3..10da64f 100644
--- a/src/pages/deviceStorage/index.vue
+++ b/src/pages/deviceStorage/index.vue
@@ -21,6 +21,11 @@
row-class-name="row"
@pageCurrentChange="handleJump"
>
+
+
+ {{ scope.$index + 1 }}
+
+