修改 告警
This commit is contained in:
@@ -74,7 +74,7 @@ export default class TableStore {
|
|||||||
)
|
)
|
||||||
).then((res: any) => {
|
).then((res: any) => {
|
||||||
this.table.data = res.data.records || res.data
|
this.table.data = res.data.records || res.data
|
||||||
this.table.total = res.data.total || res.data.length
|
this.table.total = res.data.total || res.data.length||0
|
||||||
if (this.isWebPaging) {
|
if (this.isWebPaging) {
|
||||||
this.table.webPagingData = window.XEUtils.chunk(this.table.data, this.table.params.pageSize)
|
this.table.webPagingData = window.XEUtils.chunk(this.table.data, this.table.params.pageSize)
|
||||||
this.table.data = this.table.webPagingData[this.table.params.pageNum - 1]
|
this.table.data = this.table.webPagingData[this.table.params.pageNum - 1]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
v-loading="tableStore.table.loading"
|
v-loading="tableStore.table.loading"
|
||||||
height="auto"
|
height="auto"
|
||||||
auto-resize
|
auto-resize
|
||||||
|
ref="tableRef"
|
||||||
v-bind="defaultAttribute"
|
v-bind="defaultAttribute"
|
||||||
:data="tableStore.table.data"
|
:data="tableStore.table.data"
|
||||||
:column-config="{ resizable: true }"
|
:column-config="{ resizable: true }"
|
||||||
@@ -24,13 +25,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, provide } from 'vue'
|
import { ref, onMounted, provide, nextTick } from 'vue'
|
||||||
import TableStore from '@/utils/tableStore'
|
import TableStore from '@/utils/tableStore'
|
||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'govern/manage/engineering'
|
name: 'govern/manage/engineering'
|
||||||
})
|
})
|
||||||
|
const tableRef = ref()
|
||||||
|
|
||||||
const pageHeight = mainHeight(20)
|
const pageHeight = mainHeight(20)
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/cs-device-boot/csLedger/getProjectTree',
|
url: '/cs-device-boot/csLedger/getProjectTree',
|
||||||
@@ -44,6 +47,9 @@ provide('tableStore', tableStore)
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
|
setTimeout(() => {
|
||||||
|
tableRef.value.setAllTreeExpand(true)
|
||||||
|
}, 100)
|
||||||
})
|
})
|
||||||
|
|
||||||
const addMenu = () => {}
|
const addMenu = () => {}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
<vxe-column field="createTime" title="录入时间"></vxe-column>
|
<vxe-column field="createTime" title="录入时间"></vxe-column>
|
||||||
<vxe-column field="createTime" title="网络设备ID"></vxe-column>
|
<vxe-column field="ndid" title="网络设备ID"></vxe-column>
|
||||||
<vxe-column field="status" title="状态">
|
<vxe-column field="status" title="状态">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{ row.status == 1 ? '未注册' : row.status == 2 ? '注册' : '接入' }}
|
{{ row.status == 1 ? '未注册' : row.status == 2 ? '注册' : '接入' }}
|
||||||
@@ -196,7 +196,6 @@ import {
|
|||||||
addEquipmentDelivery,
|
addEquipmentDelivery,
|
||||||
deleteEquipmentDelivery,
|
deleteEquipmentDelivery,
|
||||||
editEquipmentDelivery,
|
editEquipmentDelivery,
|
||||||
uploadTopo,
|
|
||||||
batchImportDevice,
|
batchImportDevice,
|
||||||
resetEquipmentDelivery
|
resetEquipmentDelivery
|
||||||
} from '@/api/cs-system-boot/device'
|
} from '@/api/cs-system-boot/device'
|
||||||
|
|||||||
Reference in New Issue
Block a user