修改冀北现场问题
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user