联调台账变更推送

This commit is contained in:
GGJ
2025-04-23 15:36:57 +08:00
parent 71fbdfa1d0
commit dc4b37b833
11 changed files with 684 additions and 249 deletions

View File

@@ -11,6 +11,9 @@
<el-input v-model="tableStore.table.params.searchValue" placeholder="请输入筛选数据" clearable />
</el-form-item>
</template>
<template #operation>
<el-button type="primary" icon="el-icon-Sort" @click="changePush">台账变更推送</el-button>
</template>
</TableHeader>
<Table ref="tableRef"></Table>
</div>
@@ -22,6 +25,8 @@ import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { useDictData } from '@/stores/dictData'
import { ElMessage, ElMessageBox } from 'element-plus'
import { ledgerChangePush } from '@/api/device-boot/terminalTree'
defineOptions({
name: 'BusinessAdministrator/LogManagement/TerminalLog'
})
@@ -41,11 +46,14 @@ const tableStore = new TableStore({
}
},
// { title: '名称', field: 'name', width: '200' },
{ title: '日志类型', field: 'logsType', width: '250',
{
title: '日志类型',
field: 'logsType',
width: '250',
formatter: (row: any) => {
return fontdveoption.find((item: any) => item.id == row.cellValue)?.name
}
},
},
{
title: '更改人员',
@@ -62,6 +70,21 @@ const tableStore = new TableStore({
],
beforeSearchFun: () => {}
})
// 变更推送
const changePush = () => {
ElMessageBox.confirm('当前操作会把存在变动的装置测点推送至前置,是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
ledgerChangePush().then(res => {
ElMessage.success(res.message)
tableStore.index()
})
})
}
const tableRef = ref()
provide('tableRef', tableRef)
tableStore.table.params.type = ''
tableStore.table.params.searchValue = ''
provide('tableStore', tableStore)

View File

@@ -124,7 +124,6 @@
<el-tag v-if="row.comFlag === 1" type="success" size="small">正常</el-tag>
</template>
</vxe-column>
<vxe-column title="操作" width="160">
<template #default="{ row }">
<!-- <el-button v-if="row.level === 4" type="primary" size="small" link @click="uesdealia(row)">

View File

@@ -2514,7 +2514,7 @@ const queryNodeContent = () => {
return
}
if (nodeData.value.plevel == 6) {
if (nodeData.value.level>= 400) {
setDown()
}
let data = {