修改冀北现场问题

This commit is contained in:
guanj
2025-12-29 19:44:17 +08:00
parent 83e57c92b4
commit 26ff8087c6
24 changed files with 3332 additions and 2741 deletions

View File

@@ -218,6 +218,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import { ElButton } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import Bind from './bind.vue'
const VITE_FLAG = import.meta.env.VITE_NAME == 'hainan'
defineOptions({
name: 'BusinessAdministrator/TerminalManagement/FrontManagement'
})
@@ -332,29 +333,32 @@ const tableStore = new TableStore({
formData.value = JSON.parse(JSON.stringify(row))
}
},
// {
// name: 'edit',
// title: '重启',
// type: 'warning',
// icon: 'el-icon-Delete',
// render: 'confirmButton',
// popconfirm: {
// confirmButtonText: '确认',
// cancelButtonText: '取消',
// confirmButtonType: 'warning',
// title: '确定重启吗?'
// },
// click: row => {
// askRestartProcess({
// deviceRebootType: null,
// nodeId: row.id,
// processNo: 1
// }).then(res => {
// ElMessage.success('重启成功')
// tableStore.index()
// })
// }
// },
{
name: 'edit',
title: '重启',
type: 'warning',
icon: 'el-icon-Delete',
render: 'confirmButton',
disabled: row => {
return VITE_FLAG
},
popconfirm: {
confirmButtonText: '确认',
cancelButtonText: '取消',
confirmButtonType: 'warning',
title: '确定重启吗?'
},
click: row => {
askRestartProcess({
deviceRebootType: null,
nodeId: row.id,
processNo: 1
}).then(res => {
ElMessage.success('重启成功')
tableStore.index()
})
}
},
{
name: 'del',