提交代码
This commit is contained in:
@@ -144,3 +144,11 @@ export function queryPushResult() {
|
|||||||
method: 'post'
|
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
@@ -28,6 +28,7 @@ import { ref, reactive } from 'vue'
|
|||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { mainHeight } from '@/utils/layout'
|
import { mainHeight } from '@/utils/layout'
|
||||||
|
import { getByDevId } from '@/api/cs-device-boot/cloudDeviceEntry'
|
||||||
const layout1 = mainHeight(100, 2)
|
const layout1 = mainHeight(100, 2)
|
||||||
// 弹框显示控制
|
// 弹框显示控制
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
@@ -60,8 +61,13 @@ const getResultText = (result) => {
|
|||||||
|
|
||||||
// 打开弹框
|
// 打开弹框
|
||||||
const open = (row) => {
|
const open = (row) => {
|
||||||
title.value = `${row.name}_升级日志`
|
title.value = `${row.name}_升级日志`
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
|
getByDevId({
|
||||||
|
devId: row.id
|
||||||
|
}).then((res) => {
|
||||||
|
tableData = res.data
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ const DevTypeOptions = ref()
|
|||||||
const icdList = ref()
|
const icdList = ref()
|
||||||
const tableHeaderRef = ref()
|
const tableHeaderRef = ref()
|
||||||
const { push, options, currentRoute } = useRouter()
|
const { push, options, currentRoute } = useRouter()
|
||||||
const tableStore = new TableStore({
|
const tableStore: any = new TableStore({
|
||||||
url: '/cs-device-boot/EquipmentDelivery/version/page',
|
url: '/cs-device-boot/EquipmentDelivery/version/page',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
column: [
|
column: [
|
||||||
@@ -101,7 +101,7 @@ const tableStore = new TableStore({
|
|||||||
2: '在线'
|
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: '修改人员', field: 'updateByName', minWidth: '100', formatter: (row: any) => { return row.cellValue || '/' } },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
@@ -123,7 +123,7 @@ const tableStore = new TableStore({
|
|||||||
upgradeRef.value.open({
|
upgradeRef.value.open({
|
||||||
id: [row.id],
|
id: [row.id],
|
||||||
devModel: row.devModel,
|
devModel: row.devModel,
|
||||||
version:row.version
|
version: row.version
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -212,6 +212,6 @@ tableStore.table.params.upgrade = ''
|
|||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getQuery()
|
getQuery()
|
||||||
tableHeaderRef.value.onComSearch()
|
tableStore.index()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user