设备登记-治理设备去掉接入按钮
This commit is contained in:
@@ -335,37 +335,37 @@ const tableStore = new TableStore({
|
||||
}
|
||||
},
|
||||
//直连设备接入
|
||||
{
|
||||
title: '接入',
|
||||
type: 'primary',
|
||||
icon: 'el-icon-Grid',
|
||||
render: 'basicButton',
|
||||
disabled: row => {
|
||||
return (
|
||||
(row.devType == '8b45cf6b7f5266e777d07c166ad5fa77' &&
|
||||
row.devModel == 'a0d4da4b5c17b2172362a3f5a27bf217') ||
|
||||
row.status != '2'
|
||||
)
|
||||
},
|
||||
click: row => {
|
||||
// 直连设备接入
|
||||
ElMessageBox.confirm('确定接入该设备吗?', '提示', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
governDeviceRegister({
|
||||
nDid: row.ndid,
|
||||
type: '4'
|
||||
}).then(res => {
|
||||
ElMessage.success(res.message)
|
||||
tableStore.onTableAction('search', {})
|
||||
})
|
||||
})
|
||||
.catch(e => {})
|
||||
}
|
||||
},
|
||||
// {
|
||||
// title: '接入',
|
||||
// type: 'primary',
|
||||
// icon: 'el-icon-Grid',
|
||||
// render: 'basicButton',
|
||||
// disabled: row => {
|
||||
// return (
|
||||
// (row.devType == '8b45cf6b7f5266e777d07c166ad5fa77' &&
|
||||
// row.devModel == 'a0d4da4b5c17b2172362a3f5a27bf217') ||
|
||||
// row.status != '2'
|
||||
// )
|
||||
// },
|
||||
// click: row => {
|
||||
// // 直连设备接入
|
||||
// ElMessageBox.confirm('确定接入该设备吗?', '提示', {
|
||||
// confirmButtonText: '确认',
|
||||
// cancelButtonText: '取消',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// .then(() => {
|
||||
// governDeviceRegister({
|
||||
// nDid: row.ndid,
|
||||
// type: '4'
|
||||
// }).then(res => {
|
||||
// ElMessage.success(res.message)
|
||||
// tableStore.onTableAction('search', {})
|
||||
// })
|
||||
// })
|
||||
// .catch(e => {})
|
||||
// }
|
||||
// },
|
||||
//便携式设备接入
|
||||
{
|
||||
title: '接入',
|
||||
|
||||
Reference in New Issue
Block a user