设备登记-添加手动接入
This commit is contained in:
@@ -325,7 +325,6 @@ const tableStore = new TableStore({
|
||||
portableDeviceRegister({
|
||||
nDid: row.ndid
|
||||
}).then(res => {
|
||||
console.log(res, '8888')
|
||||
ElMessage.success(res.message)
|
||||
tableStore.index()
|
||||
})
|
||||
@@ -365,7 +364,37 @@ const tableStore = new TableStore({
|
||||
// .catch(e => {})
|
||||
// }
|
||||
// },
|
||||
//便携式设备接入
|
||||
//便携式设备手动接入
|
||||
{
|
||||
title: '手动接入',
|
||||
type: 'primary',
|
||||
icon: 'el-icon-Grid',
|
||||
render: 'basicButton',
|
||||
disabled: row => {
|
||||
return (
|
||||
(row.devType != '8b45cf6b7f5266e777d07c166ad5fa77' &&
|
||||
row.devModel != 'a0d4da4b5c17b2172362a3f5a27bf217') ||
|
||||
row.status == '5'
|
||||
)
|
||||
},
|
||||
click: row => {
|
||||
// 便携式设备手动接入
|
||||
ElMessageBox.confirm('确定接入该设备吗?', '提示', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
portableDeviceAccess({
|
||||
nDid: row.ndid
|
||||
}).then(res => {
|
||||
ElMessage.success(res.message)
|
||||
tableStore.index()
|
||||
})
|
||||
})
|
||||
.catch(e => {})
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '接入',
|
||||
type: 'primary',
|
||||
|
||||
Reference in New Issue
Block a user