|
|
|
@ -60,18 +60,18 @@
@@ -60,18 +60,18 @@
|
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<el-cascader |
|
|
|
|
v-model="filterData.categoryId" |
|
|
|
|
v-model="filterData.categoryName" |
|
|
|
|
:options="categoryTreeData" |
|
|
|
|
placeholder="请选择设备分类" |
|
|
|
|
style="width: 100%" |
|
|
|
|
:props="{ |
|
|
|
|
checkStrictly: true, |
|
|
|
|
value: 'id', |
|
|
|
|
value: 'name', //! 后端要求使用名称查询原因: 设备类型删除后使用id查询会导致查询不到数据 |
|
|
|
|
label: 'name', |
|
|
|
|
emitPath: false, |
|
|
|
|
}" |
|
|
|
|
/> |
|
|
|
|
<el-checkbox v-model="checkbox.categoryId" size="large" /> |
|
|
|
|
<el-checkbox v-model="checkbox.categoryName" size="large" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="item item-btn"> |
|
|
|
|
<EdfsButton |
|
|
|
@ -94,7 +94,7 @@ import { isResError } from '@/hooks/useMessage'
@@ -94,7 +94,7 @@ import { isResError } from '@/hooks/useMessage'
|
|
|
|
|
import type { CustomerVO } from '@/api/module/eam/customer' |
|
|
|
|
import { statusList } from '../utils' |
|
|
|
|
import { useMessage } from '@/hooks/useMessage' |
|
|
|
|
import { getCategoryTree, ICategoryTree } from "@/api/module/eam/device/category"; |
|
|
|
|
import { getCategoryTree, type ICategoryTree } from "@/api/module/eam/device/category"; |
|
|
|
|
|
|
|
|
|
const locale = zhCn |
|
|
|
|
const msg = useMessage() |
|
|
|
@ -120,7 +120,7 @@ const filterData = ref({
@@ -120,7 +120,7 @@ const filterData = ref({
|
|
|
|
|
endDay: '', |
|
|
|
|
status: 3, |
|
|
|
|
sn: '', |
|
|
|
|
customerId: '', |
|
|
|
|
categoryName: '', |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const checkbox = ref<Record<FilterKeys, boolean>>({ |
|
|
|
@ -129,7 +129,7 @@ const checkbox = ref<Record<FilterKeys, boolean>>({
@@ -129,7 +129,7 @@ const checkbox = ref<Record<FilterKeys, boolean>>({
|
|
|
|
|
endDay: false, |
|
|
|
|
status: true, |
|
|
|
|
sn: false, |
|
|
|
|
customerId: false, |
|
|
|
|
categoryName: false, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|