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