|
@@ -1,4 +1,11 @@
|
|
<template>
|
|
<template>
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col :span="4" :xs="24">
|
|
|
|
+ <ContentWrap class="h-1/1">
|
|
|
|
+ <DeptTree @node-click="handleDeptNodeClick" />
|
|
|
|
+ </ContentWrap>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="20" :xs="24">
|
|
<ContentWrap>
|
|
<ContentWrap>
|
|
<!-- 搜索工作栏 -->
|
|
<!-- 搜索工作栏 -->
|
|
<el-form
|
|
<el-form
|
|
@@ -17,13 +24,24 @@
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="t('monitor.category')" prop="deviceClassify">
|
|
|
|
- <el-input
|
|
|
|
|
|
+<!-- <el-form-item :label="t('monitor.category')" prop="deviceClassify">-->
|
|
|
|
+<!-- <el-input-->
|
|
|
|
+<!-- v-model="queryParams.deviceClassify"-->
|
|
|
|
+<!-- :placeholder="t('deviceForm.categoryHolder')"-->
|
|
|
|
+<!-- clearable-->
|
|
|
|
+<!-- @keyup.enter="handleQuery"-->
|
|
|
|
+<!-- class="!w-240px"-->
|
|
|
|
+<!-- />-->
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
+ <el-form-item :label="t('monitor.category')" prop="deviceClassify" style="width: 15vw" >
|
|
|
|
+ <el-tree-select
|
|
v-model="queryParams.deviceClassify"
|
|
v-model="queryParams.deviceClassify"
|
|
|
|
+ :data="productClassifyList"
|
|
|
|
+ :props="defaultProps"
|
|
|
|
+ check-strictly
|
|
|
|
+ node-key="id"
|
|
:placeholder="t('deviceForm.categoryHolder')"
|
|
:placeholder="t('deviceForm.categoryHolder')"
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
|
|
+ filterable
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item :label="t('monitor.deviceName')" prop="deviceName">
|
|
<el-form-item :label="t('monitor.deviceName')" prop="deviceName">
|
|
@@ -110,6 +128,8 @@
|
|
@pagination="getList"
|
|
@pagination="getList"
|
|
/>
|
|
/>
|
|
</ContentWrap>
|
|
</ContentWrap>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
<IotInspectRouteForm ref="formRef" @success="getList" />
|
|
<IotInspectRouteForm ref="formRef" @success="getList" />
|
|
@@ -120,6 +140,8 @@ import { dateFormatter } from '@/utils/formatTime'
|
|
import download from '@/utils/download'
|
|
import download from '@/utils/download'
|
|
import { IotInspectRouteApi, IotInspectRouteVO } from '@/api/pms/inspect/route'
|
|
import { IotInspectRouteApi, IotInspectRouteVO } from '@/api/pms/inspect/route'
|
|
import IotInspectRouteForm from './IotInspectRouteForm.vue'
|
|
import IotInspectRouteForm from './IotInspectRouteForm.vue'
|
|
|
|
+import DeptTree from "@/views/system/user/DeptTree.vue";
|
|
|
|
+import {defaultProps} from "@/utils/tree";
|
|
const { push } = useRouter() // 路由跳转
|
|
const { push } = useRouter() // 路由跳转
|
|
/** 巡检路线 列表 */
|
|
/** 巡检路线 列表 */
|
|
defineOptions({ name: 'IotInspectRoute' })
|
|
defineOptions({ name: 'IotInspectRoute' })
|
|
@@ -130,6 +152,7 @@ const { t } = useI18n() // 国际化
|
|
const loading = ref(true) // 列表的加载中
|
|
const loading = ref(true) // 列表的加载中
|
|
const list = ref<IotInspectRouteVO[]>([]) // 列表的数据
|
|
const list = ref<IotInspectRouteVO[]>([]) // 列表的数据
|
|
const total = ref(0) // 列表的总页数
|
|
const total = ref(0) // 列表的总页数
|
|
|
|
+const productClassifyList = ref<Tree[]>([]) // 树形结构
|
|
const queryParams = reactive({
|
|
const queryParams = reactive({
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -146,6 +169,10 @@ const queryParams = reactive({
|
|
const queryFormRef = ref() // 搜索的表单
|
|
const queryFormRef = ref() // 搜索的表单
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
|
|
|
|
|
+const handleDeptNodeClick = async (row) => {
|
|
|
|
+ queryParams.deptId = row.id
|
|
|
|
+ await getList()
|
|
|
|
+}
|
|
/** 查询列表 */
|
|
/** 查询列表 */
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
loading.value = true
|
|
loading.value = true
|