|
|
@@ -97,13 +97,20 @@
|
|
|
ref="tableRef"
|
|
|
:height="tableHeight"
|
|
|
>
|
|
|
- <el-table-column :label="t('iotDevice.serial')" width="70" align="center">
|
|
|
+ <el-table-column :label="t('iotDevice.serial')" width="70" align="center" fixed="left">
|
|
|
<template #default="scope">
|
|
|
{{ scope.$index + 1 }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="设备编码" sortable align="center" prop="deviceCode" width="150" />
|
|
|
+ <el-table-column
|
|
|
+ label="设备编码"
|
|
|
+ sortable
|
|
|
+ align="center"
|
|
|
+ prop="deviceCode"
|
|
|
+ width="150"
|
|
|
+ fixed="left"
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
:label="t('iotDevice.name')"
|
|
|
sortable
|
|
|
@@ -178,7 +185,7 @@
|
|
|
prop="chargeName"
|
|
|
min-width="170"
|
|
|
/>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
:label="t('deviceForm.useProject')"
|
|
|
align="center"
|
|
|
prop="useProject"
|
|
|
@@ -189,7 +196,7 @@
|
|
|
align="center"
|
|
|
prop="assetOwnership"
|
|
|
min-width="170"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
<!-- <el-table-column
|
|
|
:label="t('operationFill.operation')"
|
|
|
align="center"
|
|
|
@@ -229,7 +236,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import download from '@/utils/download'
|
|
|
import { IotDeviceApi, IotDeviceVO } from '@/api/pms/device'
|
|
|
import { DICT_TYPE } from '@/utils/dict'
|
|
|
import DeptTree from '@/views/system/user/DeptTree.vue'
|
|
|
@@ -243,13 +249,11 @@ import { nextTick } from 'vue'
|
|
|
/** 设备台账 列表 */
|
|
|
defineOptions({ name: 'IotDevicePms' })
|
|
|
|
|
|
-const message = useMessage() // 消息弹窗
|
|
|
const { t } = useI18n() // 国际化
|
|
|
const { push } = useRouter() // 路由跳转
|
|
|
|
|
|
const refreshStore = useRefreshStore()
|
|
|
const loading = ref(true) // 列表的加载中
|
|
|
-const ifShow = ref(false)
|
|
|
const list = ref<IotDeviceVO[]>([]) // 列表的数据
|
|
|
const total = ref(0) // 列表的总页数
|
|
|
const queryParams = reactive({
|
|
|
@@ -289,7 +293,6 @@ const queryParams = reactive({
|
|
|
yfDeviceCode: undefined
|
|
|
})
|
|
|
const queryFormRef = ref(null) // 搜索的表单
|
|
|
-const exportLoading = ref(false) // 导出的加载中
|
|
|
const contentSpan = ref(20)
|
|
|
const treeShow = ref(true)
|
|
|
|
|
|
@@ -470,6 +473,7 @@ const debounce = (fn, delay) => {
|
|
|
}
|
|
|
/** 初始化 **/
|
|
|
onMounted(async () => {
|
|
|
+ getDeviceCount()
|
|
|
nextTick(() => {
|
|
|
calculateTableHeight()
|
|
|
// 使用防抖避免频繁触发
|