提交代码

This commit is contained in:
guanj
2026-04-25 15:22:28 +08:00
parent 7abcdb3a6b
commit 8b80e0678f
4 changed files with 614 additions and 1198 deletions

View File

@@ -144,3 +144,11 @@ export function queryPushResult() {
method: 'post'
})
}
//查询升级日志
export function getByDevId(data: any) {
return createAxios({
url: '/cs-device-boot/csUpgradeLogs/getByDevId',
method: 'get',
params:data
})
}

File diff suppressed because it is too large Load Diff

View File

@@ -28,6 +28,7 @@ import { ref, reactive } from 'vue'
import { defaultAttribute } from '@/components/table/defaultAttribute'
import { ElMessage } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import { getByDevId } from '@/api/cs-device-boot/cloudDeviceEntry'
const layout1 = mainHeight(100, 2)
// 弹框显示控制
const dialogVisible = ref(false)
@@ -60,9 +61,14 @@ const getResultText = (result) => {
// 打开弹框
const open = (row) => {
title.value = `${row.name}_升级日志`
title.value = `${row.name}_升级日志`
dialogVisible.value = true
getByDevId({
devId: row.id
}).then((res) => {
tableData = res.data
})
}
// 加载表格数据

View File

@@ -66,7 +66,7 @@ const DevTypeOptions = ref()
const icdList = ref()
const tableHeaderRef = ref()
const { push, options, currentRoute } = useRouter()
const tableStore = new TableStore({
const tableStore: any = new TableStore({
url: '/cs-device-boot/EquipmentDelivery/version/page',
method: 'POST',
column: [
@@ -101,7 +101,7 @@ const tableStore = new TableStore({
2: '在线'
}
},
{ title: '更新时间', field: 'updateTime', minWidth: '150', formatter: (row: any) => { return row.cellValue || '/' } ,sortable: true},
{ title: '更新时间', field: 'updateTime', minWidth: '150', formatter: (row: any) => { return row.cellValue || '/' }, sortable: true },
{ title: '修改人员', field: 'updateByName', minWidth: '100', formatter: (row: any) => { return row.cellValue || '/' } },
{
title: '操作',
@@ -123,7 +123,7 @@ const tableStore = new TableStore({
upgradeRef.value.open({
id: [row.id],
devModel: row.devModel,
version:row.version
version: row.version
})
}
@@ -212,6 +212,6 @@ tableStore.table.params.upgrade = ''
provide('tableStore', tableStore)
onMounted(() => {
getQuery()
tableHeaderRef.value.onComSearch()
tableStore.index()
})
</script>